Curl command line for consuming webServices?

后端 未结 5 1043
野性不改
野性不改 2020-12-23 02:19

Do you guys know how I can use the Curl command line to POST SOAP to test a web service?

I have a file (soap.xml) which has all the soap message attached to it I jus

5条回答
  •  醉话见心
    2020-12-23 02:28

    Wrong. That doesn't work for me.

    For me this one works:

    curl 
    -H 'SOAPACTION: "urn:samsung.com:service:MainTVAgent2:1#CheckPIN"'   
    -X POST 
    -H 'Content-type: text/xml'   
    -d @/tmp/pinrequest.xml 
    192.168.1.5:52235/MainTVServer2/control/MainTVAgent2
    

提交回复
热议问题