that works on my client but only if I do not have any input parameters to
pass in. I want to pass specific input parameters like String, long, etc on
the way in BUT return an Element on the way out.
for ex:
   // I set the encoding style prior to call.  ** If I change this to
Constants.NS_URI_LITERAL_XML 
        // it will complain about trying to serialize the input parameter.
   call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
    ...
    params.addElement(new Parameter("stringToConvert", String.class,
                              args[3], null));
    ...
    call.invoke(...)

    // get response
        Parameter result = resp.getReturnValue ();
        Element el = (Element) result.getValue()


> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, July 12, 2001 10:55 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Serializer help
> 
> 
> You have to use this EncodingStyle "Constants.NS_URI_LITERAL_XML".  No
> need
> to specify any serializer in the deployment descriptor. SOAP server
> automatically does it for you.
> 
> 
> 
>  
> 
>                     "Tolsch, Ed"
> 
>                     <Ed.Tolsch@fm        To:
> "'[EMAIL PROTECTED]'"              
>                     r.com>               <[EMAIL PROTECTED]>
> 
>                                          cc:
> 
>                     07/12/2001           Subject:     Serializer help
> 
>                     10:23 AM
> 
>                     Please
> 
>                     respond to
> 
>                     soap-user
> 
>  
> 
>  
> 
> 
> 
> 
> HI,
>            I'm trying to serialize an org.w3c.dom.Element as the return
> type of
> my soap service. I assumed I needed to modify my deploymentdescriptor file
> to tell it how to serialize my object. My Deployment descriptor mapping
> looks like the following:
> 
>       <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment";
>              id="urn:string-service">
>            <isd:provider type="java"
>                 scope="Application"
>                 methods="strUpper stringUpper">
>            <isd:java class="services.strings.StringService" static
> ="false"/>
>       </isd:provider>
> 
> 
> <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListe
> ne
> 
> r>
> 
>            <isd:mappings>
>                <isd:map
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
>                         xmlns:x="urn:xml-string-svc" qname
> ="x:stringUpperElem"
>                         javaType="org.w3c.dom.Element"
> 
> java2XMLClassName="org.apache.xml.serialize.XMLSerializer"
> 
> xml2JavaClassName="org.apache.xml.serialize.XMLSerializer"/>
>              </isd:mappings>
> 
>            This is causing my rpcrouter to blow up.  Is this the right
> approach
> or am I trying to solve the problem in the wrong area? Any help would be
> appreciated. Thanks in advance.
> 
> 
> 
> 

Reply via email to