You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by "Craig E. Hohlbein" <ch...@visualmining.com> on 2002/05/06 23:15:54 UTC
Deployment Help
I am having trouble creating a proper deployment descriptor to describe my
service. I have an object that I want to return via the web service call.
I have a serializer/deserializer to use for the object. The
serializer/deserializer creates an XML representation of the object and sets
and gets it in the marshalling/demarshalling code using one element called
objXML that I add to the message. But I never get there since it seems as
though my deployment is bad. All I ever get is "SOAP-ENV:Server.Exception"
and "Fault String = org/apache/soap/util/xml/Serializer" whenever I make a
call.
Here's my existing descriptor. My object name is MyObj, the serializer is
MyObjSerializer, the function to call is getObj and the class with the
function to call is MyToolKit. What do I have wrong in here with my
mapping?
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:myapp">
<isd:provider type="java"
scope="Application"
methods="getObj">
<isd:java class="com.mycompany.MyToolKit" static="true"/>
</isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>
<isd:mappings>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn:myapp" qname="x:MyObj"
javaType="com.mycompany.MyObj"
java2XMLClassName="com.mycompany.MyObjSerializer"
xml2JavaClassName="com.mycompany.MyObjSerializer"/>
</isd:mappings>
</isd:service>
Any help would be most appreciated at this point. Thanks!