I think my WSDL was/is created wrong with wscompile. Missing the
types/schema section. Compared my config.xml and jaxrpc-ri.xml That I
used as a templete (link below) and it is virtualy the same but his
generates that section.
http://www.ftponline.com/javapro/2005_01/magazine/features/kjones_client/
http://www.ftponline.com/javapro/2005_01/magazine/features/kjones_server/
---------------------------------------------------------------------------------------------------
The build sections are simular too
<target name="build-server" depends="prepare" description="Build server
application">
<javac srcdir="${server_src.dir}" destdir="${classes.dir}"
debug="true" classpathref="project.classpath" compiler="modern"
fork="true" />
</target>
<target name="generateServer" depends="build-server"
description="Generate JAXRPC server side code from interface definition">
<wscompile config="etc/config.xml"
verbose="true"
define="true"
classpathref="project.classpath"
model="${generated.dir}/model.xml.gz"
f="wsi, donotunwrap"
fork="true"
xdebugmodel="${generated.dir}/model.txt"/>
<!-- nonclassdir="${generated.dir}"/-->
</target>
----------------------------------------------------------------------------------------------------
<definitions name="LabelPLIService"
targetNamespace="
http://pli.com/wsdl" xmlns:tns="
http://pli.com/wsdl"
xmlns="
http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/">
<types/>
<message name="LabelPLI_echo">
<part name="String_1" type="xsd:string"/></message>
<message name="LabelPLI_echoResponse">
<part name="result" type="xsd:string"/></message>
<message name="LabelPLI_returnLabeledData">
<part name="String_1" type="xsd:string"/></message>
<message name="LabelPLI_returnLabeledDataResponse">
<part name="result" type="xsd:string"/></message>
<portType name="LabelPLI">
<operation name="echo" parameterOrder="String_1">
<input message="tns:LabelPLI_echo"/>
<output message="tns:LabelPLI_echoResponse"/></operation>
<operation name="returnLabeledData" parameterOrder="String_1">
<input message="tns:LabelPLI_returnLabeledData"/>
<output
message="tns:LabelPLI_returnLabeledDataResponse"/></operation></portType>
<binding name="LabelPLIBinding" type="tns:LabelPLI">
<soap:binding transport="
http://schemas.xmlsoap.org/soap/http"
style="rpc"/>
<operation name="echo">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal" namespace="
http://pli.com/wsdl"/></input>
<output>
<soap:body use="literal"
namespace="
http://pli.com/wsdl"/></output></operation>
<operation name="returnLabeledData">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal" namespace="
http://pli.com/wsdl"/></input>
<output>
<soap:body use="literal"
namespace="
http://pli.com/wsdl"/></output></operation></binding>
<service name="LabelPLIService">
<port name="LabelPLIPort" binding="tns:LabelPLIBinding">
<soap:address
location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>