Hi, 
 
I am trying an example to use Jibx 1.1.5 with Axis2 1.3 for a simple service 
(Unwrapped). The service takes a complex type as an input and returns a complex 
type as response. I have the mappings for all my complex types. But when I try 
to generate the server code using WSDL2Java, it seems to expect a definition 
for my elements?....Do I need to add mappings for elements too (I already have 
mappings for types)?...If so, can anyone share an example?....
 
Here is my bindings (Only relevant portions)
 
<binding add-constructors="true" force-classes="true"
xmlns:types="http://localhost.org/types";>

<namespace uri="http://localhost.org/types"; default="elements" />

 


<mapping abstract="true" type-name="types:PersAutoQuoteRequest"
class="com.simple.jibx.beans.PersAutoQuoteRequest">
<namespace uri="http://localhost.org/types"; default="elements" />
<structure field="insuranceSvcRq" usage="optional"
map-as="types:InsuranceSvcRq" />
</mapping>
.... other complex type mappings...
 
Here is my WSDL (Relevant portions)
 
<wsdl:types>
<import namespace="http://localhost.org/types";>
....
<complexType name="PersAutoQuoteRequest">
<sequence>
<element name="insuranceSvcRq" type="types:InsuranceSvcRq"
minOccurs="0">
</element>
</sequence>
</complexType>

 
<element name="persAutoQuoteResponse">
<complexType>
<sequence>
<element name="quoteResponse"
type="types:PersAutoQuoteResponse" minOccurs="0">
</element>
</sequence>
...
</wsdl:types>
<wsdl:message name="getPersAutoQuoteRequest">
<wsdl:part element="types:persAutoQuoteRequest"
name="parameters" />
</wsdl:message>
</complexType>
</element>
 
 
Error from WSDL2JAVA
 
....
[java] org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: Cannot unwrap - no definition found for element 
{http://localhost.org/types}persAutoQuoteRequest
 
_________________________________________________________________
Put your friends on the big screen with Windows Vista® + Windows Live™.
http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=TXT_TAGLM_CPC_MediaCtr_bigscreen_012008
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to