POST方法调用webservice
比如说url=“http://localhost/Service/Service.asmx”;webservice中的一个方法是 public XmlDataDocument GetInfor(int nLangID, int nStartCount, int nCount);我怎么用post方法传参数啊,还有怎么把返回的xml页面保存为xml文档,新手啊,请大家帮忙啊!
------解决方案--------------------接分,专业地
------解决方案--------------------System.Data.DataSet ds = new System.Data.DataSet();
ds.ReadXml( "http://localhost/Service/Service.asmx?langid=/*.....省略*/ ");
System.Xml.XmlDataDocument doc = new System.Xml.XmlDataDocument(ds);
试试.这块不熟,仅供参考
------解决方案--------------------mark
------解决方案--------------------
------解决方案--------------------http://topic.csdn.net/t/20050415/16/3939868.html
------解决方案--------------------jf
------解决方案--------------------可以用web应用来做 locolhost tt = new locolhost ();
XmlNode xml = tt.GetCategories(1, 1, 1);
string strXML = xml.OuterXml.ToString();
strXML = " <?xml version=\ "1.0\ " encoding=\ "utf-8\ " ?> " + strXML;
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(strXML);
xmlDoc.Save( "c:\\tt.xml ");