Java Code Examples for javax.xml.ws.handler.soap.SOAPMessageContext#putAll()
The following examples show how to use
javax.xml.ws.handler.soap.SOAPMessageContext#putAll() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractWsSender.java From freehealth-connector with GNU Affero General Public License v3.0 | 7 votes |
protected GenericResponse call(GenericRequest genericRequest) throws TechnicalConnectorException { SOAPConnection conn = null; Handler[] chain = genericRequest.getHandlerchain(); GenericResponse var6; try { SOAPMessageContext request = this.createSOAPMessageCtx(genericRequest); request.putAll(genericRequest.getRequestMap()); request.put("javax.xml.ws.handler.message.outbound", true); executeHandlers(chain, request); conn = scf.createConnection(); SOAPMessageContext reply = createSOAPMessageCtx(conn.call(request.getMessage(), generateEndpoint(request))); reply.putAll(genericRequest.getRequestMap()); reply.put("javax.xml.ws.handler.message.outbound", false); ArrayUtils.reverse(chain); executeHandlers(chain, reply); var6 = new GenericResponse(reply.getMessage()); } catch (Exception var10) { throw translate(var10); } finally { ConnectorIOUtils.closeQuietly((Object)conn); } return var6; }
Example 2
Source File: AbstractWsSender.java From freehealth-connector with GNU Affero General Public License v3.0 | 7 votes |
protected GenericResponse call(GenericRequest genericRequest) throws TechnicalConnectorException { SOAPConnection conn = null; Handler[] chain = genericRequest.getHandlerchain(); GenericResponse genericResponse; try { SOAPMessageContext request = this.createSOAPMessageCtx(genericRequest); request.putAll(genericRequest.getRequestMap()); request.put("javax.xml.ws.handler.message.outbound", true); executeHandlers(chain, request); conn = scf.createConnection(); SOAPMessageContext reply = createSOAPMessageCtx(conn.call(request.getMessage(), generateEndpoint(request))); reply.putAll(genericRequest.getRequestMap()); reply.put("javax.xml.ws.handler.message.outbound", false); ArrayUtils.reverse(chain); executeHandlers(chain, reply); genericResponse = new GenericResponse(reply.getMessage(), request.getMessage()); } catch (Exception var10) { throw translate(var10); } finally { ConnectorIOUtils.closeQuietly((Object)conn); } return genericResponse; }
Example 3
Source File: AbstractWsSender.java From freehealth-connector with GNU Affero General Public License v3.0 | 6 votes |
protected GenericResponse call(GenericRequest genericRequest) throws TechnicalConnectorException { SOAPConnection conn = null; Handler[] chain = genericRequest.getHandlerchain(); GenericResponse var6; try { SOAPMessageContext request = this.createSOAPMessageCtx(genericRequest); request.putAll(genericRequest.getRequestMap()); request.put("javax.xml.ws.handler.message.outbound", true); executeHandlers(chain, request); conn = scf.createConnection(); SOAPMessageContext reply = createSOAPMessageCtx(conn.call(request.getMessage(), generateEndpoint(request))); reply.putAll(genericRequest.getRequestMap()); reply.put("javax.xml.ws.handler.message.outbound", false); ArrayUtils.reverse(chain); executeHandlers(chain, reply); var6 = new GenericResponse(reply.getMessage()); } catch (Exception var10) { throw translate(var10); } finally { ConnectorIOUtils.closeQuietly((Object)conn); } return var6; }
Example 4
Source File: AbstractWsSender.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
protected GenericResponse call(GenericRequest genericRequest) throws TechnicalConnectorException { SOAPMessageContext request = this.createSOAPMessageCtx(genericRequest); request.putAll(genericRequest.getRequestMap()); request.put("javax.xml.ws.handler.message.outbound", true); Handler<?>[] chain = genericRequest.getHandlerchain(); SOAPConnection conn = null; SOAPMessageContext reply = null; try { URL endpoint = generateEndpoint(request); executeHandlers(chain, request); SOAPMessage msgToSend = request.getMessage(); conn = scf.createConnection(); reply = createSOAPMessageCtx(conn.call(msgToSend, endpoint)); } catch (UnsupportedOperationException var13) { throw translate(var13); } catch (SOAPException var14) { throw translate(var14); } catch (MalformedURLException var15) { throw translate(var15); } finally { ConnectorIOUtils.closeQuietly((Object)conn); } reply.put("javax.xml.ws.handler.message.outbound", false); executeHandlers(chain, reply); return new GenericResponse(reply.getMessage()); }
Example 5
Source File: AbstractWsSender.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
protected GenericResponse call(GenericRequest genericRequest) throws TechnicalConnectorException { SOAPMessageContext request = this.createSOAPMessageCtx(genericRequest); request.putAll(genericRequest.getRequestMap()); request.put("javax.xml.ws.handler.message.outbound", true); Handler<?>[] chain = genericRequest.getHandlerchain(); SOAPConnection conn = null; SOAPMessageContext reply = null; try { URL endpoint = generateEndpoint(request); executeHandlers(chain, request); SOAPMessage msgToSend = request.getMessage(); conn = scf.createConnection(); reply = createSOAPMessageCtx(conn.call(msgToSend, endpoint)); } catch (UnsupportedOperationException var13) { throw translate(var13); } catch (SOAPException var14) { throw translate(var14); } catch (MalformedURLException var15) { throw translate(var15); } finally { ConnectorIOUtils.closeQuietly((Object)conn); } reply.put("javax.xml.ws.handler.message.outbound", false); executeHandlers(chain, reply); return new GenericResponse(reply.getMessage()); }