cancel
Showing results for 
Search instead for 
Did you mean: 

not able to consume ABAP Web Service in Adobe Live Cycle 8.1

Former Member
0 Kudos

I would like to call an ABAP WS using JavaScript to return complex structures that I would like to manage directly with JS.

I tried with this code and I get the error "RaiseError: Acrobat Raise." when the request is executed:

 
var WSUrl = "http://<server>:<port>/sap/bc/srt/wsdl/bndg_4D15C75529330AF1E10000000A150429/wsdl11/allinone/ws_policy/document?sap-client=500";
var VendorNumber = xfa.form.DATA.DATAFLOW.SF_HEADER.VENDOR_NUMBER.rawValue;

try {
// Create request structure, read Input out of text field
var request = { 
		"urn:sap-com:document:sap:soap:functions:mc-style:ZWsTest" : {ILifnr: VendorNumber}
				}; 
SOAP.wireDump = true; 
// Call web service using SOAP object 
var response = SOAP.request ({ 
        cURL: WSUrl, 
        oRequest: request
//        cAction: "urn:sap-com:document:sap:soap:functions:mc-style"
});

} catch (e) {
    xfa.host.messageBox(e.toString()); //pop-up "TypeError:service.CelsiusToFahrenheit is not a funciton"
}

with this other code I get the error "SOAPError: CX_ST_MATCH_ELEMENT:XSLT exception.System expected element 'ILifnr'":


try {
    var myProxy = SOAP.connect(WSUrl);

    var result = myProxy.ZWsTest( { ILifnr: VendorNumber } );

    xfa.form.DATA.DATAFLOW.SF_HEADER.E_DESCRIPTION.rawValue = result;

// Display the response in the console:
   console.println("Result is " + result);

} catch (e) {
    xfa.host.messageBox(e.toString()); //pop-up "TypeError:service.CelsiusToFahrenheit is not a funciton"
}

in the second option, if I make the field ILifnr optional the call is succesfully performed but the parameter is not passed to the WS. So the call is working.

Using stand-alone LiveCycle designer 8.1 and Adobe Reader 8

Is the SOAP API full suported using LC?

Any suggestions?

Many thanks,

G.

Accepted Solutions (0)

Answers (1)

Answers (1)

darren_bambrick2
Active Participant
0 Kudos

Hi

I have the exact same issue.

Did you solve this ?

former_member198445
Participant
0 Kudos

Hi,

I tried using SOAP.Connect too..

But I am facing the same problem.

Any solution found yet?

Rgerads, Amith