Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/360.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_Soap - Fatal编程技术网

如何通过java将带参数的soap请求发送到服务器

如何通过java将带参数的soap请求发送到服务器,java,soap,Java,Soap,我需要在服务器上发送以下soap请求: <CallengeState xmlns="http://app.test.com/ws/schema"> <number>0008</number> <previousState>Stopped</previousState> <currentState>Activated</currentState> <dateChanged>2014-06-09&

我需要在服务器上发送以下soap请求:

<CallengeState xmlns="http://app.test.com/ws/schema">
 <number>0008</number>
 <previousState>Stopped</previousState>
 <currentState>Activated</currentState>
 <dateChanged>2014-06-09</dateChanged>
</CallengeState >
但我不知道如何在这段代码中设置我的参数,我得到了以下错误:

Response SOAP Message = [Fatal Error] :2:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
Error occurred while sending SOAP Request to Server

你的问题不完整。在最基本的层面上,您尝试发送的SOAP包包含XML受限标记(
),这是一个不可否认的事实,您的负载中存在无效内容;您需要去掉它,但我不知道什么是无效的,很抱歉,我对使用java的soap几乎没有经验
Response SOAP Message = [Fatal Error] :2:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
Error occurred while sending SOAP Request to Server