cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Help ! WsdlToJava and swaRef
Date Mon, 12 Sep 2011 17:05:42 GMT

You have the namespace defined, but did you add an import for it?


<xs:import namespace="http://ws-i.org/profiles/basic/1.1/xsd" 
   location="http://.........."/>

or similar?   To reference a type from another namespace, you have to import 
it in.

Dan



On Monday, September 12, 2011 2:14:48 PM yann Blazart wrote:
> Hi ! I'm reallt need emergency help !
> 
> Well I've made a webservice witth @XmlAttachmentRef, and I use java2wsdl to
> generate wsdl and XSD.
> 
> In wsdl I have :
> 
> *<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:swaRef="
> 
> > http://ws-i.org/profiles/basic/1.1/xsd" ...*
> > 
> > *<xs:element xmlns:ns1="http://www.w3.org/2005/05/xmlmime" minOccurs="0"
> > name="xmlData" ns1:expectedContentTypes="application/octet-stream"
> > type="swaRef:swaRef"/>*
> 
> That seems to be ok.
> 
> But on client side I want to generate code from wsdl.
> 
> So I launch :
> 
> wsdl2java -verbose -wsdlLocation ********  -client -d C:\Dev\projets\******
> -fe jaxws21 C:\Dev\projets\****\wsdls\*****Service.wsdl
> 
> But I got this error :
> 
> Embedded error: Thrown by JAXB: undefined simple or complex type
> 'swaRef:swaRef' at line XXX .... .xsd
> 
> What can I do ?
> 
> Thanks.
-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Mime
View raw message