Debugging webservices
Hello, I am very new to the world of web services (and web-based development,
in general). I would like to be able to debug my web services in IDEA, but
I have been unsuccessful so far in trying to get this set up. Has anyone
done this before? Is it substantially different than debugging servelets/JSP/etc?
Thanks.
Tobin
Please sign in to leave a comment.
In article <893523632430385717431911@news.intellij.net>,
Tobin Juday <tsjuday@checkfree.com> wrote:
It's like debugging class files actually, except that when you look at
the debugger info, you'll see soap envelopes with xml data in string
format, so you have to figure out what kind of info you want out of it.
At least this is how I do it.
R
I should have mentioned I'm using Tomcat 5.5.7
Tobin
Is it possible to step through your code?
Tobin
Hi,
For the webservice development should be the same as debugging web app
in tomcat.
Tobin Juday wrote:
--
Maxim Mossienko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
in tomcat.
Ok, I'm really starting from scratch here, so I'm gonna need some more help.
=)
I have been able to remotely connect to my Tomcat instance, and I have a
breakpoint in my webservice code, but when I run the driver that calls that
webservice, the breakpoint isn't getting hit. My breakpoint is on a valid
line of code, and it has the checkmark inscribed in the red dot. What am
I missing?
Tobin
In article <893538632430394390816829@news.intellij.net>,
Tobin Juday <tsjuday@checkfree.com> wrote:
My code? Or are you asking if you can step though code in general?
This is not code I can share unfortunately, not yet anyway, but I know
of a great app you can download that has very good web services
integration in a web app. I would go download xplanner and give it a
run. What I would do is download and implement its wsdl-generated
interfaces into some fake object connections, and then run it in debug
mode to see what it sends and how it processes information it receives.
hth
R
Sorry for the confusion, I meant code in general. I am having trouble being
able to set a breakpoint in my webservice code and then have that breakpoint
triggered when it get's hit. The breakpoint looks like it gets set, but
nothing ever happens.
My conversation with Maxim in this thread is where I am headed. This is
the first time I've ever tried to work with web modules before, so I'm struggling
with the learning curve. Thanks for helping out.
No, I don't need to see a sample webservice, I think I have got that part
down. I'm not concerned with all of the web service machinery at this point,
it's just that my code isn't doing what I want, and I don't know why.
Tobin
Hi,
Probably, you have not launched the tomcat VM with debug parameters.
Anyway, why don't you use just web module with local tomcat?
Tobin Juday wrote:
>> For the webservice development should be the same as debugging web app
--
Maxim Mossienko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
In article <ctu2q1$gp1$1@is.intellij.net>,
Maxim Mossienko <maxim.mossienko@jetbrains.com> wrote:
http://www.jetbrains.net/jira/browse/IDEA-284
Don't bother, it doesn't work :)
R
In article <893956632430416505799037@news.intellij.net>,
Tobin Juday <tsjuday@checkfree.com> wrote:
Tobin if you do this, use 4.5.x builds, I just filed a bug in Jira, the
webapps in 3200 don't work. Can't seem to deploy them no matter what I
try.
http://www.jetbrains.net/jira/browse/IDEA-284
R
I copied and pasted the params right out of IDEA, and IDEA said that was
was connected. I was able to pause Tomcat and see all of the threads running,
so I think I am connected. It just seems like I'm not getting any debug
info. Or maybe it is because IDEA is somehow not configured correctly to
handle that debug info.
Perhaps I can, but as new to this as I am, I'm not sure how it would work.
I have somewhat of a grasp as to how to setup a web module for servlets/etc,
but I'm confused as to how to set it up for web services. I have my generated
war file (from running the ]]> ant task), and it has all of my classes,
libraries, and generated objects that don't exists anywhere else on my system.
In setting up a web module, it seems like IDEA wants to try and do that
for me, which I don't think will work.
Does that make sense?
Tobin
Thanks for the tip.
Tobin