hi c!,

I think what your are asking is the difference between SOAP-RPC and
SOAP-Messaging.

The first scenario that you outline is a remote procedure call (RPC).

In the second scenario, you are describing a server side message service.
Additionally, to send a message on the client side, you would use an-end
point servlet such as
http://localhost/soap/servlet/messagerouter.  This is not the same as the
RPC-router used in the first scenario.  Once the message is passed to the
messag service.  Processing of the message can take place asynchronously and
you have a lot of freedom in which you do with the SOAP envelope.


The best metaphors is that the first scenario (SOAP-RPC) is akin to using
RMI and the SOAP-messaging is closer to JMS.


francis




>> -----Original Message-----
>> From: c.jones [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, October 03, 2001 2:49 PM
>> To: [EMAIL PROTECTED]
>> Subject: Soap messa
>>
>>
>> Hello all,
>>
>> I need some clarification. I am relatively new to SOAP
>> development and am unable to
>> differentiate between two scenarios...
>>
>> I have a client java class which invokes a call across SOAP and
>> calls a method of a
>> particular class with its respective parameters. now, in the
>> examples, ive seen this
>> parameter passing done two ways (there are probably more, however).
>> 1) the method on the server side is implemented with the
>> parameters as they are set in
>> the parameters vector, for example
>>
>> call.setMethodName("MyMethod");
>> Vector params = new Vector();
>>
>> Parameter nameParam = new Parameter("name",
>> java.lang.String.class, name, null);
>> params.addElement(nameParam);
>>
>> nameParam = new Parameter("othername", java.lang.String.class,
>> name2, null);
>> params.addElement(nameParam);
>>
>> call.setParams(params);
>>
>> ... then the call is invoked.
>> Now on the server side, the method MyMethod would be
>> public String MyMethod (String name1, String name2) throwing
>> appropriate exceptions
>>
>> 2) the second case, the same scenario is used above, except that
>> the method on the server
>> side would be implemented as
>> public String MyMethod(Envelope env, SOAPContext reqCtx,
>> SOAPContext resCtx) throwing
>> appropriate exceptions
>>
>> how do these two scenarios differ?
>>
>> thanks,
>> cj.
>>
>>
>>

Reply via email to