David, If you are using correct details for your submissions, the Token.getValue() may throw an error. Try just <cfdump var="#Token#"> instead to see what you get.
Paul > -----Original Message----- > From: David Adress [mailto:[EMAIL PROTECTED] > Sent: 18 October 2007 21:38 > To: CF-Talk > Subject: RE: Web Service Help > > When I use this code: > > <cftry> > <cfinvoke > webservice="http://www.devcallnow.com/WebService/OneCallNow.asmx?wsdl" > method="Login" returnvariable="Token"> > <cfinvokeargument name="Service" value="1"/> > <cfinvokeargument name="GroupKey" value="111111"/> > <cfinvokeargument name="PIN" value="1111"/> > <cfinvokeargument name="LoginToken" value=""/> > </cfinvoke> > <cfdump var="#Token.getValue()#"> <cfcatch> > <cfdump var="#cfcatch#"> > </cfcatch> > </cftry> > > I get this: > > struct > Message String index out of range: 0 > StackTrace java.lang.StringIndexOutOfBoundsException: String index out > of > range: 0 at java.lang.String.charAt(Unknown Source) at > jrunx.util.NoCaseContainer.noCaseHashCode(NoCaseContainer.java:39) at > jrunx.util.NoCaseContainer.find(NoCaseContainer.java:55) at > jrunx.util.FlatHashtable.get(FlatHashtable.java:88) at > jrunx.util.MultiKeyContainer.get(MultiKeyContainer.java:67) at > jrun.servlet.http.WebEndpoint.getHeader(WebEndpoint.java:365) at > javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletReque > stWra > pper.java:124) at > javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletReque > stWra > pper.java:124) at > coldfusion.runtime.CgiScope.resolve(CgiScope.java:206) at > coldfusion.runtime.CgiScope.containsName(CgiScope.java:278) at > coldfusion.runtime.CgiScope.search(CgiScope.java:311) at > coldfusion.runtime.NeoPageContext.searchScopes(NeoPageContext.java:594) > at > coldfusion.runtime.NeoPageContext.findAttribute(NeoPageContext.java:519 > ) at > coldfusion.xml.rpc.ServiceProxy.findMethod(ServiceProxy.java:738) at > coldfusion.xml.rpc.ServiceProxy.invokeImpl(ServiceProxy.java:163) at > coldfusion.xml.rpc.ServiceProxy.invoke(ServiceProxy.java:143) at > coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1587) at > coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:388) at > cfa2ecfm1090598218.runPage(C:\CFusionMX7\wwwroot\Saul\a.cfm:29) at > coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at > coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343) at > coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at > coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210) > at > coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at > coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50) at > coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) > at > coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersis > tence > Filter.java:28) at > coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at > coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at > coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at > coldfusion.CfmServlet.service(CfmServlet.java:105) at > coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) > at > jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at > jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at > jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:25 > 7) at > jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:52 > 7) at > jrun.servlet.http.WebService.invokeRunnable(WebService.java:172) at > jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool. > java: > 349) at > jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav > a:457 > ) at > jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.ja > va:29 > 5) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) > TagContext array > 1 struct > COLUMN 0 > ID CFINVOKE > LINE 29 > RAW_TRACE at > cfa2ecfm1090598218.runPage(C:\CFusionMX7\wwwroot\Saul\a.cfm:29) > TEMPLATE C:\CFusionMX7\wwwroot\Saul\a.cfm > TYPE CFML > > > Type java.lang.StringIndexOutOfBoundsException > > > > > > > > > ----------------------------------------------------------------------- > ----- > ---- > Debugging Information ColdFusion Server Standard 7,0,0,91690 > Template /saul/a.cfm > Time Stamp 18-Oct-07 04:36 PM > Locale English (US) > User Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; > .NET CLR > 1.1.4322; .NET CLR 2.0.50727) > Remote IP 127.0.0.1 > Host Name localhost > > > > > ----------------------------------------------------------------------- > ----- > ---- > Execution Time > > Total Time Avg Time Count Template > 16 ms 16 ms 1 C:\CFusionMX7\wwwroot\Saul\a.cfm > 16 ms STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN > 32 ms TOTAL EXECUTION TIME > red = over 250 ms average execution time > > > ----------------------------------------------------------------------- > ----- > ---- > Exceptions > > 16:36:48.048 - java.lang.StringIndexOutOfBoundsException - in > C:\CFusionMX7\wwwroot\Saul\a.cfm : line 29 > String index out of range: 0 > > > > ----------------------------------------------------------------------- > ----- > ---- > > > -----Original Message----- > From: Paul Vernon [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 18, 2007 1:35 PM > To: CF-Talk > Subject: RE: Web Service Help > > > Following up from my previous response, if I change the cfdump in my > example > code to this > > <cfdump var="#Token.getValue()#"> > > I get the response "LoginFailedInvalidGroupOrPin" > > So I guess it is working fine here... CF8 Developer on Vista w/Apache. > > Paul > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291479 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4