| Category: | Web Service |
| Note: | This function uses the SAS environments file. |
FILENAME request 'c:\temp\Request.xml';
FILENAME response 'c:\temp\Response.xml';
data _null;
service="ReportRepositoryService";
soapaction="http://www.test.com/xml/schema/test-svcs/reportrepository-9.3/
DirectoryServiceInterface/isDirectory";
envfile="http://somemachine.abc.xyz.com/schemas/test-environment.xml";
environment="test";
wssusername="user-name";
wsspassword="password";
rc=soapwipservice("REQUEST", service, "RESPONSE", soapaction, wssusername,
wsspassword, envfile, environment);
run;
Request.xml:
<soapenv:Envelope xmlns:rep="http://www.test.com/xml/schema/test-svcs/
reportrepository-9.3"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<Action xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://
www.test.com/xml/schema/test-svcs/reportrepository-9.3/
DirectoryServiceInterface/isDirectory</Action>
</soapenv:Header>
<soapenv:Body>
<rep:isDirectoryDirectoryServiceInterfaceRequest>
<rep:dirPathUrl>SBIP://Foundation/Users/someuser/My Folder
</rep:dirPathUrl>
</rep:isDirectoryDirectoryServiceInterfaceRequest>
</soapenv:Body>
</soapenv:Envelope>
test-environments.xml:
<environments xmlns="http://www.test.com/xml/schema/test-environments-9.3
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.test.com/xml/schema/test-environments-9.3
http://www.test.com/xml/schema/test-environments-9.3/
test-environments-9.3.xsd">
<environment name="default" default="true">
<desc>Default Test Environment</desc>
<service-registry>http://machine1.abc.xyz.com:8080/TESTWIPServices/remote/
serviceRegistry
</service-registry>
</environment>
<environment name="test" default="false">
<desc>Environment for PROC SOAP testing</desc>
<service-registry>http://machine2.abc.xyz.com:8080/TESTWIPSoapServices/
Service Registry/serviceRegistry
</service-registry>
</environment>
</environments>