wangyueyong1 发表于 2013-4-19 15:03:24

web_custom_request写soap请求

本帖最后由 thirfing 于 2013-5-13 10:08 编辑

Action.c(10): HTML parsing not performed for Content-Type "text/xml" (";ParseHtmlContentType" Run-Time Setting is "TEXT"). URL="http://bfpidev:50000/XISOAPA.....,用web_custom_reguest()的soap请求有,出现这个问题,加了body的soap请求内容就出服务器500错误

wangyueyong1 发表于 2013-4-19 15:27:26

已加web_add_header("Accept","application/xhtml+xml, */*")和在web_custom_reguest 中EncType=text/xml

wangyueyong1 发表于 2013-4-19 15:28:03

急,有哪位高手过来帮下

wangyueyong1 发表于 2013-4-19 15:35:56

顶一下,不能让帖子沉下去

wangyueyong1 发表于 2013-4-19 15:36:02

顶一下,不能让帖子沉下去

云层 发表于 2013-4-19 18:40:02

你要问开发你发过去的什么东西不合法

wangyueyong1 发表于 2013-4-21 21:32:25

发出去的soap请求已经通过soapui测试过,用soapui发出去请求也通过监控网卡的工具记录下来了

wangyueyong1 发表于 2013-4-22 12:56:13

4.txt是soapui发出去的请求头,5是lr发出去的请求头file:///C:/Users/Wuxl/AppData/Roaming/Tencent/Users/472626075/QQ/WinTemp/RichOle/37AW]%7B%25%25H)REPFKQ%60~QPS8Q.jpg

wangyueyong1 发表于 2013-4-22 13:03:14

soapui 发出去的请求能成功
POST /XISOAPAdapter/MessageServlet?**********HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://sap.com/xi/WebService/soap1.1"
Authorization: ************
Host: bfpidev:50000
Content-Length: 2689


lr发出去的请求不能成功
POST /XISOAPAdapter/MessageServlet?channel***********HTTP/1.1
Authorization:*********
Content-Type: text/xml; charset=UTF-8
Cache-Control: no-cache
SOAPAction: "http://sap.com/xi/WebService/soap1.1"
User-Agent: Jakarta Commons-HttpClient/3.1
Connection: Keep-Alive
Accept-Encoding: gzip, deflate
Accept: */*
Host: bfpidev:50000
Content-Length: 2742

wangyueyong1 发表于 2013-4-22 13:38:23

帖子沉了:'(不能啊

wangyueyong1 发表于 2013-4-22 14:22:16

回复 6# 云层

额,问题解决了是我body里面发的东西少了一个字符引起的:L
页: [1]
查看完整版本: web_custom_request写soap请求