Hi Yassine,
when invoking a service as a transformer in a Map step the following is true:
- It will only be executed when the output (at least one variable from it) is mapped to the out pipeline of the step
- Only pipeline variables declared as input and output to the services are available inside the service (scoping).
When invoking directly using Invoke step, scoping (if neccessary) needs to be defined manually and all variables present in the pipeline are available inside the service even if this might not be intended as the variables can be modified by the service and this will not be obvious to the calling service as they are not declared as input/output.
About the performance:
Invoking as transformer will be a little bit faster than invoking direclty, but this also depends on the complexity of the service being called.
Regards,
Holger
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods