That makes sense but I'm trying to send an attachment back from the server.
The client sends a message on NS_URI_LITERAL_XML encoding and the server
sends back a message with the same encoding + an attachment? Any ideas?
thanks

Gus

-----Original Message-----
From: Tolsch, Ed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 8:46 AM
To: '[EMAIL PROTECTED]'
Subject: RE: encodingStyles


You should be able to do what you want. I currently send parameters with one
encoding style(NS_URI_SOAP_ENC) and get back my response as an
org.w3c.dom.Element (NS_URI_LITERAL_XML).
For example: My client code looks like this:

    // Sets the encoding style for the return.
    call.setEncodingStyleURI(Constants.NS_URI_LITERAL_XML);

    call.setTargetObjectURI (args[1]);
    call.setMethodName (args[2]);
    Vector params = new Vector ();

    // Then set the encoding style for each param to be a different encoding
style.
    params.addElement(new Parameter("channel", String.class,
                                    "NB",Constants.NS_URI_SOAP_ENC ));

Let me know if this works for you.

> -----Original Message-----
> From: Gus Delgado [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, August 01, 2001 7:54 AM
> To:   [EMAIL PROTECTED]
> Subject:      encodingStyles
>
> Can I use two different encodingStyles (Constants.NS_URI_SOAP_ENC and
> Constants.NS_URI_LITERAL_XML)?
>
> I'm currently using NS_URI_LITERAL_XML because I'm only sending XML
> messages
> from client to server, but now I also want to send an attachment with the
> XML message and from the mime example I see that it uses the
> NS_URI_SOAP_ENC
> so I was wondering,
>
> Could I use both and if I could, how? and if I could not, then what would
> my
> options be?
>
> Thanks a lot for your help in advanced.
>
> Gus Delgado

Reply via email to