msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Calling WebService Which is having two dimentional array

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Deployment
Author Message
Kannan



Joined: 07 Nov 2007
Posts: 3

PostPosted: Wed Nov 07, 2007 2:41 pm    Post subject: Calling WebService Which is having two dimentional array Reply with quote

hi,

I have to use one Webservice function which is having two dimentional array
as a parameter. I don't know how to pass array value to that parameter.

Here is the code.

Web service having following kind of routine
Runreport(report as string, parameter()() as object)

from VB.net I have written following code.

dim sreport as string
dim sparameter(0,1) as object (I tried string type also)
sparameter(0,0)= "date"
sparameter(0,1) = "10-Oct-2007"
sreport = "Test"
webservice.runreport(sreport,sparameter)

But when I build this program i am getting
"Value of tylpe '2-dimensional array of object' cannot be converted to
'1-dimensional array of 1-dimensional array of object 'because 'object' is
not derived from '1-dimensional arry of object"

Web service is written in C#. Please let me know asap how to pass array
value to that web service.

regards,
kannan

Archived from group: microsoft>public>vb>deployment
Back to top
View user's profile Send private message
Ralph



Joined: 04 Oct 2007
Posts: 4148

PostPosted: Wed Nov 07, 2007 6:29 pm    Post subject: Re: Calling WebService Which is having two dimentional array Reply with quote

"Kannan" wrote in message@microsoft.com...
> hi,
>
> I have to use one Webservice function which is having two dimentional
array
> as a parameter. I don't know how to pass array value to that parameter.
>
> Here is the code.
>
> Web service having following kind of routine
> Runreport(report as string, parameter()() as object)
>
> from VB.net I have written following code.
>
> dim sreport as string
> dim sparameter(0,1) as object (I tried string type also)
> sparameter(0,0)= "date"
> sparameter(0,1) = "10-Oct-2007"
> sreport = "Test"
> webservice.runreport(sreport,sparameter)
>
> But when I build this program i am getting
> "Value of tylpe '2-dimensional array of object' cannot be converted to
> '1-dimensional array of 1-dimensional array of object 'because 'object' is
> not derived from '1-dimensional arry of object"
>
> Web service is written in C#. Please let me know asap how to pass array
> value to that web service.
>
> regards,
> kannan
>

Wrong newsgroup.

You can find a complete list of managed (dotNet) newsgroups here:
http://msdn.microsoft.com/subscriptions/managednewsgroups/list.aspx

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Problem in using webservice. Please Help me. Hi, I have a webservice contain a simple web method ( "hello world" ) ,which I create it with c#.net. What can I use it in VB6. Best Regardds, Amin.

URGENT: Consuming .Net XML WebService from VB 6.0 Hi All, I have a web service that i wrote using C# and .net framework. My client requires me to write the client using VB 6.0, so i wanted to know if there's an example code, or links or maybe some help that can lead me to how to comsume the webservice

Calling a MSI from another MSI Hi Everybody, I am not much experienced with windows installer. I am trying to create a setup using Visual Studio.NET, which as you know uses windows installer. What I want to do is install my application as well as run another MSI based installation. I c

DLL calling Hi all, I have a dll developped in Visual C++. It is an ACTIVEX DLL. Whene I want to call it from Visual Basic I have the problem that its results is in a parameter... How could I call it without getting 0 as result? Private Sub dim lAux

Calling C# webservice routine from VB.net hi, I have to use one Webservice function which is having two dimentional array as a parameter. I don't know how to pass array value to that parameter. Here is the code. Web service having following kind of routine as string, parameter()(
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Deployment All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group