modifySCAExportHttpBinding command
Use the modifySCAExportHttpBinding command to change the attributes of an HTTP export binding.
Prerequisites
The following conditions must be met:
Location
Start the wsadmin scripting client from the install_root/profiles/deployment_manager_profile/bin directory.
Syntax
- If a parameter is changed at the binding scope, the syntax should
be:
<bindingName>newValue</bindingName>
- If a parameter is changed at the method scope, the syntax should
be:
<methodName>newValue</methodName>
- A resource of an invalid type is specified.
- A resource is specified that does not exist.
- For Jython:
AdminConfig.save()
- For Jacl:
$AdminConfig save
Required parameters
- -moduleName moduleName
- The name of the module associated with the export.
- -export export
- The name of the export.
Optional parameters
- -applicationName applicationName
- The name of the application.
- -httpMethods methodName
- The name of the HTTP method.
- -transferEncoding transferEncoding
- An indication of how information is transferred between the endpoints. Valid values are chunked and identity.
- -contentEncoding contentEncoding
- An indication of how the content that traverses the binding is encoded. Valid values are gzip, x-gzip, deflate, and identity.
Examples
The following example uses modifySCAExportHttpBinding to change the transfer encoding of an HTTP export binding called Export1 in a module called MyMod to identity. In addition, the command changes httpMethod to type "GET", sets pingable to "true", and sets ReturnCode to 400.
The changes are made at the binding scope.
- Jython example:
AdminTask.modifySCAExportHttpBinding('[-moduleName MyMod -export Export1 -transferEncoding <Export1>identity</Export1> -httpMethods [<Export1><httpMethod type="GET" pingable="true"> <PingableSettings><ReturnCode>400</ReturnCode></PingableSettings> </httpMethod></Export1>]]')
- Jacl example:
$AdminTask modifySCAExportHttpBinding {-moduleName MyMod -export Export1 -transferEncoding <Export1>identity</Export1> -httpMethods {<Export1><httpMethod type="GET" pingable="true"> <PingableSettings><ReturnCode>400</ReturnCode></PingableSettings> </httpMethod></Export1>}}
The following example uses modifySCAExportHttpBinding to change the transfer encoding of an HTTP export binding called Export1 in a module called MyMod to identity. In addition, the command changes httpMethod to type "GET", sets pingable to "true", and sets ReturnCode to 400.
The changes are made at the method scope.
- Jython example:
AdminTask.modifySCAExportHttpBinding('[-moduleName MyMod -export Export1 -transferEncoding <method1>identity</method1> -httpMethods [<method1><httpMethod type="GET" pingable="true"> <PingableSettings><ReturnCode>400</ReturnCode></PingableSettings> </httpMethod></method1>]]')
- Jacl example:
$AdminTask modifySCAExportHttpBinding {-moduleName MyMod -export Export1 -transferEncoding <method1>identity</method1> -httpMethods {<method1><httpMethod type="GET" pingable="true"> <PingableSettings><ReturnCode>400</ReturnCode></PingableSettings> </httpMethod></method1>}}