Skip to Content
author's profile photo Former Member
Former Member

Error in Acrobat JavaScripting

Hello experts,

I'm new to this matter and I'm trying to build in some authentication for consuming web services.

So I build an offline PDF with a SUBMIT button. There is a data connection behind it linked to my WSDL file.

Now, I entered this code to give a default username and password, but there is something wrong.

Please advise.

var cURL = "URL from the WSDL file";

var service = SOAP.connect(cURL);

var oAuthenticator =

{

Username: "username",

Password: "password"

};

Thanks a lot.

Dimitri

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 20, 2009 at 09:22 AM

    Secured WS are still not supported. Have a look at below blog:-

    [Using Web Services with SAP Interactive Forms by Adobe- Overview & Tips|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/8735] [original link is broken] [original link is broken] [original link is broken];

    Chintan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 15, 2009 at 05:15 PM

    Hi Dimitri,

    Chintan's statement is only correct for WSDL-based Data Connections. Using the SOAP Object supports user name/password based authentication. You need to use the request method and not the connect method. See the documentation for the SOAP Object in AcroJS docu.

    You can find a link here in the blog:

    [/people/juergen.hauser2/blog/2007/05/30/useful-documentation-for-developing-interactive-forms|/people/juergen.hauser2/blog/2007/05/30/useful-documentation-for-developing-interactive-forms]

    Regards,

    Juergen

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.