Hi Enaganti, Axis2 1.3 WSDL2Java has some problems dealing with included schemas, though I hadn't seen this before when using JiBX data binding with Axis2. Please add an Axis2 bug report (http://issues.apache.org/jira/browse/AXIS2) for this problem, and attach a zip with whatever you're using as input to WSDL2Java (including the binding and WSDL+schemas, though you don't need to include your class files). I'll try to make sure it's corrected for Axis2 1.4.
- 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 Enaganti M Naidu wrote: > 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] > To: jibx-users@lists.sourceforge.net > Subject: Jibx Mapping for an element that references a complex type > Date: 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! > > <http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=TXT_TAGLM_CPC_MediaCtr_bigscreen_012008> > > > > ------------------------------------------------------------------------ > Watch “Cause Effect,” a show about real people making a real > difference. Learn more > <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 > ------------------------------------------------------------------------- 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