Hmm, a couple of meek suggestions from support, but nothing concrete...
Taking a snip from the WSDL file:
- <s:element name="Address">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Id" type="s:string"
/>
<s:element minOccurs="0" maxOccurs="1" name="AccountCode"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="LicenseKey"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="Content"
type="s0:pcaContentType" />
</s:sequence>
</s:complexType>
</s:element>
- <s:simpleType name="pcaContentType">
- <s:restriction base="s:string">
<s:enumeration value="pcaContentStandardAddress" />
<s:enumeration value="pcaContentExpandedAddress" />
<s:enumeration value="pcaContentGeographicAddress" />
<s:enumeration value="pcaContentGeographicOnly" />
</s:restriction>
</s:simpleType>
The "id", "accountcode" and "licensekey" params all take in a string
value, but the "content" param takes in a value of the type
pcaContentType. So the question is, how do I create an object of this
type to pass through? Any WSDL/webservice gurus fancy pointing me in
the right direction?
I tried passing just a string variable like "pcaContentStandardAddress"
but I'm still getting back an "argument type mismatch". I'm _assuming_
it's the "content" param that's wrong, but CF doesn't actually tell you
(which is mildly annoying).
Ho hum.
Tim.
-------------------------------------------------------
OUR NEW SITE IS NOW LIVE
Visit our new website at http://www.rawnet.com/ and
race around the beautiful Bracknell streets at
http://xmas.rawnet.com/
-------------------------------------------------------
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0) 1344 393 040
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential. If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------
> -----Original Message-----
> From: Tim Blair [mailto:[EMAIL PROTECTED]]
> Sent: 15 January 2003 18:07
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Webservices + MX
>
>
>
> > hmm, I'm trying the StoredNearest method and am able to
> > successfully interrogate it using the url method through a
> > browser, but not through CFMX, which throws a java type
> > mismatch error.
>
> That's what I'm getting, except I'm trying to use the address() method
> to get an actual address after having selected one from the
> bypostcode()
> method. AFAICS the "content" parameter of the address() needs to be
> passed as a "pcaContentType" object (and likewise, the
> "units" param of
> storednearest() should be of type "pcaUnitType").
>
> These objects are apparently static ones which just contain an
> enumeration defining aliases for the appropriate numbers (e.g. 1 =
> enContentTypeExpandedAddress etc). So you can't just pass a numeric
> value to the method, which is where the type mismatch error is
> occuring...
>
> Now how to get around that, I have no idea. Which is a pain in the
> backside, cos it means I can't get my addresses!
>
> Mail #2 going to support...
>
> Tim.
>
>
> -------------------------------------------------------
> OUR NEW SITE IS NOW LIVE
> Visit our new website at http://www.rawnet.com/ and
> race around the beautiful Bracknell streets at
> http://xmas.rawnet.com/
> -------------------------------------------------------
> Tim Blair
> Web Application Engineer, Rawnet Limited
> Direct Phone : +44 (0) 1344 393 441
> Switchboard : +44 (0) 1344 393 040
> -------------------------------------------------------
> This message may contain information which is legally
> privileged and/or confidential. If you are not the
> intended recipient, you are hereby notified that any
> unauthorised disclosure, copying, distribution or use
> of this information is strictly prohibited. Such
> notification notwithstanding, any comments, opinions,
> information or conclusions expressed in this message
> are those of the originator, not of rawnet limited,
> unless otherwise explicitly and independently indicated
> by an authorised representative of rawnet limited.
> -------------------------------------------------------
>
>
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>
>
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]