Package org.apache.axis.types

Examples of org.apache.axis.types.NCName


                    new Name(":Braves"),true);
    }

    public void testNCName() throws Exception {
        deserialize("<result xsi:type=\"xsd:NCName\">_Atlanta.Braves</result>",
                    new NCName("_Atlanta.Braves"),true);
    }
View Full Code Here


                    new Name(":Braves"),true);
    }

    public void testNCName() throws Exception {
        deserialize("<result xsi:type=\"xsd:NCName\">_Atlanta.Braves</result>",
                    new NCName("_Atlanta.Braves"),true);
    }
View Full Code Here

      // 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 );

      // Set a couple of reference properties, including a ResourceID.
      MessageElement[] prop = new MessageElement[2];
View Full Code Here

            base_endpoint.getProperties(  );
         axis_ref_props.set_any( base_ref_props.get_any(  ) );
         axis_endpoint.setReferenceProperties( axis_ref_props );
         ServiceNameType                                    axis_service_name = new ServiceNameType(  );
         org.apache.axis.message.addressing.ServiceNameType base_service_name = base_endpoint.getServiceName(  );
         axis_service_name.setPortName( new NCName( base_service_name.getPort(  ) ) );
         axis_service_name.set_value( base_service_name );
         axis_endpoint.setServiceName( axis_service_name );
      }

      return axis_endpoint;
View Full Code Here

      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 );

      // ... this puts the reference property for ResourceID in the EPR
      /*
 
View Full Code Here

                    new Name(":Braves"),true);
    }

    public void testNCName() throws Exception {
        deserialize("<result xsi:type=\"xsd:NCName\">_Atlanta.Braves</result>",
                    new NCName("_Atlanta.Braves"),true);
    }
View Full Code Here

                    new Name(":Braves"),true);
    }

    public void testNCName() throws Exception {
        deserialize("<result xsi:type=\"xsd:NCName\">_Atlanta.Braves</result>",
                    new NCName("_Atlanta.Braves"),true);
    }
View Full Code Here

    /**
     * Run a failure test.  value should be invalid.
     */
    private void runFailTest(String value) throws Exception {
        NCName oToken = null;
        try {
            oToken = new NCName(value);
        }
        catch (Exception e) { // catch the validation exception
        }
        assertNull(
                "NCName validation restriction failed. did not restrict bad value [" +
View Full Code Here

    /**
     * Run a successful test.  value should be valid.
     */
    private void runPassTest(String value) throws Exception {
        NCName oToken = null;
        try {
            oToken = new NCName(value);
        }
        catch (Exception e) { // catch the validation exception
        }
        assertEquals("NCName strings not equal. orig value:" + value, oToken.toString(), value);
    }
View Full Code Here

        if(value instanceof NMToken) return (NMToken) value;
        return new NMToken(Caster.toString(value));
    }
    private static NCName toNCName(Object value) throws PageException {
        if(value instanceof NCName) return (NCName) value;
        return new NCName(Caster.toString(value));
    }
View Full Code Here

TOP

Related Classes of org.apache.axis.types.NCName

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.