Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Swordfish Documentation: Generating Dynamic WSDL"
(→Generating Dynamic WSDL) |
|||
Line 6: | Line 6: | ||
The examples described here are based on Eclipse Galileo M7. | The examples described here are based on Eclipse Galileo M7. | ||
− | ==About Dynamic WSDL== | + | ==About Dynamic WSDL Generation== |
+ | This feature allows users to access dynamically generated WSDLs for JAX-WS endpoints deployed within the Swordfish.<BR/> | ||
+ | Let's consider the following example:<BR/> | ||
+ | The jaxws endpoint is deployed with the descriptor: | ||
+ | <pre> | ||
+ | <jaxws:endpoint id="bookingService" | ||
+ | implementor="org.eclipse.swordfish.samples.cxf.BookingServiceImpl" | ||
+ | address="nmr:BookingService"> | ||
+ | </jaxws:endpoint> | ||
+ | </pre> | ||
+ | The http endpoint is used to access the jax-ws service externally: | ||
+ | <pre> | ||
+ | <http:endpoint | ||
+ | endpoint="httpConsumerEndpoint" | ||
+ | service="httpConsumerEndpoint" | ||
+ | targetService="swordfishCxf:BookingServiceImpl" | ||
+ | soap="true" | ||
+ | role="consumer" | ||
+ | locationURI="http://0.0.0.0:8192/cxfsample/" | ||
+ | defaultMep="http://www.w3.org/2004/08/wsdl/in-out" /> | ||
+ | </pre> | ||
+ | |||
Revision as of 04:46, 29 May 2009
Generating Dynamic WSDL
This section contains instructions on implementing the dynamic WSDL generation feature.
Prerequisites
Eclipse Galileo M7 build or later. The examples described here are based on Eclipse Galileo M7.
About Dynamic WSDL Generation
This feature allows users to access dynamically generated WSDLs for JAX-WS endpoints deployed within the Swordfish.
Let's consider the following example:
The jaxws endpoint is deployed with the descriptor:
<jaxws:endpoint id="bookingService" implementor="org.eclipse.swordfish.samples.cxf.BookingServiceImpl" address="nmr:BookingService"> </jaxws:endpoint>
The http endpoint is used to access the jax-ws service externally:
<http:endpoint endpoint="httpConsumerEndpoint" service="httpConsumerEndpoint" targetService="swordfishCxf:BookingServiceImpl" soap="true" role="consumer" locationURI="http://0.0.0.0:8192/cxfsample/" defaultMep="http://www.w3.org/2004/08/wsdl/in-out" />