Hi Pablo, Apparently the Wsdl2Java coming with the MUSE 1.0v doesn't allow importing external XSD's nor WSDL's which are not part of the standard specs set.
AFAIK, the way to accomplish what you are trying to do is by embedding the schema into the WSDL -----Original Message----- From: Pablo Javier Roca Mendez [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 3:37 PM To: [email protected] Subject: Re: splitting wsdl file in wsdl+xsd Hi Asaf! > Send the WSDL and XSD files... I attached both files that produce the error. If I copy the contents of the xsd file (omitting the very first line) and paste it between the <types> and </types> marks in the wsdl file then it works, so I guess the <xsd:import namespace="http://gpe.intel.com/mgmt/vm" schemaLocation="Vm.xsd" /> isn't working for wsdl2Java. Regards, Pablo On Wed, Aug 16, 2006 at 01:39:55PM +0200, Asaf Lahav wrote: > Hi Pablo, > Send the WSDL and XSD files... > > > > -----Original Message----- > From: Pablo Javier Roca Mendez > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 16, 2006 10:15 AM > To: muse-user > Subject: splitting wsdl file in wsdl+xsd > > Hello everyone! > > I am using Muse 1.0.0 Final and trying to write my own services. > I wanted to split the wsdl file in one xsd file for the schema definitions > (properties and request/responses) that I then include in the wsdl file > (messages and porttype) with xsd:import. > If I split, then "ant generate" fails (after wsdl2Java imports the wsdl > files, > but not the xsd) with following message: > BUILD FAILED > $WORK_DIR/build.xml:54: org.apache.ws.resource.InvalidWsrfWsdlException: > Unable to locate the ResourceProperties document element with QName > {http://my.company.com/MyService}ResourceProperties > > If I put the xsd into the wsdl again, then "ant generate" succeeds. > > My question is: Is it possible to split the wsdl into two files (xsd+wsdl) > or > is it unsupported by wsdl2Java? > In case it is possible, is there any documentation where I can learn how to > do > it? > > Thanks in advance. Best regards, > Pablo > -- Pablo Javier Roca Mendez Intel GmbH/Bruehl, Hermuelheimer Str. 8a, 50321 Bruehl, Germany Tel.: +49-2232-209024 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
