Hi All,

 

Is it ok for a client to reuse a stub for many invocations and in what scope(request[single thread], session, application)?

 

If any, what are the implications?

 

My client/server both send and receive attachments by hand, be it that the service does not expose DataHandlers in the method signatures, the text documentation defines the attachments use. I have found that if my client does not read the attachments the attachments remain with the stub and if I use the stub to make another call the attachment is sent back up to the server. Now if I read the attachments they seem to be cleared from the stub and the attachment is not sent back to the server for further calls. I am assuming that the stub method getAttachments() also clears the attachments as the clearAttachments() does?

 

So if I am to use this manual method of sending/receiving attachments and am reusing the client stub after calling a method that returns an attachment I must clear the attachment before I make any further calls.

 

I would greatly appreciate any clarification of any implications regarding this use. I am a bit confused as to how the stub is handling attachments any why it doesn’t deal with each calls attachments independently especially in regards to requests and responses.

 

Also, where does the attachment go on the client. On the server I can see the attachments dir get populated in order for the server to read but on the client I don’t see where it goes?

 

Thanks for your time,

 

Greg Hess

Software Engineer

Wrapped Apps Corporation

275 Michael Cowpland Dr.

Suite 201

Ottawa, Ontario

K2M 2G2

Tel: (613) 591 -7552

Fax: (613) 591-0523

1 (877) 388-6742

www.wrappedapps.com

 

<<image001.gif>>

Reply via email to