I’m trying to use AS to retrieve patent data from a European Patent Office web service. The call soap command in the script below, however, returns a ‘No such operation’ error, even though the method name appears to be correct. Here’s the script:
set serviceurl to "http://ops.espacenet.com/OpenPatentServices/webService"
set methodname to "getPatentData"
set namespace to "urn:EPO-OpenPatentServices"
set searchtype to "Biblio"
set querystring to {|SEED|:" US 4000034A#", |SEED_FORMAT|:"D", |SEED_TYPE|:"PN"}
try
using terms from application "http://www.apple.com/placebo"
tell application serviceurl
set xmlresponse to call soap {method name:methodname, method namespace uri:namespace, parameters:querystring, SOAPAction:searchtype}
end tell
end using terms from
return xmlresponse
on error errmesg
display dialog errmesg
end try
The service is confirmed to be working with the generic soap client at http://www.soapclient.com/, which also confirms the method name and service address.
The web service is described at at http://ops.espacenet.com/
General input XML schema is at http://ops.espacenet.com/schema/ops_input.xsd
WSDL for the service is at http://ops.espacenet.com/OpenPatentServices/OpenPatentServices.wsdl
Method name “getPatentData” is confirmed by WSDL Analyzer tool at http://xmethods.net/ve2/Tools.po
But the script gives an error: No such operation ‘getPatentData’, so I can’t get any data back at all.
If anyone can help figure this out, I’d appreciate it!
-PatentMan