Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

Managed C++ webservice synchronous call handled asynchronously

  Asked By: Reginheraht    Date: Sep 12    Category: Asp.net    Views: 1329

I have a managed C++ webservice that I'm calling via a
generated proxy class from unmanaged C++ code.

My first observation is that the unmanaged C++ proxy class (generated
by adding a web reference to a C++ project) only seems to offer an
interface for synchronous calls as the BeginXXX and EndXXX methods
are not generated. This observation is a seperate issue.

From the docs that I've read, the proxy method adopting the
webmethod's namesake is a synchronous call. However when
I want to debug this webservice, the call is treated asynchronously.
I can understand why its treated this way.

However my problem is that the client calling code does not have
access to the asynchronous methods, and so cannot check if its
safe to use the returned value from the webservice. So when I run
the client C++ app with the webservice attached to aspnet_wp.exe
I get unitialised problems in the BSTR that I expect to be

Any suggestions? Emailing me direct is fine.

If there is a more suitable forum to post this please let me know.



No Answers Found. Be the First, To Post Answer.