public void testInit() throws AxisFault { ConfigurationContext confContext = ConfigurationContextFactory .createEmptyConfigurationContext(); TransportOutDescription transportOut = new TransportOutDescription("http"); TransportSender sender = getTransportSender(); sender.init(confContext, transportOut); }
/** * Send via http. * * @param httpMethod * the http method * @param soapAction * the soap action * @param address * the address * @param rest * the rest * @throws IOException * Signals that an I/O exception has occurred. */ protected void sendViaHTTP(String httpMethod, String soapAction, String address, boolean rest) throws IOException { httpSender = getHTTPSender(); MessageContext msgContext = new MessageContext(); ConfigurationContext configContext = ConfigurationContextFactory .createEmptyConfigurationContext(); OperationContext opContext = new OperationContext(); msgContext.setConfigurationContext(configContext); msgContext.setEnvelope(getEnvelope()); msgContext.setDoingREST(rest); msgContext.setProperty(Constants.Configuration.HTTP_METHOD, httpMethod); msgContext.setOperationContext(opContext); URL url = new URL(address); httpSender.send(msgContext, url, soapAction); }
MockHTTPResponse response = outResponse; ConfigurationContext confContext = ConfigurationContextFactory .createEmptyConfigurationContext(); TransportOutDescription transportOut = new TransportOutDescription("http"); Parameter param = new Parameter(HTTPConstants.OMIT_SOAP_12_ACTION, false);