public void init(WebServiceEndpoint ep){ endpoint = ep; isHttpBinding = ((HTTPBinding.HTTP_BINDING.equals (endpoint.getProtocolBinding())) ? true : false); }
public boolean getMtom(WebServiceEndpoint ep) { String currentBinding = ep.getProtocolBinding(); if((ep.getMtomEnabled() == null) && (SOAPBinding.SOAP11HTTP_MTOM_BINDING.equals(currentBinding) || SOAPBinding.SOAP12HTTP_MTOM_BINDING.equals(currentBinding))) { return true; } if((new Boolean(ep.getMtomEnabled())).booleanValue() && (SOAPBinding.SOAP11HTTP_BINDING.equals(currentBinding) || SOAPBinding.SOAP12HTTP_BINDING.equals(currentBinding) || SOAPBinding.SOAP11HTTP_MTOM_BINDING.equals(currentBinding) || SOAPBinding.SOAP12HTTP_MTOM_BINDING.equals(currentBinding))) { return true; } return false; }
if (!(HTTPBinding.HTTP_BINDING.equals(endpoint.getProtocolBinding()))) {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException { startedEvent(endpoint.getEndpointAddressPath()); if (("Tester".equalsIgnoreCase(request.getQueryString())) && (!(HTTPBinding.HTTP_BINDING.equals(endpoint.getProtocolBinding())))) { Endpoint endpt = wsEngine_.getEndpoint(request.getServletPath()); if (endpt != null && Boolean.parseBoolean(endpt.getDescriptor().getDebugging())) { WebServiceTesterServlet.invoke(request, response, endpt.getDescriptor()); endedEvent(endpoint.getEndpointAddressPath()); return; } } // lookup registered URLs and get the appropriate adapter; // pass control to the adapter try { ServletAdapter targetEndpoint = (ServletAdapter) getEndpointFor(request); if (targetEndpoint != null) { targetEndpoint.handle(getServletContext(), request, response); } else { throw new ServletException("Service not found"); } } catch (Throwable t) { ServletException se = new ServletException(); se.initCause(t); throw se; } endedEvent(endpoint.getEndpointAddressPath()); }
private void handleGet(HttpServletRequest req, HttpServletResponse resp, ServletContext ctxt, EjbRuntimeEndpointInfo endpointInfo) throws IOException { AdapterInvocationInfo adapterInfo = null; ServletAdapter adapter; try { adapterInfo = (AdapterInvocationInfo) endpointInfo.prepareInvocation(true); adapter = adapterInfo.getAdapter(); if (adapter != null) { adapter.publishWSDL(ctxt, req, resp); } else { String message = "Invalid wsdl request " + req.getRequestURL(); (new WsUtil()).writeInvalidMethodType(resp, message); } } catch (Throwable e) { String errorMessage = "invocation error on ejb endpoint " + endpointInfo.getEndpoint().getEndpointName() + " at " + endpointInfo.getEndpointAddressUri() + " : " + e.getMessage(); logger.log(Level.WARNING, errorMessage, e); String binding = endpointInfo.getEndpoint().getProtocolBinding(); WsUtil.raiseException(resp, binding, errorMessage); } } }
throws ServletException, IOException { if (("Tester".equalsIgnoreCase(request.getQueryString())) && (!(HTTPBinding.HTTP_BINDING.equals(endpoint.getProtocolBinding())))) { (HTTPBinding.HTTP_BINDING.equals(endpoint.getProtocolBinding()))) { doPost(request, response); return;
endpointInfo.getEndpointAddressUri() + " : " + e.getMessage(); logger.log(Level.WARNING, errorMessage, e); String binding = endpointInfo.getEndpoint().getProtocolBinding(); WsUtil.raiseException(resp, binding, errorMessage);
if("http://www.w3.org/2004/08/wsdl/http".equals(endpoint.getProtocolBinding())) { return next.process(request);
String givenBinding = endpoint.getProtocolBinding();
String givenBinding = endpoint.getProtocolBinding(); endpoint.getProtocolBinding(), binding);
appendTextChild(wseNode, WebServicesTagNames.PROTOCOL_BINDING, descriptor.getProtocolBinding());
appendTextChild(wseNode, WebServicesTagNames.PROTOCOL_BINDING, descriptor.getProtocolBinding());