Groups | Blog | Home
all groups > visual c > july 2003 >

visual c : ATL Service Web Serice Using XML as Input and Output



FS Liu
7/25/2003 11:11:19 AM
Hi,

I am writing ATL Service application (XML Web service) in
VS.NET C++.
Are there any sample programs that accept XML as input and
XML as output
in the web service?

Thank you very much.

FS Liu
Bogdan Crivat [MSFT]
7/25/2003 11:22:08 AM
Hi

Please clarify: do you want to load SOAP XML requests as input, and generate
SOAP XML responses as output?

--
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. It is for newsgroup
purposes only.

thanks,
bogdan




[quoted text, click to view]

FS Liu
7/26/2003 3:40:05 AM
Thanks for your message.

The input to the web service is a set of parameters
which may change in format and the number of variables
for each call. The output variable or the returned
value of the web service is also a set of paramters
which may change in format and the number of variables
as the result of the call.

In my thinking, there are at least two ways to do this:
(1). Pass both input and output as strings in
calling the web service.
In this case, I need to know how to convert
XmlTextReader to string in a very efficient way.
Is this method OK in ATL Server application?
Do I need managed code to do this?
(2). Call web service by passing parameter such as
XmlTextReader or XmlNode type.
But unfortunately, there is too little resources from
Microsoft. Do you have some sample programs ?

Thank you very much.

FS Liu



[quoted text, click to view]
FS Liu
7/26/2003 4:46:52 AM
Some more clearification:
As I described below, I am thinking to use XML to pass
both the input parameters and output results. I hope
to use both ADO.NET and XML classes for best performance
and development speed.

Thanks again.

FS Liu


[quoted text, click to view]
scottNOgregorySPAM NO[at]SPAM yahoo.com
7/26/2003 5:51:11 AM
In article <#DNBLntUDHA.2224@TK2MSFTNGP10.phx.gbl>, "Bogdan says...
[quoted text, click to view]

How about a similar question...

Should (of course I CAN) use ATL Server, VC++7.1 to produce a REST like program?
i.e. from a URL, return an XML doc, which is from my complex C++ objects, and
also be able to PUT/POST HTTP messages that end up back in my C++ program for
processing?

Simple GET example
http://myapp/address?IBM
a get on that would return the address of IBM in my database as a formatted XML
document.

Thanks
sdg
AddThis Social Bookmark Button