Is 'getObj' a static method? If not you don't want to be doing the
'static=true' bit.

Just a thought,

Richard.



                                                                                       
      
                    "Craig E.                                                          
      
                    Hohlbein"                 To:     <[EMAIL PROTECTED]>       
      
                    <chohlbein@visualm        cc:                                      
      
                    ining.com>                Subject:     Deployment Help             
      
                                                                                       
      
                    07/05/2002 07:15                                                   
      
                    AM                                                                 
      
                    Please respond to                                                  
      
                    soap-user                                                          
      
                                                                                       
      
                                                                                       
      




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!





Reply via email to