views:

556

answers:

1

Quick note: any links in this document with a space after the "http" is just because I'm a new member, which apparently means I can't post more than one hyperlink. I don't actually have this space in my code.

I'm trying to use Acrobat javascript in Adobe Acrobat to communicate with a web service. Specifically what I'm trying to do is to retrieve a WSDL document, and then list the supported methods based on this document. I've managed to get this working with the Ebay WSDL document located at http ://developer.ebay.com/webservices/latest/ebaySvc.wsdl (it's quite large for anybody thinking of looking at it). My problem though is that the same process doesn't seem to be working with any other WSDL documents I'm trying. Here's the code that I've been issuing through the Adobe Acrobat Javascript Debugger to get it working with the Ebay WSDL:

// make a proxy from the WSDL document
var myProxy = 
SOAP.connect("http ://developer.ebay.com/webservices/latest/ebaySvc.wsdl");

// display the methods supported based on the retrieved WSDL
for(var i in myProxy) console.println(i);

This outputs all the supported methods like:
AddDisputeResponse
AddFixedPriceItem
AddItem
AddItemFromSellingManagerTemplate
AddItems ... etc etc

When I go to use a different WSDL document though, such as the one located at http://www.whitemesa.com/interop/InteropTestB.wsdl, it doesn't work. So for example, the following code:

// make a proxy from the WSDL document
var myProxy = 
SOAP.connect("http ://www.whitemesa.com/interop/InteropTestB.wsdl");

// display the methods supported based on the retrieved WSDL
for(var i in myProxy) console.println(i);

It doesn't output any error messages, I just get "undefined" printed out, which I believe indicates that it hasn't been able to read in any methods.

The third .wsdl file I've tried has been one that gets automatically generated as a part of a WCF service I made (so like http ://localhost:8731/Design_Time_Addresses/EvalServiceLibrary/Service1/?wsdl). I tested this WCF service using the Visual Studio 2008 Test Client and WCF Service Host and it worked fine there. Unfortunately the same problem in Acrobat though with this file where it simply outputs "undefined" when I try to list the supported methods through Acrobat javascript like that listed above.

I've had a look at the WSDL files, but I'm no expert on SOAP/WSDL and so I'm having trouble finding exactly what it is that makes the Ebay WSDL work and the other two not work. Is there any quirks about the Acrobat Javascript that would make the code I've listed work with some WSDL files but not others?

A: 

Check out your url. "http ://" replace with "http://"

Orion
Please see first sentence of my question.
Bryce Thomas