WSDL 2 JAVA compilation error

Discussion in 'Shapeways API' started by aditya, Jan 11, 2012.

  1. aditya
    aditya New Member
    Hi
    I am trying to generate Java classes for given wsdl at http://api.shapeways.com/v1/wsdl.php
    However, the compilation tools are giving me syntax errors with the wsdl.
    Details below
    Code:
    ~/jboss/bin/wsconsume.sh -k http://api.shapeways.com/v1/wsdl.php
    Could not find log4j.xml configuration, logging to console.
    
    Loading FrontEnd jaxws ...
    Loading DataBinding jaxb ...
    wsdl2java -compile -exsh false -d /home/dasher/Sunglass/temp/output -verbose -classdir /home/dasher/Sunglass/temp/output -allowElementReferences http://api.shapeways.com/v1/wsdl.php
    wsdl2java - Apache CXF 2.4.1
    
    Failed to invoke WSDLToJava
    org.apache.cxf.tools.common.ToolException: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition from : http://api.shapeways.com/v1/wsdl.php
    Caused by : WSDLException (at /definitions/message[1]/part[2]): faultCode=INVALID_WSDL: Encountered illegal extension attribute 'nillable'. Extension attributes must be in a namespace other than WSDL's. 
    	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:291)
    	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
    	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
    	at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:250)
    	at org.jboss.ws.tools.cmd.WSConsume.importServices(WSConsume.java:279)
    	at org.jboss.ws.tools.cmd.WSConsume.mainInternal(WSConsume.java:104)
    	at org.jboss.ws.tools.cmd.WSConsume.main(WSConsume.java:92)
    	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 org.jboss.modules.Module.run(Module.java:270)
    	at org.jboss.modules.Main.main(Main.java:313)
    Caused by: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition from : http://api.shapeways.com/v1/wsdl.php
    Caused by : WSDLException (at /definitions/message[1]/part[2]): faultCode=INVALID_WSDL: Encountered illegal extension attribute 'nillable'. Extension attributes must be in a namespace other than WSDL's. 
    	at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionBuilder.java:97)
    	at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.build(WSDLDefinitionBuilder.java:69)
    	at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:84)
    	at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:61)
    	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:171)
    	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:138)
    	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:283)
    	... 12 more
    Caused by: javax.wsdl.WSDLException: WSDLException (at /definitions/message[1]/part[2]): faultCode=INVALID_WSDL: Encountered illegal extension attribute 'nillable'. Extension attributes must be in a namespace other than WSDL's.
    	at com.ibm.wsdl.xml.WSDLReaderImpl.parseExtensibilityAttributes(Unknown Source)
    	at com.ibm.wsdl.xml.WSDLReaderImpl.parsePart(Unknown Source)
    	at com.ibm.wsdl.xml.WSDLReaderImpl.parseMessage(Unknown Source)
    	at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
    	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
    	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
    	at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:237)
    	at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:186)
    	at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionBuilder.java:78)
    	... 18 more