Web Service with complex paramters and return types

J

J.Marsch

I'm starting to think about my first web service.

In order to do its job, this web service needs to have a lot of inputs, and
it needs to return a batch of records.

I don't want the service to be "chatty". If I were doing remoting, I'd
create a marshal by value class to contain the input parameters, and another
to return the results.

What do I need to do if I want my web service to accept/return complex data?
Declare an interface and use that as the input param (and another for the
output)? something else?

This web service must be compatible with non-.Net clients, so I don't want
to do anything that is proprietary to .Net.
 
M

MSFT

Hello,

I think you may consider a XML string as the input parameter of web
service, it can be consume by a .NET web service, and also can be post by a
non-.Net clients. In .Net web service, you can easily convert this string
to a XMLDocument object, even convert to a custom component.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top