question

boardmaster357 avatar image
0 Likes"
boardmaster357 asked

Can't compile ShoppingService.wsdl. Getting error com.sun.tools.internal.ws.wscompile.AbortException

when I try to compile the shopping service api wsdl, it fails with with the following warnings/error. how do I fix this? I am using the following compile command: wsimport -Xnocompile -d generated -extension http://developer.ebay.com/webservices/latest/ShoppingService.wsdl Here are the errors. parsing WSDL... [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Diamong'. [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'FindHalfProducts'. [WARNING] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'No'. [WARNING] s4s-elt-must-match.1: The content of 'simpleType' must match (annotation?, (restriction | list | union)). A problem was found starting at: appinfo. line 2158 of http://developer.ebay.com/webservices/latest/ShoppingService.wsdl#types?schema1 [WARNING] s4s-elt-must-match.1: The content of 'sequence' must match (annotation?, (element | group | choice | sequence | any)*). A problem was found starting at: CallInfo. line 8415 of http://developer.ebay.com/webservices/latest/ShoppingService.wsdl#types?schema1 [WARNING] cos-nonambig: "urn:ebay:apis:eBLBaseComponents":MessageID and WC[##any] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. line 25 of http://developer.ebay.com/webservices/latest/ShoppingService.wsdl#types?schema1 [WARNING] cos-nonambig: "urn:ebay:apis:eBLBaseComponents":Timestamp and WC[##any] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. line 63 of http://developer.ebay.com/webservices/latest/ShoppingService.wsdl#types?schema1 [WARNING] cos-nonambig: "urn:ebay:apis:eBLBaseComponents":Value and WC[##any] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. line 1796 of http://developer.ebay.com/webservices/latest/ShoppingService.wsdl#types?schema1 [WARNING] cos-nonambig: "urn:ebay:apis:eBLBaseComponents":ShortMessage and WC[##any] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. line 1836 of http://developer.ebay.com/webservices/latest/ShoppingService.wsdl#types?schema1 [WARNING] cos-no [WARNING] cos-nonambig: "urn:ebay:apis:eBLBaseComponents":UserID and WC[##any] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. line 2271 of http://developer.ebay.com/webservices/latest/ShoppingService.wsdl#types?schema1 [WARNING] cos-nonambig: "urn:ebay:apis:eBLBaseComponents":Name and WC[##any] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. line 3164 of http://developer.ebay.com/webservices/latest/ShoppingService.wsdl#types?schema1 [ERROR] Unexpected appears at line 2,164 column 15 line 2164 of http://developer.ebay.com/webservices/latest/ShoppingService.wsdl Exception in thread "main" com.sun.tools.internal.ws.wscompile.AbortException at com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:129) at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2283) at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:183) at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:126) at com.sun.tools.internal.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.java:429) at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:190) at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:168) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:159) at com.sun.tools.internal.ws.WsImport.main(WsImport.java:42)
shopping apiwsdljaxb
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.