0
SOAPActionをSOAP Webリクエストに追加しようとしています。続きSOAPActionが正しく設定されていません - Java
は私のコードです:
return (TPResponse) getWebServiceTemplate().marshalSendAndReceive(genTP, message -> {
((SaajSoapMessage)message).setSoapAction("http://tempuri.org/IntegrationService/GenerateParam");
});
期待は、このコードはSOAPAction: "http://tempuri.org/IntegrationService/GenerateParam"
としての私のHTTPリクエストに別のヘッダフィールドを追加しなければならないということです。しかし、以下では、最終的なパケットが形成されているものです。
POST /redirect/q2.php?rf=xml&url=http://endpointurl:8080/IntegrationServiceBasic HTTP/1.1
Accept-Encoding: gzip
Accept: application/soap+xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-Type: application/soap+xml; charset=utf-8;
action="http://tempuri.org/IntegrationService/GenerateParam"
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.8.0_73
Host: 127.0.0.1
Connection: keep-alive
Content-Length: 578
はそれが
Content-Type
を変更し、それに値を
action
を追加しました別のHTTPヘッダを追加するのではなく、ご了承ください。何が間違っていますか?