swift3.0 调用webservice参数传递的问题
msg_1 += "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">"
msg_1 += "<soap:Body>"
msg_1 += "<returndate xmlns=\"http://service.hyan.com/\">"
msg_1 += "<str>这是传递到服务器的参数</str>"
msg_1 += "</returndate>"
msg_1 += "</soap:Body>"
msg_1 += "</soap:Envelope>"
这是我拼接的soap请求体,能够正常链接,服务器也能返回数据,但是参数传递过服务器接收不到,是null值
这个参数应该是这么传递的嘛
<str>这是传递到服务器的参数</str>
试过了很多方法
都传递不到服务器。大神帮忙看下呗。