标签:params log attr address .com letter mic 就是 sid
前言:
今天给大家分享一下前段时间在做项目的时候做webservice接口的一些心得。
<!--Axis2 -->
<servlet>
<servlet-name>AxisServlet</servlet-name>
<servlet-class>
org.apache.axis2.transport.http.AxisServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/servlet/AxisServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>*.jws</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
package ws.axis2.service;
import java.util.List;
import java.util.Map;
/**
* @Description: IDC 日志接口
* @author fangtao
* @date 2018-12-10 下午5:22:45
*/
public interface LoggerService {
public String getOrderDetailLog(String docUnid,String sysId,String sysPwd);
}
<!-- This file was auto-generated from WSDL -->
<!-- by the Apache Axis2 version: #axisVersion# #today# -->
<serviceGroup>
<service name="OrderLogSrv">
<description>日志服务接口</description>
<parameter locked="false" name="ServiceClass">ws.axis2.impl.LoggerServiceImpl</parameter>
<parameter locked="false" name="useOriginalwsdl">false</parameter>
<parameter locked="false" name="modifyUserWSDLPortAddress">true</parameter>
<operation name="getOrderDetailLog">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</operation>
</service>
</serviceGroup>
先用浏览器访问wsdl地址 看是否发布成功
使用SOAPUI工具测试接口功能
PS:第一次分享自己的心得,写得不好的地方,还望大家批评指正
标签:params log attr address .com letter mic 就是 sid
原文地址:https://www.cnblogs.com/ft-greate/p/10188731.html