Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 118371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:29:03+00:00 2026-05-11T03:29:03+00:00

Okay this is a real headscratcher. I have an application which calls a web

  • 0

Okay this is a real headscratcher.

I have an application which calls a web service. It is a valid web service that pulls some data from a SQL server db, whacks it into an XML document and returns it to the Winforms app for processing.

This works fine in debug.

It fails when you run it normally but it does so returning specific data that is supposed to signal there are no valid records returned from the DB with a certain ID.

If you switch on a Wireshark packet capture after it has failed once in the release version it then works fine again.

If you start the packet capture before you get to the page that requests the service then it errors in the same way as it does when you are running it normally.

The packet capture of the one that produces the correct result shows the application make the request and then receive the data it’s expecting.

The packet capture of the one that errors shows the application make the request and then explicitly receive the ‘no records returned’ error.

One thing we have noted is that it takes about 0.25/0.5 seconds to work when it works but when it doesn’t work it responds much faster.

EDIT: Okay, I knew I forgot something. I was convinced, initially, that it was the service itself. Or the SQL. So I tested the SQL, no issues. I debugged the service locally. No issue. I built a test harness to feed data into the service from my browser and capture the reult to a label. I fed it some data. It was fine. It’s not the service. The service is okay. Except, apparently, when called through my Winforms app, which the packet capture confirms is sending the correct data up. And then it only fails under certain conditions. sigh

Does anyone have any idea why this might be?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:29:04+00:00Added an answer on May 11, 2026 at 3:29 am

    In a masterstroke of misdirection the answer to this problem resolved due to things other than those mentioned here. Excellent suggestions nonetheless.

    In this case it turned out that the problem we were having was with how our system defines the completion of a credit card charge. The system is supposed to wait for the successful authorisation of a charge and it’s ‘Post Authorisation’ process to consider the charge a ‘success’.

    The exact reason for this is due to the unusual nature of our product and the stages of a given banking transaction. For online payments in the UK a charge is not able to be ‘Post Authorised’ until the goods have ‘shipped’.

    If we sold books (or mugs, or novelty garden gnomes) then notification of successful Pre Auth would be enough to consider the transaction complete as shipping would take place a bit later. We sell concert tickets, more precisely we sell entry to gigs the physical representation of which is the ticket. The minute we have the customer’s money they are, effectively, guaranteed their entry to the gig under all normal cricumstances.

    In a real sense our product ships the second the transaction is complete, thus a pre-auth and post-auth process need to complete to count the transaction as ‘successful’.

    However, when the pre-auth completes successfully the customer is assured it will post auth too so we show them the ‘complete’ screen at this moment to make the app run faster. On the box office that asks for ticket prints this is the same. However, what nobody knows is that the post auth may take a further minute to three minutes to post auth and thus be a complete ‘success’. If the charge is not a success it will not be returned from the printing service because the underlying DB query returns its ‘no orders match’ result, so all I had to do, in the end, was wait until it had finished post authing and it worked fine.

    So all in all a bit of a storm in a teacup. Now we just need the underlying SQL to return the order at the same time as the success page but not include failed charges (such as might result by miskeying fraud detection fields such as cardholder postcode) along with the successful charge we want to print details of.

    Thanks fo everyone’s help. Sorry it was a relatively mundane fix.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 124k
  • Answers 124k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The latter. Code duplication is a bad code smell. May 12, 2026 at 1:18 am
  • Editorial Team
    Editorial Team added an answer You can use an if statement to check whether the… May 12, 2026 at 1:18 am
  • Editorial Team
    Editorial Team added an answer Based on http://www.zillow.com/howto/api/APIFAQ.htm#devkit, there is no JavaScript API. Because of… May 12, 2026 at 1:18 am

Related Questions

This question is coded in pseudo-PHP, but I really don't mind what language I
Ok, here is in brief the deal: I spider the web (all kind of
Ladies and Gents, My best friends and I do a Secret Santa type gift
okay so this is probably a soft pitch question for sombody, but I want

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.