On Monday, September 12, 2011 7:16:17 PM yann Blazart wrote: > Hi ! effectively I saw this 30 minutes ago. > > In fact, my wsdl is generated by cxf tool *java2wsdl*. > > This one insert a xs:import with the namespace but without the location > attribute ! > > I made a little piece of code to correct the xsd imported by the wsdl, but > it is not a good solution at least. > > Do you have an idea ? > > I'm surprised that nobody had this problem before.
This sounds like a bug in the java2wsdl stuff. Any chance you can create a small testcase and submit a bug? Dan > > 2011/9/12 Daniel Kulp <[email protected]> > > > 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 > > [email protected] > > http://dankulp.com/blog > > Talend - http://www.talend.com -- Daniel Kulp [email protected] http://dankulp.com/blog Talend - http://www.talend.com
