Package org.apache.ws.addressing

Examples of org.apache.ws.addressing.XmlBeansEndpointReference


        UpdateType update = UpdateType.Factory.newInstance();
        WeatherStationReferenceDocument weatherStationReferenceDocument = WeatherStationReferenceDocument.Factory.newInstance();
        weatherStationReferenceDocument.setWeatherStationReference(weatherStationEprDoc.getEndpointReference());
        XmlBeanUtils.addChildElement(update, weatherStationReferenceDocument);
        setResourceProperties.setUpdateArray(new UpdateType[]{update});
        XmlObject addResponse = InteropRequestUtils.sendRequest(setResourcePropertiesDocument, "http://wsdmdemo.org/service/weather-station-dir/SetResourceProperties", new XmlBeansEndpointReference(clientConfigEpr.getEndpointReference()));

    }
View Full Code Here


            throws FaultException,
                   IOException,
                   XmlException
    {
        //build a resource stub for the weather station you plan to talk to
        XmlBeansEndpointReference xepr =
                new XmlBeansEndpointReference(WEATHER_STATION_1_EPR_DOC.getEndpointReference());
        m_resource = new ResourceStub(xepr);

        //make sure to have path in consumer url...not sure if he still needs it be we had added at one point
        String consumerUrl = "http://12.35.246.160:8001/notifs";
View Full Code Here

    {
        super.setUp();
        EndpointReferenceDocument weatherStationEprDoc = getEndpointReference( new URL( WEATHER_STATION_EPR_URL ) );
        if ( DEBUG ) { System.out.println( "*** Using Weather Station EPR:\n" + weatherStationEprDoc ); }
        m_service = new ServiceStub( new URL( WEATHER_STATION_URL ) );
        m_resource = new ResourceStub( new XmlBeansEndpointReference( weatherStationEprDoc.getEndpointReference() ) );
    }
View Full Code Here

    {
        EndpointReferenceType[] mgmtEPRs = m_service.getManageabilityReferences();
        assertTrue( "Response to GetManageabilityReferences operation did not contain any EPRs.", mgmtEPRs.length != 0 );
        for ( int i = 0; i < mgmtEPRs.length; i++ )
        {
            ResourceStub mgmtResource = new ResourceStub( new XmlBeansEndpointReference( mgmtEPRs[i] ) );
            XmlObject idPropElem = getSingleProperty( mgmtResource, IdentityCapability.PROP_NAME_RESOURCE_ID );
            assertTrue( idPropElem instanceof XmlAnyURI );
            XmlObject[] capabilityElems = mgmtResource.getResourceProperty(
                    ManageabilityCharacteristicsCapability.PROP_NAME_MANAGEABILITY_CAPABILITY );
            assertContainsURI( capabilityElems, IdentificationCapability.URI );
View Full Code Here

                RelationshipParticipantType relationshipParticipantType = participantArray[j];
                EndpointReferenceType[] manageabilityEndpointReferenceArray = relationshipParticipantType.getManageabilityEndpointReferenceArray();
                for (int k = 0; k < manageabilityEndpointReferenceArray.length; k++)
                {
                    EndpointReferenceType endpointReferenceType = manageabilityEndpointReferenceArray[k];
                    ResourceStub resource = new ResourceStub(new XmlBeansEndpointReference(endpointReferenceType));
                    XmlObject[] resourceProperty = resource.getResourceProperty(WeatherstationPropertyQNames.FCCID);
                    assertTrue("Unable to invoke operation on resource.",resourceProperty.length == 1);
                }
            }
        }
View Full Code Here

        XmlQName match = (XmlQName) matchElems[0];
        assertEquals( WeatherstationPropertyQNames.FCCID, match.getQNameValue() );

        // get weather station resource #2
        EndpointReferenceDocument weatherStation2EprDoc = getEndpointReference( new URL( WEATHER_STATION_2_EPR_URL ) );
        ResourceStub resource2 = new ResourceStub(new XmlBeansEndpointReference( weatherStation2EprDoc.getEndpointReference()) ); //resource2

        assertEquals("FCCIDs did not match.", getFCCID(m_resource), getFCCID(resource2));
    }
View Full Code Here

                  throw new Exception( " Unknown resource type" );
               }

               if ( ( epr != null ) && epr instanceof XmlBeansEndpointReference )
               {
                  XmlBeansEndpointReference eprType = (XmlBeansEndpointReference) epr;
                  // we need to make sure the returned EPR is in 2004 namespace
                  XmlObject                 obj = eprType.getXmlObject( org.apache.ws.addressing.v2004_08_10.AddressingConstants.NSURI_ADDRESSING_SCHEMA );
                  if ( obj instanceof EndpointReferenceType )
                  {
                     eprs[i] = (EndpointReferenceType) obj;
                     i++;
                  }
View Full Code Here

                                           requestDoc.getCreate(  ).getCreateParams(  ) );
         }

         if ( epr instanceof XmlBeansEndpointReference )
         {
            XmlBeansEndpointReference eprType = (XmlBeansEndpointReference) epr;
            XmlObject                 obj = eprType.getXmlObject( org.apache.ws.addressing.v2004_08_10.AddressingConstants.NSURI_ADDRESSING_SCHEMA );
            if ( obj instanceof EndpointReferenceType )
            {
               response.setEndpointReference( (EndpointReferenceType) obj );
            }
            else
View Full Code Here

        topicExpr.setDialect(TopicsConstants.TOPIC_EXPR_DIALECT_SIMPLE);
        XmlBeanUtils.setValueAsQName(topicExpr, m_topic);
        XmlObject response = m_portTypeImpl.subscribe(requestDoc);
        assertTrue(response instanceof SubscribeResponseDocument.SubscribeResponse);
        SubscribeResponseDocument.SubscribeResponse subscribeResponse = (SubscribeResponseDocument.SubscribeResponse) response;
        XmlBeansEndpointReference xmlBeansEndpointReference = new XmlBeansEndpointReference(subscribeResponse.getSubscriptionReference());
        return xmlBeansEndpointReference;
    }
View Full Code Here

            org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType e = org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType.Factory.newInstance();
            org.xmlsoap.schemas.ws.x2004.x08.addressing.AttributedURI auri = org.xmlsoap.schemas.ws.x2004.x08.addressing.AttributedURI.Factory.newInstance();
            auri.setStringValue(url);
            e.setAddress(auri);   
            //wrapper
            this.epr= new XmlBeansEndpointReference(e);

            //getlocal SubscriptionHome from jndi-config
            Context initialContext = new InitialContext(  );
            sH = (SubscriptionHome) initialContext.lookup( SubscriptionHome.HOME_LOCATION );
View Full Code Here

TOP

Related Classes of org.apache.ws.addressing.XmlBeansEndpointReference

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.