下面是我的肥皂信息。
NAMESPACE = "http://wm.tren.com/";
URL = "http://wmc.com:80/tren/TrenService";
SOAP_ACTION = "http://wm.tren.com/gettest";
METHOD = "gettest";
我正在使用肥皂服务器。但我无法将服务器与下面的肥皂串连接。我得到了错误代码。任何人都可以帮助我吗?
NSString *soapMessage = [NSString stringWithFormat:
@"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
"<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance/\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:TrenService=\"http://wm.tren.com/\" xsl:version=\"1.0\">\n"
"<soap:Body>\n"
"<gettest xsi:type=\"TrenService:gettest/\">\n"
"<cdOr>%@</cdOr>\n"
"<cdDest>%@</cdDest>\n"
"<date>%@</date>\n"
"</gettest>\n"
"</soap:Body>\n"
"</soap:Envelope>\n", @"01005",@"01007",@"2013-10-22"
];
这是错误消息:
version='1.0' ?>
<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Body>
<env:Fault>
<faultcode>env:Client</faultcode>
<faultstring>Internal Error</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>