/** * 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()); } } }
/** * 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()); } } }
/** * 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()); } } }
/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; } }
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
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();
Message msg = call.getResponseMessage(); response = msg.getSOAPEnvelope().getFirstBody().getAsString();
Message msg = call.getResponseMessage(); response = msg.getSOAPEnvelope().getFirstBody().getAsDOM();
call.setProperty(Call.CHECK_MUST_UNDERSTAND,Boolean.FALSE); call.invoke((Message) request); return call.getResponseMessage(); } catch (java.net.MalformedURLException mue){ throw new SOAPException(mue);
call.setProperty(Call.CHECK_MUST_UNDERSTAND,Boolean.FALSE); call.invoke((Message) request); return call.getResponseMessage(); } catch (java.net.MalformedURLException mue){ throw new SOAPException(mue);
call.setProperty(Call.CHECK_MUST_UNDERSTAND,Boolean.FALSE); call.invoke((Message) request); return call.getResponseMessage(); } catch (java.net.MalformedURLException mue){ throw new SOAPException(mue);