axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-2631) WSDL2Java: WSDLProcessingException: Encoded use is not supported?
Date Thu, 03 May 2007 06:34:15 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-2631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493288
] 

Amila Chinthaka Suriarachchi commented on AXIS2-2631:
-----------------------------------------------------

Axis2 does not support encoding. Could you send and recieve messages (soap encoded) correctly
with the Axis2 1.1.1?

> WSDL2Java: WSDLProcessingException: Encoded use is not supported?
> -----------------------------------------------------------------
>
>                 Key: AXIS2-2631
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2631
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Windows XP
>            Reporter: wolverine
>            Priority: Minor
>
> I encounter the following error when tried to generate web service
> client using Axis2 1.2 and XMLBeans:
> >WSDL2Java -uri Dummy.wsdl -p com.test.dummy -d xmlbeans -s
> Using AXIS2_HOME:   C:\axis2-1.2
> Using JAVA_HOME:    C:\Program Files\Java\jdk1.5.0_11
> May 2, 2007 11:37:18 AM
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder
> populateService
> SEVERE: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:
> Encoded use is not supported
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
> WSDL
>   at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:137)
>   at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>   at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.AxisFault: Encoded use is not supported
>   at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:298)
>   at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:100)
>   at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:131)
>   ... 2 more
> Caused by: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:
> Encoded use is not supported
>   at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getPartsListFromSoapBody(WSDL11ToAxisServiceBuilder.java:1543)
>   at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.createSchemaForPorttype(WSDL11ToAxisServiceBuilder.java:1294)
>   at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapperSchema(WSDL11ToAxisServiceBuilder.java:1198)
>   at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:252)
>   ... 4 more
> Note that the same command and WSDL file was working fine with Axis2 1.1.1.
> The following is the complete WSDL file:
> <?xml version='1.0' encoding='UTF-8' ?> 
> <!-- Generated 10/01/05 by Microsoft SOAP Toolkit WSDL File Generator --> 
> <definitions  name ='CPA'   targetNamespace = 'http://myns/wsdl/'
> 	 xmlns:wsdlns='http://myns/wsdl/' 
> 	 xmlns:typens='http://mynsi.org/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='http://schemas.xmlsoap.org/wsdl/'> 
>   <types>
>     <schema targetNamespace='http://mynsi.org/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'>
>     </schema>
>   </types>
>   <message name='clsCPA.deliverMTMessage'>
>     <part name='ApplicationId' type='xsd:short'/>
>     <part name='Login' type='xsd:string'/>
>     <part name='Password' type='xsd:string'/>
>     <part name='MessageTerminatingID' type='xsd:double'/>
>     <part name='MessageOriginatingLinkID' type='xsd:double'/>
>     <part name='ChargeMSISDN' type='xsd:string'/>
>     <part name='ReceiverMSISDN' type='xsd:string'/>
>     <part name='ShortCode' type='xsd:string'/>
>     <part name='MessageCount' type='xsd:short'/>
>     <part name='DateTime' type='xsd:string'/>
>     <part name='MessageScheduleFlag' type='xsd:short'/>
>     <part name='MessageScheduleTime' type='xsd:string'/>
>     <part name='BillType' type='xsd:short'/>
>     <part name='BillServiceId' type='xsd:int'/>
>     <part name='BillPrice' type='xsd:short'/>
>     <part name='IsFlash' type='xsd:short'/>
>     <part name='MessageContentType' type='xsd:string'/>
>     <part name='MessageType' type='xsd:string'/>
>     <part name='Message' type='xsd:anyType'/>
>     <part name='MessageExpiryTime' type='xsd:short'/>
>   </message>
>   <message name='clsCPA.deliverMTMessageResponse'>
>     <part name='Result' type='xsd:string'/>
>   </message>
>   <message name='clsCPA.DeliverChineseMessage'>
>     <part name='ApplicationId' type='xsd:short'/>
>     <part name='Login' type='xsd:string'/>
>     <part name='Password' type='xsd:string'/>
>     <part name='MessageTerminatingID' type='xsd:double'/>
>     <part name='MessageOriginatingLinkID' type='xsd:double'/>
>     <part name='ChargeMSISDN' type='xsd:string'/>
>     <part name='ReceiverMSISDN' type='xsd:string'/>
>     <part name='ShortCode' type='xsd:string'/>
>     <part name='MessageCount' type='xsd:short'/>
>     <part name='DateTime' type='xsd:string'/>
>     <part name='MessageScheduleFlag' type='xsd:short'/>
>     <part name='MessageScheduleTime' type='xsd:string'/>
>     <part name='BillType' type='xsd:short'/>
>     <part name='BillServiceId' type='xsd:int'/>
>     <part name='BillPrice' type='xsd:short'/>
>     <part name='IsFlash' type='xsd:short'/>
>     <part name='MessageContentType' type='xsd:string'/>
>     <part name='MessageType' type='xsd:string'/>
>     <part name='Message' type='xsd:anyType'/>
>     <part name='MessageExpiryTime' type='xsd:short'/>
>   </message>
>   <message name='clsCPA.DeliverChineseMessageResponse'>
>     <part name='Result' type='xsd:string'/>
>   </message>
>   <message name='clsCPA.deliverRingtoneMessage'>
>     <part name='ApplicationId' type='xsd:short'/>
>     <part name='Login' type='xsd:string'/>
>     <part name='Password' type='xsd:string'/>
>     <part name='MessageTerminatingID' type='xsd:double'/>
>     <part name='MessageOriginatingLinkID' type='xsd:double'/>
>     <part name='ChargingMSISDN' type='xsd:string'/>
>     <part name='ReceiverMSISDN' type='xsd:string'/>
>     <part name='ShortCode' type='xsd:string'/>
>     <part name='MessageCount' type='xsd:short'/>
>     <part name='DateTime' type='xsd:string'/>
>     <part name='MessageScheduleFlag' type='xsd:short'/>
>     <part name='MessageScheduleTime' type='xsd:string'/>
>     <part name='BillType' type='xsd:short'/>
>     <part name='BillServiceId' type='xsd:int'/>
>     <part name='BillPrice' type='xsd:short'/>
>     <part name='IsFlash' type='xsd:short'/>
>     <part name='MessageContentType' type='xsd:string'/>
>     <part name='MessageType' type='xsd:string'/>
>     <part name='Message' type='xsd:anyType'/>
>     <part name='MessageExpiryTime' type='xsd:short'/>
>   </message>
>   <message name='clsCPA.deliverRingtoneMessageResponse'>
>     <part name='Result' type='xsd:string'/>
>   </message>
>   <message name='clsCPA.deliverLogoMessage'>
>     <part name='ApplicationId' type='xsd:short'/>
>     <part name='Login' type='xsd:string'/>
>     <part name='Password' type='xsd:string'/>
>     <part name='MessageTerminatingID' type='xsd:double'/>
>     <part name='MessageOriginatingLinkID' type='xsd:double'/>
>     <part name='ChargingMSISDN' type='xsd:string'/>
>     <part name='ReceiverMSISDN' type='xsd:string'/>
>     <part name='ShortCode' type='xsd:string'/>
>     <part name='MessageCount' type='xsd:short'/>
>     <part name='DateTime' type='xsd:string'/>
>     <part name='MessageScheduleFlag' type='xsd:short'/>
>     <part name='MessageScheduleTime' type='xsd:string'/>
>     <part name='BillType' type='xsd:short'/>
>     <part name='BillServiceId' type='xsd:int'/>
>     <part name='BillPrice' type='xsd:short'/>
>     <part name='IsFlash' type='xsd:short'/>
>     <part name='MessageContentType' type='xsd:string'/>
>     <part name='MessageType' type='xsd:string'/>
>     <part name='Message' type='xsd:anyType'/>
>     <part name='MessageExpiryTime' type='xsd:short'/>
>   </message>
>   <message name='clsCPA.deliverLogoMessageResponse'>
>     <part name='Result' type='xsd:string'/>
>   </message>
>   <message name='clsCPA.deliverPictureMessage'>
>     <part name='ApplicationId' type='xsd:short'/>
>     <part name='Login' type='xsd:string'/>
>     <part name='Password' type='xsd:string'/>
>     <part name='MessageTerminatingID' type='xsd:double'/>
>     <part name='MessageOriginatingLinkID' type='xsd:double'/>
>     <part name='ChargingMSISDN' type='xsd:string'/>
>     <part name='ReceiverMSISDN' type='xsd:string'/>
>     <part name='ShortCode' type='xsd:string'/>
>     <part name='MessageCount' type='xsd:short'/>
>     <part name='DateTime' type='xsd:string'/>
>     <part name='MessageScheduleFlag' type='xsd:short'/>
>     <part name='MessageScheduleTime' type='xsd:string'/>
>     <part name='BillType' type='xsd:short'/>
>     <part name='BillServiceId' type='xsd:int'/>
>     <part name='BillPrice' type='xsd:short'/>
>     <part name='IsFlash' type='xsd:short'/>
>     <part name='MessageContentType' type='xsd:string'/>
>     <part name='MessageType' type='xsd:string'/>
>     <part name='Message' type='xsd:anyType'/>
>     <part name='MessageExpiryTime' type='xsd:short'/>
>   </message>
>   <message name='clsCPA.deliverPictureMessageResponse'>
>     <part name='Result' type='xsd:string'/>
>   </message>
>   <portType name='clsCPASoapPort'>
>     <operation name='deliverMTMessage' parameterOrder='ApplicationId Login Password
MessageTerminatingID MessageOriginatingLinkID ChargeMSISDN ReceiverMSISDN ShortCode MessageCount
DateTime MessageScheduleFlag MessageScheduleTime BillType BillServiceId BillPrice IsFlash
MessageContentType MessageType Message MessageExpiryTime'>
>       <input message='wsdlns:clsCPA.deliverMTMessage' />
>       <output message='wsdlns:clsCPA.deliverMTMessageResponse' />
>     </operation>
>     <operation name='DeliverChineseMessage' parameterOrder='ApplicationId Login Password
MessageTerminatingID MessageOriginatingLinkID ChargeMSISDN ReceiverMSISDN ShortCode MessageCount
DateTime MessageScheduleFlag MessageScheduleTime BillType BillServiceId BillPrice IsFlash
MessageContentType MessageType Message MessageExpiryTime'>
>       <input message='wsdlns:clsCPA.DeliverChineseMessage' />
>       <output message='wsdlns:clsCPA.DeliverChineseMessageResponse' />
>     </operation>
>     <operation name='deliverRingtoneMessage' parameterOrder='ApplicationId Login Password
MessageTerminatingID MessageOriginatingLinkID ChargingMSISDN ReceiverMSISDN ShortCode MessageCount
DateTime MessageScheduleFlag MessageScheduleTime BillType BillServiceId BillPrice IsFlash
MessageContentType MessageType Message MessageExpiryTime'>
>       <input message='wsdlns:clsCPA.deliverRingtoneMessage' />
>       <output message='wsdlns:clsCPA.deliverRingtoneMessageResponse' />
>     </operation>
>     <operation name='deliverLogoMessage' parameterOrder='ApplicationId Login Password
MessageTerminatingID MessageOriginatingLinkID ChargingMSISDN ReceiverMSISDN ShortCode MessageCount
DateTime MessageScheduleFlag MessageScheduleTime BillType BillServiceId BillPrice IsFlash
MessageContentType MessageType Message MessageExpiryTime'>
>       <input message='wsdlns:clsCPA.deliverLogoMessage' />
>       <output message='wsdlns:clsCPA.deliverLogoMessageResponse' />
>     </operation>
>     <operation name='deliverPictureMessage' parameterOrder='ApplicationId Login Password
MessageTerminatingID MessageOriginatingLinkID ChargingMSISDN ReceiverMSISDN ShortCode MessageCount
DateTime MessageScheduleFlag MessageScheduleTime BillType BillServiceId BillPrice IsFlash
MessageContentType MessageType Message MessageExpiryTime'>
>       <input message='wsdlns:clsCPA.deliverPictureMessage' />
>       <output message='wsdlns:clsCPA.deliverPictureMessageResponse' />
>     </operation>
>   </portType>
>   <binding name='clsCPASoapBinding' type='wsdlns:clsCPASoapPort' >
>     <stk:binding preferredEncoding='UTF-8'/>
>     <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http' />
>     <operation name='deliverMTMessage' >
>       <soap:operation soapAction='http://mynsi.org/action/clsCPA.deliverMTMessage'
/>
>       <input>
>         <soap:body use='encoded' namespace='http://mynsi.org/message/'
> 		  encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
>       </input>
>       <output>
>         <soap:body use='encoded' namespace='http://mynsi.org/message/'
> 		  encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
>       </output>
>     </operation>
>     <operation name='DeliverChineseMessage' >
>       <soap:operation soapAction='http://mynsi.org/action/clsCPA.DeliverChineseMessage'
/>
>       <input>
>         <soap:body use='encoded' namespace='http://mynsi.org/message/'
> 		  encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
>       </input>
>       <output>
>         <soap:body use='encoded' namespace='http://mynsi.org/message/'
> 		  encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
>       </output>
>     </operation>
>     <operation name='deliverRingtoneMessage' >
>       <soap:operation soapAction='http://mynsi.org/action/clsCPA.deliverRingtoneMessage'
/>
>       <input>
>         <soap:body use='encoded' namespace='http://mynsi.org/message/'
> 		  encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
>       </input>
>       <output>
>         <soap:body use='encoded' namespace='http://mynsi.org/message/'
> 		  encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
>       </output>
>     </operation>
>     <operation name='deliverLogoMessage' >
>       <soap:operation soapAction='http://mynsi.org/action/clsCPA.deliverLogoMessage'
/>
>       <input>
>         <soap:body use='encoded' namespace='http://mynsi.org/message/'
> 		  encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
>       </input>
>       <output>
>         <soap:body use='encoded' namespace='http://mynsi.org/message/'
> 		  encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
>       </output>
>     </operation>
>     <operation name='deliverPictureMessage' >
>       <soap:operation soapAction='http://mynsi.org/action/clsCPA.deliverPictureMessage'
/>
>       <input>
>         <soap:body use='encoded' namespace='http://mynsi.org/message/'
> 		  encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
>       </input>
>       <output>
>         <soap:body use='encoded' namespace='http://mynsi.org/message/'
> 		  encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
>       </output>
>     </operation>
>   </binding>
>   <service name='CPA' >
>     <port name='clsCPASoapPort' binding='wsdlns:clsCPASoapBinding' >
>       <soap:address location='http://220.20.20.83:2355/ECPAWSDL/CPA.WSDL' />
>     </port>
>   </service>
> </definitions>
> NOTE: Davanum Srinivas <davanum@gmail.com> suspects that it could be the rpc/encoded
wsdl which Axis2 doesn't support.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message