发送soap型webservice消息
发布时间:2020-12-17 01:26:32 所属栏目:安全 来源:网络整理
导读:? POST /webservice/Service.asmx HTTP/1.1Host: 132.159.206.26Content-Type: text/xml; charset=utf-8Content-Length: lengthSOAPAction: "http://tempuri.org/WebserviceTest"?xml version="1.0" encoding="utf-8"?soap:Envelope xmlns:xsi="http://www.w
? POST /webservice/Service.asmx HTTP/1.1 Host: 132.159.206.26 Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/WebserviceTest" <?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> <WebserviceTest xmlns="http://tempuri.org/"> <str>string</str> </WebserviceTest> </soap:Body> </soap:Envelope>? 发送soap消息时,如果碰到bad request或internal server error等,可以判断可能是自定义参数部分不符合接口要求,比如参数内容中如string含有<或>应用<或>替代 ? str0= REPLACE( str0,"<","<" ) str0= REPLACE( str0,">",">" ) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |