本文整理了Java中org.apache.axis.client.Call.getResponseMessage()
方法的一些代码示例,展示了Call.getResponseMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Call.getResponseMessage()
方法的具体详情如下:
包路径:org.apache.axis.client.Call
类名称:Call
方法名:getResponseMessage
[英]Directly get the response message in our MessageContext. Shortcut for having to go thru the msgContext Note: Not part of JAX-RPC specification.
[中]直接在MessageContext中获取响应消息。必须通过msgContext的快捷方式注意:不是JAX-RPC规范的一部分。
代码示例来源:origin: axis/axis
/**
* Extract attachments
* @param call
*/
public void extractAttachments(Call call) {
attachments.clear();
if(call.getResponseMessage() != null) {
Iterator iterator = call.getResponseMessage().getAttachments();
while(iterator.hasNext()){
attachments.add(iterator.next());
}
}
}
代码示例来源:origin: org.apache.axis/axis
/**
* Extract attachments
* @param call
*/
public void extractAttachments(Call call) {
attachments.clear();
if(call.getResponseMessage() != null) {
Iterator iterator = call.getResponseMessage().getAttachments();
while(iterator.hasNext()){
attachments.add(iterator.next());
}
}
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* Extract attachments
* @param call
*/
public void extractAttachments(Call call) {
attachments.clear();
if(call.getResponseMessage() != null) {
Iterator iterator = call.getResponseMessage().getAttachments();
while(iterator.hasNext()){
attachments.add(iterator.next());
}
}
}
代码示例来源:origin: axis/axis
/**
* Get the array of response header elements
*/
public SOAPHeaderElement[] getResponseHeaders() {
SOAPHeaderElement[] array = new SOAPHeaderElement[0];
try
{
if (_call == null)
return array;
Vector h = _call.getResponseMessage().getSOAPEnvelope().getHeaders();
array = new SOAPHeaderElement[h.size()];
h.copyInto(array);
return array;
}
catch (Exception e)
{
return array;
}
}
代码示例来源:origin: org.apache.axis/axis
/**
* Get the array of response header elements
*/
public SOAPHeaderElement[] getResponseHeaders() {
SOAPHeaderElement[] array = new SOAPHeaderElement[0];
try
{
if (_call == null)
return array;
Vector h = _call.getResponseMessage().getSOAPEnvelope().getHeaders();
array = new SOAPHeaderElement[h.size()];
h.copyInto(array);
return array;
}
catch (Exception e)
{
return array;
}
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* Get the array of response header elements
*/
public SOAPHeaderElement[] getResponseHeaders() {
SOAPHeaderElement[] array = new SOAPHeaderElement[0];
try
{
if (_call == null)
return array;
Vector h = _call.getResponseMessage().getSOAPEnvelope().getHeaders();
array = new SOAPHeaderElement[h.size()];
h.copyInto(array);
return array;
}
catch (Exception e)
{
return array;
}
}
代码示例来源:origin: axis/axis
/**
* Get a response header element
*/
public SOAPHeaderElement getResponseHeader(String namespace, String partName) {
try
{
if (_call == null)
return null;
return _call.getResponseMessage().getSOAPEnvelope().getHeaderByName(namespace, partName);
}
catch (Exception e)
{
return null;
}
}
代码示例来源:origin: org.apache.axis/axis
/**
* Get a response header element
*/
public SOAPHeaderElement getResponseHeader(String namespace, String partName) {
try
{
if (_call == null)
return null;
return _call.getResponseMessage().getSOAPEnvelope().getHeaderByName(namespace, partName);
}
catch (Exception e)
{
return null;
}
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* Get a response header element
*/
public SOAPHeaderElement getResponseHeader(String namespace, String partName) {
try
{
if (_call == null)
return null;
return _call.getResponseMessage().getSOAPEnvelope().getHeaderByName(namespace, partName);
}
catch (Exception e)
{
return null;
}
}
代码示例来源:origin: stackoverflow.com
private String getSOAPResponseXML(Object clientstub) {
String returnValue = null;
org.apache.axis.client.Stub stub = (org.apache.axis.client.Stub)clientstub;
Call call = stub._getCall();
if (call != null) {
MessageContext ctx = call.getMessageContext();
// If I registered a handler
// returnValue = (String) ctx.getProperty( ClientHandler.SOAP_RESPONSE );
// or use:
try {
Message msg = call.getResponseMessage();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
// NOTE: If we never get a response (a request handler throws an uncaught error
// this can cause a java.lang.NullPointerException
msg.writeTo(baos);
returnValue = baos.toString();
} catch (java.io.IOException ex) {
log.debug("Error in getSOAPResponseXML", ex);
} catch (javax.xml.soap.SOAPException ex) {
log.debug("Error in getSOAPResponseXML", ex);
}
}
return returnValue;
} // getSOAPResponseXML
代码示例来源:origin: net.sf.taverna.cagrid/cagrid-wsdl-generic
throws SOAPException, IOException {
List attachmentList = new ArrayList();
if (axisCall.getResponseMessage() != null
&& axisCall.getResponseMessage().getAttachments() != null) {
for (Iterator i = axisCall.getResponseMessage().getAttachments(); i
.hasNext();) {
AttachmentPart ap = (AttachmentPart) i.next();
代码示例来源:origin: org.apache.juddi.scout/scout
Message msg = call.getResponseMessage();
response = msg.getSOAPEnvelope().getFirstBody().getAsString();
代码示例来源:origin: org.apache.juddi.scout/scout
Message msg = call.getResponseMessage();
response = msg.getSOAPEnvelope().getFirstBody().getAsDOM();
代码示例来源:origin: axis/axis
call.setProperty(Call.CHECK_MUST_UNDERSTAND,Boolean.FALSE);
call.invoke((Message) request);
return call.getResponseMessage();
} catch (java.net.MalformedURLException mue){
throw new SOAPException(mue);
代码示例来源:origin: org.apache.axis/axis
call.setProperty(Call.CHECK_MUST_UNDERSTAND,Boolean.FALSE);
call.invoke((Message) request);
return call.getResponseMessage();
} catch (java.net.MalformedURLException mue){
throw new SOAPException(mue);
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
call.setProperty(Call.CHECK_MUST_UNDERSTAND,Boolean.FALSE);
call.invoke((Message) request);
return call.getResponseMessage();
} catch (java.net.MalformedURLException mue){
throw new SOAPException(mue);
内容来源于网络,如有侵权,请联系作者删除!