Data Flow - From a Job to Petals using Attachments

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (7)

View Page History
h1. Preliminary notes

This use case can only be reproduced with both Talend Open Studio and Talend Integration Suite.
It is an alternative way to undertake what is done in the use cases "Data Flow - From a job to Petals using a tPetalsOutput" and "Data Flow - From a job to Petals using a tBufferOutput".

*/
public static void main( String args[] ) throws Exception {

URL wsdlURL = GeneratedXmlService.WSDL_LOCATION;
if( args.length > 0 ) {
GeneratedXmlService ss = new GeneratedXmlService( wsdlURL, SERVICE_NAME );
GeneratedXmlServicePortType port = ss.getGeneratedXmlEndpoint();

// Activate the MTOM mode
((SOAPBinding) ((BindingProvider) port).getBinding()).setMTOMEnabled( true );
java.util.List<java.lang.String> talendOption = null;
try {
org.ow2.petals.talend.TalendJobOutput result = port.executeJob(
contexts,
inAttachments,
inDataBean,
talendOption );

// Get the output attachment
if( result == null )
try {
is = att.getFileContent().getInputStream();;
fos = new FileOutputStream( new File(
"C:/Documents and Settings/vzurczak/Bureau/outputXml.xml" ));

System.out.println( "Expected exception: TalendTechnicalException has occurred." );
System.out.println( e.toString() );

} catch( TalendBusinessException_Exception e ) {
System.out.println( "Expected exception: TalendBusinessException has occurred." );