WSセキュリティ認証を使用して、SAS (R) Webサービスを呼び出します。認証情報は引数で指定します。
| カテゴリ: | Webサービス |
| 注: | この関数はSAS環境ファイルを使用します。 |
ファイル参照名の文字値を指定します。INは、SOAP要求を含むXMLデータを入力するために使用されます。
サービスレジストリに格納されているとおりに、エンドポイントサービスのサービス名を指定します。
SOAPWIPSERVICE関数で使用可能なオプションを指定します。次のオプションを使用できます。
SOAP応答の出力XMLが書き込まれるファイル参照名の文字値を指定します。
Webサービスで呼び出すSOAPAction要素の文字値を指定します。
WSセキュリティのユーザー名である文字値を指定します。
WSセキュリティのパスワード(WSSUSERNAMEのパスワード)である文字値を指定します。PROC PWENCODEによって生成されるエンコーディングがサポートされます。
SAS環境ファイルの場所である文字値を指定します。
使用するSAS環境ファイルで定義されている環境の文字値を指定します。
SOAPヘッダーのmustUnderstand属性設定の数値を指定します。
主にタイムアウト値を設定するSpring構成ファイルの文字値を指定します。
ログ出力のデバッグに使用するファイルのフルパスの文字値を指定します。
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
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>