Best way to generate soap xml message?

What is the best way to generate soap xml in C #? I prefer using xml serialization if possible. In addition, I need to add some custom attributes to the soap header, so I'm not sure if this complicates the situation.

One more note: I connect to the soap server on the linux server via TCP - the soap server was built in C ++.

In addition, the soap server does not respond to wsdl requests - it is completely blocked. Security is very tight, where I work ... :)

+3
source share
3 answers

If you have an XSD, check out WSCF.blue .

, . , , WCF- , SOAP .

+2

? -?

WCF " " Visual Studio - !

, SOAP- - WCF !

. msdn.microsoft.com/WCF , ..

- WCF XML, , WCF DataContractSerializer ( 10% , XML-, ).

0

The best way would be to use the "Add Service Link" and point to the WSDL services either on disk or on the network. Then call the service through the generated proxy class.

See " " How to use the web service . "

0
source

Source: https://habr.com/ru/post/1741345/


All Articles