package com.huigou.bpm.webservice.ws.application;

import com.huigou.bpm.webservice.model.WsRequest;
import com.huigou.bpm.webservice.model.WsResponse;
import org.apache.cxf.interceptor.Fault;

import javax.jws.WebParam;
import javax.jws.WebService;

@WebService
public interface WebServiceApplication {

    /**
     * 通用接口
     * @param request
     * @return 自定义类型
     * @throws Fault
     */
    WsResponse generalInterface(@WebParam(name = "INPUT_SC")WsRequest request);
    /**
     * 通用接口
     * @param request
     * @return JSON格式字符串
     * @throws Fault
     */
    String generalInterfaceToJson(WsRequest request);
}
