You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by NY...@aol.com on 2004/07/21 23:27:12 UTC

Visual Studio Axis Client

Hello,
 
I am creating a client for my axis web service in Visual Studio. By using  
Visual Studio to add a web reference, the program creates several data objects  
of type BSTR.
 
I am wondering if anybody could give me a quick explanation why my Strings  
are getting placed as BSTR's, and one is being placed as a BSTR*. Now the BSTR* 
 is becoming a complete obstacle because I don't even know how to get it  
initialized and I can't find anything on it.
 
If somebody could give me a quick rundown of what I have to do to these  
BSTR's to get them initialized with the String values and how they'll run  through 
axis, that'd be great.
 
Thanks in advance.
James Crosson
NYY96@aol.com

Re: Visual Studio Axis Client

Posted by Jim Murphy <jm...@mindreef.com>.
Are you using the MS SOAP toolkit or .NET?  Also, are you using Visual 
Studio 6 or 7 (.NET)?

Jim

NYY96@aol.com wrote:

> Hello,
>  
> I am creating a client for my axis web service in Visual Studio. By 
> using Visual Studio to add a web reference, the program creates several 
> data objects of type BSTR.
>  
> I am wondering if anybody could give me a quick explanation why my 
> Strings are getting placed as BSTR's, and one is being placed as a 
> BSTR*. Now the BSTR* is becoming a complete obstacle because I don't 
> even know how to get it initialized and I can't find anything on it.
>  
> If somebody could give me a quick rundown of what I have to do to these 
> BSTR's to get them initialized with the String values and how they'll 
> run through axis, that'd be great.
>  
> Thanks in advance.
> James Crosson
> NYY96@aol.com

Re: Visual Studio Axis Client

Posted by Michael Thompson <mt...@uplogix.com>.
from msdn.com

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcconStringsAllocatingReleasingMemoryForBSTR.asp

Looks like you'll want something like:
::SysAllocString(...), but don't forget ::SysFreeString

  --m

NYY96@aol.com wrote:

> Hello,
>  
> I am creating a client for my axis web service in Visual Studio. By 
> using Visual Studio to add a web reference, the program creates 
> several data objects of type BSTR.
>  
> I am wondering if anybody could give me a quick explanation why my 
> Strings are getting placed as BSTR's, and one is being placed as a 
> BSTR*. Now the BSTR* is becoming a complete obstacle because I don't 
> even know how to get it initialized and I can't find anything on it.
>  
> If somebody could give me a quick rundown of what I have to do to 
> these BSTR's to get them initialized with the String values and how 
> they'll run through axis, that'd be great.
>  
> Thanks in advance.
> James Crosson
> NYY96@aol.com