Web services 未打印SOAP调试消息
我在客户机VM参数中设置-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true。我正在使用JAX-WS客户端。但是,尽管有SOAP消息,但它并没有在控制台中打印出来。有什么原因吗 这是我的客户代码Web services 未打印SOAP调试消息,web-services,soap,jax-ws,Web Services,Soap,Jax Ws,我在客户机VM参数中设置-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true。我正在使用JAX-WS客户端。但是,尽管有SOAP消息,但它并没有在控制台中打印出来。有什么原因吗 这是我的客户代码 package com.helloworld.client; import java.net.URL; import javax.xml.namespace.QName; import javax.xml.ws.Servi
package com.helloworld.client;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import com.helloworld.ws.HelloWorld;
public class HelloWorldClient{
public static void main(String[] args) throws Exception {
URL url = new URL("http://localhost:9999/ws/hello?wsdl");
//1st argument service URI, refer to wsdl document above
//2nd argument is service name, refer to wsdl document above
QName qname = new QName("http://ws.helloworld.com/", "HelloWorldImplService");
Service service = Service.create(url, qname);
HelloWorld hello = service.getPort(HelloWorld.class);
System.out.println(hello.getHelloWorldAsString("Test String"));
}
}
我的服务器是使用Endpoint.publish发布的,正在本地运行。在服务器上
com.sun.xml.ws.transport.http.HttpAdapter.dump=true
您还可以使用@HandlerChain(file=“…”)
注释
关于Jax WS处理程序和的更多信息这是正确的VM参数-Dcom.sun.xml.WS.transport.http.client.HttpTransportPipe.dump=true。你有什么想法吗?我也帮了你。