You can use the soap script operations in your scriptlets to manipulate
and work with soaps.
createWebService script operation
Creates a new web service with the given
parameters. To save and deploy the web service(if DEPLOYED is true), call
saveWebService(). NAME is the name of the service. IMPLCLASS is the Java™ class
for Java based
web services or "" for script based ones, DESC is the description of the service.
WSDLDOCPATH is the doc path at which the WSDL is stored. WSDDDOCPATH is the
doc path at which the WSDD is stored. PROTOCOL is the protocol. Currently,
"SOAP_HTTP" is the only supported protocol. STYLE is the message style. Currently,
RPC_ENCODED and DOCUMENT_LITERAL are supported. IMPLSCRIPTPATH is the doc
path of the service implementation script. It is the callers responsibility
to ensure that WSDLDOCPATH, WSDDDOCPATH and IMPLSCRIPTPATH do not cause the
documents for any other web service to be overwritten. STOREINCOMING determines
whether incoming requests are stored. STOREOUTGOING determines whether outgoing
request are stored. DEPLOYED determines whether the service will be deployed.
AUTH_REQUIRED determines whether a username, company name, and password are
required to invoke this web service. SKIPREQUESTVALIDATION determines whether
the inbound SOAP message is validated against WSDL schema. SKIPRESPONSEVALIDATION
determines whether the outbound SOAP message is validated against WSDL schema.
If a web service with the name of NAME already exists, throws an AustinException.
saveWebService script operation
Saves the Web Service in the
DB. If deployment settings have changed, they take effect upon saving.
If this script operation is invoked within a database transaction,
the script operation will no longer commit that transaction during
its execution. It will also throw an exception if a database
problem occurs, where previously it might not have done so. This is
to ensure that a rollback can be carried out safely by the caller.
If you were relying on this script operation's transactional
effects you will need to adjust your script. See the product documentation
for more information about transactions and scripts.
setAuthRequired script operation
Sets whether this Web Service requires authentication. The setting will take effect upon saving.
setDeployed script operation
Sets whether this Web Service is deployed.
The setting will take effect upon saving.
setWsddDocPath script operation
Sets the docstore path of the WSDD document for this Web Service. The caller must ensure that this does not overwrite the WSDS for any other service.
setWsdlDocPath script operation
Sets the docstore path of the WSDL document for this Web Service. The caller must ensure that this does not overwrite the WSDL for any other service.