public void generateWSDL(MessageContext context) throws AxisFault { context.setTargetService("MyService"); }
public void invoke(MessageContext msgContext) throws AxisFault { log.debug("Enter: URLMapper::invoke"); /** If there's already a targetService then just return. */ if ( msgContext.getService() == null ) { // path may or may not start with a "/". see http://issues.apache.org/jira/browse/AXIS-1372 String path = (String)msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETPATHINFO); if ((path != null) && (path.length() >= 1)) { //rules out the cases of path="", path=null if(path.startsWith("/")) path = path.substring(1); //chop the extra "/" msgContext.setTargetService( path ); } } log.debug("Exit: URLMapper::invoke"); }
public void invoke(MessageContext msgContext) throws AxisFault { log.debug("Enter: URLMapper::invoke"); /** If there's already a targetService then just return. */ if ( msgContext.getService() == null ) { // path may or may not start with a "/". see http://issues.apache.org/jira/browse/AXIS-1372 String path = (String)msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETPATHINFO); if ((path != null) && (path.length() >= 1)) { //rules out the cases of path="", path=null if(path.startsWith("/")) path = path.substring(1); //chop the extra "/" msgContext.setTargetService( path ); } } log.debug("Exit: URLMapper::invoke"); }
public void invoke(MessageContext msgContext) throws AxisFault { log.debug("Enter: URLMapper::invoke"); /** If there's already a targetService then just return. */ if ( msgContext.getService() == null ) { // path may or may not start with a "/". see http://issues.apache.org/jira/browse/AXIS-1372 String path = (String)msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETPATHINFO); if ((path != null) && (path.length() >= 1)) { //rules out the cases of path="", path=null if(path.startsWith("/")) path = path.substring(1); //chop the extra "/" msgContext.setTargetService( path ); } } log.debug("Exit: URLMapper::invoke"); }
/** * Can be overridden by subclasses to customize * how the wsa:to header is interpreted. * * @param ctx Context information * @param headers Header container */ protected void setTargetService(MessageContext ctx, AddressingHeaders headers) throws Exception { To toURI = headers.getTo(); if (toURI == null) { return; } String to = toURI.getPath(); if (to == null) { return; } // set the target service int i = to.lastIndexOf('/'); ctx.setTargetService(to.substring(i + 1)); }
msgContext.setTargetService( action );
msgContext.setTargetService( action );
msgContext.setTargetService( action );
/** * {@inheritDoc} */ @Override protected void setTargetService(SOAPMessageContext soapMsgContext, AddressingHeaders headers) throws Exception { org.apache.axis.MessageContext axisMsgContext = (org.apache.axis.MessageContext) soapMsgContext; // TODO: why is the below code necessary? - add comments if (axisMsgContext.getService() == null && axisMsgContext.getTargetService() == null) { axisMsgContext.setTargetService(getTargetServiceName(headers)); // This is to ensure the SOAPEnvelope is rebuilt with the right type mappings and // MessageContext is set with the right properties. if (axisMsgContext.getTargetService() != null) { ((Message) axisMsgContext.getMessage()).getSOAPPartAsString(); } } }
/** * Set up any transport-specific derived properties in the message context. * @param mc the context to set up * @param call the call (unused?) * @param engine the engine containing the registries * @throws AxisFault if service cannot be found */ public void setupMessageContextImpl(MessageContext mc, Call call, AxisEngine engine) throws AxisFault { if (action != null) { mc.setUseSOAPAction(true); mc.setSOAPActionURI(action); } // Set up any cookies we know about if (cookie != null) mc.setProperty(HTTPConstants.HEADER_COOKIE, cookie); if (cookie2 != null) mc.setProperty(HTTPConstants.HEADER_COOKIE2, cookie2); // Allow the SOAPAction to determine the service, if the service // (a) has not already been determined, and (b) if a service matching // the soap action has been deployed. if (mc.getService() == null) { mc.setTargetService( (String)mc.getSOAPActionURI() ); } }
/** * Set up any transport-specific derived properties in the message context. * @param mc the context to set up * @param call the call (unused?) * @param engine the engine containing the registries * @throws AxisFault if service cannot be found */ public void setupMessageContextImpl(MessageContext mc, Call call, AxisEngine engine) throws AxisFault { if (action != null) { mc.setUseSOAPAction(true); mc.setSOAPActionURI(action); } // Set up any cookies we know about if (cookie != null) mc.setProperty(HTTPConstants.HEADER_COOKIE, cookie); if (cookie2 != null) mc.setProperty(HTTPConstants.HEADER_COOKIE2, cookie2); // Allow the SOAPAction to determine the service, if the service // (a) has not already been determined, and (b) if a service matching // the soap action has been deployed. if (mc.getService() == null) { mc.setTargetService( (String)mc.getSOAPActionURI() ); } }
/** * Set up any transport-specific derived properties in the message context. * @param mc the context to set up * @param call the call (unused?) * @param engine the engine containing the registries * @throws AxisFault if service cannot be found */ public void setupMessageContextImpl(MessageContext mc, Call call, AxisEngine engine) throws AxisFault { if (action != null) { mc.setUseSOAPAction(true); mc.setSOAPActionURI(action); } // Set up any cookies we know about if (cookie != null) mc.setProperty(HTTPConstants.HEADER_COOKIE, cookie); if (cookie2 != null) mc.setProperty(HTTPConstants.HEADER_COOKIE2, cookie2); // Allow the SOAPAction to determine the service, if the service // (a) has not already been determined, and (b) if a service matching // the soap action has been deployed. if (mc.getService() == null) { mc.setTargetService( (String)mc.getSOAPActionURI() ); } }
"local:///" + file); serverContext.setTargetService(file); } catch (Exception e) { throw AxisFault.makeFault(e); serverContext.setTargetService(remoteService);
"local:///" + file); serverContext.setTargetService(file); } catch (Exception e) { throw AxisFault.makeFault(e); serverContext.setTargetService(remoteService);
"local:///" + file); serverContext.setTargetService(file); } catch (Exception e) { throw AxisFault.makeFault(e); serverContext.setTargetService(remoteService);
msgContext.setTargetService(null); } catch (AxisFault fault) {
msgContext.setTargetService(null); } catch (AxisFault fault) {
msgContext.setTargetService(null); } catch (AxisFault fault) {
msgContext.setTargetService(portName.getLocalPart()); } else { null, null); } else { msgContext.setTargetService(body.getNamespaceURI());
msgContext.setTargetService(portName.getLocalPart()); } else { null, null); } else { msgContext.setTargetService(body.getNamespaceURI());