最近在学习SOAP,看到书上介绍上SOAP协议是如何如何的,而且在布署时候想看看后台传输的消息内容,如何查看,需要用什么工具吗???
像这样的<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope">
中间省略
</SOAP-ENV:Envelope>
像这样的<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope">
中间省略
</SOAP-ENV:Envelope>
解决方案 »
- HttpURLConnection的请求如何穿过 登录的session的Filter呢?
- struts2开发 SiteMesh 与struts2 标签问题
- hibernate annotation onetoone问题
- dwr示例js出现问题
- java如何取得存储过程的OUT参数?
- <html:text>的问题,请各位大虾帮忙解决!!
- 用java写的访问sql server的程序小问题,百度找不到答案
- ██100分!!!!!!在Action中如何挑到一个外网网址██████
- J2EE好书推荐....
- 请问对于客户端逻辑比较复杂的B/S系统,用javascript还是Applet实现较好?
- 急,Resin中出现Server connection failure during transaction
- 这两句用struts标签怎么写
public static void main(String[] arg) throws Exception {
Call c = null;
URL url = null;
Vector params = null;
Response rep = null;
String ourName = "aa";
String ourUrn = "urn:com_test_SOAPService";
String ourMethod = "sayHi";
url = new URL("http://localhost:8081/soap/servlet/rpcrouter");
System.out.println("Passing to our deployed " + ourUrn + "our name ("
+ ourName + "): ");
c = new Call();
c.setTargetObjectURI(ourUrn);
c.setMethodName(ourMethod);
c.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
params = new Vector();
params.addElement(new Parameter("ourName", String.class, ourName,null));
c.setParams(params);
System.out.print("and its answer is: ");
rep = c.invoke(url, "");
if (rep.generatedFault()) {
Fault fault = rep.getFault();
System.out.println("\nCall failed!");
System.out.println("Code = " + fault.getFaultCode());
System.out.println("String = " + fault.getFaultString());
} else {
Parameter result = rep.getReturnValue();
System.out.print("value : " + result.getValue());
}
}