Re: webservice servicing multiple object instances.



Thanks for your reply. This application was originally using CORBA and
does take care of the concurrency issues. In CORBA the a remote method
can return object references and I can call methods using the object
reference. But this mechanism wasn't directly available through SOAP/
WSDL (if it did it escaped my senses). Hence looking for an
alternative to fake this. So I would like to avoid adding objectid in
the method call, but if this is the only sane option, we will have to
do this.

But, in your reply you mentioned "putting the object id in a SOAP
Header". How do you do it from a client written in VS2005? Can you
give a small example.

Thanks
--
Rajan


Hi,

I have a webservice that provides access to multiple object instances.
Now from client I want to channel the calls to specific objects. I
could think of 2 options
1. The url for the service could take in the objectId, some identifier
that identifies the object uniquely
e.g. MyServiceInst.Url = "http://MyServer/MyService?objId=2";
MyServiceInst.foo(arg1, arg2);
2. Add objectId argument for each method call in the service
e.g. MyServiceInst.foo(objectId, arg1, arg2);

I am wondering if there are any other options that I could use in this
context.

You're better off with the object id as a parameter for each call, or else
by putting the object id in a SOAP Header. That way, the header could be
filled in once by the client, and supplied to the server on each call.

I presume that you are aware of issues with simultaneous modification of
shared objects by multiple web service requests? Also, I assume that you've
taken web farms into account to the extent necessary.
--
John Saunders [MVP]


.



Relevant Pages

  • Re: Is there a BEA Tuxedo equivalence in Java?
    ... >> MVC is a pattern used on the client side. ... I think that is what CORBA designed for. ... > You said J2EE is too complex to this application in previous posts. ... Async quaranteed messaging and or distributed objects. ...
    (comp.object)
  • Re: Cant send back null class reference as SOAP Header?
    ... State is maintained on the server (no ... the client actually maintains the key to the state ... If they then retry the request, the flag won't be sent, will it? ... The header is defined as Direction.InOut on every ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: attn. buzzy...red x....first draft....
    ... >Some firewall admins ... I don't know of any client request header which encodes the clients email ... Blocking 1st party http referrers does not protect privacy in any way shape ...
    (uk.politics.misc)
  • Re: Will the real Tulio Prego please stand up
    ... "This line is added to the header of a posted article by the server. ... qualified domain name of the client host posting the article. ... your ISP, and it never reaches the internet at-large. ...
    (rec.music.makers.squeezebox)
  • Re: CORBA (GIOP/IIOP) network overhead
    ... Also, in terms of the bandwidth issues, you might look at the latency vs. message size performance of the various ORBs at: ... If you had control over the client and server side solution, you could add compression to an existing ORB. ... have to pay per transmission volume (approx. ... CORBA seems - for me - several ...
    (comp.object.corba)

Loading