Package org.servicemix.ws.xmlbeans.addressing.v2003_03

Examples of org.servicemix.ws.xmlbeans.addressing.v2003_03.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


            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

            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

            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

        SubscribeDocument.Subscribe subscribe = doc.getSubscribe();


        // lets get the endpoint reference
        EndpointReferenceType endpointReference = subscribe.getConsumerReference();
        AttributedURI address = endpointReference.getAddress();
        System.out.println("EndpointReference address is: " + address.getStringValue());

        ReferencePropertiesType referenceProperties = endpointReference.getReferenceProperties();
        System.out.println("Reference properties: " + referenceProperties);

View Full Code Here

        XMLStreamHelper.writeEndElement(WS_ADDRESSING_QNAME, contentHandler);
        contentHandler.endDocument();

        XmlObject object = buffer.getObject();
        if (object instanceof EndpointReferenceType) {
            EndpointReferenceType endpointReference = (EndpointReferenceType) object;
            System.out.println("Parsed endpoint reference: " + endpointReference);
            AddressingContext.setCurrentContext(null);
        }
        else {
            AddressingContext.setCurrentContext(null);
View Full Code Here

        SubscribeDocument doc = (SubscribeDocument) xmlObject;
        SubscribeDocument.Subscribe subscribe = doc.getSubscribe();


        // lets get the endpoint reference
        EndpointReferenceType endpointReference = subscribe.getConsumerReference();
        AttributedURI address = endpointReference.getAddress();
        System.out.println("EndpointReference address is: " + address.getStringValue());

        ReferencePropertiesType referenceProperties = endpointReference.getReferenceProperties();
        System.out.println("Reference properties: " + referenceProperties);


        // lets get the selector
        QueryExpressionType selector = subscribe.getSelector();
View Full Code Here

        final NormalizedMessage message = exchange.getMessage("in");
        if (message == null) {
            log.warn("Ignoring message exchange with no 'in' message");
        }
        else {
            final EndpointReferenceType endpointReference = extractPublisherReference(exchange, message);
            Topic topic = extractTopic(exchange, message);
            if (topic == null) {
                throw new MissingTopicException();
            }
            ActiveMQPublisherRegistration publisher = getPublisher(endpointReference);
View Full Code Here

            protected org.servicemix.ws.notification.NotificationConsumer createNotificationConsumer(EndpointReferenceType consumerReference) {
                return new StubNotificationConsumer(result);
            }
        };

        EndpointReferenceType subRef = addSubscription(broker);
       
        // The sub should be running and we should be getting notifed now.
        sendNotification(broker);
        NotifyDocument subNotifyDoc = (NotifyDocument) result.poll(2000);
        assertNotNull(subNotifyDoc);
View Full Code Here

        else {
            // We could default a sensible timeout here.
        }
       
        // Create publisher and assoicate an EndpointReference with it.
        EndpointReferenceType registrationEndpointReference;
        try {

            ActiveMQPublisherRegistration publisher = new ActiveMQPublisherRegistration(connection);
            registrationEndpointReference = publisherManager.register(publisher);
            publisher.setEndpointReference(registrationEndpointReference);
View Full Code Here

TOP

Related Classes of org.servicemix.ws.xmlbeans.addressing.v2003_03.AttributedQName

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.