Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何使用原始xml数据调用并获取response.svc服务_C#_Xml_Web Services_Soap_Xamarin.ios - Fatal编程技术网

C# 如何使用原始xml数据调用并获取response.svc服务

C# 如何使用原始xml数据调用并获取response.svc服务,c#,xml,web-services,soap,xamarin.ios,C#,Xml,Web Services,Soap,Xamarin.ios,我正在创建xamarin ios应用程序,我必须在其中调用服务并验证用户名和密码。服务url的地址为。此服务验证用户名和密码。用户名、密码和deviceToken以原始xml url的形式发送,如下所示:- var sr = "<?xml version=\"1.0\" encoding=\"utf-8\"?><SOAP-ENV:Envelope xmlns:xsd = \"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http

我正在创建xamarin ios应用程序,我必须在其中调用服务并验证用户名和密码。服务url的地址为。此服务验证用户名和密码。用户名、密码和deviceToken以原始xml url的形式发送,如下所示:-

 var sr = "<?xml version=\"1.0\" encoding=\"utf-8\"?><SOAP-ENV:Envelope xmlns:xsd = \"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"> <SOAP-ENV:Body> <Login xmlns=\"http://tempuri.org/\"> <username xsi:type=\"xsd:string\">" + userName_pass + "</username><password xsi:type=\"xsd:string\">" + passWord_pass + "</password><deviceToken xsi:type=\"xsd:string\">" + deviceToken11 + "</deviceToken></Login></SOAP-ENV:Body></SOAP-ENV:Envelope>";
我不知道怎么做。我已经浪费了一整天,所以请帮帮我。我们将非常感谢您的帮助

请参阅。它包含从android和IOS调用服务的演练


希望对您有所帮助。

我已经研究过了,但无法理解。您能给我一个逐步解决方案吗?我想文档提供了拨打服务电话的完整步骤。您能否分享您面临问题的代码部分?我对monotouch很陌生。
var soapaction = "http://tempuri.org/IMobileService/Login";