Back to this address webservice problem again...

I got the following from support, and their suggestion works fine: I can
simply put "pcaContentStandardAddress" as the value for "content" and it
works fine.

> Have a look at 
> http://services.postcodeanywhere.co.uk/lookup.asmx?op=Address 
> and try it out with your account code, licence key, an 
> address id and one of the content values that are shown lower 
> down on the page.

I tried the URL above and it works fine, but I still can't access the
address() method of the service at
http://services.postcodeanywhere.co.uk/lookup.asmx?wsdl.  Below is a
snippit of the WSDL file generated for that service:

<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, not a plain string.  I'm at a loss as to how to create
an object of this type to pass through?

I don't know if it's CFMX, my code, or their webservice at fault here: I
would hazard a guess that it's not the webservice as I'm sure they've
got others using the service with no problems.  It just seems strange
that I apparently need to create a specific java object type to pass
through...?  I thought the idea of webservices was that it could be
accessed by any language?

Any help greatfully received!  Has anyone got any pointers to somewhere
where there might be someone who would know?

Cheers,

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]

Reply via email to