axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Sosnoski <...@sosnoski.com>
Subject Re: wsdl2java & jibx codeGeneration Exception
Date Wed, 18 Apr 2007 21:23:03 GMT
Hi Serkan,

You only attached the main WSDL, not the included one, so I can't see 
exactly what is going on. But the error message seems very direct and 
specific: "No mapping defined for element 
{http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_1/local}chargeReservation"

According to this, your WSDL is referencing a chargeReservation element 
which is not included in your binding. It looks like you're not using 
unwrapping, so I'd expect that this element is referenced directly by 
one of the <message> components of the WSDL. You need to define bindings 
for all the elements so referenced.

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Serkan Sunel wrote:
>
> Hi All,
>
>  
>
> Wsdl2Java throws below exception..
>
>  
>
> Ant idea about it ?
>
>  
>
> Ps: I could generate code with wrapped style web service code with ADB 
> databing also and had  no problem
>
> ....necessary files are attached..
>
>  
>
> Thanks
>
>  
>
>  
>
> [serkans@serkanslnx bin] java org.apache.axis2.wsdl.WSDL2Java -uri 
> ../wsdl/parlayx_payment_reserve_amount_charging_service_2_1.wsdl -ns2p 
> http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_1/local=com.telenity.canvas.platform.parlayx.ws.schema.payment.reserve_amount_charging.v2_1.local
 
> -sd -s  -ss -t -ssi -g -u -d jibx -Ebindingfile out.xml -o ../java
>
> Retrieving document at 
> 'parlayx_payment_reserve_amount_charging_interface_2_1.wsdl', relative 
> to 
> 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/bin/../wsdl/'.
>
> Retrieving document at 'parlayx_common_faults_2_0.wsdl', relative to 
> 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/wsdl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'.
>
> Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 
> 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/wsdl/parlayx_common_faults_2_0.wsdl'.
>
> Retrieving schema at 'parlayx_payment_types_2_1.xsd', relative to 
> 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/wsdl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'.
>
> Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 
> 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/wsdl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'.
>
> Exception in thread "main" 
> org.apache.axis2.wsdl.codegen.CodeGenerationException: 
> java.lang.RuntimeException: No mapping defined for element 
> {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_1/local}chargeReservation
>
>         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: No mapping defined for element 
> {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_1/local}chargeReservation
>
>         at 
> org.apache.axis2.jibx.CodeGenerationUtility.mapQName(CodeGenerationUtility.java:928)
>
>         at 
> org.apache.axis2.jibx.CodeGenerationUtility.mapMessage(CodeGenerationUtility.java:914)
>
>         at 
> org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility.java:384)
>
>         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:585)
>
>         at 
> org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtension.java:74)
>
>         at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:177)
>
>         ... 2 more
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <binding>
>   <mapping name="Property" class="com.telenity.canvas.platform.parlayx.ws.schema.payment.v2_1.Property">
>     <namespace uri="http://www.csapi.org/schema/parlayx/payment/v2_1" default="elements"/>
>     <value name="name" field="name" usage="required"/>
>     <value name="value" field="value" usage="required"/>
>   </mapping>
>   <mapping name="TimeMetric" class="com.telenity.util.parlayx.common.TimeMetric">
>     <namespace uri="http://www.csapi.org/schema/parlayx/common/v2_1" default="elements"/>
>     <value name="metric" field="metric" usage="required"/>
>     <value name="units" field="units" usage="required"/>
>   </mapping>
>   <mapping name="ChargingInformation" class="com.telenity.util.parlayx.common.ChargingInformation">
>     <namespace uri="http://www.csapi.org/schema/parlayx/common/v2_1" default="elements"/>
>     <value name="description" field="description" usage="required"/>
>     <value name="currency" field="currency" usage="optional"/>
>     <value name="amount" field="amount" usage="optional"/>
>     <value name="code" field="code" usage="optional"/>
>   </mapping>
>   <mapping name="SimpleReference" class="com.telenity.util.parlayx.common.SimpleReference">
>     <namespace uri="http://www.csapi.org/schema/parlayx/common/v2_1" default="elements"/>
>     <value name="endpoint" field="endpoint" usage="required"/>
>     <value name="interfaceName" field="interfaceName" usage="required"/>
>     <value name="correlator" field="correlator" usage="required"/>
>   </mapping>
>   <mapping name="ServiceError" class="com.telenity.util.parlayx.common.ServiceError">
>     <namespace uri="http://www.csapi.org/schema/parlayx/common/v2_1" default="elements"/>
>     <value name="messageId" field="messageId" usage="required"/>
>     <value name="text" field="text" usage="required"/>
>     <collection field="variablesList">
>       <value name="variables" type="java.lang.String"/>
>     </collection>
>   </mapping>
>   <mapping name="ServiceException" class="com.telenity.util.parlayx.common.ServiceException">
>     <namespace uri="http://www.csapi.org/schema/parlayx/common/v2_1" default="elements"/>
>     <value name="messageId" field="messageId" usage="required"/>
>     <value name="text" field="text" usage="required"/>
>     <collection field="variablesList">
>       <value name="variables" type="java.lang.String"/>
>     </collection>
>   </mapping>
>   <mapping name="PolicyException" class="com.telenity.util.parlayx.common.PolicyException">
>     <namespace uri="http://www.csapi.org/schema/parlayx/common/v2_1" default="elements"/>
>     <value name="messageId" field="messageId" usage="required"/>
>     <value name="text" field="text" usage="required"/>
>     <collection field="variablesList">
>       <value name="variables" type="java.lang.String"/>
>     </collection>
>   </mapping>
> </binding>
>   
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org

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


Mime
View raw message