Unable to access public functions of the objects used as parameters of the web service.

S

Sonal

I have a web method as follows:
Public Function SearchDocument(ByVal UserLogonName As String, ByVal
BusinessName As String,ByVal SearchData As MGSearchObjCollection) As
MGDocCollection

The object MGSearchObjCollection inturn has lots of properties and
functions.

Now from a web form when i access this web service and create
MGSearchObjCollection, it is not showing me the functions in this
object but it does allow me to set the properties. Is there any way i
can access the functions also in this.

Any help would be highly appreciated.
 
D

Dino Chiesa [Microsoft]

When you use webservices, you are not passing objects, you are passing
messages.
Webservices is philosophically different from object remoting.

http://www.dotnet247.com/247reference/msgs/45/228399.aspx
or
http://dotnetjunkies.com/Newsgroups...et.framework.webservices/2004/3/24/82827.aspx

also see "Sharing Types"
http://msdn.microsoft.com/library/en-us/dnservice/html/service07162002.asp

It may be possible to use the approach described there, and replace the
return type in the generated proxy with your desired type.


-D
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top