WL.Server.invokeProcedure calls GET/POST method

208 Views Asked by At

We are using WL.Server.invokeProcedure to call procedure between two Javascript adapters. Basically we are doing adapter mashup.

How Mobilefirst calls WL.Server.invokeProcedure procedure either GET or POST.

responseData = WL.Server.invokeProcedure({
    adapter: "ServiceAdapter",
    procedure: "storeDocuments",
    parameters: [params],
});

The above code doesn't have method parameter. We are facing issue for large payload where procedure calling fails for large JSON parameter object.

Is there any other way to pass large payload.

1

There are 1 best solutions below

0
Vivin K On

When adapter mashup happens, adapter1 constructs a REST url of adapter2 and fires it. This call will reach adapter2 as if originating from an external client.

You can try out the JNDI property mfp.adapter.invocation.url and set a local url here , such that REST call stays internal to the system . This way the calls should execute faster and you should be able to carry more payload.

Set the JNDI property with a locally accessible URL including the context root.

For example:

mfp.adapter.invocation.url="http://localhost:9080/mfp"

Modify the value to suit your environment.

More details here.