• 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
ARRRGH! AppleScript hates me
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ARRRGH! AppleScript hates me


  • Subject: ARRRGH! AppleScript hates me
  • From: Andy Satori <email@hidden>
  • Date: Fri, 17 Jan 2003 16:10:34 -0500

I think AppleScript hates me. This is like the third project in a row that
I've attempted in AppleScript only to be thwarted by the arcane syntax and
lack of debugging facilities.

This time, I have a simple webservice written in C# .NET running on a
Windows XP on my LAN. It's very simple code, it just calls one of my C++
business objects, with the parameters passed in. I have confirmed that it
works from another Windows install (bless you Connectix).

[WebMethod]
public string loginWebTools(string sUser, string sPwd)
{
webtools.users.cUsers cColl = new webtools.users.cUsers();
string sID = cColl.GetUserIDFromLogin(sUser, sPwd);
if (sID != "")
{
webtools.users.cUser clsUser = new
webtools.users.cUser(sID);
return sID;
}
else
{
return "none";
}
}

Nothing complex there.

When trying to call this from AppleScript, I get a successful call. I get a
return of 'none'.

The problem is that when I set the debug in the server I see that my
parameters are both null. Below, you'll find my applescript. This
shouldn't be this complex...

set aUser to "username"
set aPassword to "userpass"

tell application
"http://192.168.0.7/landam/webtoolsII/services/wtlogin.asmx";
set the method_parameters to {{sUser:aUser as string, sPwd:aPassword as
string}}

set returnValue to call soap ,
{method name:"loginWebTools", method namespace
uri:"http://tempuri.org/";, parameters:method_parameters,
SOAPAction:"http://tempuri.org/loginWebTools"}

end tell

Andy Satori
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: ARRRGH! AppleScript hates me
      • From: Jeff Porten <email@hidden>
  • Prev by Date: Desktop printing in OS9
  • Next by Date: Re: Shell scripts
  • Previous by thread: Desktop printing in OS9
  • Next by thread: Re: ARRRGH! AppleScript hates me
  • Index(es):
    • Date
    • Thread