开发者

ColdFusion 7 Client Calling Asp.NET / WCF Service

开发者 https://www.devze.com 2022-12-18 06:02 出处:网络
ColdFusion 7.0 Client will be passing form data to a asp.net web handler , the handler must parse the form data as present in the Request.contextall this currently being done I now need to incorporate

ColdFusion 7.0 Client will be passing form data to a asp.net web handler , the handler must parse the form data as present in the Request.context all this currently being done I now need to incorporate security between the sender and receiver. The messages must be encrypted and also both the cli开发者_StackOverflow社区ent and the service must mutually authenticate one another. The ColdFusion Client is sending large volumes of data around 150 fields are being passed. How to incorporate security into this mix. Because of client’s ColdFusion 7 my little research did not result in any way to use WCF (more support is provided in ColdFusion 9) maybe some has done this can let me know how to make a WCF call from ColdFusion 7.


Here is a quick and dirty example, it's not different than a web service if the WCF is setup correctly:

<cfscript>
  wcf = CreateObject("webservice","http://ws.spreety.com/TvOnline2009.svc?wsdl");
  variables.TalkShowImgHtml = wcf.GetGenreTalkShowImg("test@spreety.com");
</cfscript>
<cfoutput>#variables.TalkShowImgHtml#</cfoutput>


ColdFusion supports web services. You can therefore have a ColdFusion web service client.

On the server side you can have a WCF service, that uses basicHttpBinding.

For encryption you can use https. The SSL certificate will also authenticate the server.

You can then use certificates on the client side to authenticate the client. (you could also use username and password over SSL.)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号