|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (11)
View Page History\\
And here is the schema of the output XML. !SchemaXml.jpg!
!SchemaXml.jpg!
Roughly, the differences between the input and the output consist in merging the name and only keeping the clients whose revenue are over 50 K€.
And export the context variable _outLocation_ as a *Parameter and Out-Attachment*.
Here is the export dialog.
!ExcelExport.jpg!
{info}
\\
Since we expect a response, we will call the service with the *InOut* pattern.
Looking at the WSDL, we can also see that only the operation *executJob* is associated with this MEP.
Therefore, it will be the called operation.
\\
Eventually, since we let the end-point be generated by Petals, we do not have to specify an end-point for the service to consume.
In fact, the interface name will be enough. Petals will decide which end-point must be called for this interface.
\\
Since we expect a response, we will call the service with the *InOut* pattern.
Looking at the WSDL, we can also see that only the operation *executJob* is associated with this MEP.
Therefore, it will be the called operation.
\\
Eventually, since we let the end-point be generated by Petals, we do not have to specify an end-point for the service to consume.
In fact, the interface name will be enough. Petals will decide which end-point must be called for this interface.
\\
Here is the jbi.xml for the configuration.
{code:lang=xml}
{code:lang=xml}
<?xml version="1.0" encoding="UTF-8"?>
<tal:executeJob> <!--
JBI descriptor for the Petals' "petals-bc-soap" component (SOAP).
Originally created for the version 4.0 of the component.
-->
<jbi:jbi version="1.0"
Originally created for the version 4.0 of the component.
-->
<jbi:jbi version="1.0"
<tal:contexts/> xmlns:interfaceNs="http://petals.ow2.org/talend/"
<tal:in-attachments/> xmlns:jbi="http://java.sun.com/xml/ns/jbi"
</tal:executeJob> xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5"
xmlns:soap="http://petals.ow2.org/components/soap/version-4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- Import a Service into Petals or Expose a Petals Service => use a BC. -->
<jbi:services binding-component="true">
<!-- Expose a Petals Service => consumes a Service. -->
<jbi:consumes
interface-name="interfaceNs:Customers_3ServicePortType">
<!-- CDK specific elements -->
<petalsCDK:timeout>30000</petalsCDK:timeout>
<petalsCDK:operation xmlns:op="http://petals.ow2.org/talend/">op:executeJob</petalsCDK:operation>
<petalsCDK:mep>InOut</petalsCDK:mep>
<!-- Component specific elements -->
<soap:address>Customers</soap:address>
<soap:remove-root>false</soap:remove-root>
<soap:mode>SOAP</soap:mode>
<soap:rest-add-namespace-prefix>soapbc</soap:rest-add-namespace-prefix>
<soap:enable-http-transport>true</soap:enable-http-transport>
<soap:enable-jms-transport>true</soap:enable-jms-transport>
</jbi:consumes>
</jbi:services>
</jbi:jbi>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- Import a Service into Petals or Expose a Petals Service => use a BC. -->
<jbi:services binding-component="true">
<!-- Expose a Petals Service => consumes a Service. -->
<jbi:consumes
interface-name="interfaceNs:Customers_3ServicePortType">
<!-- CDK specific elements -->
<petalsCDK:timeout>30000</petalsCDK:timeout>
<petalsCDK:operation xmlns:op="http://petals.ow2.org/talend/">op:executeJob</petalsCDK:operation>
<petalsCDK:mep>InOut</petalsCDK:mep>
<!-- Component specific elements -->
<soap:address>Customers</soap:address>
<soap:remove-root>false</soap:remove-root>
<soap:mode>SOAP</soap:mode>
<soap:rest-add-namespace-prefix>soapbc</soap:rest-add-namespace-prefix>
<soap:enable-http-transport>true</soap:enable-http-transport>
<soap:enable-jms-transport>true</soap:enable-jms-transport>
</jbi:consumes>
</jbi:services>
</jbi:jbi>
{code}