These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

cannot access the web service methods

Try88
Registered: Dec 3 2009
Posts: 3

i have created a form in one button event which creates the connection to a web service.when a connection is created it is returning proxy object but it's giving following error when im trying to access the web service method

myProxy.GetDN is not a function
7:AcroForm:Submit:Annot1:MouseUp:Action1Exception in line 7 of function top_level, script AcroForm:Submit:Annot1:MouseUp:Action1

can any one help me out

thank you

My Product Information:
Acrobat Pro 9.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
So you are using the SOAP object and the "connect" method? Then when you call the "GetDN" function it returns this error? do an object dump on the proxy object that's returned and see what's in there. It may no be being created correctly. Try using the "request" fucntion to see how it works

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Try88
Registered: Dec 3 2009
Posts: 3
thanx for your reply.Yeah iam using "connect" function.
iam very new to acrobat javascript.
can you please tell me how to do object dump?

and yeah iam trying through request method too but iam getting following error
NetworkError: A network connection could not be created
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The JavaScript object returned by SOAP.connect() contains a function for each method in the WSDL file. You can write some code in the Acrobat Console window that will loop through all the members of the object and print out the names in the console.
   var myProxy = SOAP.connect(...);for(var nm in myProxy)console.println(nm);

This will tell you the name of all the proxy functions.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script