Yes that's true to a point, but what I'm trying get help with is deploying a
wsdl that references a external schema using axis' wsdl2java tool. Thats
essentially what I'm trying to do. I'm not sure how to the wsdl2java tool will
pick up the xsd file. This is the error i'm getting now
     [java] java.io.IOException: Element {http://localhost:8080/axis/services/bo
okflights/types}bookFlightsRequest is referenced but not defined....

The bf:bookFlightsRequest is declared at the start of the wsdl like this

<definitions
  targetNamespace="http://localhost:8080/axis/services/bookflights/wsdl";
  xmlns="http://schemas.xmlsoap.org/wsdl/";
  xmlns:tns="http://localhost:8080/axis/services/bookflights/wsdl";
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
  xmlns:bf="http://localhost:8080/axis/services/bookflights/types"; >

and imported in the types part like so

<types>
   <xsd:schema
        xmlns:xsd = "http://www.w3.org/2001/XMLSchema";
        elementFormDefault = "qualified"
        targetNamespace =
"http://localhost:8080/axis/services/bookflights/wsdl/types";>
        <xsd:import namespace = 
"http://localhost:8080/axis/services/bookflights";
location="BookFlights.xsd"/>
        <xsd:import namespace = "http://www.w3.org/2001/XMLSchema"; />
   </xsd:schema>
</types>


Quoting Jeff <[EMAIL PROTECTED]>:

> Presumably, bf:bookFlightsRequest is in FlightBooking.xsd so you would have
> to examine that file. This issue falls within the scope of application
> domain debugging and, as such, not a legitimate matter to raise on the Axis
> mail-list.
>
>
> Jeff
>
>
> ----- Original Message -----
> From: "James Taylor" <[EMAIL PROTECTED]>
> To: <axis-user@ws.apache.org>
> Sent: Sunday, June 05, 2005 10:18 PM
> Subject: Re: import schema to wsdl
>
>
> I'm getting this error and am not sure how to fix it
>
> wsdl2java:
>      [echo] Using wsdl in WSDL2Java task...
>      [java] WSDLException (at /definitions/message[1]/part):
> faultCode=UNBOUND_P
> REFIX: Unable to determine namespace of 'bf:bookFlightsRequest'.:
>
> running this ant task
>
> <java classname="org.apache.axis.wsdl.WSDL2Java" fork="yes"
> failonerror="true">
> <classpath refid="projectClasspath" />
> <arg value = "-o" />
> <arg file = "${pathToService}" />
> <arg value = "-d" />
> <arg value = "Session" />
> <arg value = "-s" />
> <arg value = "-N
>
http://localhost:8080/axis/services/bookflights/flightbooking=${servicePackage}";
> />
> <arg value = "-N
> http://localhost:8080/axis/services/bookflights/wsdl=${servicePackage}"; />
> <arg file = "${pathToService}/bookFlights.wsdl" />
> </java>
>
>
> Quoting James Taylor <[EMAIL PROTECTED]>:
>
> > Hey folks if one refers to a outside shema in a wsdl, like in this
> listing,
> >
> >   <types>
> >      <xsd:schema
> >      xmlns:xsd = "http://www.w3.org/2001/XMLSchema";
> >      elementFormDefault = "qualified"
> >         targetNamespace =
> > "http://localhost:8080/axis/services/bookflights/wsdl/importtypes";
> > xmlns:bf="http://localhost:8080/axis/services/bookflights/flightbooking";>
> >         <import namespace =
> > "http://localhost:8080/axis/services/bookflights/flightbooking"; location =
> > "FlightBooking.xsd" />
> > <import namespace = "http://www.w3.org/2001/XMLSchema"; />
> >      </xsd:schema>
> >    </types>
> >
> > should the schema be in the same directory as the wsdl. I've this wsdl in
> > /project/bookflights and the ant build file in /ant. I'm using axis's
> > wsdl2java
> > tool. Just wondering will ant and wsdl2java pick up FlightBooking.xsd.
> >     Also would appreciate it if anyone spotted any mistakes in this
> listing.
> > Regards,
> >         James.
> > --
> > Between the question and the answer lies free will
> >
>
>
> --
> Between the question and the answer lies free will
>
>


--
Between the question and the answer lies free will

Reply via email to