On Sun, Nov 30, 2008 at 7:57 AM, Néstor Boscán <[EMAIL PROTECTED]> wrote:
> Hi > > > > I have a lot of xsd files and I need to create a Web Service based on types > stored in those files. I created the wsdl file: > > > > <definitions > > name="myWebService" > > targetNamespace="http://company.com.ve/MY" > > xmlns="http://schemas.xmlsoap.org/wsdl/" > > xmlns:tns="http://company.com.ve/MY" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > > xmlns:my="http://company.com.ve/MY" > > <types> > > <xsd:schema targetNamespace="urn:my"> > > <xsd:import namespace="http://company.com.ve/MY" > schemaLocation="my.xsd"/> > > </xsd:schema> > > </types> > > <message name="my_request"> > > <part name="parameters" element="my:Request"/> > > </message> > > <message name="my_response"> > > <part name="parameters" element="my:Response"/> > > </message> > > <portType name="myWebService"> > > <operation name="my"> > > <input message="tns:my_request"/> > > <output message="tns:my_response"/> > > </operation> > > </portType> > > <binding name="myWebServiceBinding" type="tns:myWebService"> > > <soap:binding style="document" transport=" > http://schemas.xmlsoap.org/soap/http"/> > > <operation name="my"> > > <soap:operation soapAction="http://company.com.ve/my"/> > > <input> > > <soap:body use="literal"/> > > </input> > > <output> > > <soap:body use="literal"/> > > </output> > > </operation> > > </binding> > > <service name="myWebService"> > > <port name="myWebServicePort" binding="tns:myWebServiceBinding"> > > <soap:address location="http://host:port/ "/> > > </port> > > </service> > > </definitions> > > > > When I use wsdl2java I get a lot of Type X is missing on types of xsd files > that are referenced by my.xsd. I tried importing every xsd file and I still > get the error. What am I doing wrong? > Try to find the places where type X is used. Then see whether type X is visible to those places through imports. if you use ADB try to use other data bindings as well. eg -d xmlbeans, -d jaxbri thanks, Amila. > > > Regards, > > > > Néstor Boscán > -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
