我收到消息,
输入不是有效的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/role/anonymous 2009-10-01T21:53:36Z43357100XTYNHW81NzUzNzVhNDMtZDhlYS04NTZlLThkMDMtODExNGFjOTk5NmMy 2009-10-01T21:53:36Z