SOAP Procedure

Example 2: Using PROC SOAP without a SOAPEnvelope Element

Details

This example calls the same service as is called in the process described inUsing PROC SOAP with a SOAPEnvelope Element. Here the service is called without 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;

<add:addintegers xmlns:add="http://tempuri.org/addintegersWS">
   <add:parameters> 
      <add:int1>20</add:int1>
		 <add:int2>30</add:int2>
   </add:parameters>
</add:addintegers 
;;;;
run;

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