Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending and receiving XML Data

Tags:

c#

.net

soap

xml

xsd

I am a .NET begginer and i'm trying to develop a webservices using C# so i can send a XML data to an specific URL. I can't use Web Reference and i need to construct the xml data using this kind of format:

<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
 <soap-env:Body>
 <m:Send xmlns:m="http://www.urltest.com/soap/arquivo.xsd">
 <user id="522" senha="pwd000"/>
 <ack txt_email="[email protected]" num_ack="12345678910" num_obs="1"/>
 </m:Send>
 </soap-env:Body>
</soap-env:Envelope>

i'm trying to research about MessageContracts, but so far i got nothing to help me.

Thanks in advance,

Felipe

like image 709
Felipe Avatar asked Jan 23 '26 17:01

Felipe


1 Answers

The best (fastest, easyest) way to develop a web service is to use WCF. Have you ever look on it?

like image 155
Vasyl Boroviak Avatar answered Jan 26 '26 06:01

Vasyl Boroviak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!