curl을 사용하여 웹 서비스에 SOAP 요청을 보내고 쉘 스크립팅을 사용하여 응답을받습니다. 아래 명령을 사용하십시오. -쉘 명령에서 SOAP 요청 호출
curl -H "Content-Type: text/xml; charset=utf-8" -H "SOAPAction:" -d @sample_request.txt -X POST http://someWebServiceURL
SOAPAction 헤더가 없다는 오류 응답이 표시됩니다. PFB 응답 본체 부분
<soapenv:Body>
<soapenv:Fault>
<faultcode>Client.NoSOAPAction</faultcode>
<faultstring>WSWS3147E: Error: no SOAPAction header!</faultstring>
</soapenv:Fault>
</soapenv:Body>
도움이 되었습니까?
SoapAction 헤더의 URI를 인용하는 것을 잊지 마세요. 스펙에서는 null이 아닌 경우 큰 따옴표로 묶어야합니다. 즉, 'SOAPAction : http : // my_example/my_action "' – Petesh