Forum Discussion

vbrabant's avatar
vbrabant
Occasional Contributor
13 years ago

Soapui accept a wsdl considered as invalid by other tools ?

We have a vendor tool that refuse to import the following wsdl https://api.mozypro.com/api/0.1.48/partner/service.wsdl saying that such WSDL is not valid because there is no import of "http://schemas.xmlsoap.org/soap/encoding/" in the xsd:schema part.
Seems that Eclipse is also complaining about that.
And wsimport of Jaxws is also complaining about that.
But SOAPUI accept without any problem such WSDL.
Is it normal that such WSDL is accepted by SOAPUI when other tools refuses it ?

If yes, can you explain the reason why SOAPUI is accepting such WSDL when other tools are refusing it ?


Thanks a lot.

Vincent

Hereafter the result of the wsimport command


[WARNING] src-resolve.4.2: Error resolving component 'soapenc:Array'. It was detected that 'soapenc:Array' is
in namespace 'http://schemas.xmlsoap.org/soap/encoding/', but components from this namespace are not reference
able from schema document 'file:/C://Mozy/mozy.wsdl#types?schema1'.
If this is the incorrect namespace, perhaps the prefix of 'soapenc:Array' needs to be changed. If this is the
correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/Mozy/mozy.wsdl#types?schema1'.
line 48 of file:/C:/Mozy/mozy.wsdl#types?schema1

[ERROR] undefined simple or complex type 'soapenc:Array'
line 48 of file:/C:/Mozy/mozy.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
line 49 of file:/C:/Mozy/mozy.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
line 61 of file:/C:/Mozy/mozy.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
line 62 of file:/C:/Mozy/mozy.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
line 68 of file:/C:/Mozy/mozy.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
line 69 of file:/C:/Mozy/mozy.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
line 75 of file:/C:/Mozy/mozy.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
line 76 of file:/C:/Mozy/mozy.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
line 104 of file:/C:/Mozy/mozy.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
line 105 of file:/C:/Mozy/mozy.wsdl

Exception in thread "main" java.lang.NullPointerException
at com.sun.tools.internal.xjc.reader.internalizer.SCDBasedBindingSet.apply(SCDBasedBindingSet.java:201
)
at com.sun.tools.internal.xjc.ModelLoader.createXSOM(ModelLoader.java:502)
at com.sun.tools.internal.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:216)
at com.sun.tools.internal.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:69)
at com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:120)
at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2173)
at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:17
3)
at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:119)
at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:170)
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:597)
at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:100)
at com.sun.tools.internal.ws.WsImport.main(WsImport.java:38)

No RepliesBe the first to reply