modifySCAExportHttpBinding command
Use the modifySCAExportHttpBinding command to change the attributes of
an HTTP export binding.
The modifySCAExportHttpBinding command changes the properties of an HTTP
export binding at the binding scope or the method scope.
- 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>
The following circumstances cause an
SCACommandException to be thrown:- A resource of an invalid type is specified.
- A resource is specified that does not exist.
Location
Start the wsadmin scripting client from the install_root/profiles/deployment_manager_profile/bin directory.
Syntax
modifySCAExportHttpBinding
-moduleName moduleName
-export export_name
[-applicationName applicationName]
[-httpMethods methodName]
[-transferEncoding transferEncoding]
[-contentEncoding contentEncoding]
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
chunkedandidentity. - -contentEncoding contentEncoding
- An indication of how the content that traverses the binding is encoded. Valid values are
gzip,x-gzip,deflate, andidentity.
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.
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.
AdminTask.modifySCAExportHttpBinding('[-moduleName MyMod
-export Export1 -transferEncoding <method1>identity</method1>
-httpMethods [<method1><httpMethod type="GET" pingable="true">
<PingableSettings><ReturnCode>400</ReturnCode></PingableSettings>
</httpMethod></method1>]]')