|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (5)
View Page HistoryHowever, it is possible to use SoapUI to send or receive messages with attachments. Just make sure the MTOM property is activated.
\\
The first thing to do is to create a service-unit for the Petals-BC-SOAP component, that exposes (consumes) our Talend job as a service outside the bus.
This step is not described here. You can take a look at the Petals-BC-SOAP documentation and the Petals Studio documentation.
Just make sure the SOAP configuration uses the InOut MEP.
This step is not described here. You can take a look at the Petals-BC-SOAP documentation and the Petals Studio documentation.
Just make sure the SOAP configuration uses the InOut MEP.
\\
Then, to generate a client from the WSDL, you can use Apache CXF or Axis2.
As an example, the following code was generated with Apache CXF 2.2.6.
Check the CXF documentation to see how to develop a service consumer in Java.
As an example, the following code was generated with Apache CXF 2.2.6.
Check the CXF documentation to see how to develop a service consumer in Java.
\\
Only the main client class is shown here.
The client's code is the following:
InAttachments ia = new InAttachments();
// Notice: outputLocation is the name of the context in the job.
// Notice: outputLocation is the name of the context in the job.
// The Talend export propagated the name in the service's WSDL.
ia.setOutputLocation( att );
//
//