You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Bill Blough (Jira)" <ji...@apache.org> on 2020/04/07 17:52:00 UTC

[jira] [Resolved] (AXIS2C-1088) WSDL2C.bat : [ERROR] Part 'fault' of fault message '

     [ https://issues.apache.org/jira/browse/AXIS2C-1088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill Blough resolved AXIS2C-1088.
---------------------------------
    Resolution: Fixed

> WSDL2C.bat : [ERROR] Part 'fault' of fault message '
> ----------------------------------------------------
>
>                 Key: AXIS2C-1088
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1088
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>    Affects Versions: 1.2.0
>         Environment: Windows XP
>            Reporter: JIRA_USER
>            Priority: Major
>             Fix For: 1.3.0
>
>         Attachments: test.zip
>
>
> Hi,
> I am using Axis2\C 1.2.0 
> And for code generation, I have provided jar files from following snapshot.
> SNAPSHOT
> -------------------
> distribution-SNAPSHOT-bin.zip 15-Mar-2008 02:44 19M 
> I am trying to generate client stub using following options:
> 1). WSDL2C.bat -uri FII_Pricing_tier.wsdl -d none -u
> 2). WSDL2C.bat -uri FII_Pricing_tier.wsdl -d adb -u
> For both the options, I am getting following error:
> =========================================
> Retrieving document at 'FII_Pricing_tier.wsdl'.
> [ERROR] Part 'fault' of fault message '{http://FII_Pricing_tier.rm.aion.ca.com}RASException' must be defined with 'element=QName' and not 'type=QName'
> [ERROR] Part 'fault' of fault message '{http://FII_Pricing_tier.rm.aion.ca.com}RASException' must be defined with 'element=QName' and not 'type=QName'
> org.apache.axis2.AxisFault: Part 'fault' of fault message '{http://FII_Pricing_tier.rm.aion.ca.com}RASException' must be defined with 'element=QName'
> and not 'type=QName'
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1229)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:760)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:527)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:478)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:356)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:109)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:154)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31)
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:160)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31)
> Caused by: org.apache.axis2.AxisFault: Part 'fault' of fault message '{http://FII_Pricing_tier.rm.aion.ca.com}RASException' must be defined with 'elem
> ent=QName' and not 'type=QName'
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1229)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:760)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:527)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:478)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:356)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:109)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:154)
>         ... 2 more
> =====================================================================================
> WSDL File is :
> ==============
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://FII_Pricing_tier.rm.aion.ca.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://FII_Pricing_tier.rm.aion.ca.com" xmlns:intf="http://FII_Pricing_tier.rm.aion.ca.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="urn:FII_Pricing_tier.rm.aion.ca.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.2
> Built on May 03, 2005 (02:20:24 EDT)-->
>  <wsdl:types>
>   <schema targetNamespace="urn:FII_Pricing_tier.rm.aion.ca.com" xmlns="http://www.w3.org/2001/XMLSchema">
>    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
>    <complexType name="RASSettings">
>     <sequence>
>      <element name="clientGMTMinuteOffset" type="xsd:int"/>
>      <element name="engineBaseDateTime" nillable="true" type="xsd:string"/>
>      <element name="localeCountry" nillable="true" type="xsd:string"/>
>      <element name="localeLanguage" nillable="true" type="xsd:string"/>
>      <element name="traceLevel" type="xsd:int"/>
>     </sequence>
>    </complexType>
>    <complexType name="RASException">
>     <sequence>
>      <element name="faultString" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="FII_Pricing_tierInputs">
>     <sequence>
>      <element name="_Coverage_Liability" nillable="true" type="xsd:string"/>
>      <element name="_Customer_Financial_Stability" nillable="true" type="xsd:string"/>
>      <element name="_Property_Risk" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="Array_of_FII_Pricing_tierInputs">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:FII_Pricing_tierInputs[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="RASMessage">
>     <sequence>
>      <element name="code" type="xsd:int"/>
>      <element name="rulebaseContext" nillable="true" type="xsd:string"/>
>      <element name="text" nillable="true" type="xsd:string"/>
>      <element name="type" nillable="true" type="xsd:string"/>
>      <element name="xmlLinenum" type="xsd:int"/>
>     </sequence>
>    </complexType>
>    <complexType name="ArrayOf_tn1_RASMessage">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:RASMessage[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="FII_Pricing_tierResults">
>     <sequence>
>      <element name="_Coverage_Liability" nillable="true" type="xsd:string"/>
>      <element name="_Customer_Financial_Stability" nillable="true" type="xsd:string"/>
>      <element name="_Pricing_Tier" nillable="true" type="xsd:string"/>
>      <element name="_Property_Risk" nillable="true" type="xsd:string"/>
>      <element name="messages" nillable="true" type="tns1:ArrayOf_tn1_RASMessage"/>
>     </sequence>
>    </complexType>
>    <complexType name="Array_of_FII_Pricing_tierResults">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:FII_Pricing_tierResults[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="TermValue">
>     <sequence>
>      <element name="termName" nillable="true" type="xsd:string"/>
>      <element name="termValue" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="Array_of_TermValue">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:TermValue[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="InferResults">
>     <sequence>
>      <element name="messages" nillable="true" type="tns1:ArrayOf_tn1_RASMessage"/>
>      <element name="outputTermValues" nillable="true" type="tns1:Array_of_TermValue"/>
>     </sequence>
>    </complexType>
>    <complexType name="RASMethodStats">
>     <sequence>
>      <element name="avgExecutionTime" type="xsd:double"/>
>      <element name="maxExecutionTime" type="xsd:double"/>
>      <element name="minExecutionTime" type="xsd:double"/>
>      <element name="name" nillable="true" type="xsd:string"/>
>      <element name="numFailures" type="xsd:int"/>
>      <element name="numInvocations" type="xsd:int"/>
>      <element name="totalExecutionTime" type="xsd:double"/>
>     </sequence>
>    </complexType>
>    <complexType name="ArrayOf_tn1_RASMethodStats">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:RASMethodStats[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="RASServiceStats">
>     <sequence>
>      <element name="inferAvgExecutionTime" type="xsd:double"/>
>      <element name="inferMaxExecutionTime" type="xsd:double"/>
>      <element name="inferMinExecutionTime" type="xsd:double"/>
>      <element name="inferNumFailures" type="xsd:int"/>
>      <element name="inferNumInvocations" type="xsd:int"/>
>      <element name="inferTotalExecutionTime" type="xsd:double"/>
>      <element name="loadRulebaseAvgTime" type="xsd:double"/>
>      <element name="loadRulebaseCount" type="xsd:int"/>
>      <element name="loadRulebaseMaxTime" type="xsd:double"/>
>      <element name="name" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="upTimeResponse">
>       <wsdl:part name="upTimeReturn" type="xsd:long"/>
>    </wsdl:message>
>    <wsdl:message name="getStatisticsResponse">
>       <wsdl:part name="getStatisticsReturn" type="tns1:ArrayOf_tn1_RASMethodStats"/>
>    </wsdl:message>
>    <wsdl:message name="loadRulebaseResponse">
>    </wsdl:message>
>    <wsdl:message name="getServiceStatsRequest">
>    </wsdl:message>
>    <wsdl:message name="RASException">
>       <wsdl:part name="fault" type="tns1:RASException"/>
>    </wsdl:message>
>    <wsdl:message name="getStatisticsRequest">
>    </wsdl:message>
>    <wsdl:message name="upTimeRequest">
>    </wsdl:message>
>    <wsdl:message name="infer2Request">
>       <wsdl:part name="inputs" type="tns1:Array_of_TermValue"/>
>       <wsdl:part name="settings" type="tns1:RASSettings"/>
>    </wsdl:message>
>    <wsdl:message name="getServiceStatsResponse">
>       <wsdl:part name="getServiceStatsReturn" type="tns1:RASServiceStats"/>
>    </wsdl:message>
>    <wsdl:message name="inferRequest">
>       <wsdl:part name="inputs" type="tns1:Array_of_FII_Pricing_tierInputs"/>
>       <wsdl:part name="settings" type="tns1:RASSettings"/>
>    </wsdl:message>
>    <wsdl:message name="pingRequest">
>    </wsdl:message>
>    <wsdl:message name="infer2Response">
>       <wsdl:part name="infer2Return" type="tns1:InferResults"/>
>    </wsdl:message>
>    <wsdl:message name="pingResponse">
>    </wsdl:message>
>    <wsdl:message name="loadRulebaseRequest">
>       <wsdl:part name="settings" type="tns1:RASSettings"/>
>    </wsdl:message>
>    <wsdl:message name="inferResponse">
>       <wsdl:part name="inferReturn" type="tns1:Array_of_FII_Pricing_tierResults"/>
>    </wsdl:message>
>    <wsdl:portType name="FII_Pricing_tierImpl">
>       <wsdl:operation name="loadRulebase" parameterOrder="settings">
>          <wsdl:input message="impl:loadRulebaseRequest" name="loadRulebaseRequest"/>
>          <wsdl:output message="impl:loadRulebaseResponse" name="loadRulebaseResponse"/>
>          <wsdl:fault message="impl:RASException" name="RASException"/>
>       </wsdl:operation>
>       <wsdl:operation name="infer" parameterOrder="inputs settings">
>          <wsdl:input message="impl:inferRequest" name="inferRequest"/>
>          <wsdl:output message="impl:inferResponse" name="inferResponse"/>
>          <wsdl:fault message="impl:RASException" name="RASException"/>
>       </wsdl:operation>
>       <wsdl:operation name="infer2" parameterOrder="inputs settings">
>          <wsdl:input message="impl:infer2Request" name="infer2Request"/>
>          <wsdl:output message="impl:infer2Response" name="infer2Response"/>
>          <wsdl:fault message="impl:RASException" name="RASException"/>
>       </wsdl:operation>
>       <wsdl:operation name="ping">
>          <wsdl:input message="impl:pingRequest" name="pingRequest"/>
>          <wsdl:output message="impl:pingResponse" name="pingResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="upTime">
>          <wsdl:input message="impl:upTimeRequest" name="upTimeRequest"/>
>          <wsdl:output message="impl:upTimeResponse" name="upTimeResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="getStatistics">
>          <wsdl:input message="impl:getStatisticsRequest" name="getStatisticsRequest"/>
>          <wsdl:output message="impl:getStatisticsResponse" name="getStatisticsResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="getServiceStats">
>          <wsdl:input message="impl:getServiceStatsRequest" name="getServiceStatsRequest"/>
>          <wsdl:output message="impl:getServiceStatsResponse" name="getServiceStatsResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="FII_Pricing_tierSoapBinding" type="impl:FII_Pricing_tierImpl">
>       <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="loadRulebase">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="loadRulebaseRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="loadRulebaseResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="RASException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="RASException" namespace="urn:FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="infer">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="inferRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="inferResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="RASException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="RASException" namespace="urn:FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="infer2">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="infer2Request">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="infer2Response">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="RASException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="RASException" namespace="urn:FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="ping">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="pingRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="pingResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="upTime">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="upTimeRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="upTimeResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="getStatistics">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getStatisticsRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="getStatisticsResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="getServiceStats">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getServiceStatsRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="getServiceStatsResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://FII_Pricing_tier.rm.aion.ca.com" use="encoded"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="FII_Pricing_tierImplService">
>       <wsdl:port binding="impl:FII_Pricing_tierSoapBinding" name="FII_Pricing_tier">
>          <wsdlsoap:address location="http://localhost:8080/axis/services/FII_Pricing_tier"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> =============================================================================
> Thanks.
> Vishal



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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