简体   繁体   中英

Debugging a jax-ws client in eclipse

I am writing a java client for a web service. I used wsimport to generate the proxies. Copied them over to my workspace project (in eclipse). Wrote a simple program using couple of ws calls. Now when I want to step into a soap call, eclipse says that source code for the file was not found (com.sun.xml.internal.ws.client.sei.SEIStub.class). It's using this class from rt.jar which is pointing to the src.zip that came with the installation. I noticed that src.zip does not contain the missing java files, so I downloaded them separately and tried adding them to zip file. I also tried copying them over to my project to see if I can trick eclipse into accepting them as the source file.

I don't write/debug Java on a regular basis so please help me out here. I really want to debug and see what jax-ws is doing differently from axis as the call works in the later implementation.

I believe that you can set the following System property to put JAX-WS in debug mode.

com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true

See JAX-WS Guide - Logging .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM