Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

WSDL - Not able to send data with request but able to get the response

Avatar

Former Community Member


Hi All ,


I have created sample Form with WSDL connection.

Form Includes (Developed with LC Designer): -

1. Input field mapped with XML tag Like ID.

2. Output field mapped with XML tag like Name

3. Button (On Click event)

   Calling webservice using the below code

   requestXML.rawValue = xfa.data.saveXML();

   app.alert(requestXML.rawValue);
   try{
   xfa.connectionset.dataconnection1.excute(0)
   }catch (e){
    app.alert(e);
   }
   app.alert(responseXML.rawValue);


while clicking the button , I can able to call the service and get the response.
But the request is always null and not able to send the data.

and the webservice is developed with WCF.

Is any Idea about the issue?

or any other option to call webservice?

Advance Thanks

Dhiyane

4 Replies

Avatar

Former Community Member

Have you bound the text field representing the input to the WebService to the input variable on the WebService data connection?

I am not sure what requestXML and responseXML represent?

Steve

Avatar

Former Community Member

yes .

Here requestXML  and responseXML are input and output to webservice and which are nothing but Textfields.

Avatar

Former Community Member

You are passing a single text field instance to a WebService as an input variable of type XML?