Refine search
SOAPMessage toReturnValue(Packet response) { try { //not sure if this is the correct way to deal with this. if ( response ==null || response.getMessage() == null ) throw new WebServiceException(DispatchMessages.INVALID_RESPONSE()); else return response.getMessage().readAsSOAPMessage(); } catch (SOAPException e) { throw new WebServiceException(e); } } }
public SOAPMessage getMessage() { if(soapMsg == null) { try { Message m = packet.getMessage(); soapMsg = m != null ? m.readAsSOAPMessage() : null; } catch (SOAPException e) { throw new WebServiceException(e); } } return soapMsg; }
public SOAPMessage getMessage() { if(soapMsg == null) { try { Message m = packet.getMessage(); soapMsg = m != null ? m.readAsSOAPMessage() : null; } catch (SOAPException e) { throw new WebServiceException(e); } } return soapMsg; }
public SOAPMessage getMessage() { if(soapMsg == null) { try { Message m = packet.getMessage(); soapMsg = m != null ? m.readAsSOAPMessage() : null; } catch (SOAPException e) { throw new WebServiceException(e); } } return soapMsg; }
SOAPMessage toReturnValue(Packet response) { try { //not sure if this is the correct way to deal with this. if ( response ==null || response.getMessage() == null ) throw new WebServiceException(DispatchMessages.INVALID_RESPONSE()); else return response.getMessage().readAsSOAPMessage(); } catch (SOAPException e) { throw new WebServiceException(e); } } }
/*protected*/ public SOAPMessage getParameter(Packet packet) { try { return packet.getMessage().readAsSOAPMessage(packet, true); } catch (SOAPException se) { throw new WebServiceException(se); } }
/*protected*/ public SOAPMessage getParameter(Packet packet) { try { return packet.getMessage().readAsSOAPMessage(packet, true); } catch (SOAPException se) { throw new WebServiceException(se); } }
SOAPMessage toReturnValue(Packet response) { try { //not sure if this is the correct way to deal with this. if ( response ==null || response.getMessage() == null ) throw new WebServiceException(DispatchMessages.INVALID_RESPONSE()); else return response.getMessage().readAsSOAPMessage(); } catch (SOAPException e) { throw new WebServiceException(e); } } }
/*protected*/ public SOAPMessage getParameter(Packet packet) { try { return packet.getMessage().readAsSOAPMessage(packet, true); } catch (SOAPException se) { throw new WebServiceException(se); } }
public ContentType encode(Packet packet, OutputStream out) { if (packet.getMessage() != null) { final XMLStreamWriter writer = getXMLStreamWriter(out); try { packet.getMessage().writeTo(writer); writer.flush(); } catch (XMLStreamException e) { throw new WebServiceException(e); } } return getContentType(packet.soapAction); }
public ContentType encode(Packet packet, OutputStream out) { Message message = packet.getMessage(); if (message != null && message.hasPayload()) { final XMLStreamWriter writer = getXMLStreamWriter(out); try { writer.writeStartDocument(); packet.getMessage().writePayloadTo(writer); writer.writeEndDocument(); writer.flush(); } catch (XMLStreamException e) { throw new WebServiceException(e); } } return _contentType; }
public ContentType encode(Packet packet, OutputStream out) { if (packet.getMessage() != null) { final XMLStreamWriter writer = getXMLStreamWriter(out); try { packet.getMessage().writeTo(writer); writer.flush(); } catch (XMLStreamException e) { throw new WebServiceException(e); } } return getContentType(packet.soapAction); }
public ContentType encode(Packet packet, OutputStream out) { if (packet.getMessage() != null) { final XMLStreamWriter writer = getXMLStreamWriter(out); try { packet.getMessage().writeTo(writer); writer.flush(); } catch (XMLStreamException e) { throw new WebServiceException(e); } } return getContentType(packet.soapAction); }
public ContentType encode(Packet packet, OutputStream out) { Message message = packet.getMessage(); if (message != null && message.hasPayload()) { final XMLStreamWriter writer = getXMLStreamWriter(out); try { writer.writeStartDocument(); packet.getMessage().writePayloadTo(writer); writer.writeEndDocument(); writer.flush(); } catch (XMLStreamException e) { throw new WebServiceException(e); } } return _contentType; }
public ContentType encode(Packet packet, OutputStream out) { Message message = packet.getMessage(); if (message != null && message.hasPayload()) { final XMLStreamWriter writer = getXMLStreamWriter(out); try { writer.writeStartDocument(); packet.getMessage().writePayloadTo(writer); writer.writeEndDocument(); writer.flush(); } catch (XMLStreamException e) { throw new WebServiceException(e); } } return _contentType; }
Object toReturnValue(Packet response) { try { Unmarshaller unmarshaller = jaxbcontext.createUnmarshaller(); Message msg = response.getMessage(); switch (mode) { case PAYLOAD: return msg.<Object>readPayloadAsJAXB(unmarshaller); case MESSAGE: Source result = msg.readEnvelopeAsSource(); return unmarshaller.unmarshal(result); default: throw new WebServiceException("Unrecognized dispatch mode"); } } catch (JAXBException e) { throw new WebServiceException(e); } }
Source toReturnValue(Packet response) { Message msg = response.getMessage(); switch (mode) { case PAYLOAD: return msg.readPayloadAsSource(); case MESSAGE: return msg.readEnvelopeAsSource(); default: throw new WebServiceException("Unrecognized dispatch mode"); } }
Object toReturnValue(Packet response) { try { Unmarshaller unmarshaller = jaxbcontext.createUnmarshaller(); Message msg = response.getMessage(); switch (mode) { case PAYLOAD: return msg.<Object>readPayloadAsJAXB(unmarshaller); case MESSAGE: Source result = msg.readEnvelopeAsSource(); return unmarshaller.unmarshal(result); default: throw new WebServiceException("Unrecognized dispatch mode"); } } catch (JAXBException e) { throw new WebServiceException(e); } }
Source toReturnValue(Packet response) { Message msg = response.getMessage(); switch (mode) { case PAYLOAD: return msg.readPayloadAsSource(); case MESSAGE: return msg.readEnvelopeAsSource(); default: throw new WebServiceException("Unrecognized dispatch mode"); } }
Source toReturnValue(Packet response) { Message msg = response.getMessage(); switch (mode) { case PAYLOAD: return msg.readPayloadAsSource(); case MESSAGE: return msg.readEnvelopeAsSource(); default: throw new WebServiceException("Unrecognized dispatch mode"); } }