I've had the same thing happen. It's strange. The only way I could get around it was by changing the numeric type to string....
At 07:32 PM 2/6/2003 -0500, you wrote: >It works fine if I change the type to string. The weird thing is it doesn't >happen with every method. Most are working just fine. > >Just to let you know, after more testing I discovered the same thing is >still happening when I run the calling .cfm file from another server... But >here's another twist, I can call the method just fine from an ASP.Net page. > >Phillip > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Thursday, February 06, 2003 7:07 PM >To: CF-Talk >Subject: Re: calling a webservice from the same web server > > >What happens when you change the ClientID type to "String" instead of >"Numeric"? > >At 04:43 PM 2/6/2003 -0500, you wrote: > >Anyone ever run into this. > > > >We're testing out some web services written in ColdFusion... and for > >some reason, when invoking the component as a service from a test page > >on the same server we get a "java.lang.IllegalArgumentException: > >argument type mismatch" error. We've successfully been able to call the > >service from 3 other cold fusion servers. Here is the method signature: > > > ><cffunction > > name="listCategories" > > output="no" > > access="Remote" > > returnType="string" > > > > > > > <!--- argument list ---> > > <cfargument name="clientID" type="numeric" required="yes"> > > <cfargument name="clientPassword" type="string" > >required="yes"> ... > > > >And here is the invoking code: > > > ><cfinvoke > > webservice="http://.../category.cfc?WSDL" > > method="listCategories" > > returnvariable="rtXML"> > > <cfinvokeargument name="clientID" value="1"/> > > <cfinvokeargument name="clientPassword" > >value="password"/> > > > ></cfinvoke> > > > >BTW, we are able to call the method successfully as a regular component > >from the same machine. > > > >Strange? > > > >Thanks, > > > >Phillip > > > >.................................... > >Phillip Cave > >ColdFusion Developer > >Carol/Trevelyan Strategy Group > >202.448.5212 > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

