Examples of AttributedQName


Examples of axis.org.xmlsoap.schemas.ws._2003._03.addressing.AttributedQName

      // Note that since we are using PortListener to handle notifications,
      // rather than a Web Service that implements NotificationConsumer this
      // EPR is somewhat bogus.
      EndpointReferenceType epr = new EndpointReferenceType(  );
      epr.setAddress( new AttributedURI( callback_url ) );
      epr.setPortType( new AttributedQName( "nothing" ) );
      ServiceNameType snt = new ServiceNameType(  );
      snt.setPortName( new NCName( "NotificationConsumer" ) );
      snt.set_value( new QName( "TestNotifConsumer" ) );
      epr.setServiceName( snt );
View Full Code Here

Examples of axis.org.xmlsoap.schemas.ws._2003._03.addressing.AttributedQName

          Exception
   {
      axis.org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType axisEprType =
         new axis.org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType(  );
      axisEprType.setAddress( new AttributedURI( xmlBeansEprType.getAddress(  ).getStringValue(  ) ) );
      axisEprType.setPortType( new AttributedQName( xmlBeansEprType.getPortType(  ).getQNameValue(  ) ) );
      axis.org.xmlsoap.schemas.ws._2003._03.addressing.ServiceNameType snt =
         new axis.org.xmlsoap.schemas.ws._2003._03.addressing.ServiceNameType( xmlBeansEprType.getServiceName(  )
                                                                                              .getQNameValue(  ) );
      axisEprType.setServiceName( snt );
      axis.org.xmlsoap.schemas.ws._2003._03.addressing.ReferencePropertiesType rpt =
View Full Code Here

Examples of axis.org.xmlsoap.schemas.ws._2003._03.addressing.AttributedQName

      org.apache.axis.message.addressing.EndpointReferenceType base_endpoint = base_fault.getOriginator(  );

      if ( base_endpoint != null )
      {
         axis_endpoint.setAddress( new AttributedURI( base_endpoint.getAddress(  ).toString(  ) ) );
         axis_endpoint.setPortType( new AttributedQName( base_endpoint.getPortType(  ) ) );
         ReferencePropertiesType                                    axis_ref_props =
            new ReferencePropertiesType(  );
         org.apache.axis.message.addressing.ReferencePropertiesType base_ref_props =
            base_endpoint.getProperties(  );
         axis_ref_props.set_any( base_ref_props.get_any(  ) );
View Full Code Here

Examples of axis.org.xmlsoap.schemas.ws._2003._03.addressing.AttributedQName

      EndpointReferenceType axis_endpoint = new EndpointReferenceType(  );
      String                end_address   = "http://foo";
      axis_endpoint.setAddress( new AttributedURI( end_address ) );
      QName portType = new QName( end_address, "myporttype" );
      axis_endpoint.setPortType( new AttributedQName( portType ) );
      String service_name = "myfoo";
      axis_endpoint.setServiceName( new ServiceNameType( service_name ) );
      ReferencePropertiesType ref_prop = new ReferencePropertiesType(  );

      //ref_prop.set_any();
View Full Code Here

Examples of axis.org.xmlsoap.schemas.ws._2003._03.addressing.AttributedQName

      //create the EPR of the consumer - this EPR object is a specific type for use with the client-side stub
      axis.org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType consumerEprForStub =
         new axis.org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType(  );
      consumerEprForStub.setAddress( new AttributedURI( m_notificationConsumer.getAddress(  ) ) );
      consumerEprForStub.setPortType( new AttributedQName( m_notificationConsumer.getPortType(  ) ) );
      ServiceNameType snt = new ServiceNameType(  );
      snt.setPortName( new NCName( m_notificationConsumer.getServiceName(  ).getPort(  ) ) );
      snt.set_value( m_notificationConsumer.getServiceName(  ) );
      consumerEprForStub.setServiceName( snt );
View Full Code Here

Examples of org.apache.axis.message.addressing.AttributedQName

   throws MalformedURIException,
          RegistrationFailureException
   {
      m_isSingleton             = false;
      m_simulatedEndpointRef    = new EndpointReference( new URI( "http://unittest.apache.org/wsdm/unittest" ) );
      m_simulatedEndpointRef.setPortType( new AttributedQName( "", "UNIT_TEST_PORT" ) );
      ServiceNameType snt = new ServiceNameType( "UNIT_TEST_PORT", "UNIT_TEST_SERVICE" );
      snt.setPort( "UNIT_TEST_PORT" );
      m_simulatedEndpointRef.setServiceName( snt );
      m_simulatedId = "UNIT_TEST_RESOURCE_ID_1234";
      m_manager.register( this );
View Full Code Here

Examples of org.apache.axis.message.addressing.AttributedQName

   throws MalformedURIException,
          RegistrationFailureException
   {
      m_isSingleton             = true;
      m_simulatedEndpointRef    = new EndpointReference( new URI( "http://unittest.apache.org/wsdm/unittest" ) );
      m_simulatedEndpointRef.setPortType( new AttributedQName( "", "UNIT_TEST_PORT" ) );
      ServiceNameType snt = new ServiceNameType( "UNIT_TEST_PORT", "UNIT_TEST_SERVICE" );
      snt.setPort( "UNIT_TEST_PORT" );
      m_simulatedEndpointRef.setServiceName( snt );
      m_simulatedId = null;
      m_manager.register( this );
View Full Code Here

Examples of org.apache.camel.support.XMLTokenExpressionIterator.AttributedQName

*/
public class AttributedQNameTest extends Assert {

    @Test
    public void testMatches() {
        AttributedQName aqname = new AttributedQName("urn:foo", "petra");
        assertTrue(aqname.matches(new QName("urn:foo", "petra")));
        assertFalse(aqname.matches(new QName("urn:bar", "petra")));
        assertFalse(aqname.matches(new QName("urn:foo", "petira")));
       
        aqname = new AttributedQName("urn:foo", "*tra");
        assertTrue(aqname.matches(new QName("urn:foo", "petra")));
        assertTrue(aqname.matches(new QName("urn:foo", "astra")));
        assertFalse(aqname.matches(new QName("urn:foo", "sandra")));

        aqname = new AttributedQName("urn:foo", "pe*");
        assertTrue(aqname.matches(new QName("urn:foo", "petra")));
        assertFalse(aqname.matches(new QName("urn:foo", "astra")));
        assertTrue(aqname.matches(new QName("urn:foo", "peach")));
        assertTrue(aqname.matches(new QName("urn:foo", "peteria")));
       
        aqname = new AttributedQName("urn:foo", "p*t*a");
        assertTrue(aqname.matches(new QName("urn:foo", "petra")));
        assertFalse(aqname.matches(new QName("urn:foo", "astra")));
        assertFalse(aqname.matches(new QName("urn:foo", "pesandra")));
        assertTrue(aqname.matches(new QName("urn:foo", "patricia")));

        aqname = new AttributedQName("urn:foo", "p?t?a");
        assertTrue(aqname.matches(new QName("urn:foo", "petra")));
        assertTrue(aqname.matches(new QName("urn:foo", "patia")));
        assertFalse(aqname.matches(new QName("urn:foo", "patricia")));

        aqname = new AttributedQName("urn:foo", "de.petra");
        assertTrue(aqname.matches(new QName("urn:foo", "de.petra")));

        aqname = new AttributedQName("urn:foo", "de.pe*");
        assertTrue(aqname.matches(new QName("urn:foo", "de.petra")));
        assertTrue(aqname.matches(new QName("urn:foo", "de.peach")));
        assertFalse(aqname.matches(new QName("urn:foo", "delpeach")));

        // matches any namespaces qualified and unqualified
        aqname = new AttributedQName("*", "p*a");
        assertTrue(aqname.matches(new QName("urn:foo", "petra")));
        assertTrue(aqname.matches(new QName("urn:bar", "patia")));
        assertTrue(aqname.matches(new QName("", "patricia")));
        assertFalse(aqname.matches(new QName("urn:bar", "peach")));
    }
View Full Code Here

Examples of org.apache.cxf.ws.addressing.v200408.AttributedQName

            String namespace = serviceQName.getNamespaceURI() != null
                               ? serviceQName.getNamespaceURI()
                               : Names.WSDL_INSTANCE_NAMESPACE_NAME;
            QName portQName =
                new QName(namespace, portLocalName);
            AttributedQName portType =
                Names200408.WSA_OBJECT_FACTORY.createAttributedQName();
            portType.setValue(portQName);
            exposed.setPortType(portType);
        }
        // no direct analogue for Metadata
        addAll(exposed.getAny(), internal.getAny());
        putAll(exposed.getOtherAttributes(), internal.getOtherAttributes());
View Full Code Here

Examples of org.apache.cxf.ws.addressing.v200408.AttributedQName

            ContextUtils.WSA_OBJECT_FACTORY.createEndpointReferenceType();
        internal.setAddress(convert(exposed.getAddress()));
        internal.setReferenceParameters(
                            convert(exposed.getReferenceParameters()));
        ServiceNameType serviceName = exposed.getServiceName();
        AttributedQName portName = exposed.getPortType();
        if (serviceName != null && portName != null) {
            EndpointReferenceUtils.setServiceAndPortName(internal,
                                                  serviceName.getValue(),
                                                  portName.getValue().getLocalPart());
        }

        // no direct analogue for ReferenceProperties
        addAll(internal.getAny(), exposed.getAny());
        putAll(internal.getOtherAttributes(), exposed.getOtherAttributes());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.