Quick Question

Quick Question

Author

Message

Thoma#1 / 2

Quick Question

Hopefully this is an easy one too. I wrote a WebService in C++ and made the mistake of making one of the methods use a BSTR as a parameter. Now my client is in C#, is there a way to send a BSTR back through my webservice object? Does C# support BSTRS? Or are there some conversion classes that can do it for me?

Tom

Mon, 13 Dec 2004 22:26:02 GMT

Nicholas Paldino [.NET/C# MVP#2 / 2

Quick Question

Thomas,

Your wrapper for your web service should be able to parse apart the content that is sent to it in the SOAP package and convert it to a BSTR for you. You shouldn't have to worry about this. Just like the wrappers for the call to your method in C# shouldn't have to worry about converting a string instance into something in a SOAP package.

Hope this helps.

-- - Nicholas Paldino [.NET MVP]

Quote:

> Hopefully this is an easy one too. I wrote a WebService > in C++ and made the mistake of making one of the methods > use a BSTR as a parameter. Now my client is in C#, is > there a way to send a BSTR back through my webservice > object? Does C# support BSTRS? Or are there some > conversion classes that can do it for me?