0

我收到以下消息,

输入不是有效的 SOAP 消息,因为缺少以下标头

能够从 SOAP UI 获得响应。但我无法从我的代码中得到响应。

这是代码

post.setRequestHeader(
        "Content-type", "text/xml; charset=ISO-8859-1");
RequestEntity entity;
HttpClient httpclient = new HttpClient();
httpclient.getParams().setSoTimeout(10000);
entity = new StringRequestEntity(getReceiveTranscactionRequest(), "text/xml",
        "ISO-8859-1");
post.setRequestEntity(entity);

我在 getReceiveTranscactionRequest() 方法中收到硬编码请求

添加 XML 请求 -> http://www.teleflora.com/webservices/ReceiveTransactions uuid:e11c3a90-5929-46d9-85dc-f75df736e740urn:TelefloraWebServices/Gateway http://schemas.xmlsoap.org/ws/2004/03/addressing /角色/匿名2009-10-01T21:53:36Z43357100XTYNHW81NzUzNzVhNDMtZDhlYS04NTZlLThkMDMtODExNGFjOTk5NmMy 2009-10-01T21:53:36Z

4

0 回答 0