|
Re: Manually add external WSDL invocation to existing BEPL stub [message #1080094 is a reply to message #1079360] |
Mon, 05 August 2013 13:08 |
Juergen Schumacher Messages: 35 Registered: July 2009 |
Member |
|
|
Hello,
Am 05.08.2013, 14:13 Uhr, schrieb Missing name Mising name
<forums-noreply@xxxxxxxx>:
> Hello:
>
> Now, I wish to add the invocation of the say_hello function described in
> the WSDL to an existing BEPL stub (both files are attached).
>
> Unfortunately, this rather common use-case is not covered by the SMILA
> help on
> http://wiki.eclipse.org/SMILA/Documentation/BPEL_Workflow_Processor and
> I think any solution/how-to on this would be a very useful addition.>
Actually, though it may look like a common use-case it is not done very
often (at
least in our applications) because it's quite awkward to copy the results
from a
webservice into the SMILA record structure in BPEL using XML manipulation.
It's
often easier to write a pipelet that invokes the webservice and do the
result
evaluation in Java (at least for me). There is a How-To on this at
http://wiki.eclipse.org/SMILA/Documentation/HowTo/How_to_integrate_the_HelloWorld_webservice_as_a_Pipelet.
However, if you really want to do this in native BPEL, you can have a look
at
the org.eclipse.smila.processing.bpel.test bundle which is part of the
SMILA source
code. It contains a test case
org.eclipse.smila.processing.bpel.test.TestHelloWorldPipeline,
that calls a HelloWorld-webservice deployed locally in the SMILA test
environment
via the BPEL process in
configuration/org.eclipse.smila.processing.bpel/pipelines/helloworldpipeline.bpel.
The necessary WSDL and XSD files are also located in this directory.
Finally, ODE's deploy.xml
file must have some extra lines to define the partner link:
<process name="proc:HelloWorldPipeline">
<in-memory>true</in-memory>
<provide partnerLink="Pipeline">
<service name="proc:HelloWorldPipeline" port="ProcessorPort" />
</provide>
<invoke partnerLink="HelloWorld">
<service name="hw:HelloWorldService" port="HelloWorldPort" />
</invoke>
</process>
Hope this helps (;
Regards,
Juergen
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06055 seconds