Re: Integrazione API

Roberto Marzialetti <[email protected]>
Newsgroups gmane.comp.cms.cold-fusion.devel.italian
Message-ID <CAH4YkK61ad7z9Dsi0vbuZPwVuo7kmZKmrLyTC6yXc1b=+jq19A@mail.gmail.com>
>
> devo usare cfhhtp in combinazione con cfhhtparam?
>

si. occhio a trimmare prima i dati che invi... :-)

<!--- crei l'xml --->
<cfsavecontent variable="dati>
il-tuo-xml
</cfsavecontent>

<!--- invii --->
<cfhttp url="urlWebservice" method="post" resolveurl="no" charset="utf-8"
result="risposta">
   <cfhttpparam type="header" name="content-type" value="text/xml">
   <cfhttpparam type="header" name="charset" value="utf-8">
   <cfhttpparam type="body" value="#trim(dati)#">
</cfhttp>

<!--- la risposta --->
<cfdump var="risposta">



> mi potete aiutare?
>

comincia, poi bussa quando hai problema :-)

ciao!


>
>  Vittorio Carlo Granata
> [email protected]
>
>
>
>
>
> 




-- 
Roberto Marzialetti
webdeveloper
m. 329 0681847
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.