SOAP Procedure

Example 1: Using PROC SOAP with a SOAPEnvelope Element

Details

This example calls a service that requires WS-Security. It provides an envelope.

Program

filename request 'c:\temp\simpleTest_REQUEST.xml';
filename response 'c:\temp\simpleTest_RESPONSE.xml';

data _null_;
   file request;
   input;
   put _infile_;
   datalines4;

<soapenv:Envelope xmlns:add="http://tempuri.org/addintegersWS"
                  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <add:addintegers>
         <add:parameters>
            <add:int1>20</add:int1>
            <add:int2>30</add:int2>
         </add:parameters>
      </add:addintegers>
   </soapenv:Body>
   </soapenv:Envelope>
;;;;
run;

%let response=response;
proc soap in=request
          out=&response
          url="http://localhost:8080/SASBIWS/services/addintegersWS"
          wssusername="user-name"
          wsspassword="password";
run;