users@jax-rpc.java.net

JAX-RPC wscompile modeler error "" - anything wrong with my WSDL?

From: Uday Naik <unaik_at_nextance.com>
Date: Tue, 7 Dec 2004 17:15:26 -0800

This provides no clue at all. I am about to give up on and try Apache
AXIS.
 
I keep running into this error when I try to build server classes - I
tried JWSDP 1.3 and 1.5 with no luck.
 
Here is my ws-comiple options in my build file:
 
<target name="generate-sei-service" description="Runs wscompile to
generate the model file">
    <java fork="yes" classname="com.sun.xml.rpc.tools.wscompile.Main">
      <arg value="-verbose"/>
      <arg value="-keep"/>
      <arg value="-O"/>
      <arg value="-import"/>
      <arg value="-d"/>
      <arg value="${build.home}/classes"/>
      <arg value="-nd"/>
      <arg value="${build.home}"/>
      <arg value="-s"/>
      <arg value="${source.home}"/>
      <arg value="${config.wsdl.file}"/>
      <arg value="-model"/>
      <arg value="${build.home}/${model.file}"/>
      <arg value="-f:nodatabinding"/>
      <classpath refid="compile.classpath"/>
    </java>
  </target>
 
 
My WSDL:
 
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="TestService"
             targetNamespace="http://namespaces.nextance.com/nex/eai"
             xmlns="http://schemas.xmlsoap.org/wsdl/"
             xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
             xmlns:tns="http://namespaces.Test.com/nex/eai">
  <wsdl:types>
    <xsd:schema targetNamespace="http://namespaces.Test.com/nex/eai"
 
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <xsd:import namespace="http://namespaces.Test.com/nex/eai"
schemaLocation="./schemas/request/CreatePartyRequest.xsd"/>
      <xsd:import namespace="http://namespaces.Test.com/nex/eai"
schemaLocation="./schemas/response/AsyncRequestContext.xsd"/>
    </xsd:schema>
  </wsdl:types>
  
  <message name="createPartyRequestMsg">
    <part element="tns:createPartyRequest" name="CreatePartyRequest"/>
  </message>
  
 
  <message name="asyncRequestContextMsg">
    <part element="tns:asyncRequestContext" name="AsyncRequestContext"/>
  </message>
  
  <portType name="TestService">
    <operation name="createParty" parameterOrder="CreatePartyRequest">
      <input message="tns:createPartyRequestMsg"/>
      <output message="tns:asyncRequestContextMsg"/>
    </operation>
  </portType>
  <binding name="TestServiceBinding" type="tns:TestService">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
    <operation name="createParty">
       <soap:operation soapAction="createParty"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
  </binding>
  <service name="TestService">
    <port name="TestServicePort" binding="tns:TestServiceBinding">
      <soap:address
location="http://localhost:8080/Test-webservice/WebService"/>
    </port>
  </service>
</definitions>