how do you send a SOAP request?

前端 未结 5 955
攒了一身酷
攒了一身酷 2021-02-05 10:04

I am new to SOAP and xml. I read a number of tutorials but nothing seems to be clear enough.

I am abit confused, Just how does one send an SOAP request? The way I have t

5条回答
  •  臣服心动
    2021-02-05 10:55

    On linux you can use curl to send the soap xml. Here's how to do it:

    curl --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction: ACTION_YOU_WANT_TO_CALL" --data @FILE_NAME URL_OF_THE_SOAP_WEB_SERVICE_ENDPOINT
    

    Using the testRequest.xml file created you can

    curl --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction: ACTION_YOU_WANT_TO_CALL" --data @testRequest.xml URL_OF_THE_SOAP_WEB_SERVICE_ENDPOINT
    

    Here is a link that describes the full process.

提交回复
热议问题