Package org.apache.ws.addressing

Examples of org.apache.ws.addressing.XmlBeansEndpointReference


     *
     * @return The Resource's EndpointReference
     */
    public EndpointReference getEndpointReference( String endpointAddress, ResourceKey key, String wsAddressingURI )
    {
        XmlBeansEndpointReference xmlBeansEndpointReference = new XmlBeansEndpointReference( endpointAddress,
                wsAddressingURI );
        xmlBeansEndpointReference.setResourceKey( key );
        xmlBeansEndpointReference.setPortTypeQName( getPortType() );
        xmlBeansEndpointReference.setServicePortName( getServicePortName() );
        xmlBeansEndpointReference.setServiceQName( getServiceName() );
        return xmlBeansEndpointReference;
    }
View Full Code Here


            CreationNotificationDocument creationNotifDoc = CreationNotificationDocument.Factory.newInstance();
            CreationNotificationDocument.CreationNotification creationNotif = creationNotifDoc.addNewCreationNotification();
            EndpointReference epr = resource.getEndpointReference();
            if (epr != null && epr instanceof XmlBeansEndpointReference)
            {
                XmlBeansEndpointReference xBeansEPR = (XmlBeansEndpointReference) epr;
                XmlObject xBean = xBeansEPR.getXmlObject(org.apache.ws.addressing.v2004_08_10.AddressingConstants.NSURI_ADDRESSING_SCHEMA);
                if (xBean instanceof EndpointReferenceType)
                {
                    creationNotif.setManageabilityEndpointReferenceArray(new EndpointReferenceType[]{(EndpointReferenceType) xBean});
                    try
                    {
View Full Code Here

    public static String getResourceId(EndpointReferenceType endpointReferenceType)
    {
        System.out.println("Getting resourceid for epr: " + endpointReferenceType.getAddress().getStringValue());
        GetResourcePropertyDocument getResourcePropertyDocument = GetResourcePropertyDocument.Factory.newInstance();
        getResourcePropertyDocument.setGetResourceProperty(IdentityCapability.PROP_NAME_RESOURCE_ID);
        XmlObject xmlObject = sendRequest(getResourcePropertyDocument, "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl/GetResourceProperty", new XmlBeansEndpointReference(endpointReferenceType));
        String resourceID = null;
        if (xmlObject instanceof GetResourcePropertyResponseDocument.GetResourcePropertyResponse)
        {
            GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse = (GetResourcePropertyResponseDocument.GetResourcePropertyResponse) xmlObject;
            XmlObject[] childElements = XmlBeanUtils.getChildElements(getResourcePropertyResponse);
View Full Code Here

    EndpointReferenceType eprt = participant.getManageabilityEndpointReferenceArray(0);
    AttributedURI eprtAddr = eprt.getAddress();
    String addr = eprtAddr.getStringValue();
    addr=addr.replaceAll("192\\.168\\.0\\.20","12\\.35\\.246\\.160");
    eprtAddr.setStringValue(addr);
    wsEpr=(EndpointReference)new XmlBeansEndpointReference(eprt);
    getNameFromEpr();   
    try {
      requestNotificationFromEpr();
    } catch (FaultException e) {
      // TODO Auto-generated catch block
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

    System.out.println("Message:\n"+mess);

  }
 
  private EndpointReference getEpr(String URL, String Rid) throws XmlException{
    XmlBeansEndpointReference x=new XmlBeansEndpointReference(URL,AddressingConstants.NSURI_ADDRESSING_SCHEMA);
    if(Rid!=null)
      x.setReferenceProperties(new XmlObject[]{(XmlObject)XmlObject.Factory.parse("<svr:ResourceIdentifier xmlns:svr=\"http://wsdmdemo.org/service/weather-client-config\">"+Rid+"</svr:ResourceIdentifier>")});   
    return x;   
  }
View Full Code Here

    return refreshDoc.getIntValue()*1000;
  }

 
  private EndpointReference getEpr(String URL, String Rid) throws XmlException{
    XmlBeansEndpointReference x=new XmlBeansEndpointReference(URL,AddressingConstants.NSURI_ADDRESSING_SCHEMA);
    x.setReferenceProperties(new XmlObject[]{(XmlObject)XmlObject.Factory.parse("<svr:ResourceIdentifier xmlns:svr=\"http://wsdmdemo.org/service/weather-client-config\">"+Rid+"</svr:ResourceIdentifier>")});   
    return x;   

  }
View Full Code Here

    EndpointReferenceTypeImpl refreshDoc = (EndpointReferenceTypeImpl)refreshDocArry[0];
   
    if(m_ws!=null){
      m_ws.deleteObserver(m_messageObserver);     
    }
    m_ws = new ResourceStub(new XmlBeansEndpointReference(refreshDoc));
    m_ws.addObserver(m_messageObserver);
   
  }
View Full Code Here

        if ( ! ( response instanceof SubscribeResponseDocument.SubscribeResponse ) )
        {
            throw new FaultException( response.toString() );
        }
        SubscribeResponseDocument.SubscribeResponse subscribeResponse = (SubscribeResponseDocument.SubscribeResponse) response;
        return new XmlBeansEndpointReference( subscribeResponse.getSubscriptionReference() );
    }
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.