クライアント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.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を使用して公開されており、ローカルで実行されています。