Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Services (http://www.velocityreviews.com/forums/f64-asp-net-web-services.html)
-   -   Consuming a SOAP Vector Type from .Net (http://www.velocityreviews.com/forums/t782940-consuming-a-soap-vector-type-from-net.html)

wawa_piggy 04-20-2004 02:09 AM

Consuming a SOAP Vector Type from .Net
 

I have exposed my Java web services to receive a SOAP Vector type and to
return results as a SOAP Vector.
Both vectors should contain Arrays of String.
My .net web application need to consume this web service and I have
added a web refernce to this Java web services.
But i encountered some "Object Reference Not Set To An Instance" error
in the following chunk of code.

Did i do something wrong here????
Thanks.


:
:
Dim arr1 As String() = {"1", "2"} 'an array of String
Dim arr2 As String() = {"3", "4"}
Dim arr3 As String() = {"5", "6"}
'' stockAppl is the project name
'' Enq is the web reference name
'' Vector is the class name
Dim myVector As New stockAppl.Enq.Vector()
myVector.item.SetValue(arr1, 0)
myVector.item.SetValue(arr2, 1)
myVector.item.SetValue(arr3, 2)

Dim abc As New stockAppl.Enq.EnquireStockWSService()
Dim myAL2 As stockAppl.Enq.Vector() = abc.EnquireStockWS(

:
:
:

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

NM 04-20-2004 08:19 AM

Re: Consuming a SOAP Vector Type from .Net
 

> Dim arr1 As String() = {"1", "2"} 'an array of String
> Dim arr2 As String() = {"3", "4"}
> Dim arr3 As String() = {"5", "6"}
> '' stockAppl is the project name
> '' Enq is the web reference name
> '' Vector is the class name
> Dim myVector As New stockAppl.Enq.Vector()
> myVector.item.SetValue(arr1, 0)
> myVector.item.SetValue(arr2, 1)
> myVector.item.SetValue(arr3, 2)
>
> Dim abc As New stockAppl.Enq.EnquireStockWSService()


> Dim myAL2 As stockAppl.Enq.Vector() = abc.EnquireStockWS(


In your last instruction, You've declared an array of Vector and you return
just 1 Vector :
Dim myAL2 As stockAppl.Enq.Vector = abc.EnquireStockWS(...)




All times are GMT. The time now is 06:48 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57