Skip to main content

Can't consume .NET web services

No replies
blake1024
Offline
Joined: 2007-12-13
Points: 0

Greetings,

I use JAXWS all the time. When I generate and consume my own WS everything works great. I just received my second request to consume WS's defined by an external source. Each time I am unable to parse their WSDL, and each time I am told they generated their WS's with .NET and many clients are using them without a problem.

I am using JAXWS 2.2.8 with Java 1.7.0_25 on a 64 bit Linux box. Any help would be greatly appreciated. Here is the log:

jaxws-ri/bin/wsimport.sh http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL
parsing WSDL...

[WARNING] src-resolve.4.2: Error resolving component 's:schema'. It was detected that 's:schema' is in namespace 'http://www.w3.org/2001/XMLSchema', but components from this namespace are not referenceable from schema document 'http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 's:schema' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL#types?schema1'.
line 13 of http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL#types?s...

[WARNING] src-resolve: Cannot resolve the name 's:schema' to a(n) 'element declaration' component.
line 13 of http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL#types?s...

[WARNING] src-resolve: Cannot resolve the name 's1:guid' to a(n) 'type definition' component.
line 5526 of http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL#types?s...

[ERROR] undefined element declaration 's:schema'
line 13 of http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL

[ERROR] undefined element declaration 's:schema'
line 6350 of http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL

[ERROR] undefined element declaration 's:schema'
line 6371 of http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL

[ERROR] undefined element declaration 's:schema'
line 6829 of http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL

[ERROR] undefined element declaration 's:schema'
line 6860 of http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL

[ERROR] undefined element declaration 's:schema'
line 14592 of http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL

[ERROR] undefined element declaration 's:schema'
line 14606 of http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL

[ERROR] undefined element declaration 's:schema'
line 14627 of http://www.innovateistore.com/store/ws/americommercedb.asmx?WSDL

Exception in thread "main" com.sun.tools.ws.wscompile.AbortException
at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:144)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2298)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:198)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:141)
at com.sun.tools.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.java:444)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:205)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:183)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.tools.ws.Invoker.invoke(Invoker.java:174)
at com.sun.tools.ws.WsImport.main(WsImport.java:57)