You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2006/12/15 07:38:26 UTC

[jira] Assigned: (AXIS2-1866) Can not generate stub or skeleton code based on xmlbeans binding

     [ http://issues.apache.org/jira/browse/AXIS2-1866?page=all ]

Deepal Jayasinghe reassigned AXIS2-1866:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> Can not generate stub or skeleton code based on xmlbeans binding
> ----------------------------------------------------------------
>
>                 Key: AXIS2-1866
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1866
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Windows 2000
>            Reporter: kevin
>         Assigned To: Amila Chinthaka Suriarachchi
>
> I am having a problem of generating a stub or skeleton of the wsdl below, using Axis2-1.1 wsdl2java tool, and xmlbeans binding.
> Here is my command (.bat file):
> SET ALLJ=%AXIS2_HOME%\lib\
> SET A=%AXIS2_HOME%\lib\activation-1.1.jar;%AXIS2_HOME%\lib\annogen-0.1.0.jar;%AXIS2_HOME%\lib\axiom-api-1.2.jar;%AXIS2_HOME%\lib\axiom-dom-1.2.jar;%AXIS2_HOME%\lib\axiom-impl-1.2.jar
> SET B=%AXIS2_HOME%\lib\axis2-xmlbeans-1.1.jar;%AXIS2_HOME%\lib\jaxen-1.1-beta-10.jar;%AXIS2_HOME%\lib\axis2-codegen-1.1.jar;%AXIS2_HOME%\lib\axis2-java2wsdl-1.1.jar;%AXIS2_HOME%\lib\axis2-jibx-1.1.jar
> SET C=%AXIS2_HOME%\lib\axis2-kernel-1.1.jar;%AXIS2_HOME%\lib\axis2-saaj-1.1.jar;%AXIS2_HOME%\lib\axis2-soapmonitor-1.1.jar;%AXIS2_HOME%\lib\axis2-spring-1.1.jar;%AXIS2_HOME%\lib\axis2-tools-1.1.jar
> SET D=%AXIS2_HOME%\lib\backport-util-concurrent-2.2.jar;%AXIS2_HOME%\lib\commons-codec-1.3.jar;%AXIS2_HOME%\lib\commons-fileupload-1.1.1.jar;%AXIS2_HOME%\lib\commons-httpclient-3.0.1.jar
> SET E=%AXIS2_HOME%\lib\commons-io-1.2.jar;%AXIS2_HOME%\lib\commons-logging-1.1.jar;%AXIS2_HOME%\lib\geronimo-spec-jms-1.1-rc4.jar;%AXIS2_HOME%\lib\jakarta-httpcore-4.0-alpha2.jar
> SET F=%AXIS2_HOME%\lib\jibx-bind-1.1.2.jar;%AXIS2_HOME%\lib\jibx-run-1.1.2.jar;%AXIS2_HOME%\lib\mail-1.4.jar;%AXIS2_HOME%\lib\neethi-2.0.jar;%AXIS2_HOME%\lib\servletapi-2.3.jar;%AXIS2_HOME%\lib\stax-api-1.0.1.jar
> SET G=%AXIS2_HOME%\lib\woden-1.0.0M6.jar;%AXIS2_HOME%\lib\wsdl4j-1.6.1.jar;%AXIS2_HOME%\lib\wstx-asl-3.0.1.jar;%AXIS2_HOME%\lib\xalan-2.7.0.jar;%AXIS2_HOME%\lib\xbean-2.2.0.jar;%AXIS2_HOME%\lib\xercesImpl-2.8.1.jar
> SET H=%AXIS2_HOME%\lib\xml-apis-1.3.03.jar;%AXIS2_HOME%\lib\XmlSchema-1.2.jar
> REM Too long for the classpath
> REM SET I=%AXIS2_HOME%\lib\axis2-adb-1.1.jar;%AXIS2_HOME%\lib\axis2-adb-codegen-1.1.jar;
> SET AXIS2_CLASS_PATH="%A%;%B%;%C%;%D%;%E%;%F%;%G%;%H%"
> java -cp %AXIS2_CLASS_PATH% org.apache.axis2.wsdl.WSDL2Java -uri TMS.WSDL -d xmlbeans -s -o C:\tms_test\tms_client_test_ax2 -p com.barcap.tms_client_test 2> errfile 1> outfile
> Here is the error I am getting.
> org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
> 	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> 	at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> 	at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:92)
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:177)
> 	... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:82)
> 	... 3 more
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: ct-props-correct.2: The simple type 'base64Binary@http://www.w3.org/2001/XMLSchema' cannot be used as the base type of a simple content restriction. (Use extension instead.)
> 	at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:248)
> 	... 8 more
> Caused by: org.apache.xmlbeans.XmlException: error: ct-props-correct.2: The simple type 'base64Binary@http://www.w3.org/2001/XMLSchema' cannot be used as the base type of a simple content restriction. (Use extension instead.)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
> 	at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:166)
> 	... 8 more
> Exception in thread "main" 
> Here is my Wsdl file: 
> <?xml version="1.0" encoding="UTF-8" ?> 
> <!--  Generated 06/27/05 by Microsoft SOAP Toolkit WSDL File Generator, Version 3.00.1325.0 
>   --> 
> <definitions name="MXWebServiceDime5" targetNamespace="http://www.barcapint.com/MXWebServiceDime5/wsdl/" xmlns:wsdlns="http://www.barcapint.com/MXWebServiceDime5/wsdl/" xmlns:typens="http://www.barcapint.com/MXWebServiceDime5/type/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stk="http://schemas.microsoft.com/soap-toolkit/wsdl-extension" xmlns:dime="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/" xmlns:ref="http://schemas.xmlsoap.org/ws/2002/04/reference/" xmlns:content="http://schemas.xmlsoap.org/ws/2002/04/content-type/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
> <types>
> <schema targetNamespace="http://www.barcapint.com/MXWebServiceDime5/type/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" elementFormDefault="qualified">
>   <import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> 
>   <import namespace="http://schemas.xmlsoap.org/wsdl/" /> 
>   <import namespace="http://schemas.xmlsoap.org/ws/2002/04/reference/" /> 
>   <import namespace="http://schemas.xmlsoap.org/ws/2002/04/content-type/" /> 
> <complexType name="UnknownBinaryContent">
> <simpleContent>
> <restriction base="base64Binary">
> <annotation>
> <appinfo>
> <!-- 
> 								You may use one or more of the following elements to describe the binary content:
> 								<content:type value='(URI identifying type)'/>
> 								<content:mediaType value='(MIME media type)'/>
> 								<content:documentType value='(QName of XML document)'/>
> 								
>   --> 
>   <content:type value="application\dime" /> 
>   <content:mediaType value="text\xml" /> 
>   </appinfo>
>   </annotation>
>   </restriction>
>   </simpleContent>
>   </complexType>
> <complexType name="ArrayOfstring">
> <complexContent>
> <restriction base="SOAP-ENC:Array">
>   <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]" /> 
>   </restriction>
>   </complexContent>
>   </complexType>
>   </schema>
>   </types>
> <message name="Server.Load">
>   <part name="environment" type="xsd:string" /> 
>   <part name="user" type="xsd:string" /> 
>   <part name="displayName" type="xsd:string" /> 
>   </message>
> <message name="Server.LoadResponse">
>   <part name="header" type="typens:UnknownBinaryContent" /> 
>   <part name="content" type="typens:UnknownBinaryContent" /> 
>   </message>
> <message name="Server.Save">
>   <part name="environment" type="xsd:string" /> 
>   <part name="user" type="xsd:string" /> 
>   <part name="displayName" type="xsd:string" /> 
>   <part name="version" type="xsd:int" /> 
>   <part name="content" type="xsd:string" /> 
>   </message>
> <message name="Server.SaveResponse">
>   <part name="savedDisplayName" type="xsd:string" /> 
>   <part name="savedVersion" type="xsd:int" /> 
>   <part name="timestamp" type="xsd:string" /> 
>   </message>
> <message name="Server.QueryValues">
>   <part name="environment" type="xsd:string" /> 
>   <part name="user" type="xsd:string" /> 
>   <part name="condition" type="xsd:string" /> 
>   <part name="columns" type="typens:ArrayOfstring" /> 
>   <part name="latestVersionOnly" type="xsd:boolean" /> 
>   </message>
> <message name="Server.QueryValuesResponse">
>   <part name="results" type="typens:UnknownBinaryContent" /> 
>   </message>
> <message name="Server.NamedCommand">
>   <part name="environment" type="xsd:string" /> 
>   <part name="user" type="xsd:string" /> 
>   <part name="command" type="xsd:string" /> 
>   <part name="params" type="typens:ArrayOfstring" /> 
>   </message>
> <message name="Server.NamedCommandResponse">
>   <part name="results" type="typens:UnknownBinaryContent" /> 
>   </message>
> <portType name="ServerSoapPort">
> <operation name="Load" parameterOrder="environment user displayName header content">
>   <input message="wsdlns:Server.Load" /> 
>   <output message="wsdlns:Server.LoadResponse" /> 
>   </operation>
> <operation name="Save" parameterOrder="environment user displayName version content savedDisplayName savedVersion timestamp">
>   <input message="wsdlns:Server.Save" /> 
>   <output message="wsdlns:Server.SaveResponse" /> 
>   </operation>
> <operation name="QueryValues" parameterOrder="environment user condition columns latestVersionOnly results">
>   <input message="wsdlns:Server.QueryValues" /> 
>   <output message="wsdlns:Server.QueryValuesResponse" /> 
>   </operation>
> <operation name="NamedCommand" parameterOrder="environment user command params results">
>   <input message="wsdlns:Server.NamedCommand" /> 
>   <output message="wsdlns:Server.NamedCommandResponse" /> 
>   </operation>
>   </portType>
> <binding name="ServerSoapBinding" type="wsdlns:ServerSoapPort">
>   <stk:binding preferredEncoding="UTF-8" /> 
>   <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> 
> <operation name="Load">
>   <soap:operation soapAction="http://www.barcapint.com/MXWebServiceDime5/action/Server.Load" /> 
> <input>
>   <soap:body use="encoded" namespace="http://www.barcapint.com/MXWebServiceDime5/message/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="environment user displayName" /> 
>   </input>
> <output>
>   <dime:message layout="http://schemas.xmlsoap.org/ws/2002/04/dime/closed-layout" wsdl:required="true" /> 
>   <soap:body use="encoded" namespace="http://www.barcapint.com/MXWebServiceDime5/message/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="header content" /> 
>   </output>
>   </operation>
> <operation name="Save">
>   <soap:operation soapAction="http://www.barcapint.com/MXWebServiceDime5/action/Server.Save" /> 
> <input>
>   <soap:body use="encoded" namespace="http://www.barcapint.com/MXWebServiceDime5/message/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="environment user displayName version content" /> 
>   </input>
> <output>
>   <soap:body use="encoded" namespace="http://www.barcapint.com/MXWebServiceDime5/message/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="savedDisplayName savedVersion timestamp" /> 
>   </output>
>   </operation>
> <operation name="QueryValues">
>   <soap:operation soapAction="http://www.barcapint.com/MXWebServiceDime5/action/Server.QueryValues" /> 
> <input>
>   <soap:body use="encoded" namespace="http://www.barcapint.com/MXWebServiceDime5/message/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="environment user condition columns latestVersionOnly" /> 
>   </input>
> <output>
>   <dime:message layout="http://schemas.xmlsoap.org/ws/2002/04/dime/closed-layout" wsdl:required="true" /> 
>   <soap:body use="encoded" namespace="http://www.barcapint.com/MXWebServiceDime5/message/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="results" /> 
>   </output>
>   </operation>
> <operation name="NamedCommand">
>   <soap:operation soapAction="http://www.barcapint.com/MXWebServiceDime5/action/Server.NamedCommand" /> 
> <input>
>   <soap:body use="encoded" namespace="http://www.barcapint.com/MXWebServiceDime5/message/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="environment user command params" /> 
>   </input>
> <output>
>   <dime:message layout="http://schemas.xmlsoap.org/ws/2002/04/dime/closed-layout" wsdl:required="true" /> 
>   <soap:body use="encoded" namespace="http://www.barcapint.com/MXWebServiceDime5/message/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="results" /> 
>   </output>
>   </operation>
>   </binding>
> <service name="MXWebServiceDime5">
> <port name="ServerSoapPort" binding="wsdlns:ServerSoapBinding">
>   <soap:address location="http://application-environment-purpose:port/mx5wsDime/MXWebServiceDime5.ASP" /> 
>   </port>
>   </service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org