The SOAP Procedure |
You can use two methods to call SAS Web services. The first method requires that you know the URL of the Service Registry Service and the URL of the endpoint of the service you are calling. You must set the URL of the Service Registry Service on the SRSURL option. The URL option indicates the endpoint of the service that you are calling. See Calling a SAS Web Service Using the Service Registry Service.
The second method used to call SAS Web services uses the SAS environments file to specify the endpoint of the service you are calling. Using this method, you can indicate the location of the SAS environments file in one of two ways:
use the ENVFILE option in PROC SOAP
define the Java property env.definition.location in JREOPTIONS on the SAS command line or in the SAS configuration file
-jreoptions (-Denv.definition.location=http://your-SAS-environment.xml)
You must also specify the desired environment within that file using the ENVIRONMENT option, and specify the name of the service you are calling using the SERVICE option. See Calling a SAS Web Service Using the SAS Environments File.
In both cases, the WSUSERNAME and WSPASSWORD options will be set to the user name and password that are required to contact the Service Registry Service. Use the AXIS2CONFIGFILE option to indicate the configuration file that contains the WS-Security configuration for Axis2.
Your Axis2 configuration file must have the OutflowSecurity section defined as follows:
<parameter-name = "OutflowSecurity"> <action> <items>UsernameToken Timestamp </items> </action> </parameter>
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.