...
You can deploy Service Units containing a file named xbean.xml for activating consumer and provider endpoints.
This xml file should respect the given syntax, though this is a spring based xml configuration file
See a full example here. Note that you have to define the http namespace with
...
Code Block |
---|
|
<cxfbc:consumer wsdl="/wsdl/calculator.wsdl"
service="calculator:CalculatorService"
endpoint="CalculatorPort"
targetEndpoint="CalculatorPortProxy"
targetService="calculator:CalculatorService"
targetInterface="calculator:CalculatorPortType">
</cxfbc:consumer>
|
Info |
---|
title | Consumer endpoint attributes |
---|
borderStyle | solidbgColor='lighblue' |
---|
|
Name | Type | Description | Required |
---|
wsdl | String | the wsdl will be retrieved from the given location | yes | service | QName | the service name of the proxied endpoint | no (required if the WSDL has more than one service) | endpoint | String | the endpoint name of the proxied endpoint | no (required if the specified service has more than one endpoint) | interfaceName | QName | the interface name of the proxied endpoint | no | targetService | QName | the service name of the target endpoint | no (defaults to the service attribute) | targetEndpoint | String | the endpoint name of the target endpoint | no (defaults to the endpoint attribute) | targetInterfaceName | QName | the interface name of the target endpoint | no | busCfg | String | the spring configuration file used for cxf bus initialization | no | mtomEnabled | boolean | Enable MTOM / attachment support | no (defaults to false) |
|
...
Code Block |
---|
|
<cxfbc:provider wsdl="/wsdl/calculator.wsdl"
locationURI="http://localhost:9001/bridgetest"
service="calculator:CalculatorService"
endpoint="CalculatorPortProxy"
interfaceName="calculator:CalculatorPortType"
>
>
</cxfbc:provider>
|
Info |
---|
title | Provider endpoint attributes |
---|
borderStyle | solidbgColor='lighblue' |
---|
|
Name | Type | Description | Required |
---|
wsdl | String | the wsdl will be retrieved from the given location | yes | service | QName | the service name of the exposed jbi endpoint | yes | endpoint | String | the endpoint name of the exposed jbi endpoint | yes | interfaceName | QName | the interface name of the exposed jbi endpoint | no | locationURI | URI | the http url of the target service | no (if provided the value will override the URL defined in the WSDL) | busCfg | String | the spring configuration file used for cxf bus initialization | no | mtomEnabled | boolean | Enable MTOM / attachment support | no (defaults to false) |
|
...
- service name: {urn:example:stockquote}StockQuoteService
- endpoint name: JBIEndpoint
You can find a WS-Addressing test case here
...