如何通过java将带参数的soap请求发送到服务器
我需要在服务器上发送以下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&
<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