cxf 调用 .net webservice 出现服务器未能识别 HTTP 标头 SOAPAction 的值 解决方案
在 接口类中
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
@WebService(name = "UnitiveWorkSoap", targetNamespace = "http://tempuri.org/")
@SOAPBinding(use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
public interface OAwebservice {
@WebMethod(operationName = "UnitiveNotifyK", action = "http://tempuri.org/UnitiveNotifyK")
@WebResult(name = "UnitiveNotifyKResult", targetNamespace = "http://tempuri.org/")
boolean UnitiveNotifyK(
@WebParam(name="strFlowID", targetNamespace = "http://tempuri.org/") String strFlowID,
@WebParam(name="strTitle", targetNamespace = "http://tempuri.org/") String strTitle,
@WebParam(name="strReceiveTime", targetNamespace = "http://tempuri.org/") String strReceiveTime,
@WebParam(name="strSenderID", targetNamespace = "http://tempuri.org/") String strSenderID,
@WebParam(name="strSenderName", targetNamespace = "http://tempuri.org/") String strSenderName,
@WebParam(name="ReceiveID", targetNamespace = "http://tempuri.org/") String ReceiveID,
@WebParam(name="strCreateTime", targetNamespace = "http://tempuri.org/") String strCreateTime,
@WebParam(name="strHuanJi", targetNamespace = "http://tempuri.org/") String strHuanJi,
@WebParam(name="strUrl", targetNamespace = "http://tempuri.org/") String strUrl,
@WebParam(name="strLogUrl", targetNamespace = "http://tempuri.org/") String strLogUrl
);
}
加入", targetNamespace = "http://tempuri.org/")
operationName = "UnitiveNotifyK", action = "http://tempuri.org/UnitiveNotifyK")