发送XML文件和接收xml文件 [英] sending XML file and Receiving xml file
问题描述
你好GUD先生,
1.我想在C#中创建一个Web服务,因为我想为我的服务使用者返回一个xml文件.对此我该怎么办?
2.我想从Java Web服务获取一个xml文件.如何捕获该文件并在该Xml中进行操作,然后从我的Web服务中返回(发送回)该XML文件?
//发送xml文件(说n建议正确或不正确),这样我就返回了xml文件.
公共XmlDocument sendXmlfile()
{
XmlDocument xml =新的XmlDocument();
xml.LoadXml("existingxmlfile",true);
返回Xml;
}
//我如何捕获xml文件(仍在努力获取n个读取的xml文件)
Hello GUD mrng,
1.i want to create a web service in C#.in that i want to return A xml file for my service Consumer.What Can i do for this?
2.i want to get a xml file from java web service. How can i catch that file and do manipulation in that Xml then return(sent back) that XML file from MY web service?
//send the xml file( say n suggest it correct or not) in this way i am returning xml file.
public XmlDocument sendXmlfile()
{
XmlDocument xml= new XmlDocument();
xml.LoadXml("existingxmlfile",true);
return Xml;
}
//how can i catch the xml file( still struggling how to get n read xml file)
推荐答案
此链接将帮助您....
.net-web-services-5-steps/ [您的第一个C#Web服务 [如何制作和使用简单的Web服务. [ 用于发送和接收XML数据的Web服务 [ Java(jax-ws)Web服务之间的差异和.net Web服务? [ ^ ]
this links will help you....
.net-web-services-5-steps/[^]
Your first C# Web Service[^]
How to make a simple WebService and consume it.[^]
Webservices to send and Receive XML data[^]
difference between java (jax-ws) web service and .net web service?[^]
这篇关于发送XML文件和接收xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!