Hi, I know this has come up b4, but I'm getting funny characters coming out of strings in MX (i.e. ' comes out as weird things with accents etc) -- what's the solution for it, summit to do with the encoding...??
----- Original Message ----- From: "Douglas Humphris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 15, 2003 3:18 PM Subject: RE: [ cf-dev ] Passing ENUMs when calling a webservice Hi, OK I saved the WSDL file locally (postcodeanywhere.xml) and changed the parameters to accept a string: <s:element minOccurs="1" maxOccurs="1" name="Language" type="s:string" /> <s:element minOccurs="1" maxOccurs="1" name="ContentType" type="s:string" /> and added a URI into the definition to point it to the webservice: <definitions uri=http://services.postcodeanywhere.co.uk/uk/lookup.asmx then I called the local WSDL file and it WORKS! <cfinvoke webservice="http://localhost/postcodeanywhere.xml" It's not a very pretty solution and I'm not yet decided whether to use it or use the cfhttp post, but it's good to know that the reason it failed was because of the enumeration parameter types and just by manually changing them to string solves the problem. As a general point, ColdFusion still isn't up to speed on webservices which is a bit disappointing, and if you're thinking of using a webservice in a CF solution I would double check that it all works before committing to it. Douglas -----Original Message----- From: Douglas Humphris [mailto:[EMAIL PROTECTED] Sent: 15 August 2003 14:48 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Passing ENUMs when calling a webservice Thanks Tim, I was just about to revert to using cfhttp post, but I've had a thought that I could save the WSDL locally and manually change the ENUMs to strings, then call that. I'll let you know if it works. Cheers, Douglas -----Original Message----- From: Tim Blair [mailto:[EMAIL PROTECTED] Sent: 15 August 2003 14:37 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Passing ENUMs when calling a webservice > I'm having problems trying to call the PostCodeAnywhere > webservice I had the exact same problem a few months ago and unfortunately never solved it. :( I spent a good couple of days searching all over the shop for info and trying all the different ways I could think of to pass the values of the correct type. I even had the PCA developers on the case and they couldn't help either. Getting the list of addresses under a postcode is fine but it's when you go to use the ByPostcode() function that it goes wrong. I ended up using a cfhttp post to get the actual XML address data. No help I know... Sorry. :o\ Tim. ------------------------------------------------------- RAWNET LTD - Internet, New Media and ebusiness Gurus. Visit our new website at http://www.rawnet.com for more information about our company, or call us free anytime on 0800 294 24 24. ------------------------------------------------------- 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] -- ** 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]