[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webservices

Calling a web service from a web service

jclark_00

8/16/2003 2:13:00 AM

Hi there, I am working on an application that will expose a Web
Service using VS.NET. Internally, the web service will make calls to
another web service, will apply certain business rules to the
responses and modify the returned XML accordingly.

My question is surrounding the definition of my web service. I
already have the remote web service in place that accepts a certain
format of XML document, and returns back a certain format of XML
document. I would like to have my input and output be of the same
format (with the exception of the changes I will make as a result of
the business rules). With all that in mind, it seems silly to have to
write my own definition of input and output parameters for my web
service, since it already exists in the remote web service. Is there
any way that I can declare my input and output parameters just to be
an XML document, so the declaration of my own web service will
basically say "don't worry about the format - it's XML, and it's
defined elsewhere".

Otherwise I have to explicitly define the structure of the parameters,
so that the XML that comes back from the remote server has to be
passed through my individual parameters, only for it to be serialized
back to XML as I return the data - just seems unnecessary.

Any suggestions?
1 Answer

Tom Vande Stouwe MCSD.net

8/20/2003 6:51:00 PM

0

Can you say 'Dataset'?
Deserialize your XML to a DATASET and pass them around.
Tom
--
==========================================
= Tom Vande Stouwe MCSD.net, MCAD.net, MCP
= 45Wallstreet.com (www.45wallstreet.com)
= (803)-345-5001
==========================================
= If you are not making any mistakes
..= ..you are not trying hard enough.
==========================================
"JC" <jclark_00@hotmail.com> wrote in message
news:2bc191ef.0308151812.232c6c6b@posting.google.com...
> Hi there, I am working on an application that will expose a Web
> Service using VS.NET. Internally, the web service will make calls to
> another web service, will apply certain business rules to the
> responses and modify the returned XML accordingly.
>
> My question is surrounding the definition of my web service. I
> already have the remote web service in place that accepts a certain
> format of XML document, and returns back a certain format of XML
> document. I would like to have my input and output be of the same
> format (with the exception of the changes I will make as a result of
> the business rules). With all that in mind, it seems silly to have to
> write my own definition of input and output parameters for my web
> service, since it already exists in the remote web service. Is there
> any way that I can declare my input and output parameters just to be
> an XML document, so the declaration of my own web service will
> basically say "don't worry about the format - it's XML, and it's
> defined elsewhere".
>
> Otherwise I have to explicitly define the structure of the parameters,
> so that the XML that comes back from the remote server has to be
> passed through my individual parameters, only for it to be serialized
> back to XML as I return the data - just seems unnecessary.
>
> Any suggestions?