The CFAdmin name Mapping was causing a lot of problems. I went in there
and cleaned out all the entries that it automatically added and
everything started working.  I think the only purpose of that in the
Admins is so that you can have  webservice="myService: and have it map
to a URI.  If you don't have an entry for a webservice that you call, it
automatically adds it in there.  So if you had
webservice="http://somewhere/asdasdas.asmx";  it will create a name
mapping in there for you. Then if you change anything about the
webservice method, it errors out until you go into the CFADMIN and
delete/update the mapping.. 

Thanks for your help guys!

derek

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jeremy Ridout
Sent: Friday, June 27, 2003 10:08 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Consuming .NET WebServices


We found that having .NET return an XML string works very well. CFMX has
a good, fast XML parsing engine and MS can easily build and send the XML
as a string. That way you can get as complex with your returned data as
you want and deal with it very easily.

Jeremy

-----Original Message-----
From: derek [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 10:05 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Consuming .NET WebServices


Thanks for the info.. I'll give it a shot in the CFAdmin.

As far as the .net WS goes, I originally wanted to return a
dataset/struct/array (a couple name value pairs) but had read about the
AXIS vs. .NET issue so I will be happy just returning a string with the
values concatenated and split() them out in the CF consumption code.

I posted a message on the Macromedia forums and some replied with this..

<cfinvoke
webservice="http://www.bindingpoint.com/ws/imalert/imalert.asmx?wsdl";
 method="sendAIM"
 returnvariable="aSendResult">
     <cfinvokeargument name="fromName" value="enter_value_here"/>
     <cfinvokeargument name="toUserID" value="enter_value_here"/>
     <cfinvokeargument name="message" value="enter_value_here"/>
</cfinvoke>

which works for that WS, so I know if can be done.   I  modded the code
to
point to mine.. still nothing (without adding anything into the
CFADMIN). I'm still trying to figure out the difference.


regards,

derek

----- Original Message ----- 
From: "Jeremy Ridout" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 27, 2003 9:30 AM
Subject: RE: Consuming .NET WebServices


> Are you able to get CF to map a name to the Web service via the CF 
> Administrator? I have found that this is a good way of knowing if the 
> service is consumable or not, without having code bugs get in the way.
>
> When dealing with a .NET web service, you must make sure that none of 
> the methods in that Web service returns a dataset. If any of the 
> methods do, then CF will not be able to consume it. Period. It's an 
> Apache Axis vs. Microsoft thing (Axis is what CF uses as it's WS 
> engine). More accurately, it's a Document vs. RPC thing. Microsoft WS 
> uses Document (interface?)
when
> the service has a dataset in it. Axis consumes (and publishes) RPC 
> only.
>
> So, if you're having trouble with a .NET WS, the first thing to do is 
> to
go
> to the CF Administrator, go to Web Services, and map a name to the
service.
> If you can do that, then you're dealing with a code problem and I 
> can't
help
> there (sorry). If you can't map the name, then it's a bigger issue to 
> investigate.
>
> FYI, when you map a name to the service, you then refer to the service
using
> the name, not the IP address.
>
> HTH,
> Jeremy
>
>
>
> -----Original Message-----
> From: derek bumpas [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 26, 2003 2:32 PM
> To: [EMAIL PROTECTED]
> Subject: Consuming .NET WebServices
>
>
> Okay.. Here's another issue regarding WebServices.
>
> Using MX, I am trying to consume a .NET Webservice that take 2 
> parameters.
>
> <cfinvoke
>
> webservice="http://192.168.1.104/WebService1/Service1.asmx?WSDL";
> method="Activate"
> data1="someData"
> data2="someMoreData"
> returnVariable = "myOut">
> </cfinvoke>
>
>
>
> Here is the C# for the WebMethod
>
> public string Activate(string data1,string data2)
> {
> //do something here
> return (data1+"|"+data2);
> }
>
> It seems that CFMX cannot pass the 2 parameters like this.  Anyone 
> know how to make this work?
>
> derek
>
>
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
> Behalf Of Schreck, Tom
> Sent: Thursday, June 05, 2003 11:02 AM
> To: [EMAIL PROTECTED]
> Subject: RE: web services error
>
>
> I'm getting closer.  Here's my process:
>
> - create a simple remote function that returns a string.
> - create the webservices in the cf admin
> - call the function via a webservice.  It returns the string.
> - I change the remote function to return a query
> - call the function via a webservice.  It returns the query.
> - I copy the remote function and rename it
> - call the new function via a webservice and it fails
> - I update the webservice in cf admin
> - call the new function via a webservice and sometimes it works. 
> Sometimes it does not.
>
> So I've established that you can return a query recordset from a 
> webservice.  I've also established that the webservice in cfadmin 
> plays a part after you've updated/changed the cfc containing the 
> remote function.  I'm not sure how or why because my results are 
> sporadic.
>
> Prior to this test, I was assuming the webservices entry in cfadmin 
> was similar to a mapping.  Obviously this is not the case.
>
> Does anyone have any insight into what I'm finding?
>
> Thanks -
>
> Tom
>
> -----Original Message-----
> From: Seth Bienek [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 05, 2003 9:09 AM
> To: [EMAIL PROTECTED]
> Subject: Re: web services error
>
> Hey Tom,
>
> I'm not sure you can return a query result as a web service response; 
> you might have to convert it to a structure.
>
> I know that I had to convert an XML object to a string in order to use

> it in a web service.
>
> It would be interesting to hear what you end up finding out. :)
>
> Take Care,
>
> Seth
> ----- Original Message -----
> From: "Schreck, Tom" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 05, 2003 8:56 AM
> Subject: RE: web services error
>
>
> I think the problem lies around returning a large query from the 
> webservice.  I'm now getting the following error:
>
> Could not perform web service invocation "contentList" because 
> AxisFault
> faultCode:
>
> Here's a post I've found dealing with the same error message:
>
> http://www.houseoffusion.com/cf_lists/cache/4/14/14144.htm
>
> In the post the author states he's been able to get a webservice to 
> work with everything except a query result.  He gets the above error 
> when working with queries.
>
> Has anyone been able to return a query result using a webservice?  
> This seems to me to be a fundamental purpose for using a webservice.  
> Most scenarios I see using webservices center around returning query 
> recordsets.  Am I missing something?
>
>
> Thanks -
>
> Tom
>
>
> -----Original Message-----
> From: Seth Bienek [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 05, 2003 8:46 AM
> To: [EMAIL PROTECTED]
> Subject: Re: web services error
>
> Hey Tom,
>
> Make sure the webservice parameter in the calling template has the 
> correct URL relative to that machine, and that the web service is 
> registered in the ColdFusion administrator.
>
> These are the two main things that I have seen cause this error.
>
> Regards,
>
> Seth
>
>
> ----- Original Message -----
> From: Schreck, Tom
> To: [EMAIL PROTECTED]
> Sent: Thursday, June 05, 2003 8:42 AM
> Subject: web services error
>
>
> I'm starting to develop web services and am getting a strange error
> message:
>
> Web service operation "contentList" with parameters 
> {NUMCONTENTTYPEID={12},} could not be found
>
> Here's the method I'm attempting to reach:
>
>             <cffunction name="contentList" access="remote" 
> returntype="query" displayname="returns a recordset of content
records">
>                         <cfargument name="numContentTypeID" 
> type="numeric" default="0">
>
>                         <cfquery datasource="#getDSN()#" 
> name="qryContentList">
>                                     . SQLS STATEMENT HERE.
>                         </cfquery>
>
>                         <cfreturn qryContentList>
>             </cffunction>
>
> Here's how I'm invoking the call to the above function:
>
> <cfinvoke
>             method="contentList"
>             returnvariable="qryContentList"
>
> webservice="http://localhost:8500/sitecomposer/globals/cfComponents/co
> nt
> ent/cont
> entlist.cfc?wsdl"
>             argumentcollection="#stQueryData2#">
>
> stQueryData2 contains only one key (numContentTypeID) with its value.
>
> I do not see anything wrong with the syntax.  I've registered the 
> webservice using CF administrator.
>
> Has anyone experienced this before?
>
> Thanks -
>
> Tom Schreck
> 817-252-4900
> [EMAIL PROTECTED]
>
> I have not failed.  I've found 10,000 ways that won't work.
>
> - Thomas Edison
>
>
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To unsubscribe:
>    Send UNSUBSCRIBE to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
>
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To unsubscribe:
>    Send UNSUBSCRIBE to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
>
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To unsubscribe:
>    Send UNSUBSCRIBE to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
>
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To unsubscribe:
>    Send UNSUBSCRIBE to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
>
>
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To unsubscribe:
>    Send UNSUBSCRIBE to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To unsubscribe:
>    Send UNSUBSCRIBE to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
>
>

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To unsubscribe: 
   Send UNSUBSCRIBE to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To unsubscribe: 
   Send UNSUBSCRIBE to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org


-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To unsubscribe: 
   Send UNSUBSCRIBE to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to