Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Invoke FormsService using ajax?

Cisco_kidd2
Level 1
Level 1

I'm looking for some help on constructing the soap envelope correctly so that I can make an .ajax type call from a web page to invoke the form service to render a specific form.

The examples provided for invoking the FormsService are .net and Java but I'm looking for something a little more hand-rolled that aren't taking advantage of the exposed APIs.

I'm trying to do something as simple as... but really have no clue what all needs to be included in the envelope.

It feels incomplete but that's why I'm posting... looking for assistance!

var soapRequest = "";

soapRequest += '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"';

soapRequest += 'xmlns:ser="http://adobe.com/idp/services" xmlns:x-="http://xml.apache.org/xml-soap">';

soapRequest += '<soapenv:Body>';

soapRequest += '<ser:renderHTMLForm2>';

soapRequest += '<ser:inFormDoc>';

soapRequest += '<ser:remoteURL>http://localhost:8080/lc/content/xfaforms/profiles/default.html?conten tRoot=/samples/forms&template=Test.xdp</ser:remoteURL>';

soapRequest += '</ser:inFormDoc>';

soapRequest += '<ser:transformTo>HTML4</transformTo>';

soapRequest += '</soapenv:Body>';

soapRequest += '</soapenv:Envelope>';

$.ajax({

     type: "POST",

     url: "http://localhost:8080/soap/services/FormsService?wsdl&lc_version=11.0. 0"

     contentType: "text/xml",

     dataType: "xml",

     data: soapRequest,

     success: processSuccess,

     error: processError

});

I'm interested in doing some testing on the service using SoapUI -- if that's possible also...

Any thoughts on this subject would be greatly appreciated.

0 Replies