Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

Unable to create web service client from .NET wsdl - s:schema

$
0
0

Hello Experts,

 

I'm trying to create web service client from .NET wsdl.

When I import it in NWDS (7.31 SP16 and a few older versions) I get the following error:

Supplied WSDL contains errors and cannot be processed

    com.sap.ide.jee.ws.common.runtime.wsdl.analyzer.WsdlAnalyzerException: [ERROR] 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 'file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.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 'file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1'.

 

line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

    [ERROR] undefined element declaration 's:schema'

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

    [ERROR] undefined element declaration 's:schema'

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

    [ERROR] undefined element declaration 's:schema'

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

    [ERROR] undefined element declaration 's:schema'

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

    [ERROR] undefined element declaration 's:schema'

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

    [ERROR] undefined element declaration 's:schema'

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

    [ERROR] undefined element declaration 's:schema'

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

    [ERROR] undefined element declaration 's:schema'

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

    [ERROR] undefined element declaration 's:schema'

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

    [ERROR] undefined element declaration 's:schema'

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

    [ERROR] undefined element declaration 's:schema'

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

    [ERROR] undefined element declaration 's:schema'

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

    [ERROR] undefined element declaration 's:schema'

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110551/WebService.wsdl#types?schema1

  

    at com.sap.ide.jee.ws.jee5.runtime.wsdl.analyzer.internal.WsdlAnalyzer.buildModel(WsdlAnalyzer.java:181)

    at com.sap.ide.jee.ws.jee5.runtime.wsdl.analyzer.internal.WsdlAnalyzer.getClasses(WsdlAnalyzer.java:62)

    at com.sap.ide.jee.ws.common.core.consumer.CompleteEsrWsdlCommand.performModelBuild(CompleteEsrWsdlCommand.java:124)

    at com.sap.ide.jee.ws.common.core.consumer.CompleteEsrWsdlCommand.doExecute(CompleteEsrWsdlCommand.java:87)

    at com.sap.ide.jee.ws.common.core.consumer.ThreadAwareCommand$1.run(ThreadAwareCommand.java:56)

    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

I read a lot of threads in SCN and StackOverflow, I even find a note number 1315081 that describes the issue.

 

 

When I implement it I get a different error:

Supplied WSDL contains errors and cannot be processed

    com.sap.ide.jee.ws.common.runtime.wsdl.analyzer.WsdlAnalyzerException: [ERROR] src-resolve: Cannot resolve the name 's:schema' to a(n) 'element declaration' component.

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110553/WebService1.wsdl#types?schema2

    [ERROR] Property "Any" is already defined. Use <jaxb:property> to resolve this conflict.

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110553/WebService1.wsdl#types?schema2

    [ERROR] The following location is relevant to the above error

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110553/WebService1.wsdl#types?schema2

    [ERROR] Property "Any" is already defined. Use <jaxb:property> to resolve this conflict.

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110553/WebService1.wsdl#types?schema2

    [ERROR] The following location is relevant to the above error

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110553/WebService1.wsdl#types?schema2

    [ERROR] Property "Any" is already defined. Use <jaxb:property> to resolve this conflict.

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110553/WebService1.wsdl#types?schema2

    [ERROR] The following location is relevant to the above error

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110553/WebService1.wsdl#types?schema2

    [ERROR] Property "Any" is already defined. Use <jaxb:property> to resolve this conflict.

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110553/WebService1.wsdl#types?schema2

    [ERROR] The following location is relevant to the above error

    line 0 of file file:/C:/Users/omric/AppData/Local/Temp/eclipse/.update/1456214110547/1456214110553/WebService1.wsdl#types?schema2

  

    at com.sap.ide.jee.ws.jee5.runtime.wsdl.analyzer.internal.WsdlAnalyzer.buildModel(WsdlAnalyzer.java:181)

    at com.sap.ide.jee.ws.jee5.runtime.wsdl.analyzer.internal.WsdlAnalyzer.getClasses(WsdlAnalyzer.java:62)

    at com.sap.ide.jee.ws.common.core.consumer.CompleteEsrWsdlCommand.performModelBuild(CompleteEsrWsdlCommand.java:124)

    at com.sap.ide.jee.ws.common.core.consumer.CompleteEsrWsdlCommand.doExecute(CompleteEsrWsdlCommand.java:87)

    at com.sap.ide.jee.ws.common.core.consumer.ThreadAwareCommand$1.run(ThreadAwareCommand.java:56)

    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

I tried to use JAXB bindings with no success.

 

Also, I understand that this is a non standard Microsoft wsdl however, I still need a way to create client from it (In NWDS7 the WSDL works...).

 

The WSDL is attached to this thread as txt file.

 

Regards,

Omri


Viewing all articles
Browse latest Browse all 3523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>