protected Dispatch<SOAPMessage> createStaticDispatch() { URL wsdlLocation = null; try { if (wsBinding.getGeneratedWSDLDocument() != null && wsBinding.getGeneratedWSDLDocument().getDocumentBaseURI() != null) { wsdlLocation = new URL(wsBinding.getGeneratedWSDLDocument().getDocumentBaseURI()); } } catch (Exception e) { // ignore and try getting the location from the other places } try { if (wsBinding.getUserSpecifiedWSDLDefinition().getLocation() != null) { wsdlLocation = wsBinding.getUserSpecifiedWSDLDefinition().getLocation().toURL(); } } catch (MalformedURLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } if (wsdlLocation != null) { return createDispatchFromWSDL(wsdlLocation); } else { return createDispatchFromURI(endpointReference.getDeployedURI()); } }
private void createAxisService(String endpointURL, Port port) throws AxisFault { AxisService axisService; if (wsBinding.getGeneratedWSDLDocument() != null) { axisService = Axis2EngineIntegration.createWSDLAxisService(endpointURL, port, wsBinding); } else { axisService = Axis2EngineIntegration.createJavaAxisService(endpointURL, configContext, service); } Axis2EngineIntegration.createAxisServiceProviders(axisService, endpoint, wsBinding, extensionPoints); configContext.getAxisConfiguration().addService(axisService); } }
private void addWSAActionHeader( SOAPHeader sh ) { // Create wsa:Action header which is required by ws-addressing spec String action = options.getAction(); if (action == null) { PortType portType = ((WSDLInterface)wsBinding.getBindingInterfaceContract().getInterface()).getPortType(); Operation op = portType.getOperation(wsdlOperationName.getLocalPart(), null, null); action = WSDL11ActionHelper.getActionFromInputElement(wsBinding.getGeneratedWSDLDocument(), portType, op, op.getInput()); } OMElement actionOM = sh.getOMFactory().createOMElement(QNAME_WSA_ACTION); actionOM.setText(action == null ? "" : action); sh.addChild(actionOM); } // end method addWSAActionHeader
public JAXWSReferenceBindingProvider(RuntimeEndpointReference endpointReference, FactoryExtensionPoint modelFactories, DataBindingExtensionPoint dataBindings) { this.endpointReference = endpointReference; this.messageFactory = modelFactories.getFactory(javax.xml.soap.MessageFactory.class); this.wsBinding = (WebServiceBinding) endpointReference.getBinding(); // A WSDL document should always be present in the binding if (wsBinding.getGeneratedWSDLDocument() == null) { throw new ServiceRuntimeException("No WSDL document for " + endpointReference.getURI()); } // Set to use the DOM data binding InterfaceContract contract = wsBinding.getBindingInterfaceContract(); if (contract.getInterface() != null) { contract.getInterface().resetDataBinding(Node.class.getName()); } }
public JAXWSReferenceBindingProvider(RuntimeEndpointReference endpointReference, FactoryExtensionPoint modelFactories, DataBindingExtensionPoint dataBindings) { this.endpointReference = endpointReference; this.messageFactory = modelFactories.getFactory(javax.xml.soap.MessageFactory.class); this.wsBinding = (WebServiceBinding) endpointReference.getBinding(); // A WSDL document should always be present in the binding if (wsBinding.getGeneratedWSDLDocument() == null) { throw new ServiceRuntimeException("No WSDL document for " + endpointReference.getURI()); } // Set to use the DOM data binding InterfaceContract contract = wsBinding.getBindingInterfaceContract(); if (contract.getInterface() != null) { contract.getInterface().resetDataBinding(Node.class.getName()); } }
WebServiceBinding wsBinding) throws AxisFault { Definition definition = wsBinding.getGeneratedWSDLDocument(); QName serviceQName = wsBinding.getService().getQName(); Definition def = getDefinition(definition, serviceQName);
private void addWSAActionHeader(SOAPHeader sh, String action) throws SOAPException { // Create wsa:Action header which is required by ws-addressing spec if (action == null) { PortType portType = ((WSDLInterface)wsBinding.getBindingInterfaceContract().getInterface()).getPortType(); javax.wsdl.Operation op = portType.getOperation(operation.getName(), null, null); action = getActionFromInputElement(wsBinding.getGeneratedWSDLDocument(), portType, op, op.getInput()); } // OMElement actionOM = // sh.getOMFactory().createOMElement(QNAME_WSA_ACTION); // actionOM.setText(action == null ? "" : action); // sh.addChild(actionOM); SOAPHeaderElement actionH = sh.addHeaderElement(QNAME_WSA_ACTION); actionH.setTextContent(action == null ? "" : action); } // end method addWSAActionHeader
if (wsBinding.getGeneratedWSDLDocument() == null) { throw new ServiceRuntimeException("No WSDL document for " + endpoint.getURI());
Definition definition = wsBinding.getGeneratedWSDLDocument(); QName serviceQName = wsBinding.getService().getQName(); Port port = wsBinding.getPort();
if (wsBinding.getGeneratedWSDLDocument() == null) { throw new ServiceRuntimeException("No WSDL document for " + component.getName() + "/" + reference.getName()); Definition def = wsBinding.getGeneratedWSDLDocument(); Binding binding = def.getBinding(wsBinding.getBinding().getQName()); for ( Object ext : binding.getExtensibilityElements() ) { Definition def = wsBinding.getGeneratedWSDLDocument(); Binding binding = def.getBinding(wsBinding.getBinding().getQName()); for ( Object ext : binding.getExtensibilityElements() ) {
if (wsBinding.getGeneratedWSDLDocument() == null) { throw new ServiceRuntimeException("No WSDL document for " + component.getName() + "/" + service.getName());
Definition definition = wsBinding.getGeneratedWSDLDocument(); if (definition == null) { definition = WSDLServiceGenerator.configureWSDLDefinition(wsBinding, component, contract, monitor);
Definition definition = wsBinding.getGeneratedWSDLDocument(); if (definition == null) { definition = WSDLServiceGenerator.configureWSDLDefinition(wsBinding, component, contract, monitor);