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