I think the problem is around code generation when schema is imported.
WSDL2JAVA seems to fail when I include my types schema in the wsdl. When I
copied complete schema into my wsdl file, the code generation seems to work
just fine....
From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Jibx Mapping for an element that
references a complex typeDate: Fri, 4 Jan 2008 16:08:18 -0600
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™. Start
now!
_________________________________________________________________
Watch “Cause Effect,” a show about real people making a real difference.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users