Skip to main content
Participant
June 2, 2008
Question

How to create synchronous interface in web service using CFM

  • June 2, 2008
  • 3 replies
  • 932 views
Im totally new to create Webservice in Cold fusion 8 as well as to create synchronous interface in web service.
Will you please tell me and give me a Code of how to create synchronous interface in web service using CFM. It is too much urgent for my job please.
This topic has been closed for replies.

3 replies

Participating Frequently
June 4, 2008
RPC style is the default in ColdFusion services. You dont have to do anything to make your services RPC style.

On the other hand, to publish CFCs as document-literal style web services, specify cfcomponent style="document". And you do this explicitly.

For the record, RPC and Document styles are WSDL XML standards that ColdFusion can generate, both without any tricky codes.
Inspiring
June 2, 2008
RahimSharif wrote:
> Will you please tell me and give me a Code of how to create synchronous
> interface in web service using CFM. It is too much urgent for my job please.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=webservices_17.html

Participating Frequently
June 2, 2008
I suggest you read documentation. Its very well written.

You need to create coldfusion components. A component is file with .CFC extension. You can expose functions you create in the component as web methods by specifying access=remote.

Participant
June 3, 2008
Thank you very much for your prompt support ..
One thing you did not mention that it is a synchronous interface or what???
When im creating a webservice.. is it by default a "synchronous interface" ???

If not then how i'll make a "synchronous interface for web service"
Inspiring
June 3, 2008
As I understand and I 'm not nearly a guru if you use access=remote on your cfc then that makes it Asynchronous.

so like this using returntype=any as it is a webservice, name because it is required, access remote as it is a webservice:

<cfcomponent name="rahim" hint="asynchronous cfc">
<cffunction name="rahimwebservice" returnType="any" access="remote"> </cffunction>
</cfcomponent>

Using asynchronous CFCs

ColdFusion provides an event gateway that lets you send a message to a CFC asynchronously. This gateway lets you initialize processing by a CFC without waiting for the CFC to complete or return a value. You can use asynchronous CFCs that use this gateway for the following:

Reindexing a Verity collection
Logging information
Running batch processes
For more information on using asynchronous CFCs, see About event gateways.