If I take this code, which is a fairly lightly modified version of the unit test code generated by wsdl2java:

try {
 javax.xml.rpc.ServiceFactory serviceFactory =
            javax.xml.rpc.ServiceFactory.newInstance();
 java.net.URL url = new
   java.net.URL("http://opcfoundation.org/webservices/XMLDA/1.0/";);
 javax.xml.rpc.Service service = serviceFactory.createService(url, new
        QName("http://opcfoundation.org/webservices/XMLDA/1.0/";, ""));
 assertTrue(service != null);
} catch ( Exception any  ) {
 any.printStackTrace();
}

the exception printed is:

.javax.xml.rpc.ServiceException: Error processing WSDL document:
WSDLException (at /definitions/message[1]/part): faultCode=UNBOUND_PREFIX: Unable to determine namespace of 's0:GetStatus'.:
        at org.apache.axis.client.Service.initService(Service.java:249)
        at org.apache.axis.client.Service.<init>(Service.java:164)
at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198) at com.ergotech.vib.servers.opc.xmldaclient.OpcXmlDATestCase.testOpcXmlDASoapWSDL(OpcXmlDATestCase.java:25)
        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:585)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        [..]

I'm sure that I must be doing something obviously wrong and stupid, but have no idea what and would appreciate enlightenment.

Thanks,

Jim

--
Jim Redman
(505) 662 5156 x85
http://www.ergotech.com

Reply via email to