Petals-BC-SOAP 4.x

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (82)

View Page History

{column}
{column:width=305%}
{panel:title=Table of contents}{toc}{panel}
{panel:title=Contributors}{contributors:order=name|mode=list}{panel}
In provide mode, the component exposes an external Web Service in the JBI environment to send SOAP requests to the external Web Service.



h2. Usage


The SOAP component can expose an external Web Service as a JBI service endpoint by deploying a Service Unit on it:
\\
\\
{center}
*Provides an external Web Service as a JBI service*
\\
{center}{*}Configuration of a Service Unit to provide a service (SOAP)*{center}
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}

|| Parameter || Description || Default || Required ||
| soap-version | The SOAP version used to create SOAP messages. \\
Possible values are 1.1 and 1.2. | {center}1.1{center} 1.1 | {center}Yes{center} Yes |
| address | Address of the external Web Service to send JBI messages to. | {center}\-{center} \- | {center}Yes{center} Yes |
| chunked-mode | Activate the HTTP chunked mode on Web Service calls. \\
Possible values are: true, false. | {center}false{center} false | {center}Yes{center} Yes |
| synchronous-timeout | The timeout value when invoking an external service. \\ {info:title=Note}This value overrides the CDK value.{info} \\
The value is expressed in milliseconds. It must be provided in multiples of 100. | {center}30000{center} 30000 | {center}No{center} No |
| cleanup-transport | Cleanup the transport after the call of the external Web Service. \\
Not cleaning up the transport can cause timeouts on large number of calls. \\
Possible values are: true, false. | {center}true{center} true | {center}Yes{center} Yes |
| mode | The mode to be used to send SOAP message to the specified address. \\
Possible values are: SOAP for basic Web Service calls, JSON for JSON service calls and REST for REST service calls. | {center}SOAP{center} SOAP | {center}Yes{center} Yes |
| enable-compatibility-for | Enables the compatibility with a specified Web Service stack. \\
Possible values are: AXIS1 for Axis1 Web Service stack. | {center}\-{center} \- | {center}No{center} No |
| proxy-host | The proxy host name. \\
If it is not set, the proxy mode will be disabled and all others proxy parameters are ignored. | {center}\-{center} \- | {center}No{center} No |
| proxy-port | The proxy host port. | {center}\-{center} \- | {center}No{center} No |
| proxy-user | The proxy user. | {center}\-{center} \- | {center}No{center} No |
| proxy-password | The proxy password. | {center}\-{center} \- | {center}No{center} No |
| proxy-domain | The proxy domain. | {center}\-{center} \- | {center}No{center} No |
{table-plus}

{petalslink}
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}

|| Parameter || Description || Default || Required ||
| wsa-to | Default address of the external Web Service to send JBI messages to. | {center}\-{center} \- | {center}No{center} No |
| wsa-replyto | Address of an external Web Service to add to the WSA header wsa:ReplyTo. | {center}\-{center} \- | {center}No{center} No |
| wsa-from | Address of an external Web Service to add to the WSA header wsa:From. | {center}\-{center} \- | {center}No{center} No |
| wsa-faultto | Address of an external Web Service to add to the WSA header wsa:FaultTo. | {center}\-{center} \- | {center}No{center} No |
| headers-filter | A value used to filter Normalized Message properties to be added to the outgoing SOAP message. All the normalized message properties which are org.w3c.dom.DocumentFragment instances. These values can be filtered at the Service Unit level with the headers-filter property. If the headers-filter property is set to 'org.ow2.petals.foo.*,* org.ow2.petals.soap.bar', all the DocumentFragment properties which are starting with 'org.ow2.petals.soap.foo.' and with 'org.ow2.petals.soap.bar' will be added to the outgoing SOAP Headers (as children). | {center}\-{center} \- | {center}No{center} No |
| inject-headers | Inject some additional headers to the outgoing SOAP message. All the elements of the org.w3c.dom.DocumentFragment Map which is available in the javax.jbi.messaging.protocol.headers message properties will be added if the Service Unit level property inject-headers is set to true. | {center}\-{center} \- | {center}No{center} No |
| headers-to-inject | Set of XML headers (CDATA) to be injected into the outgoing SOAP message (in SOAP Headers). | {center}\-{center} \- | {center}No{center} No |
{table-plus}
{petalslink}
\\
{center}{*}Configuration of a Service Unit to consume a service (SOAP)*{center}
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}







