curl --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:ws:shoppingCart" --data @shoppingcartreq.xml http://172.20.150.11:40100/Implws/services/ImplWSOrder
where
another example: curl --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:ns2:searchProductOffering" --data @productreq.xml http://172.20.150.11:40100/Implws/services/GuidedSvc
where
- "Content-Type: text/xml;charset=UTF-8" --> should be same if you are using a xml file
- "SOAPAction:ws:shoppingCart" --> need to specify the api that we are going to request
- shoppingcartreq.xml --> This should have the soap request - full soap request
- http://172.20.150.11:40100/Implws/services/ImplWSOrder --> URL of the webservice
another example: curl --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:ns2:searchProductOffering" --data @productreq.xml http://172.20.150.11:40100/Implws/services/GuidedSvc
No comments:
Post a Comment