Hi, All.
I’m trying to invoke webMethods web-service via glue.
I use Registry.bind(url …)
where url is http://remoteserver… (the wsdl of the webservice in
webMethods Integration Server)
Somehow it throws me error in binding to the remote url. I’ve already
made the service to be anonymous.
If I export the wsdl file from the IS and put the wsdl file locally,
and call the service using that wsdl file:
Registry.bind(“file:d:/processManager.wsdl”)
it works! In this project I need to access the url from remote server
as (http://…) because we have different remoteserver need to be
access and we want the URL to be able to be passed dynamically.
The wsdl - URL comes from WMWSService package from webMethods IS.
Error is something like this:
electric.registry.RegistryException: could not bind to path:
[url]http://devwmd001:5560/WmWSTools/directory/wsd.dsp?[/url]
interface=BW_GenericFTP.services&service=processManager
at electric.soap.registry.SOAPRegistry.bind(Unknown Source)
at electric.registry.compound.CompoundRegistry.bind(Unknown
Source)
at electric.registry.Registry.getReference(Unknown Source)
at electric.registry.Registry.getProxy(Unknown Source)
at electric.registry.Registry.bind(Unknown Source)
at electric.registry.Registry.bind(Unknown Source)
at com.bigw.generic.bigwDFTP.works.RemoteExec.execWMService
(RemoteExec.java:241)
at
com.bigw.generic.bigwDFTP.test.RemoteExecTest.testExecWMService
(RemoteExecTest.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected
(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:421)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:305)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:186)
Caused by:
electric.http.authentication.ClientAuthenticationException: no
credentials for realm null
at electric.http.HTTPMessage.authenticateRealm(Unknown Source)
at electric.http.HTTPMessage.postAuthenticate(Unknown Source)
at electric.http.HTTPMessage.send(Unknown Source)
at electric.http.OutboundHTTPRequest.send(Unknown Source)
at electric.http.OutboundHTTPRequest.get(Unknown Source)
at electric.http.loader.HTTPResourceLoader.loadResource
(Unknown Source)
at electric.util.resourceloader.ResourceLoaders.loadResource
(Unknown Source)
at electric.wsdl.parser.WSDLParser.newWSDL(Unknown Source)
at electric.wsdl.loader.WSDLLoader.obtainWSDLBypassingCache
(Unknown Source)
at electric.wsdl.loader.WSDLLoader.getWSDL(Unknown Source)
…