This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
At line number 3, it throws an exceptiona and lands in throwable block.
Now I don't understand how and why it is working for you,...because the variable msg is null at that time and I won't be able to invoke writeTo method on it, as it'll definitely give me a null pointer exception.
Are you sure that the XML that you have sent is mal-formed?
Would it be possible for you to post the XML that was sent?
Joined: Jan 29, 2002
My bad. I thought, you had the exception on line 4. Can you post the malformed XML , so I can try ?
Joined: Dec 05, 2008
Sorry for the delayed response.
You can remove any one closing tag from the XML that you are sending (that way the XML will be mal-formed).
I desperately need this, because client will be sending thousands of requests in a day. And at the end of the day he may come up and ask, which and how many requests failed.
I will be able to answer him, only when I will have the XML recorded somewhere (when it was malformed, so that he can recognize and send it again).
Appreciate your help !!!
subject: How to store mal-formed XML sent from the client in server database in webservices?