如何在asp.net中将XML文档发送到Web服务 [英] How to send XML document to webservice in asp.net
问题描述
大家好,
我有一个接受xml文档的Web服务. xml文档包含该对象的描述,意味着它包含该类的all属性.处理后,它将以xml文档的格式返回响应.
我的情况是该服务期望xml文档作为输入,并且将输出作为xml文档返回,而我看不到该服务的wsdl.
输入文档描述了输入法及其预期的输入值.所以我需要做一个这样的文件.我已经准备好了该xml文档.现在,我有一个问题要将该文档发布到Web服务,例如"http://123.123.123.123/mywebservice".
提前谢谢.
谢谢
Hi All,
I have a web service that accept the xml document. The xml document contains the description of the object means it contains the all property of the class. After processing that it returns the response in the format of the xml document.
my case the service expect the xml document as an input and it returns the output as an xml document and I am not able to see the wsdl of that service.
The input document describe the input method and its expected input values. so I need to make such a document. I have prepared that xml document. Now I have the question to post that document to the web service like "http://123.123.123.123/mywebservice".
Thanks in advance.
Thanks
推荐答案
您需要在Web服务中公开一个Web方法,该方法将XML作为参数之一.
You need to have a Webmethod exposed in your webservice that takes XML as one of the argument.
这篇关于如何在asp.net中将XML文档发送到Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!