what's difference between context.invoke and com.wm.app.b2b.server.Service.doInvoke

I saw these two kinds of invoking flow services at difference places. My guess is context.invoke is used for clients outside of webMethods. and Service.doInvoke is used for building webMethod java services. Is my guessing right?

Service.doInvoke can be used to call a flow service within a java service

For eg:, Service.doInvoke(“pub.flow”,“debugLog”, input);

context.invoke - I will check and tell you what it is :slight_smile:

For more information refer webMethods JAVA API.

-HTH

The context class requires you to establish a connection to webMethods server before invoking the invoke method. Also the services called from context.invoke are not submitted from webMethods guaranteed delivery

1 Like