<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to debug service</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=8534175" />
  <subtitle>How to debug service</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=8534175</id>
  <updated>2013-05-21T14:04:25Z</updated>
  <dc:date>2013-05-21T14:04:25Z</dc:date>
  <entry>
    <title>RE: How to debug service</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8586797" />
    <author>
      <name>Cindy Brozyno</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8586797</id>
    <updated>2012-11-15T14:00:16Z</updated>
    <published>2012-11-15T14:00:16Z</published>
    <summary type="html">I'm one step closer.  I ran SQL Profiler and did a trace of the service as I ran it.  On the 7942 phones, it ran fine.  On the 8941, I found the issue.  I'm just not sure how to solve it.  
Below is the code that runs, then the SQL that goes through the trace.
SERVICE PAGE CODE
var input = Request.QueryString("input");
var input2 = input * 1;      // I did this math to ensure that the data comes through as a number.  The datatype of the field is numeric(15,0).
sql=("SELECT * FROM dbo.vw_User_PinList WHERE PERSON_ID =("+input2+") "); 
TRACE RESULTS ON 8941 PHONE
SELECT * FROM dbo.vw_User_PinList WHERE PERSON_ID =(Nan) 
select * from SELECT * FROM dbo.vw_User_PinList WHERE PERSON_ID =(Nan) 
(At this point, the user receives HTTP Connection failed, they try again, and this is what goes through:
SELECT * FROM dbo.vw_User_PinList WHERE PERSON_ID =(73220)
***********
I then changed the SQL query from requesting Input2 to input, leaving it as a string, to see what it was submitting.
Here's what I found:
TRACE RESULTS
SELECT * FROM dbo.vw_User_PinList WHERE PERSON_ID =(%2073220) 
select * from SELECT * FROM dbo.vw_User_PinList WHERE PERSON_ID =(%2073220) 
User gets - http connection failed - tries again.
SELECT * FROM dbo.vw_User_PinList WHERE PERSON_ID =(73220)
So it looks like there is a Space coming through with the number, only on the 8941 phones.
I'm going to try and add a "trim" statement to see if that works.  
Any other ideas out there?  all help is much appreciated.  Thank you.  Cindy</summary>
    <dc:creator>Cindy Brozyno</dc:creator>
    <dc:date>2012-11-15T14:00:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to debug service</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8533970" />
    <author>
      <name>Cindy Brozyno</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8533970</id>
    <updated>2012-11-14T19:46:31Z</updated>
    <published>2012-11-13T20:14:28Z</published>
    <summary type="html">Thanks for the suggestion, Sascha.  I did that, but I have no idea what I'm looking at. The only thing I was able to determine is that it takes longer on the 8941 phone than it does on the 7942.  I actually posted the wireshark pics under this post - Phone service - HTTP Connection failed error on 8941 phones - but as of yet have not received any feedback from anyone else on them. 
I appreciate the suggestion, though.  
I tried again, and the exact error being recorded is HTTP Connection Failed.  I reviewed an older post which says suggests it's something in the script failing on the web server.  I know where it's failing, I just don't know why,.
The user inputs a number, and clicks submit.  On the 7942 phone, it works fine.  on the 8941, I get the HTTP Connection failed. They hit exit, re-enter the number, hit submit again.  It works fine.  
Ideas?</summary>
    <dc:creator>Cindy Brozyno</dc:creator>
    <dc:date>2012-11-13T20:14:28Z</dc:date>
  </entry>
  <entry>
    <title>Re: New Message from Cindy Brozyno in IP Phone Services (IPPS) - IP Phone S</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8534288" />
    <author>
      <name>Sascha Monteiro</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8534288</id>
    <updated>2012-11-13T19:25:48Z</updated>
    <published>2012-11-13T19:25:48Z</published>
    <summary type="html">you can start by running a wireshark trace on the server where your ipps is
hosted,
and analyse the http requests and response from/to the phone</summary>
    <dc:creator>Sascha Monteiro</dc:creator>
    <dc:date>2012-11-13T19:25:48Z</dc:date>
  </entry>
  <entry>
    <title>How to debug service</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8534174" />
    <author>
      <name>Cindy Brozyno</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8534174</id>
    <updated>2012-11-13T19:18:15Z</updated>
    <published>2012-11-13T19:18:15Z</published>
    <summary type="html">How do you debug a phone service?  My timeclock service utilizes query params &amp; goes to SQL; on newer phones it seems to time out when it needs to return data from SQL. Would like to debug. Suggestions?
Thanks.  Cindy</summary>
    <dc:creator>Cindy Brozyno</dc:creator>
    <dc:date>2012-11-13T19:18:15Z</dc:date>
  </entry>
</feed>

