Hi,
I could not find my error.
I have attached my code in soap.jar and my deploymentdescriptor.
The output of the TCP Tunnel:
request:
POST /soap/servlet/rpcrouter HTTP/1.0
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: 1310
SOAPAction: ""
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:server3 xmlns:ns1="urn:SOAPTest"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SoapTestBean xsi:type="ns1:com.ts.distributed_apps.SoapTestBean">
<vlaSearchResults xmlns:ns2="http://xml.apache.org/xml-soap"
xsi:type="ns2:Vector">
<item xsi:type="ns1:com.ts.distributed_apps.VlaDataVehicle">
<vlaTyp xsi:type="xsd:string">C250</vlaTyp>
<vlaFin xsi:type="xsd:string">irgendwas</vlaFin>
</item>
</vlaSearchResults>
<vlaInterface xsi:type="xsd:string">com.ts.FDOKInterface</vlaInterface>
<vlaPassword xsi:type="xsd:string">0815</vlaPassword>
<vlaUser xsi:type="xsd:string">magie</vlaUser>
<vlaAction xsi:type="xsd:string">main</vlaAction>
<vlaApplications xmlns:ns3="http://xml.apache.org/xml-soap"
xsi:type="ns3:Vector">
<item xsi:type="ns1:com.ts.distributed_apps.VlaDataApplication">
<vlaLink
xsi:type="xsd:string">href="vla.do?action=searchFDOK"</vlaLink>
<vlaLinkName xsi:type="xsd:string">documentation</vlaLinkName>
</item>
</vlaApplications>
</SoapTestBean>
</ns1:server3>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
response:
HTTP/1.0 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Content-Length: 590
Set-Cookie2: JSESSIONID=7n728gu7x1;Version=1;Discard;Path="/soap"
Set-Cookie: JSESSIONID=7n728gu7x1;Path=/soap
Servlet-Engine: Tomcat Web Server/3.2 beta 6 (JSP 1.1; Servlet 2.2; Java
1.2.2; Windows 2000 5.0 x86; java.vendor=IBM Corp.)
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>No Deserializer found to deserialize a
'urn:SOAPTest:com.ts.distributed_apps.SoapTestBean' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Maybe someone can help me.
regards,
Darko
> Hi,
>
> Are Data1 and Data2 beans as well? If not, you need to use an appropria
> te
> serializer (maybe write a custom serializer for them) and register that
>
> with the mapping registry. If they are beans what you have should work.
>
>
> If you still have problems, could you post the error along with all the
>
> information given by the TcpTunnelGui?
>
> Nirmal.
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
GMX Tipp:
Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
Soap.jar
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment" id="urn:SOAPTest">
<isd:provider type="java" scope="Application" methods="server3">
<isd:java class="com.ts.distributed_apps.SoapManager" static="false"/>
</isd:provider>
<isd:mappings>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn:SOAPTest" qname="x:SoapTestBean"
javaType="com.ts.distributed_apps.SoapTestBean"
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn:SOAPTest" qname="x:VlaDataApplication"
javaType="com.ts.distributed_apps.VlaDataApplication"
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn:SOAPTest" qname="x:VlaDataVehicle"
javaType="com.ts.distributed_apps.VlaDataVehicle"
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
</isd:mappings>
</isd:service>