Place the CFC in a folder anywhere in your PC.
Make that folder a Virtual Directory using IIS Mgr.
Once this is done type URl http://yourdomain.com/yourwebservicefolder/cfcservicename.cfc?wsdlin your browser. This will generate the wsdl for the webservice in xml format on the browser.
Save the output as cfcservicename.wsdl . Open the file and look for the path to the CFC. rename the path using your machines IP address.
write a client file in your wwwroot that access this webservice with the following code.
returnvariable="Ret"
webservice="http://yourdomain.com/yourwebservicefolder/cfcservicename.wsdl">
Run this client file once on your coldfusion server.
This will create an entry in the webservices tab of your coldfusion administrator.
Once this entry is made in the administrator you can delete the cfcservicename.wsdl as the client page will be able to access the remote CFC from the .wsdl entry that is registered on the administrator.
Enjoy!
0 comments :
Post a Comment