Re: JAX-RPC wscompile modeler error

From: Anne Thomas Manes <>
Date: Tue, 15 Mar 2005 14:19:21 -0500

One problem I see is that you are importing the same namespace twice,
which is invalid. If you need to import two schema files into the same
namespace, then you must use <include> rather than <import>. Change
your <types> section to this:

          xmlns:xs="" >
            <xs:documentation xml:lang="en">
               This schema defines all valid XML documents for the
Trust Voyager Reservation Service.

Notice that I changed your targetNamespace to the OTA namespace. Since
you aren't defining any additional elements or types, there's no
reason to create yet another namespace. You may want to change the
documentation element to more accurately reflect what you're doing --
including the two OTA schemas and importing the Trust International
reservations document structures.

You also need to remove all the namespace attributes from your
<wsdlsoap:body> definitions in the <binding>. (You only specify a
namespace in the binding when using RPC style services.) For example:

  <wsdl:binding name="ReservationServiceSoapBinding"
    <wsdlsoap:binding style="document"
    <wsdl:operation name="uploadReservation">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="uploadReservationRequest">
        <wsdlsoap:body use="literal"/>
      <wsdl:output name="uploadReservationResponse">
        <wsdlsoap:body use="literal"/>


On 15 Mar 2005 10:04:42 +0000, Thilo Frotscher
<> wrote:
> Hi,
> I am using JWSDP 1.5 and have a problem with the wscompile tool.
> The tool reports the following error message:
> error: modeler error: model error: undeclared namespace prefix: ""
> I start wscompile using the following command:
> -gen:client ReservationService.config
> (-f:novalidation does not help)
> The file ReservationService.config looks like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration xmlns="">
> <wsdl
> location="http://localhost:7001/ws/services/ReservationService?wsdl"
> packageName="testPkg" />
> </configuration>
> The WSDL is attached to this email. What am I doing wrong?
> Please help!
> Thank you very much,
> Thilo
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail: