all groups > dotnet web services enhancements > march 2005 >
You're in the

dotnet web services enhancements

group:

Ability to get/set SOAP body xml data at a client program



Ability to get/set SOAP body xml data at a client program HumbleServant
3/30/2005 10:31:02 AM
dotnet web services enhancements: I have a console based C# program that calls web service proxy methods. I
want to extract and insert the xml embedded in the SOAP body area. How is
this done? I know that in Java setSOAPBody(...) and getSOAPBody(...) can do
this, but how is this done in C#.

The main reason why I need to do this is that when I got a wsdl from a
customer the .NET code generators produces web methods with classes as
parameters. I would rather like to pass the xml text string instead of
populating these self-generated classes. Is there a way to by pass this?

Thank you for your help...

--
Re: Ability to get/set SOAP body xml data at a client program Dilip Krishnan
3/30/2005 11:34:00 AM
If yr using WSE (which I assume u are, since you're posting to this
group), You can use the SoapEnvelope's SetBodyObject() method; Or use
the envelope.Body and add xml elements to the nodelist. And send that
envelope using a soapclient derived class.
HTH
Dilip Krishnan
Re: Ability to get/set SOAP body xml data at a client program casey chesnut
3/30/2005 2:09:03 PM
you can also use a SoapExtension (without WSE) and get access to the Stream
Thanks,
casey
http://www.brains-N-brawn.com


[quoted text, click to view]

Re: Ability to get/set SOAP body xml data at a client program HumbleServant
4/6/2005 12:01:04 PM
Can you point me in the right direction as to where I can get sample code for
C# client programs that properly makes use of SoapExtension! How to use this
class with in a C# client program does not seem apparent to me.

By the way, I want to thank you very much for your answer so far.

Thanks

Your humbleservant

[quoted text, click to view]
AddThis Social Bookmark Button