Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is gsoap threadsafe as a soap client?

I'm using gsoap 2.8 in order to connect to a WCF service (My application is the client).

Is it threadsafe? Should I define some precompiled definition?

Thanks,

Mattan

like image 279
Mattan Avatar asked Oct 25 '22 18:10

Mattan


1 Answers

Although I've only used gsoap in a single thread I found this in the documentation for 2.8.1

From the gSoap documentation found here

A runtime context can be reused as many times as necessary for client-side remote calls and does not need to be reinitialized in doing so. A new context is required for each new thread to guarantee exclusive access to runtime context by threads. Also the use of any client calls within an active service method requires a new context.

like image 71
nathan Avatar answered Oct 27 '22 10:10

nathan