Re: still having trouble with SOAP
Re: still having trouble with SOAP
- Subject: Re: still having trouble with SOAP
- From: Matt Neuburg <email@hidden>
- Date: Fri, 02 Sep 2005 18:44:44 -0700
On or about 9/2/05 1:45 PM, thus spake "Mark J. Reed" <email@hidden>:
> On 9/2/05, Matt Neuburg <email@hidden> wrote:
>> What I need to form, according to the authorities, is a request that looks
>> like this:
>>
>> POST /WSShakespeare.asmx HTTP/1.1
>> Host: www.xmlme.com
>> Content-Type: text/xml; charset=utf-8
>> Content-Length: length
>> SOAPAction: "http://xmlme.com/WebServices/GetSpeech"
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
>> <soap:Body>
>> <GetSpeech xmlns="http://xmlme.com/WebServices">
>> <Request>string</Request>
>> </GetSpeech>
>> </soap:Body>
>> </soap:Envelope>
>
>> What I'm actually sending (snooped with Interarchy) looks more like this:
>>
>> POST /WSShakespeare.asmx HTTP/1.1
>> User-Agent: Mac OS X; WebServicesCore.framework (1.1.0)
>> Host: www.xmlme.com
>> Content-Type: text/xml
>> Soapaction: "http://xmlme.com/WebServices/GetSpeech"
>> Content-Length: 608
>> Connection: close
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <SOAP-ENV:Envelope
>> xmlns:xsd="http://www.w3.org/1999/XMLSchema"
>> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
>> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
>> <SOAP-ENV:Body>
>> <m:GetSpeech xmlns:m="http://xmlme.com/WebServices">
>> <Request xsi:type="xsd:string">poor and content is rich</Request>
>> </m:GetSpeech>
>> </SOAP-ENV:Body>
>> </SOAP-ENV:Envelope>
>
>
>> Not very much alike, are they?
>
> Actually, they seem identical in every way that counts. I don't see
> any significant differences there:
>
> SOAP doesn't care about user agents; if you're only making one
> request, the Connection: close doesn't change anything; HTTP header
> names are case-insensitive (although values aren't necessarily)...
>
> Other than that, your authoritative example chose the name prefix
> "soap" to associate with the SOAP Envelope namespace, while the XML
> your AppleScript is generating uses "SOAP-ENV" - that's a completely
> cosmetic distinction. The AppleScript XML is also specifying the
> encoding, but that's certainly allowed; it's just optional.
>
> Have you tried using this service from other SOAP client frameworks?
> What exactly happens when you try it from AppleScript?
I've provided the code I'm using; you try it, and tell *me* what happens for
*you*. :)
All I want to know is the correct AppleScript code. I don't care how stupid
I'm being; just help me out by showing me the right code. I'm just not
"getting" AppleScript SOAP - I can't get *any* of the stuff at xmethods to
work with it. Yet people claim it works, so please, prove it to me.
I picked this example because it looks simple and because I can get it to
work from the xmethods "try it" service. m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide -
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Take Control of Word 2004, Tiger, and more -
http://www.takecontrolbooks.com/tiger-customizing.html
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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