mokaplanjr
Technical User
A client wants to add a form to their site that will post from the website (CF MX 6.1) to an asp.net web service that resides on their internal network and off the web. The network URL is something like " Why use a web service? I don't know; the site runs on a perfectly good MS SQL Server database and I had recommended saving form data to that, but he insists...
I have looked at examples of cfcomponent and associated tags to create a web service that creates an XML-based FEED for external consumption, but I cannot find a method that POSTS data to another web service. (The best examples are on user-based sites. The ones in the nice expensive books... not so much. They are pretty much a replay of Adobe's KB articles, which leave a lot to be desired.)
If it sounds like I am a bit bumfuzzled here, it's because I am. I haven't had the pleasure of creating a web service with Coldfusion yet, though it looks like a blast.
The way I think it might work is that the form on the website submits to a CF template that uses CFHTTP to forward, using the POST method, the form data to the internal network address (thus hiding the internal network address from the public). There would be no Coldfusion web service. His RECEIVING asp.net script would actually process the data. The worst thing is I don't have direct access (i.e. FTP) to the server (security reasons) and have to send files for them to install and test. So I can't just play around until I find the solution.
Bottom line... can a CF-based web service be made to POST DATA to another web service? If so, can you point me to an example?
I have looked at examples of cfcomponent and associated tags to create a web service that creates an XML-based FEED for external consumption, but I cannot find a method that POSTS data to another web service. (The best examples are on user-based sites. The ones in the nice expensive books... not so much. They are pretty much a replay of Adobe's KB articles, which leave a lot to be desired.)
If it sounds like I am a bit bumfuzzled here, it's because I am. I haven't had the pleasure of creating a web service with Coldfusion yet, though it looks like a blast.
The way I think it might work is that the form on the website submits to a CF template that uses CFHTTP to forward, using the POST method, the form data to the internal network address (thus hiding the internal network address from the public). There would be no Coldfusion web service. His RECEIVING asp.net script would actually process the data. The worst thing is I don't have direct access (i.e. FTP) to the server (security reasons) and have to send files for them to install and test. So I can't just play around until I find the solution.
Bottom line... can a CF-based web service be made to POST DATA to another web service? If so, can you point me to an example?