Package javax.wsdl.extensions.soap

Examples of javax.wsdl.extensions.soap.SOAPAddress


        Port port = (Port) portItr.next();
        List list = port.getExtensibilityElements();
        for (int i = 0; i < list.size(); i++) {
          Object extensibilityEle = list.get(i);
          if (extensibilityEle instanceof SOAPAddress) {
            SOAPAddress soapAddress = (SOAPAddress) extensibilityEle;
            String existingAddress = soapAddress.getLocationURI();
            if (existingAddress == null
                || existingAddress
                    .equals("REPLACE_WITH_ACTUAL_URL")) {
              ((SOAPAddress) extensibilityEle)
                  .setLocationURI(getEPRs()[0]);
            } else {
              if (requestIP == null) {
                ((SOAPAddress) extensibilityEle)
                    .setLocationURI(getLocationURI(
                        getEPRs(), existingAddress));
              } else {
                ((SOAPAddress) extensibilityEle)
                    .setLocationURI(getLocationURI(
                        calculateEPRs(requestIP),
                        existingAddress));
              }
            }
          } else if (extensibilityEle instanceof SOAP12Address) {
            SOAP12Address soapAddress = (SOAP12Address) extensibilityEle;
            String exsistingAddress = soapAddress.getLocationURI();
            if (requestIP == null) {
              ((SOAP12Address) extensibilityEle)
                  .setLocationURI(getLocationURI(getEPRs(),
                      exsistingAddress));
            } else {
View Full Code Here


                if (description instanceof AxisEndpoint) {
                  setEndpointURL((AxisEndpoint) description, soapAddress.getLocationURI());
                }

            } else if (wsdl4jExtensibilityElement instanceof SOAPAddress) {
                SOAPAddress soapAddress = (SOAPAddress) wsdl4jExtensibilityElement;
                if (description instanceof AxisEndpoint) {
                  setEndpointURL((AxisEndpoint) description, soapAddress.getLocationURI());
                }
            } else if (wsdl4jExtensibilityElement instanceof HTTPAddress) {
                HTTPAddress httpAddress = (HTTPAddress) wsdl4jExtensibilityElement;
                if (description instanceof AxisEndpoint) {
                  setEndpointURL((AxisEndpoint) description, httpAddress.getLocationURI());
View Full Code Here

        for ( int i = 0; i < extElems.size(); i++ )
        {
            ExtensibilityElement extElem = (ExtensibilityElement) extElems.get( i );
            if ( extElem instanceof SOAPAddress )
            {
                SOAPAddress soapAddr = (SOAPAddress) extElem;
                endpointURL = soapAddr.getLocationURI();
                break;
            }
        }
        if ( endpointURL == null )
        {
View Full Code Here

            assertNotNull("WSDL at location: " + wsdlURL + " was null.",definition);//valid wsdls
            assertEquals("There must only be exactly one service in the WSDL file.", 1, definition.getServices().size()); //single service
            Service service = (Service) definition.getServices().values().iterator().next();
            assertEquals("There must only be exactly one port associated with the service in the WSDL file.", 1, service.getPorts().size())//single port
            Port port = (Port) service.getPorts().values().iterator().next();
            SOAPAddress soapAddress = (SOAPAddress) port.getExtensibilityElements().get(0);
            assertEquals("The soap:address in WSDL at " + wsdlURL + " did not match the EPR address.", address, soapAddress.getLocationURI()); //EPR address matches that contained in soap:address
        }
    }
View Full Code Here

                    component.addExtensibilityElement(defaultExtensibilityElement);
                }


            } else if (wsdl4jElement instanceof SOAPAddress) {
                SOAPAddress soapAddress = (SOAPAddress) wsdl4jElement;
                org.apache.wsdl.extensions.SOAPAddress soapAddressExtensibilityElement = (org.apache.wsdl.extensions.SOAPAddress) extensionFactory
                        .getExtensionElement(soapAddress.getElementType());
                soapAddressExtensibilityElement.setLocationURI(soapAddress
                        .getLocationURI());
                Boolean required = soapAddress.getRequired();
                if (null != required) {
                    soapAddressExtensibilityElement.setRequired(required.booleanValue());
                }
                component.addExtensibilityElement(soapAddressExtensibilityElement);
            } else if (wsdl4jElement instanceof Schema) {
View Full Code Here

         ExtensibilityElement extElement = (ExtensibilityElement)it.next();
         QName elementType = extElement.getElementType();

         if (extElement instanceof SOAPAddress)
         {
            SOAPAddress addr = (SOAPAddress)extElement;
            soapAddress = addr.getLocationURI();
            break;
         }
         else if (extElement instanceof SOAP12Address)
         {
            SOAP12Address addr = (SOAP12Address)extElement;
            soapAddress = addr.getLocationURI();
            break;
         }
         else if ("address".equals(elementType.getLocalPart()))
         {
            log.warn("Unprocessed extension element: " + elementType);
View Full Code Here

               List extElements = wsdlOneOnePort.getExtensibilityElements();
               for (Object extElement : extElements)
               {
                  if (extElement instanceof SOAPAddress)
                  {
                     SOAPAddress address = (SOAPAddress)extElement;
                     address.setLocationURI(serviceEndpointURL);
                  }
                  if (extElement instanceof SOAP12Address)
                  {
                     SOAP12Address address = (SOAP12Address)extElement;
                     address.setLocationURI(serviceEndpointURL);
                  }
               }
            }
         }
      }
View Full Code Here

      {
        ExtensibilityElement extEl = (ExtensibilityElement)extEls.get(0);

        if (extEl instanceof SOAPAddress)
        {
          SOAPAddress soapAddress = (SOAPAddress)extEl;

          address = soapAddress.getLocationURI();
        }
      }

      pw.println("    <endpoint name=\"" + portName + "\"");
      pw.print("             ");
View Full Code Here

        URL location = getURL(locationURIString);
        return location;
    }

    private URL getAddressLocation(Port port) throws DeploymentException {
        SOAPAddress soapAddress =
            (SOAPAddress) getExtensibilityElement(SOAPAddress.class, port.getExtensibilityElements());
        URL location = null;
        if (soapAddress != null) {
            String locationURIString = soapAddress.getLocationURI();
            location = getURL(locationURIString);
        }
        return location;
    }
View Full Code Here

        Style portStyle = Style.getStyle(portStyleString);
        return portStyle;
    }

    private static String getAddressLocation(Port port) throws DeploymentException {
        SOAPAddress soapAddress = (SOAPAddress) SchemaInfoBuilder.getExtensibilityElement(SOAPAddress.class, port.getExtensibilityElements());
        String locationURIString = soapAddress.getLocationURI();
        return locationURIString;
    }
View Full Code Here

TOP

Related Classes of javax.wsdl.extensions.soap.SOAPAddress

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.