Thanks for the help, Bruce D., Matt and Bruce P.

Well I've spent some time with this and have been able to finally figure out that the 
usual examples of consuming web services are painfully trivial. Most of the examples 
return a single value usually as an intrinsic type such as string or double.

Not very useful for returning say a recordset to be converted into a coldfusion query. 

The approaches that I was able to make work were to have the webservice return an xml 
representation of the dataset as a string and to build a custom data structure to hold 
a record from the dataset and then return the collection of custom data structures as 
an array.

Both require the coldfusion client to create an query object before hand with the 
appropriate column headings and then navigate through the returned object and parse 
the various values into the correct column of the query.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Bruce Dunwiddie
Sent: Friday, February 20, 2004 1:10 PM
To: [EMAIL PROTECTED]
Subject: RE: [KCFusion] Consume .NET WebService issue


it almost looks like the data you're getting back is a .Net variable instance, instead 
of like an xml document. if you were to call it from a .Net client, it would probably 
deserialize the variable back into the original object for use. if your web server is 
running .Net framework 1.0, I know you can manually make a call to the webserver using 
the syntax 
http://dvlpServer/webservice/XMLServ.asmx/GetPolicyXML?yourvariablenamehere=0011148&yourothervariablenamehere=2002
 and then you could see if you're actually getting back an XML document or if you're 
getting a serialized .Net object, which I bet you are.

Bruce Dunwiddie
Ticket Technology
P: 866.543.3331
F: 913.451.7832
[EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Templin, Luke
Sent: Friday, February 20, 2004 12:36 PM
To: [EMAIL PROTECTED]
Subject: [KCFusion] Consume .NET WebService issue


I'm having trouble building a coldfusion MX client to consume a .NET webservice.
Here's the code that's being used 
 
<cfscript>
  ws = CreateObject("webservice", 
        "http://dvlpServer/webservice/XMLServ.asmx?wsdl";);
  xlatstring = ws.GetPolicyXML("0011148","2002");
  writeoutput(xlatstring);
</cfscript>
 
the cfinvoke tag has also been tried.
 
The response from the webservice is 
 
 [EMAIL PROTECTED] 
 
which is not the response I'm expecting. The webservice when tested with .Net clients 
works fine
 
Anybody have any insight on consuming .Net webservices?
 
Luke Templin
 
 
===================
Kansas City ColdFusion User Group's website & listserv is 
hosted through the generous support of Clickdoug.com
To send email to the list, email  [EMAIL PROTECTED]
To (un)subscribe, email [EMAIL PROTECTED] with your request.
For hosting solutions http://www.clickdoug.com
Featuring Win2003 Enterprise, RedHat Linux, CFMX 6.1. 
==================

========================================================Kansas City ColdFusion User 
Group's website & listserv is
hosted through the generous support of Clickdoug.com
To send email to the list, email  [EMAIL PROTECTED]
To (un)subscribe, email [EMAIL PROTECTED] with your request.
For hosting solutions http://www.clickdoug.com
Featuring Win2003 Enterprise, RedHat Linux, CFMX 6.1.
=====================================================

Reply via email to