Recently I started to look into web service and all the nice binding tools with Swing components. I found that there's a nice tutorial in Rational Software Architect which is thorough and interesting. I started on it yesterday, and got stuck for the whole night and almost the whole day today (well, I am on a project, and this knowledge can be helpful to my project. Hopefully I don't sound like I have nothing else to do!).
The reason it took me so long is because I just cannot get the data back. My application looked DEAD. I then opened the TCP/IP monitor, and found that there's no traffic. The problem is I did not know whether I did something wrong in the binding, or the component is not firing off request whatsoever. I was in a very difficult situation because I am not familiar with the binding, nor I am an expert in webservices. I was at a point that I started to suspect whether the webapp is written correctly. I looked through the code in the webapp, but it did look perfectly fine!
Finally I had to debug the wizard-generated glue code for my client application step by step, until I found out an exception which is described here. After I added the jar back to the classpath of my little application, it then works fine. YEAH! It's one of a kind learning experience, and I hope my experience helps my other teammates who will be using web services and run against WTE 6.0.2 :)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment