var resultHttpPost = ZennoPoster.HttpPost("http://box.chomikuj.pl/services/ChomikBoxService.svc",
"<?xml version='1.0' encoding='UTF-8'?><s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><Auth xmlns='http://chomikuj.pl/'><name>topbarlogin</name><passHash>e10adc3949ba59abbe56e057f20f883e</passHash><ver>4</ver></Auth></s:Body></s:Envelope>",
"text/xml;charset=utf-8", "", "UTF-8", ZennoLab.InterfacesLibrary.Enums.Http.ResponceType.HeaderAndBody, 30000, "", "Mozilla/5.0", true, 1, string[] headers = new String[3]{ "a", "b", "c" }, "", false);
我有这个问题:
string[] headers = new String[3]{ "a", "b", "c" }
我仍然收到错误,但我不知道如何申报。
答案 0 :(得分:0)
只需删除“string [] headers =”part
var resultHttpPost = ZennoPoster.HttpPost("http://box.chomikuj.pl/services/ChomikBoxService.svc","<?xml version='1.0' encoding='UTF-8'?><s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><Auth xmlns='http://chomikuj.pl/'><name>topbarlogin</name><passHash>e10adc3949ba59abbe56e057f20f883e</passHash><ver>4</ver></Auth></s:Body></s:Envelope>", "text/xml;charset=utf-8", "", "UTF-8", ZennoLab.InterfacesLibrary.Enums.Http.ResponceType.HeaderAndBody, 30000, "", "Mozilla/5.0", true, 1, new String[3]{ "a", "b", "c" }, "", false);
答案 1 :(得分:0)
你必须写:
new String[3]{ "a", "b", "c" }
而不是:
string[] headers = new String[3]{ "a", "b", "c" }