org.apache.axis.client.Call.setRequestMessage()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(289)

本文整理了Java中org.apache.axis.client.Call.setRequestMessage()方法的一些代码示例,展示了Call.setRequestMessage()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Call.setRequestMessage()方法的具体详情如下:
包路径:org.apache.axis.client.Call
类名称:Call
方法名:setRequestMessage

Call.setRequestMessage介绍

[英]Directly set the request message in our MessageContext. This allows custom message creation. Note: Not part of JAX-RPC specification.
[中]直接在MessageContext中设置请求消息。这允许自定义消息创建。注意:不是JAX-RPC规范的一部分。

代码示例

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

setRequestMessage(msg);

代码示例来源:origin: axis/axis

setRequestMessage(msg);

代码示例来源:origin: org.apache.axis/axis

setRequestMessage(msg);

代码示例来源:origin: org.apache.axis/axis

setRequestMessage( msg );
invoke();
msg = msgContext.getResponseMessage();

代码示例来源:origin: axis/axis

setRequestMessage( msg );
invoke();
msg = msgContext.getResponseMessage();

代码示例来源:origin: axis/axis

body.setEncodingStyle(getEncodingStyle());
setRequestMessage(reqMsg);

代码示例来源:origin: org.apache.axis/axis

body.setEncodingStyle(getEncodingStyle());
setRequestMessage(reqMsg);

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

setRequestMessage( msg );
invoke();
msg = msgContext.getResponseMessage();

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

body.setEncodingStyle(getEncodingStyle());
setRequestMessage(reqMsg);

代码示例来源:origin: axis/axis

msg.setProperty(CHARACTER_SET_ENCODING, msgContext.getProperty(CHARACTER_SET_ENCODING));
setRequestMessage( msg );
invoke();
msg = msgContext.getResponseMessage();

代码示例来源:origin: org.apache.axis/axis

msg.setProperty(CHARACTER_SET_ENCODING, msgContext.getProperty(CHARACTER_SET_ENCODING));
setRequestMessage( msg );
invoke();
msg = msgContext.getResponseMessage();

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

msg.setProperty(CHARACTER_SET_ENCODING, msgContext.getProperty(CHARACTER_SET_ENCODING));
setRequestMessage( msg );
invoke();
msg = msgContext.getResponseMessage();

代码示例来源:origin: net.sourceforge.addressing/addressing

/**
 * {@inheritDoc}
 */
protected void forwardMessage(SOAPMessageContext soapMsgContext,
  EndpointReference endpointRef) {
 // TODO: not sure if overriding this method is even necessary.
 try {
  Service service = getService(soapMsgContext);
  Call call = service.createCall();
  call.setTargetEndpointAddress(endpointRef.getAddress().toString());
  ((org.apache.axis.client.Call) call).setRequestMessage((Message) soapMsgContext
    .getMessage());
  AddressingHeaders addrHeaders = buildAddressingHeadersForMessageForward(
    soapMsgContext, endpointRef);
  call.setProperty(Constants.ENV_ADDRESSING_REQUEST_HEADERS, addrHeaders);
  configureCall(call, soapMsgContext);
  call.invoke(new Object[0]);
  SOAPBody responseBody = soapMsgContext.getMessage().getSOAPPart().getEnvelope()
  .getBody();
  removeAllChildElements(responseBody);
 } catch (IOException e) {
  throw new JAXRPCException("Failed to forward SOAP message", e);
 } catch (ServiceException e) {
  throw new JAXRPCException("Failed to forward SOAP message", e);
 } catch (SOAPException e) {
  throw new JAXRPCException("Failed to forward SOAP message", e);
 }
}

代码示例来源:origin: net.sourceforge.addressing/addressing

: ctx.getSOAPConstants());
c.setTargetEndpointAddress(address.toString());
c.setRequestMessage(msg);
c.setProperty(ENV_ADDRESSING_REQUEST_HEADERS, headers);
c.setProperty(ENV_ADDRESSING_NAMESPACE_URI, AddressingUtils

相关文章