TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mayur Gujrathi
409
3.9k
1m
how to invoke wcf service having list parameter
Jul 22 2013 4:36 AM
I have a webservice as below
<OperationContract()> <Web.WebGet(UriTemplate:="/GetData?strErrMsg={strErrMsg}&chrErrFlg={chrErrFlg}", ResponseFormat:=WebMessageFormat.Json, BodyStyle:=WebMessageBodyStyle.Wrapped)> _
Function GetData(ByRef strErrMsg As System.Collections.Generic.List(Of String), ByRef chrErrFlg As String) As String
And I am trying to fetch it as
http:localhost//BedTypeMasterService.svc/GetData?strErrMsg="ff"&chrErrFlg="dd"
But it is giving following error
Operation 'GetData' in contract 'iBedTypeMaster' has a query variable named 'strErrMsg' of type 'System.Collections.Generic.List1[System.String]', but type 'System.Collections.Generic.List1[System.String]' is not convertible by 'QueryStringConverter'. Variables for UriTemplate query values must have types that can be converted by 'QueryStringConverter'.
Please help me out to solve this
Reply
Answers (
2
)
How to consuming webservice having WSDL and XSD files?
need help to make a webservice