在webservice使用者方法中插入行以添加SOAP头
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在webservice使用者方法中插入行以添加SOAP头相关的知识,希望对你有一定的参考价值。
When Domino is used to create a webservice consumer, it does not provide an easy way to add SOAP headers to method calls. To do so, extend the STUB class it provides, copy any methods that need SOAP headers, and insert a line after the 'createCall' to provide that functionality. See snippet 69125 for the details of the 'createSessionHeader' code.
public QueryService_pkg.QueryResult queryFirst(QueryService_pkg.QueryRequest request) throws java.rmi.RemoteException { lotus.domino.websvc.client.Call _call = createCall("queryFirst"); _call = createSessionHeader(_call); this.queryHeader = _call.getResponseMessage().getSOAPEnvelope().getHeaderByName(new QueryServiceLocator().getServiceName().getNamespaceURI(), "QueryHeaderValue"); return (QueryService_pkg.QueryResult) _call.convert(_resp, QueryService_pkg.QueryResult.class); }
以上是关于在webservice使用者方法中插入行以添加SOAP头的主要内容,如果未能解决你的问题,请参考以下文章
MySQL 立即返回新插入的行以供 GraphQL 使用的正确方法? [复制]
So easy Webservice 7.CXF 发布WebService
jqgrid添加行并将数据发送到webservice以进行插入