Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/370.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 输入不是有效的SOAP消息,因为缺少以下标头_Java_Web Services_Soap - Fatal编程技术网

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

Java 输入不是有效的SOAP消息,因为缺少以下标头,java,web-services,soap,Java,Web Services,Soap,我收到下面的消息 输入不是有效的SOAP消息,因为缺少以下标头 能够从SOAP UI获取响应。但是我无法从我的代码中得到响应 这是密码 post.setRequestHeader( "Content-type", "text/xml; charset=ISO-8859-1"); RequestEntity entity; HttpClient httpclient = new HttpClient(); httpclient.getParams().setSoTimeout(10

我收到下面的消息

输入不是有效的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);
我在getReceiveTransactionRequest()方法中收到硬编码请求


添加XML请求->uuid:e11c3a90-5929-46d9-85dc-f75df736e740urn:TelefloraWebServices/Gateway2009-10-01T21:53:36Z43357100xTYNHW81NZZZZZVHNDMTZDHLYS04NTZLLTHKMDMTODEXNGFJOTK5NMY2009-10-01T21:53:36Z>当您通过SOAP UI启动SOAP请求XML时,它是什么?没有任何意义。。您能详细说明一下您的XML请求吗