• 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: SOAP Parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SOAP Parameters


  • Subject: Re: SOAP Parameters
  • From: Matt Deatherage <email@hidden>
  • Date: Tue, 24 Jan 2006 13:36:52 -0600

On 1/24/06 at 1:22 PM, Paul Berkowitz <email@hidden> wrote:

> But since any AppleScript integer will also fit the terms of what
> other languages consider a long, any number you coerce 'as integer' -
> if it works - ought be be accepted at the other end as a long, I
> would have thought.

I believe Christian said something backwards a few messages ago:

On 1/24/06 at 3:08 AM, Christian Mittendorf
<email@hidden> wrote:

> Yes, that's wright. However, the SOAP Services that I want to use via
> AS have the following description:
>
>    <wsdl:message name='setService0In'>
>      <wsdl:part name='id' type='xsd:long' />
>      <wsdl:part name='service' type='xsd:string' />
>    </wsdl:message>
>
> If I generate an interface from the WSDL in AS I would call the
> service like this:
>
[...]
>       set params to params & {id:(in_id as integer)}
[...]
> This call will result in an Exception, because the axis soap server
> on the other side requires in_id to be encoded as integer and not as
> long. But AS won't let me use "in_id as long", because AS doesn't
> know about a type "long"...

I think he meant to say "the axis soap server on the other side
requires in_id to be encoded as *long* and not as *integer*."

I believe the problem is that when he creates a record to pass to "call
soap", he can't get AppleScript and/or the SOAP framework to generate
an XML call request that encodes a numeric parameter to use "xsd:long".
 In other words, if "in_id" in the above example was set to 57,
AppleScript would generate something like this in the SOAP request:

> <id type="xsd:integer">57</id>

.but he needs:

> <id type="xsd:long">57</id>

The question is what voodoo magic to use to get AppleScript and/or the
Web Services framework to write a SOAP request such that a given
numeric value is converted to "xsd:long" when written to XML
("serialized").

I have the question, but I have no idea what the answer is.

--Matt

--
Matt Deatherage                              <email@hidden>
GCSF, Incorporated                      <http://www.macjournals.com>

The medicine's working.  Please continue being purple.


 _______________________________________________
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

  • Follow-Ups:
    • Re: SOAP Parameters
      • From: Christian Mittendorf <email@hidden>
References: 
 >Re: SOAP Parameters (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: finding files by name (you know, the old-fashioned way...)
  • Next by Date: Re: finding files by name (you know, the old-fashioned way...)
  • Previous by thread: Re: SOAP Parameters
  • Next by thread: Re: SOAP Parameters
  • Index(es):
    • Date
    • Thread