67,513
社区成员
发帖
与我相关
我的任务
分享
call.addParameter(new QName(soapaction,"userName"), q, ParameterMode.IN);
call.addParameter(new QName(soapaction,"password"), q, ParameterMode.IN);
call.addParameter(new QName(soapaction,"destAddr"), new QName("http://www.jituanyun.com/","String"), ParameterMode.IN);
这儿的QName是String还是Array并无关紧要,它能被解析出来。
call.addParameter(new QName(soapaction,"content"), q, ParameterMode.IN);
call.addParameter(new QName(soapaction,"ext"), q, ParameterMode.IN);
POST /MasService.asmx HTTP/1.1
Host: www.my.jituanyun.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.jituanyun.com/SendSms"
<?xml version="1.0" encoding="utf-8"?>
<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/">
<soap:Body>
<SendSms xmlns="http://www.jituanyun.com/">
<userName>string</userName>
<password>string</password>
<destAddr>
<string>string</string>
<string>string</string>
</destAddr>
<content>string</content>
<ext>string</ext>
</SendSms>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<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/">
<soap:Body>
<SendSmsResponse xmlns="http://www.jituanyun.com/">
<SendSmsResult>
<ErrorCode>Success or AuthenticiationFailed or BadKeywords or InsufficientBalance or BatchSizeTooLarge or ArgumentError or BadRequest or ServiceUnavailable</ErrorCode>
<ErrorMessage>string</ErrorMessage>
<RequestIdentifier>string</RequestIdentifier>
</SendSmsResult>
</SendSmsResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。
POST /MasService.asmx HTTP/1.1
Host: www.my.jituanyun.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<SendSms xmlns="http://www.jituanyun.com/">
<userName>string</userName>
<password>string</password>
<destAddr>
<string>string</string>
<string>string</string>
</destAddr>
<content>string</content>
<ext>string</ext>
</SendSms>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<SendSmsResponse xmlns="http://www.jituanyun.com/">
<SendSmsResult>
<ErrorCode>Success or AuthenticiationFailed or BadKeywords or InsufficientBalance or BatchSizeTooLarge or ArgumentError or BadRequest or ServiceUnavailable</ErrorCode>
<ErrorMessage>string</ErrorMessage>
<RequestIdentifier>string</RequestIdentifier>
</SendSmsResult>
</SendSmsResponse>
</soap12:Body>
</soap12:Envelope>
http://www.smschinese.cn/
http://www.smschinese.cn/