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
name
NA
3
2.8k
client ----> .NET class libray-----> Secured Web Services
Sep 23 2009 2:47 PM
1. Created a WebService
2. Create a Class Library and add web reference (#1) per suggested here.
http://social.msdn.microsoft.com/Forums/en-US/asmxandxml/thread/ecb63966-eda7-4cfb-b417-2328b3a1abed
I did this in the Class Library
public class MyWebServiceWrapper
{
private MyWebService obj = new MyWebService();
public MyWebServiceWrapper()
{
obj.Url = ConfigurationManager.AppSettings["MyUrl"];
}
public void WebMethodA() //same name as in the web services
{
obj.WebMethodA();
}
}
I did this in the client (test client is winform). (by the way, system.web.services is deleted from reference)
MyWebServiceWrapper obj = new MyWebServiceWrapper();
datagridview.datasource = obj.WebMethodA(); - GETTTING THIS ERROR "cannot implicitly convert void to object
What to do?????????????????????????????????
Reply
Answers (
2
)
copying data from crm to sql database using webservices
Web Service Certificates Authentication