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.

Reply via email to