Tuesday, November 17, 2015

soap web service call from unix shell / command line

curl --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:GetMSISDNList" --data @request.xml http://172.31.70.139:10037/serkans/SunelServices

--------------Content of the request.xml--------------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s="http://modafone.com.tr/Business/SerkanServices" xmlns:head="http://modafone.com.tr/EAI/Common/Header" xmlns:v1="http://modafone.com.tr/GetMSISDNList">
   <soapenv:Header/>
   <soapenv:Body>
      <s:GetMSISDNList>
         <Header>
            <head:RequestId>323488131</head:RequestId>
            <head:SourceSystem>www</head:SourceSystem>
         </Header>
         <Body>
            <v1:Request>
               <v1:MSISDN>5444444440</v1:MSISDN>
            </v1:Request>
         </Body>
      </s:GetMSISDNList>
   </soapenv:Body>

No comments:

Post a Comment