You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Sandeep Heer <sa...@hitachi-eu.com> on 2002/01/11 18:18:24 UTC

Soap questions.

I have a couple of questions about SOAP.

I want to use SOAP messages (using envelopes etc. not SOAP-RPC).

So,

1. I have the following line to receive SOAP messages:

BufferedReader resReader = transport.receive()

What if there is no message, what happens? Also, do i need to do
transport.receive() to receive each message as i might get more than
one?  If i am going to receive a large amount of messages, would it be
better to have this code in a new thread or get the SOAP message and
then process it in a new thread?

2. I have this bit of code to send some XML back in a SOAP message.
    StringWriter writer = new StringWriter();
   env.marshall(writer, null);
   res.setRootPart(writer.toString(), "text/xml");

    It seems to me that the above code is simply sending a blank
StringWriter object?

    Thanks in advance,

   Sandeep.





---------------------------------------------------------------------
 
 E-mail Confidentiality Notice and Disclaimer
 
  This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to which they are addressed. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. 
  E-mail messages are not necessarily secure.  Hitachi does not accept responsibility for any changes made to this message after it was sent. 
  Please note that Hitachi checks outgoing e-mail messages for the presence of computer viruses.
 
---------------------------------------------------------------------