I have an application trying to load a web service, but I'm getting an error on load. The error is:
I'm already passing autoLoadImports to loadWSDL (here's my load):
Note that above I'm using an empty RPCRequest() - I just pass it so I can pass 'true' to the loadWSDL().
Below is my WSDL (as generated by netbeans):
The error talks of an undefined targetNamespace - but as far as I can see I've correctly defined the targetNamespace. And it also talks of a missing SchemaSet - but I'm using autoLoadImports.
Any suggestions?
Code:
00:00:32.792 [ERROR] 12:13:15.524:XRP8:WARN:schemaLoader:isc_SchemaSet_0:SchemaSet with targetNamespace 'undefined' could not find SchemaSet for namespace: 'http://system.ws.server.com/'. Pass autoLoadImports to loadWSDL()/loadXMLSchema() or separately load via loadWSDL/loadXMLSchema jsp tag or method com.smartgwt.client.core.JsObject$SGWT_WARN: 12:13:15.524:XRP8:WARN:schemaLoader:isc_SchemaSet_0:SchemaSet with targetNamespace 'undefined' could not find SchemaSet for namespace: 'http://system.ws.server.com/'. Pass autoLoadImports to loadWSDL()/loadXMLSchema() or separately load via loadWSDL/loadXMLSchema jsp tag or method at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1668) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222) at java.lang.Thread.run(Thread.java:619)
Code:
XMLTools.loadWSDL(SYSTEM_WSDL_URL,
new WSDLLoadCallback()
{
public void execute(WebService service)
{
if (service == null)
{
// Error loading the WSDL.
}
else
{
// Lots of processing now that I have the service.
}
}
}, new RPCRequest(), true);
Below is my WSDL (as generated by netbeans):
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3.3-hudson-757-SNAPSHOT. -->
<definitions targetNamespace="http://system.ws.server.com/" name="SystemWSService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://system.ws.server.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<types>
<xsd:schema>
<xsd:import namespace="http://system.ws.server.com/" schemaLocation="SystemWSService_schema1.xsd"/>
</xsd:schema>
</types>
<!-- lots of message names here -->
<!-- lots of operations here -->
<!-- lots of dindings here -->
<service name="SystemWSService">
<port name="SystemWSPort" binding="tns:SystemWSPortBinding">
<soap:address location="actual URL
</port>
</service>
</definitions>
Any suggestions?
Comment