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
james
NA
1.1k
333.7k
Passing objects to Web Services
Dec 2 2003 8:36 AM
I'm just learning Web Services and have had some of my preconceptions wiped out in recent days. Here is what I'm wanting to do... I would like to create a custom class (MyClass) and have it stored in a seperate assembly. I would like for my client application to reference that assembly and work with MyClass before connecting with my Web Service. I would also like my Web Service to reference that assembly (server side). Ideally, I want to pass MyClass as an object to a Web Method as a parameter. When I first tried this, I got the 'Cannot implicitly convert....' errors during compile. I then tried boxing/unboxing them, and passing it as a System.Object object, and that gave me Xml Serialization errors. Can anyone tell me if what I'm trying to do is possible? The simple solution here would be to have my client app reference the class FROM the Web Service, but this would require the user to be connected, which isn't a luxury I can guarantee until they are ready to submit (pass the object). -James
Reply
Answers (
1
)
problem
Help!! Calling a different web site from a web service