简体   繁体   中英

Get SOAP request and Response from the wsdl file from a client

I am using Apche Axis2 for a web service client. I know to get the output of a web service. But I want to get the soap Request and response from the wsdl file.

My wsdl is http://localhost:8080/getDetails?wsdl

It would be great if some can share their experiences.

Thanks in Advance.

使用SoapUI工具,提供此工具的WSDL路径,如果您单击特定操作,则它将从WSDL加载所有操作一次,您可以获得示例SOAP请求(XML有效负载)。

If you want to use a software for that, use SoapUI.

If you want to do it from Java, you have these options.

  1. Generate the classes for a SOAP Client using wsdl2java command. There are many ways of doing this depends on the implementation you used.

  2. Generate the classes for a SOAP Client using maven plugin, use this axistools-maven-plugin

After this search for a class having a name "...Locator" and "..PortType", use these classes.

OR,

Search for an Interface which has all the exposed methods and find a way to implement it.

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