Page 1 of 1

How to invoke third party SOAP WS without mapping parameters to program variables

Posted: Thu Sep 01, 2016 6:08 am
by dvanoni
Hi everybody!

We are trying to invoke a third party SOAP Web Service using Lansa Integrator.

We have created a "solution" of the type "SOAP Agent Wizard" and we have associated the WSDL. Since we need to map additional information over the ones proposed by the operation selected (in the Operations tab),
is it possible to invoke the WebService without mapping parameters to program variables? I mean I want to create the XML Request by hand and pass it to the Integrator function.

We need to do it because we must add additional information in the XML request about security that are not contained in the WSDL and we cannot find a way to do it with Integrator.

Is there a way to do it?

Thanks

Re: How to invoke third party SOAP WS without mapping parameters to program variables

Posted: Sat Sep 03, 2016 10:31 am
by Stewart Marshall
Not my area of expertise, but I'm told that instead of using the SOAP Agent, you can generate the SOAP XML request using the XML bind wizard.

Use the HTTP + OutboundXMLBindHandler or the HTTPOutboundXMLBindService to create the SOAP XML request to send to the SOAP server and to process the response.

Hope this helps

Re: How to invoke third party SOAP WS without mapping parameters to program variables

Posted: Mon Sep 05, 2016 6:14 am
by alick
Hi,

It is possible to add SOAP header information using Java code.

You can do it via a MessageHandler or a code all in the AGENT_INCLUDE.TXT file.

The AGENT_INCLUDE.TXT file is read when the SOAP Agent Project is being compiled.

/*
Set SOAP Header
*/

com.acme.soap.SOAPAgentStubHelper.setSOAPHeader ( stub, request, user, password, url ) ;

Could you email support and request a sample

Re: How to invoke third party SOAP WS without mapping parameters to program variables

Posted: Mon Sep 05, 2016 4:42 pm
by dvanoni
Thanks for your replies!

I'll let you know if it works.