Re: passing custom classes or stucture as arguments
- From: Joe Abou Jaoude <anonymous@xxxxxxxxxx>
- Date: Sun, 11 Dec 2005 02:40:12 -0800
Hi Paul,
Thx for your reply.
I m perfectly aware that web services communicate using XML/SOAP and
that a proxy class is generated when I add a web reference.
All what I wanted to do is pass some data in an object as argument to a
WebMethod. An alternative would be to pass a couple of douzen of data
type arguments instead of encapsulating the data in an object.
The problem was that the proxy class generated by the WSDL expected a
type different than the type supplied as argument.
example:
I have a service service1.asmx a webmethod Method1 (ByVal obj as
SharedCode.CustomObject).
The generated proxy would have a method that expects an object of type
Service1.CustomObject as argument (and not SharedCode.CustomObject)
So finally, the only thing that I could find (although it might not be
recommended) is to alter the proxy class so it expect the proper object.
Regards
*** Sent via Developersdex http://www.developersdex.com ***
.
- Follow-Ups:
- References:
- Re: passing custom classes or stucture as arguments
- From: Paul Gielens
- Re: passing custom classes or stucture as arguments
- Prev by Date: Re: passing custom classes or stucture as arguments
- Next by Date: Re: XML encoding inside return string
- Previous by thread: Re: passing custom classes or stucture as arguments
- Next by thread: Re: passing custom classes or stucture as arguments
- Index(es):