• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFHTTP versus CFINVOKE

Contributor ,
Apr 10, 2007 Apr 10, 2007

Copy link to clipboard

Copied

Working on a site that is changing hosting companies and I found out that the new host doesn't allow CFINVOKE. So is it possible to change to CFHTTP using the same information such as URL for WSDL page?
TOPICS
Advanced techniques

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 10, 2007 Apr 10, 2007

Copy link to clipboard

Copied

Dinghus wrote:
> Working on a site that is changing hosting companies and I found out that the
> new host doesn't allow CFINVOKE. So is it possible to change to CFHTTP using
> the same information such as URL for WSDL page?
>
Potentially depending on the complexity of the web service. I'm not
sure how complex a web service cfhttp can handle, but I've used it quite
successfully for basic, well defined web services such as RSS feeds.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 10, 2007 Apr 10, 2007

Copy link to clipboard

Copied

I guess the real problem is sending the request. Instead of CFINVOKE with the parameters looks like I have to change over to SOAP. Could be fun.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 10, 2007 Apr 10, 2007

Copy link to clipboard

Copied

I've used CFHTTP to consume web services in older versions of CF... its pretty straightforward. Using the built-in SOAP functions in CF just reduces the complexity of it. Basically all you have to do is generate your request SOAP/XML document and save it into a CF variable using either the CFXML or CFSAVECONTENT tags and invoke the CFHTTP call with CFHTTPPARAM's to change the mime-type to text/xml and the message body as the saved SOAP/XML variable.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 10, 2007 Apr 10, 2007

Copy link to clipboard

Copied

joeDangelo wrote:
> I've used CFHTTP to consume web services in older versions of CF... its pretty
> straightforward. Using the built-in SOAP functions in CF just reduces the
> complexity of it. Basically all you have to do is generate your request
> SOAP/XML document and save it into a CF variable using either the CFXML or
> CFSAVECONTENT tags and invoke the CFHTTP call with CFHTTPPARAM's to change the
> mime-type to text/xml and the message body as the saved SOAP/XML tag.
>

That sounds like a very interesting technique. Could you provide a two
bit example?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 10, 2007 Apr 10, 2007

Copy link to clipboard

Copied

LATEST
Well, that is what I'm trying to do. If there is an easier way, I'd love to hear it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation