日期:2014-05-20 浏览次数:20715 次
import javax.jws.WebParam; import javax.jws.WebService; @WebService(name = "IReportNames", targetNamespace = "http://reportNames.fi/") public interface IReportNames { public String getReportNames(@WebParam(name="AuthenticationToken",targetNamespace = "aaa",header=true) Authentication auth,@WebParam(name="dataType") String type); }
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> [color=#0000FF]<ns2:Authentication xmlns:ns2="http://header.webservice.main.fi/">[/color] <appKey>your appKey</appKey> <appSecret>your appSecret</appSecret> </ns2:Authentication> </soap:Header> <soap:Body> <getReportNames> <dataType>json</dataType> </getReportNames> </soap:Body> </soap:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <AuthenticationToken> <appKey>your appKey</appKey> <appSecret>your appSecret</appSecret> </AuthenticationToken> </soap:Header> <soap:Body> <getReportNames> <dataType>json</dataType> </getReportNames> </soap:Body> </soap:Envelope>