|| Parameter || Description || Default || Required ||
| service-name | Web Service name to expose. | {center}\-{center} \- | {center}No{center} No |
| soap-action | The SOAP action QName to be used for the Web Service, will override the JBI message operation. | {center}\-{center} \- | {center}No{center} No |
| synchronous-timeout | The timeout value when invoking a service in the JBI bus. \\ {info:title=Note}This value overrides the CDK value.{info} \\
The value is expressed in milliseconds. | {center}\-{center} \- | {center}No{center} No |
| mode | The mode to be used to receive messages. \\
Possible values are: SOAP for basic Web Service messages, JSON for JSON service messages and REST for REST service messages. | {center}SOAP{center} SOAP | {center}Yes{center} Yes |
| enable-compatibility-for | Enables the compatibility with a specified Web Service stack. \\
Possible values are: AXIS1 for Axis1 Web Service stack. | {center}\-{center} \- | {center}No{center} No |
| enable-http-transport | Enable the HTTP transport layer to send or receive SOAP messages. \\
Possible values are: true, false. | {center}true{center} true | {center}No{center} No |
| enable-jms-transport | Enable the JMS transport layer to receive SOAP messages. \\
Possible values are: true, false. | {center}false{center} false | {center}No{center} No |
| http-services-redirection | HTTP redirection alias(es) for exposed Web Service. | {center}\-{center} \- | {center}No{center} No |
| address | Same as service-name. \\ {warning:title=Warning}This parameter must not be used any more. service-name must be used.{warning} | {center}\-{center} \- | {center}No{center} No |
{table-plus}

{petalslink}
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}







|| Parameter || Description || Default || Required ||
| service-parameters | Additional XML configuration for created Axis2 service as CDATA, same as the Axis2 services.xml file one. | | {center}No{center} No |
| modules | A list of Axis2 modules names to engage (separated by comas). | | {center}No{center} No |
{table-plus}
{petalslink}


h3. Service Unit content

* The META-INF/jbi.xml descriptor file as described above


h1. Provide a REST Service access in the ESB

{warning}


h2. Usage


The petals-bc-soap component can expose an external Web Service as a JBI service endpoint by deploying a Service Unit on it:

\\
{center}{*}Configuration of a Service Unit to provide a service (REST)*{center}
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}







|| Parameter || Description || Default || Required ||
| address | Address of the external Web Service to send JBI messages to. | {center}\-{center} \- | {center}Yes{center} Yes |
| synchronous-timeout | The timeout value when invoking an external service. \\ {info:title=Note}This value overrides the CDK value.{info} The value is expressed in milliseconds. It must be provided in multiples of 100. | 30000 | {center}No{center} No |
| mode | The mode to be used to send SOAP message to the specified address. \\
Possible values are: SOAP for basic Web Service calls, JSON for JSON service calls and REST for REST service calls. | {center}SOAP{center} SOAP | {center}Yes{center} Yes |
| rest-http-method | The HTTP method to be used in REST mode. \\
Possible values are: GET for the HTTP method GET, POST for the HTTP method POST, PUT for the HTTP method PUT and DELETE for the HTTP method DELETE. | {center}POST{center} POST | {center}No{center} No |
{table-plus}


{petalslink}
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}







|| Parameter || Description || Default || Required ||
| wsa-to | Default address of the external Web Service to send JBI messages to. It is the same use than soap:address for the REST mode and it is overridden by soap:address if the both are specified. | | {center}No{center} No |
{table-plus}
{petalslink}
\\
{center}{*}Configuration of a Service Unit to consume a service (REST)*{center}
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}







