blondebier
Programmer
Hi Everyone,
I have a .net webservice which takes requests as a string of XML. It does some processing and returns a response. (Nothing fancy there.)
I have written a function to keep a log of all web service activity so I can keep track of everything that happens in case an exception or error was thrown.
This is an example of my Activity Log.
06/04/2006 14:38:55 LIVE: Start CheckAddress WebMethod ************************************************************************************
06/04/2006 14:38:55 LIVE: XML Recieved to CheckAddress
06/04/2006 14:38:55 LIVE: <?xml version="1.0" encoding="utf-8"?><CheckAddress><ClientID>username</ClientID><ClientPWD>secret</ClientPWD><Address><HouseNumber>1</HouseNumber><Street>Toy Street</Street><District /><Town>Toy Town</Town><County>My County</County><Postcode>PC1 1CD</Postcode><AtAddressFrom>01/01/2003</AtAddressFrom><AtAddressTo>01/01/2006</AtAddressTo><AddressType>U</AddressType></Address></CheckAddress>
06/04/2006 14:38:56 LIVE: UserID: 1
06/04/2006 14:38:57 LIVE: Validating the address...
06/04/2006 14:38:57 LIVE: Validation complete. Final XML response...
06/04/2006 14:38:57 LIVE: <?xml version="1.0" encoding="UTF-8"?><Result>AddressOK</Result>
06/04/2006 14:38:57 LIVE: End CheckAddress WebMethod **********************************************************************************
My problem is that if two requests were received by my web service at the same time or very close together, the Activity log entries get mixed up and I can't see what is going on.
Has anyone had this problem before and found a solution?
I'd appreciate any help.
Cheers,
Francis
I have a .net webservice which takes requests as a string of XML. It does some processing and returns a response. (Nothing fancy there.)
I have written a function to keep a log of all web service activity so I can keep track of everything that happens in case an exception or error was thrown.
This is an example of my Activity Log.
06/04/2006 14:38:55 LIVE: Start CheckAddress WebMethod ************************************************************************************
06/04/2006 14:38:55 LIVE: XML Recieved to CheckAddress
06/04/2006 14:38:55 LIVE: <?xml version="1.0" encoding="utf-8"?><CheckAddress><ClientID>username</ClientID><ClientPWD>secret</ClientPWD><Address><HouseNumber>1</HouseNumber><Street>Toy Street</Street><District /><Town>Toy Town</Town><County>My County</County><Postcode>PC1 1CD</Postcode><AtAddressFrom>01/01/2003</AtAddressFrom><AtAddressTo>01/01/2006</AtAddressTo><AddressType>U</AddressType></Address></CheckAddress>
06/04/2006 14:38:56 LIVE: UserID: 1
06/04/2006 14:38:57 LIVE: Validating the address...
06/04/2006 14:38:57 LIVE: Validation complete. Final XML response...
06/04/2006 14:38:57 LIVE: <?xml version="1.0" encoding="UTF-8"?><Result>AddressOK</Result>
06/04/2006 14:38:57 LIVE: End CheckAddress WebMethod **********************************************************************************
My problem is that if two requests were received by my web service at the same time or very close together, the Activity log entries get mixed up and I can't see what is going on.
Has anyone had this problem before and found a solution?
I'd appreciate any help.
Cheers,
Francis