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 C# webservice routine from VB.net

 
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 4:07 pm    Post subject: Calling C# webservice routine from VB.net 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 C# webservice routine from VB.net 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:   
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