Your service provider must supply the XSD along with the WSDL, and you must import it into your project along with the WSDL.
Anne On 2/21/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
Hi Anne Thanks for your reply. Actually i am facing this problem when using Oracle BPEL PM. The problem is the tool always expose process' client WSDL as: <definitions name="..." targetNamespace="http://xmlns.oracle.com/processName" ...> <types> <schema xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://xmlns.oracle.com/processName" schemaLocation="xsdFileName.xsd" /> <import ...> </schema> </types> <message ...> <portType ...> ... </definitions> When I try WSDL2Java to consume these BPEL services, i can not get access of imported xsd files, so there are always exceptions when running the stub. So could you give any advise about how to deal with WSDL doc that has imported xsd definitions? Thanks a lot -----Original Message----- From: "Anne Thomas Manes" <[EMAIL PROTECTED]> To: [email protected] Date: Wed, 21 Feb 2007 07:28:00 -0500 Subject: Re: Re: Question on best practices regarding wsdl/xsd won't provide you with the schemas that describe messages, you can't generate a client, and it sounds to me as if the service provider doesn't really want you to use the service. Anne On 2/21/07, Jiang Liu <[EMAIL PROTECTED]> wrote: > Hi Anne > I did have to access some services that using seperate style of WSDL. But the problem is when WSDL imports xml schema files, my generated client stub is not complete, espacially when using xmlbeans. I have to manually modify the orginal WSDL by adding "missing" schemas. > > So if i can not access to those schemas (only WSDL is public), what i can do to successfully generate a complete client? > > Regards > > -----Original Message----- > From: "Anne Thomas Manes" <[EMAIL PROTECTED]> > To: [email protected] > Date: Tue, 20 Feb 2007 23:46:58 -0500 > Subject: Re: Question on best practices regarding wsdl/xsd "import" > > I just think that people don't follow best practices. > > Actually, a lot of tools will now automatically generate types in > separate schemas, but I not aware of any tools that generate the > service separately from the portType and/bindings. > > Of course the real best practice is to generate code form schemas > rather ------------------------------ Jiang Liu Student Number: 3075163 CS/Yallara Name: ljiang RMIT, Melbourne --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
