<action name="soap-wise-client-action" class="org.jboss.soa.esb.actions.soap.wise.SOAPClient"> <property name="wsdl" value="http://host:8080/OrderManagement?wsdl"/> <property name="SOAPAction" value="http://host/OrderMgmt/SalesOrder"/> <property name="wise-config"> <wise-property name="wise.tmpDir" value="/tmp" /> <wise-property name="wise.jaxb.bindings" value="some.xjb,additional.xml" /> </property> </action>
Table 13.30. SOAPClient Optional Properties
The WSDL to be used.
The name of the operation as specified in the webservice WSDL.
The endpoint operation, now superseded by operationName.
The endpoint invoked. Webservices can have multiple endpoints. If it's not specified, the first name in wsdl will be used.
Specifies a Smooks config file to define the Java-to-Java mapping defined for the request.
Specifies a Smooks config file to define the Java-to-Java mapping defined for the response.
A symbolic service name used by Wise to cache object generation and/or use already generated object. If it isn't provided, Wise uses the servlet name of wsdl.
Username used if the webservice is protected by BASIC Authentication HTTP.
Password used if the webservice is protected by BASIC Authentication HTTP.
It's often necessary to be able to transform the SOAP request or response, especially in header. This may be to simply add some standard SOAP handlers. Wise supports JAXWS SOAP Handler, both custom or a predefined one based on Smooks.
Transformation of the SOAP request (before sending) is supported by configuring the SOAPClient action with a Smooks transformation configuration property.
It's also possible to provide a set of custom standard JAXWS SOAP Handler. The parameter accept a list of classes implementing SoapHandler interface. Classes have to provide a fully qualified name and be separated by semi-columns.
It's useful for debugging purposes to view the SOAP messages sent and the response received. Wise achieves this goal using a JAX-WS handler which prints all messages exchanged on System.out. Boolean value.
A list of wise-property elements that can be used to configure Wise client. The wise-property element consists of name and value attributes. A special ESB property wise.jaxb.bindings can be used to specify JAXB customizations. It accepts a comma -eparated list of resource names included in the ESB archive.
- Print "WARN [SOAPClient] Received status code '500' on HTTP SOAP (POST) request to..."
- Ignore the fault and just continue to the next action.
- As a map instance set on the default body location
- As a map instance set on in a named body location
(Message.getBody().add(String, Map)), where the name of that body location is specified as the value of the "get-payload-location" action property.
- With a set of objects that are accessed (for SOAP message parameters) using the OGNL framework.
- With a set of String based key-value pairs(<String, Object>), where the key is an OGNL expression identifying the SOAP parameter to be populated with the key's value.