Package com.ibm.wsdl.extensions.soap

Examples of com.ibm.wsdl.extensions.soap.SOAPAddressImpl


            Service service = serviceWSDL.getService(serviceName);
            Port port = service.getPort(servicePort);
            List extList = port.getExtensibilityElements();
            for (Object extEle : extList) {
                 if (extEle instanceof SOAPAddressImpl) {
                     SOAPAddressImpl soapAddress = (SOAPAddressImpl)extEle;
                     serviceURI = soapAddress.getLocationURI();
                     break;
                 }
            }

            if (serviceURI == null) {
View Full Code Here


    private BindingTemplate createBindingTemplateForSOAP11(BindingTemplate bindingTemplate,
                                                           PortImpl port,
                                                           Object address) {
        bindingTemplate = new BindingTemplate();

        SOAPAddressImpl soapAddress = (SOAPAddressImpl) address;
        String endpoint = soapAddress.getLocationURI();
        AccessPoint accessPoint = new AccessPoint();
        accessPoint.setValue(endpoint);
        accessPoint.setUseType(UDDIConstants.END_POINT);
        bindingTemplate.setAccessPoint(accessPoint);
View Full Code Here

   * @param parents A list of parents of the SOAP address element.
   * @param valInfo The validation info for this validation.
   */
  protected void validateAddress(Object element, List parents, IWSDL11ValidationInfo valInfo)
  {
    SOAPAddressImpl sa = (SOAPAddressImpl)element;

    String uri = sa.getLocationURI();
    if (uri == null || uri.equalsIgnoreCase(EMPTY_STRING))
    {
      valInfo.addError(messagegenerator.getString(_ERROR_NO_LOCATION_FOR_ADDRESS), sa);
    }

View Full Code Here

       
        service.setQName
            (new QName ("http://wfmopen.sourceforge.net/wfxml20.wsdl",
                        serviceName, "tns"));
        service.addPort(port);
        SOAPAddress address = new SOAPAddressImpl();
        address.setLocationURI(getRequestBasePath(request));
       
        port.addExtensibilityElement(address);
       
        definition.addService(service);
    }
View Full Code Here

        Port port = def.createPort();
        port.setBinding(binding);
        port.setName(this.name + "Port");

        if (locationURI != null) {
            SOAPAddress soapAddress = new SOAPAddressImpl();
            soapAddress.setLocationURI(locationURI);
            port.addExtensibilityElement(soapAddress);
        }

        Service service = def.createService();
        service.setQName(new QName(TNS, this.name));
View Full Code Here

            soapport.setName(portTypeName + "SoapPort");
            soapport.setBinding(binding);
            /*
             * Set Address for SOAP Port
             */
            SOAPAddress address = new SOAPAddressImpl();
            address.setLocationURI(epr);

            soapport.addExtensibilityElement(address);

            // add Port
            service.addPort(soapport);
View Full Code Here

                        this.getServiceUnit().getComponent().getComponentContext().getEndpointDescriptor(serviceEndpoint);
                    definition = getBus().getExtension(WSDLManager.class)
                        .getDefinition((Element)description.getFirstChild());
                    List address = definition.getService(getTargetService()).getPort(getTargetEndpoint()).getExtensibilityElements();
                    if (address == null || address.size() == 0) {
                        SOAPAddressImpl soapAddress = new SOAPAddressImpl();
                        //specify default transport if there is no one in the internal wsdl
                        soapAddress.setLocationURI("http://localhost");
                        definition.getService(getTargetService()).getPort(getTargetEndpoint()).addExtensibilityElement(soapAddress);
                    }
                    List binding = definition.getService(getTargetService()).getPort(
                            getTargetEndpoint()).getBinding().getExtensibilityElements();
                    if (binding == null || binding.size() == 0) {
View Full Code Here

                PortImpl port = (PortImpl) def.createPort();
                port.setName(wsdlQName.getLocalPart() + WSDL_PORT_SUFFIX);
                port.setBinding(binding);
                service.addPort(port);

                SOAPAddressImpl soapAddress = new SOAPAddressImpl();
                soapAddress.setLocationURI(serviceLocation);
                port.addExtensibilityElement(soapAddress);
                def.addService(service);
            }

            if (!abstractWSDL) {
View Full Code Here

               {
                  Object o = iter.next(  );

                  if ( o instanceof SOAPAddressImpl )
                  {
                     SOAPAddressImpl sai = (SOAPAddressImpl) o;
                     serviceLocation = new URL( sai.getLocationURI(  ) );
                  }
               }

               break;
            }
View Full Code Here

        Port port = def.createPort();
        port.setBinding(binding);
        port.setName(this.name + "Port");

        if (locationURI != null) {
            SOAPAddress soapAddress = new SOAPAddressImpl();
            soapAddress.setLocationURI(locationURI);
            port.addExtensibilityElement(soapAddress);
        }

        Service service = def.createService();
        service.setQName(new QName(TNS, this.name));
View Full Code Here

TOP

Related Classes of com.ibm.wsdl.extensions.soap.SOAPAddressImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.