Previous Page | Next Page

The SOAP Procedure

Example 1: Using PROC SOAP with a SOAPEnvelope Element


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

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="your-user-name"
          wsspassword="your-password"
          axis2configfile="C:\temp\axis2.xml";  

run;

Previous Page | Next Page | Top of Page