• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Translating XML SOAP terms to AppleScript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Translating XML SOAP terms to AppleScript?


  • Subject: Re: Translating XML SOAP terms to AppleScript?
  • From: Simon Topliss <email@hidden>
  • Date: Fri, 2 Sep 2005 15:01:33 +0100


On 2 Sep 2005, at 14:33, Matt Neuburg wrote:

On Thu, 1 Sep 2005 17:57:05 -0400, Jeff Porten <email@hidden>
said:
Trying to write a script that will communicate with a SOAP server.  I
have the XML for the server, I have the Apple Developer pages, and I
subscribed to Safari Bookshelf mainly to get my hands on Matt's
book.  But I'm reading through all of the above, and I can't figure
out how an XML term (i.e., "<tns:DownloadFileBoth>") translates to
the equivalent AppleScript terminology.

What's really confusing me: when I run my script, what I get back is
the argument to the "call soap" command, verbatim -- e.g., the record
starting with "method name" that I passed.  Using the syntactical
structure directly copied from another working script.

Show code?

Tell what server it is?

Do note, however, that I'm currently not able to get AppleScript SOAP
working with *any* of the servers listed on xmethods.net (this is the
subject of a different current thread), so it may be that it's just broken
at a deep level. m.

Nope. SOAP's working fine on Tiger. Drives our company workflows. Connecting to a MS SQL database thru web services (SOAP).


You should get back an AppleScript Record. If you don't either the server's not setup properly or your script is wrong.

I use the following subroutine...

on soapCall(methodName, methodParams)
try
tell application "http://www.ourwebserver.com/webservice.asmx"; to return call soap {method name:methodName, method namespace uri:"http://www.ourwebserver.com";, parameters:methodParams, SOAPAction:"http://www.ourwebserver.com/"; & methodName}
on error m number n
if n is -916 then
set msg to "The script was unable to establish a connection to the Web Service. The server may be down."
else
set msg to ("" & m & ". [" & n & "].")
end if
display dialog msg
end try
end soapCall


See one of my previous posts re configuring a MS SQL web service so that it works on a mac (i.e. conforms to true 'standard' and not a MS 'standard' ;) ).

http://lists.apple.com/archives/applescript-users/2005/Feb/msg00205.html

HTH,

Simon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Translating XML SOAP terms to AppleScript? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: get selected text of message in Mail?
  • Next by Date: Re: Determining if a scripting addition is installed
  • Previous by thread: Re: Translating XML SOAP terms to AppleScript?
  • Next by thread: Re: get selected text of message in Mail?
  • Index(es):
    • Date
    • Thread