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

SOAP work around for Reader?

dhernando
Registered: Feb 1 2008
Posts: 5

Hi,

I'm looking a solution for retrieve a value from a web page, so far I have a button and when I click I use a very simple code:

var myURL = "http://www.joelhainley.com/examples/soap/scramble.wsdl"
var myProxy = SOAP.connect(myURL);
var result = myProxy.getMirror("test");
oText.value = result;

That works perfect in Acrobat 9 but not in Reader, the error message is :
"NotAllowedError: Security settings prevent access to this property or method."

So far all my research point something about a special extended right that I can only do it using a $$$$$ LiveCycle product.

I refuse to think that's the only way I can get the response from the server (or maybe yes and I wasted hours LOL)

Is any other method available that I can use like:
var html = CoolObject.DownloadString("http://www.server.com/test.php?parameter=test")

Thanks for your help

Diego

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There's a real easy way to do this. Use the regular submitForm functionality to send and recieve data to/form a server script. The server script talks to the webservice for you.

Or if it's your webservice. Rewrite it to be a sever script that will talk to PDF.

In Acrobat 9 and later you could use Actionscript in a Rich Media Annot to talk to the webservice.

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

richab84
Registered: Oct 19 2011
Posts: 1
Hello Diego,

I am having the same problem as yours did you happen to find any workaround to fix the problem?

Regards,
Richard.