protected org.apache.axis2.addressing.EndpointReference getPortLocationEPR(WebServiceBinding binding) { String ep = null; if (binding.getPort() != null) { List<?> wsdlPortExtensions = binding.getPort().getExtensibilityElements(); for (final Object extension : wsdlPortExtensions) { if (extension instanceof SOAPAddress) { ep = ((SOAPAddress)extension).getLocationURI(); break; } if (extension instanceof SOAP12Address) { SOAP12Address address = (SOAP12Address)extension; ep = address.getLocationURI(); break; } } } if(ep == null || ep.equals("")) { ep = binding.getURI(); } return ep == null || "".equals(ep) ? null : new org.apache.axis2.addressing.EndpointReference(ep); }
protected String getPortLocation() { String ep = null; if (wsBinding.getPort() != null) { List<?> wsdlPortExtensions = wsBinding.getPort().getExtensibilityElements(); for (final Object extension : wsdlPortExtensions) { if (extension instanceof SOAPAddress) { ep = ((SOAPAddress)extension).getLocationURI(); break; } if (extension instanceof SOAP12Address) { SOAP12Address address = (SOAP12Address)extension; ep = address.getLocationURI(); break; } } } if (ep == null || ep.equals("")) { ep = endpointReference.getDeployedURI(); } return ep; }
private PortType getPortType(WebServiceBinding model) { PortType portType = null; if (model.getPort() != null) { portType = model.getPort().getBinding().getPortType(); } else if (model.getEndpoint() != null) { portType = model.getPort().getBinding().getPortType(); } else if (model.getBinding() != null) { portType = model.getBinding().getPortType(); } else if (model.getService() != null) { // FIXME: How to find the compatible port? Map ports = model.getService().getPorts(); if (!ports.isEmpty()) { Port port = (Port)ports.values().iterator().next(); portType = port.getBinding().getPortType(); } } return portType; }
protected Dispatch<SOAPMessage> createDispatchFromURI(String uri) { QName serviceName = wsBinding.getService().getQName(); QName portName = new QName(serviceName.getNamespaceURI(), wsBinding.getPort().getName()); Service service = Service.create(serviceName); service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, uri); return service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE); }
private PortType getPortType(WebServiceBinding model) { PortType portType = null; if (model.getPort() != null) { portType = model.getPort().getBinding().getPortType(); } else if (model.getEndpoint() != null) { portType = model.getPort().getBinding().getPortType(); } else if (model.getBinding() != null) { portType = model.getBinding().getPortType(); } else if (model.getService() != null) { // FIXME: How to find the compatible port? Map ports = model.getService().getPorts(); if (!ports.isEmpty()) { Port port = (Port)ports.values().iterator().next(); portType = port.getBinding().getPortType(); } } return portType; }
private void validateWSDL(ProcessorContext context, WebServiceBinding model) { WSDLDefinition wsdlDefinition = model.getUserSpecifiedWSDLDefinition(); Port port = model.getPort(); if (port != null){ validateWSDLPort(context, model, port); } Binding binding = model.getBinding(); if (binding != null){ validateWSDLBinding(context, model, binding); } }
protected Dispatch<SOAPMessage> createDynamicDispatch() { QName serviceName = wsBinding.getService().getQName(); QName portName = new QName(serviceName.getNamespaceURI(), wsBinding.getPort().getName()); Service service = Service.create(serviceName); service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, endpointReference.getDeployedURI()); return service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE); }
private void validateWSDL(ProcessorContext context, WebServiceBinding model) { WSDLDefinition wsdlDefinition = model.getUserSpecifiedWSDLDefinition(); Port port = model.getPort(); if (port != null){ validateWSDLPort(context, model, port); } Binding binding = model.getBinding(); if (binding != null){ validateWSDLBinding(context, model, binding); } }
wsBinding.getPort().getName()); properties.put(Endpoint.WSDL_PORT, portName);
wsBinding.getPort().getName()); properties.put(Endpoint.WSDL_PORT, portName);
List wsdlPortExtensions = wsBinding.getPort().getExtensibilityElements(); for (final Object extension : wsdlPortExtensions) { if (extension instanceof SOAPAddress) {
Definition definition = wsBinding.getGeneratedWSDLDocument(); QName serviceQName = wsBinding.getService().getQName(); Port port = wsBinding.getPort(); if (port == null) {