Yes, literally millions of examples.

However, this morning I've committed a first draft of the service in svn so I'd suggest you to update your local copy with a clean trunk and then you can test it, for example, in this way:

//============================
Map screenInMap = UtilMisc.toMap("orderId", orderId);
Map inMap = UtilMisc.toMap("screenLocation",
"component://order/widget/ordermgr/OrderPrintForms.xml#OrderPDF",
"printerName", "//server/printer",
"userLogin", userLogin,
"screenContext", screenInMap);

dispatcher.runAsync("sendPrintFromScreen", inMap);
//============================

A quick way to run this code is to copy it at the bottom of a bsh script, for example:
applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/WorkWithShipmentPlans.bsh

then you'll submit the service call every time you'll visit the page:

https://localhost:8443/manufacturing/control/WorkWithShipmentPlans

You can edit the bsh script without the need to build and restart the server.

Jacopo


Scott Gray wrote:
I think it's a LocalDispatcher, but don't quote me on that.  Anyway there's
a million examples in code, just search for runSync


On 20/03/07, David Shere <[EMAIL PROTECTED]> wrote:

Thanks!  That's the line I was missing.  I must ask, though, what class
is "dispatcher" and how do I construct it?

(I think I was dealing with ServiceXaWrapper)

Scott Gray wrote:
> Map results = dispatcher.runSync("myService", inputMap);




Reply via email to