|| Parameter || Description || Default || Required ||
| service-name | Web Service name to expose. | {center}\-{center} \- | {center}No{center} No |
| synchronous-timeout | The timeout value when invoking a service in the JBI bus. \\ {info:title=Note}This value overrides the CDK value.{info}The value is expressed in milliseconds. | {center}\-{center} \- | {center}No{center} No |
| mode | The mode to be used to receive messages. \\
Possible values are: SOAP for basic Web Service messages, JSON for JSON service messages and REST for REST service messages. | {center}SOAP{center} SOAP | {center}Yes{center} Yes |
| http-services-redirection | HTTP redirection alias(es) for exposed Web Service. | {center}\-{center} \- | {center}No{center} No |
| address | Same as service-name. \\ {warning:title=Warning}This parameter must not be used any more. service-name must be used.{warning} | {center}\-{center} \- | {center}No{center} No |
| {anchor:rest-add-namespace-uri}rest-add-namespace-uri | The namespace URI to be used in the the generated JBI message payload (cf [rest-add-namespace-prefix extension|petalsesb:Petals-BC-SOAP 4.x#rest-add-namespace-prefix] for the example). | {center}\-{center} \- | {center}No{center} No |
| {anchor:rest-add-namespace-prefix}rest-add-namespace-prefix | The namespace prefix to be used in the the generated JBI message payload (used when [rest-add-namespace-uri extension|petalsesb:Petals-BC-SOAP 4.x#rest-add-namespace-uri] is defined). \\
Suppose that the XML message obtained from the URL parameters or from the HTTP body is:
<ns1:param2>value2</ns1:param2>
</ns1:myOperation>
{code} | {center}soapbc{center} | {center}No{center} |
{code} | soapbc | No |
| rest-remove-prefix-on-response | A list of NS prefixes to remove from the JBI message response (Coma Separated Values) \\
Suppose that the JBI service returns a JBI response like:
<param3>value3</param3>
</Response>
{code} | {center}\-{center} | {center}No{center} |
{code} | \- | No |
{table-plus}

{petalslink}
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}







|| Parameter || Description || Default || Required ||
| service-parameters | Additional XML configuration for created Axis2 service as CDATA, same as the Axis2 services.xml file one. | \- | {center}No{center} No |
| modules | A list of Axis2 modules names to engage (separated by comas). | \- | {center}No{center} No |
{table-plus}
{petalslink}
\\
{center}{*}Configuration of the component (SOAP)*{center}
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}







|| Parameter || Description || Default || Required ||
| http-port | Port of the embedded Jetty HTTP server. | {center}8084{center} 8084 | {center}No{center} No |
| http-host | Local Hostname to be used, can be hostname or host IP address. \\
If this parameter is not set, all interfaces are listen. | {center}localhost{center} localhost | {center}No{center} No |
| http-service-list | Enables to display the available Web Service list on http://<http-host>:<http-port>/ \\
<http-service-context>/<http-service-mapping>/listServices. \\
Possible values are: true, false. \\ | {center}true{center} true | {center}No{center} No |
| http-service-context | The URL context. | {center}petals{center} petals | {center}No{center} No |
| http-service-mapping | The URL service mapping. | {center}services{center} services | {center}No{center} No |
| http-thread-pool-size-min | The minimum size of the HTTP thread pool. | {center}2{center} 2 | {center}No{center} No |
| http-thread-pool-size-max | The maximum size of the HTTP thread pool. | {center}255{center} 255 | {center}No{center} No |
| http-acceptors | Number of HTTP acceptors. | {center}4{center} 4 | {center}No{center} No |
| java-naming-factory-initial | The initial context factory class needed to access the JNDI server where the JMS connection factory can be found. | {center}\-{center} \- | {center}No{center} No |
| java-naming-provider-url | The JNDI provider URL where the JMS connection factory can be found. | {center}\-{center} \- | {center}No{center} No |
| jms-connection-factory-jndiname | Name of the default JMS connection factory in the JNDI. | {center}\-{center} \- | {center}No{center} No |
{table-plus}