This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes How to debug in Eclipse while testing Webservice request through SoapUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to debug in Eclipse while testing Webservice request through SoapUI" Watch "How to debug in Eclipse while testing Webservice request through SoapUI" New topic
Author

How to debug in Eclipse while testing Webservice request through SoapUI

Murali Sridhar
Ranch Hand

Joined: Feb 16, 2009
Posts: 44

Hello,

Please let me know "how to debug in Eclipse while testing Webservice request through SoapUI".
FYI:
I have put toggle breakpoints in some class,still the control does not comes to Eclipse.
I have setup JAVA_OPTIONS in setEnvDomain.cmd file.

Thanks in advance....


Many regards,
Murali Sripadam.


Regards,
Murali
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

SOAP has no effect on this. For a breakpoint to work, you have to have the server connected to Eclipse using Remote Debugging.


Customer surveys are for companies who didn't pay proper attention to begin with.
Murali Sridhar
Ranch Hand

Joined: Feb 16, 2009
Posts: 44

Hi Tim,

I'm getting "Launching Error:Failed to connect to remote VM.Connection timed out."

I have provided Connection Properties (from Run-->Debug-->Remote Java Applciation-->New_configuration-->Connect tab) in Eclipse3.2.2 as :

Host:localhost
Port:7001(is the port# where Weblogic server9.2 is running).

Please confirm this 7001 is the Remote VM right?

if so I'm not entering into the Debug mode and I tried with the DEBUG_PORT # 8453 as well.
Please help in this.

Thanks and Regards,
Murali d Sripadam

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

No, you don't connect to the HTTP port. Remote debugging requires its own dedicated port. There's no standard port number I'm aware of - just has to be one that nothing else is using.

You'll have to start WebLogic with remote debugging enabled and make sure you've set a debug port. It might be a good idea to ask about that in the WebLogic forum - I don't have a copy set up that I can check with right now.
Murali Sridhar
Ranch Hand

Joined: Feb 16, 2009
Posts: 44

Hi TIM,
I have setup the DEBUG_PORT number to 8543,then I tried.Its working fine now.

Notes':Just I ensured that the Source code and the EAR file are in SYNC.
If they are not in sync then breakpoints on the source would be inconsistent with the deployed EAR file.

Many Regards,
Murali d Sripadam.
----------------------------------------------------------------------------------------------------------------------
Little by little, through patience and repeated effort, the mind will become stilled in the Self~Geeta
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

Murali d Sripadam wrote:
Notes':Just I ensured that the Source code and the EAR file are in SYNC.
If they are not in sync then breakpoints on the source would be inconsistent with the deployed EAR file.


Yup. The debugger assumes that the class being debugged matches the the reference source code. It has no way to verify.

It's just as well. I'd rather debug with a badly-matched source and class than none at all!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to debug in Eclipse while testing Webservice request through SoapUI
 
Similar Threads
how do I insert security headers in to soap jax-rcp request using Java
how to consume secured axis2 service in .NET
Testing a wsdl file
SOAP header in SOAP request
Posting and getting request using web service