/** * Set up any transport-specific derived properties in the message context. * @param context the context to set up * @param message the client service instance * @param engine the engine containing the registries */ public void setupMessageContextImpl(MessageContext mc, Call call, AxisEngine engine) { if (server != null) mc.setProperty(LOCAL_SERVER, server); if (remoteServiceName != null) mc.setProperty(REMOTE_SERVICE, remoteServiceName); } }
/** * Set up any transport-specific derived properties in the message context. * @param context the context to set up * @param message the client service instance * @param engine the engine containing the registries */ public void setupMessageContextImpl(MessageContext mc, Call call, AxisEngine engine) { if (server != null) mc.setProperty(LOCAL_SERVER, server); if (remoteServiceName != null) mc.setProperty(REMOTE_SERVICE, remoteServiceName); } }
/** * Set up any transport-specific derived properties in the message context. * @param context the context to set up * @param message the client service instance * @param engine the engine containing the registries */ public void setupMessageContextImpl(MessageContext mc, Call call, AxisEngine engine) { if (server != null) mc.setProperty(LOCAL_SERVER, server); if (remoteServiceName != null) mc.setProperty(REMOTE_SERVICE, remoteServiceName); } }
/** * Assign a new message id */ private Long assignMessageId(MessageContext messageContext) { Long id = null; synchronized(SOAPMonitorConstants.SOAP_MONITOR_ID) { id = new Long(next_message_id); next_message_id++; } messageContext.setProperty(SOAPMonitorConstants.SOAP_MONITOR_ID, id); return id; }
/** * Assign a new message id */ private Long assignMessageId(MessageContext messageContext) { Long id = null; synchronized(SOAPMonitorConstants.SOAP_MONITOR_ID) { id = new Long(next_message_id); next_message_id++; } messageContext.setProperty(SOAPMonitorConstants.SOAP_MONITOR_ID, id); return id; }
/** * Assign a new message id */ private Long assignMessageId(MessageContext messageContext) { Long id = null; synchronized(SOAPMonitorConstants.SOAP_MONITOR_ID) { id = new Long(next_message_id); next_message_id++; } messageContext.setProperty(SOAPMonitorConstants.SOAP_MONITOR_ID, id); return id; }
public void endElement(String namespace, String localName, DeserializationContext context) throws SAXException { // endElement may not be called in all circumstances. // In addition, onStartChild may be called after endElement // (for header parameter/response processing). // So please don't add important logic to this method. if (log.isDebugEnabled()) { log.debug(Messages.getMessage("setProp00", "MessageContext", "RPCHandler.endElement().")); } context.getMessageContext().setProperty("RPC", rpcElem); } }
public void endElement(String namespace, String localName, DeserializationContext context) throws SAXException { // endElement may not be called in all circumstances. // In addition, onStartChild may be called after endElement // (for header parameter/response processing). // So please don't add important logic to this method. if (log.isDebugEnabled()) { log.debug(Messages.getMessage("setProp00", "MessageContext", "RPCHandler.endElement().")); } context.getMessageContext().setProperty("RPC", rpcElem); } }
public void endElement(String namespace, String localName, DeserializationContext context) throws SAXException { // endElement may not be called in all circumstances. // In addition, onStartChild may be called after endElement // (for header parameter/response processing). // So please don't add important logic to this method. if (log.isDebugEnabled()) { log.debug(Messages.getMessage("setProp00", "MessageContext", "RPCHandler.endElement().")); } context.getMessageContext().setProperty("RPC", rpcElem); } }
public final void setupMessageContext(MessageContext context, Call message, AxisEngine engine) throws AxisFault { if (url != null) context.setProperty(MessageContext.TRANS_URL, url); if (transportName != null) context.setTransportName(transportName); setupMessageContextImpl(context, message, engine); }
public void generateWSDL(MessageContext msgContext) throws AxisFault { try { String url = msgContext.getStrProp(MessageContext.TRANS_URL); String wsdlString = wsdlStart + url + wsdlEnd; Document doc = XMLUtils.newDocument(new ByteArrayInputStream(wsdlString.getBytes("UTF-8"))); msgContext.setProperty("WSDL", doc); } catch (Exception e) { throw AxisFault.makeFault(e); } } };
public void generateWSDL(MessageContext msgContext) throws AxisFault { try { String url = msgContext.getStrProp(MessageContext.TRANS_URL); String wsdlString = wsdlStart + url + wsdlEnd; Document doc = XMLUtils.newDocument(new ByteArrayInputStream(wsdlString.getBytes("UTF-8"))); msgContext.setProperty("WSDL", doc); } catch (Exception e) { throw AxisFault.makeFault(e); } } };
public final void setupMessageContext(MessageContext context, Call message, AxisEngine engine) throws AxisFault { if (url != null) context.setProperty(MessageContext.TRANS_URL, url); if (transportName != null) context.setTransportName(transportName); setupMessageContextImpl(context, message, engine); }
public final void setupMessageContext(MessageContext context, Call message, AxisEngine engine) throws AxisFault { if (url != null) context.setProperty(MessageContext.TRANS_URL, url); if (transportName != null) context.setTransportName(transportName); setupMessageContextImpl(context, message, engine); }
public void generateWSDL(MessageContext msgContext) throws AxisFault { try { String url = msgContext.getStrProp(MessageContext.TRANS_URL); String wsdlString = wsdlStart + url + wsdlEnd; Document doc = XMLUtils.newDocument(new ByteArrayInputStream(wsdlString.getBytes("UTF-8"))); msgContext.setProperty("WSDL", doc); } catch (Exception e) { throw AxisFault.makeFault(e); } } };
public void run() { msgContext.setProperty(Call.ONE_WAY, Boolean.TRUE); try { service.getEngine().invoke( msgContext ); } catch (AxisFault af){ //TODO: handle errors properly log.debug(Messages.getMessage("exceptionPrinting"), af); } msgContext.removeProperty(Call.ONE_WAY); } };
public void run() { msgContext.setProperty(Call.ONE_WAY, Boolean.TRUE); try { service.getEngine().invoke( msgContext ); } catch (AxisFault af){ //TODO: handle errors properly log.debug(Messages.getMessage("exceptionPrinting"), af); } msgContext.removeProperty(Call.ONE_WAY); } };
public void run() { msgContext.setProperty(Call.ONE_WAY, Boolean.TRUE); try { service.getEngine().invoke( msgContext ); } catch (AxisFault af){ //TODO: handle errors properly log.debug(Messages.getMessage("exceptionPrinting"), af); } msgContext.removeProperty(Call.ONE_WAY); } };
/** * Method processClientResponse. * * @param ctx Context information * @throws Exception If an error occurs */ protected void processClientResponse(MessageContext ctx) throws Exception { // if no response - do nothing Message msg = ctx.getResponseMessage(); if (msg == null) { return; } AddressingHeaders headers = new AddressingHeaders( msg.getSOAPEnvelope(), this.actor, true, this.removeHeaders, false, this.allowNonSpecificActions, this.refPropQNames); ctx.setProperty(ENV_ADDRESSING_RESPONSE_HEADERS, headers); }
public void invoke(MessageContext context) throws AxisFault { Message message = context.getRequestMessage(); SOAPEnvelope envelope = message.getSOAPEnvelope(); SOAPHeaderElement header = envelope.getHeaderByName(SOAPConstants.NAMESPACE_URI, SOAPConstants.CONNECTION_ID_HEADER_NAME); if (header == null) throw new AxisFault("Could not find mandatory header " + SOAPConstants.CONNECTION_ID_HEADER_NAME); try { String id = (String)header.getValueAsType(XMLType.XSD_STRING); if (id != null && id.length() > 0) context.setProperty(SOAPConstants.CONNECTION_ID_HEADER_NAME, id); } catch (Exception x) { throw AxisFault.makeFault(x); } finally { header.setProcessed(true); } } }