Package org.xmlsoap.schemas.ws.x2004.x08.eventing

Examples of org.xmlsoap.schemas.ws.x2004.x08.eventing.SubscribeResponseDocument$SubscribeResponse


         subscribeResponse.writeTo( os );
         EnvelopeDocument sres =
            EnvelopeDocument.Factory.parse( new java.io.ByteArrayInputStream( os.toByteArray(  ) ) );

         //TODO handle faults
         SubscribeResponseDocument sresdom =
            SubscribeResponseDocument.Factory.parse( sres.getEnvelope(  ).getBody(  ).xmlText(  ) );
         sresres = sresdom.getSubscribeResponse(  );
      }
      catch ( Exception e )
      {
         e.printStackTrace(  );
      }
View Full Code Here


         //                    Topic topic = (Topic) iterator.next();
         //                    topic.addTopicListener(simpleSubscriptionTopicListener);
         //                }
         //            }
         //build response
         SubscribeResponseDocument                   responseDom =
            SubscribeResponseDocument.Factory.newInstance(  );
         SubscribeResponseDocument.SubscribeResponse response = responseDom.addNewSubscribeResponse(  );

         response.setSubscriptionManager( (EndpointReferenceType) ( (XmlObjectWrapper) subscription
                                                                    .getEndpointReference(  ) ).getXmlObject(  ) );

         //TODO why not ExpirationType???
View Full Code Here

//                    topic.addTopicListener(simpleSubscriptionTopicListener);
//                }
//            }
           
            //build response
            SubscribeResponseDocument responseDom= SubscribeResponseDocument.Factory.newInstance();
            SubscribeResponseDocument.SubscribeResponse response = responseDom.addNewSubscribeResponse();
           
            response.setSubscriptionManager((EndpointReferenceType) ((XmlObjectWrapper)subscription.getEndpointReference()).getXmlObject());
            //TODO why not ExpirationType???
            response.setExpires(new org.apache.xmlbeans.XmlCalendar(subscription.getTerminationTime().getTime()));
           
View Full Code Here

            java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream();
            subscribeResponse.writeTo(os);
            EnvelopeDocument sres = EnvelopeDocument.Factory.parse(new java.io.ByteArrayInputStream(os.toByteArray()));
           
            //TODO handle faults
            SubscribeResponseDocument sresdom = SubscribeResponseDocument.Factory.parse(sres.getEnvelope().getBody().xmlText());
            sresres= sresdom.getSubscribeResponse();
           
        }catch(Exception e){
            e.printStackTrace();
        }
        //set SubscriptionManager
View Full Code Here

         //                    Topic topic = (Topic) iterator.next();
         //                    topic.addTopicListener(simpleSubscriptionTopicListener);
         //                }
         //            }
         //build response
         SubscribeResponseDocument                   responseDom =
            SubscribeResponseDocument.Factory.newInstance(  );
         SubscribeResponseDocument.SubscribeResponse response = responseDom.addNewSubscribeResponse(  );

         response.setSubscriptionManager( (EndpointReferenceType) ( (XmlObjectWrapper) subscription
                                                                    .getEndpointReference(  ) ).getXmlObject(  ) );

         //TODO why not ExpirationType???
View Full Code Here

         subscribeResponse.writeTo( os );
         EnvelopeDocument sres =
            EnvelopeDocument.Factory.parse( new java.io.ByteArrayInputStream( os.toByteArray(  ) ) );

         //TODO handle faults
         SubscribeResponseDocument sresdom =
            SubscribeResponseDocument.Factory.parse( sres.getEnvelope(  ).getBody(  ).xmlText(  ) );
         sresres = sresdom.getSubscribeResponse(  );
      }
      catch ( Exception e )
      {
         e.printStackTrace(  );
      }
View Full Code Here

         LOG.info( "SubscriptionEnd without notification" );
         return;
      }

      //send SubscriptionEnd Notification
      SubscriptionEndDocument                 sedom   = SubscriptionEndDocument.Factory.newInstance(  );
      SubscriptionEndDocument.SubscriptionEnd se      = sedom.addNewSubscriptionEnd(  );
      LanguageSpecificStringType              reasont = se.addNewReason(  );
      reasont.setStringValue( reason );
      try
      {
         //now call
         wsaSOAPConnection sconn = wsaSOAPConnection.newInstance(  );
         MessageFactory    mf    = MessageFactory.newInstance(  );
         SOAPMessage       soapm = mf.createMessage(  );

         //put XMLbean into SOAPBody
         soapm.getSOAPBody(  ).addDocument( (org.w3c.dom.Document) sedom.newDomNode(  ) );

         sconn.call( soapm, epr );
      }
      catch ( Exception e )
      {
View Full Code Here

        if(epr==null){
            LOG.info("SubscriptionEnd without notification");
            return;
        }
        //send SubscriptionEnd Notification
        SubscriptionEndDocument sedom = SubscriptionEndDocument.Factory.newInstance();
        SubscriptionEndDocument.SubscriptionEnd se = sedom.addNewSubscriptionEnd();
        LanguageSpecificStringType reasont = se.addNewReason();
        reasont.setStringValue(reason);
        try{
            //now call
            wsaSOAPConnection sconn = wsaSOAPConnection.newInstance();
            MessageFactory mf = MessageFactory.newInstance();
            SOAPMessage soapm = mf.createMessage();
            //put XMLbean into SOAPBody
            soapm.getSOAPBody().addDocument((org.w3c.dom.Document) sedom.newDomNode());

            sconn.call(soapm, epr);
        }catch(Exception e){
            e.printStackTrace();
        }       
View Full Code Here

   /**
    * DOCUMENT_ME
    */
   public void unsubscribe(  )
   {
      UnsubscribeDocument usdom = UnsubscribeDocument.Factory.newInstance(  );
      usdom.addNewUnsubscribe(  );
      try
      {
         //now call
         wsaSOAPConnection sconn = wsaSOAPConnection.newInstance(  );
         MessageFactory    mf    = MessageFactory.newInstance(  );
         SOAPMessage       soapm = mf.createMessage(  );

         //put XMLbean into SOAPBody
         soapm.getSOAPBody(  ).addDocument( (org.w3c.dom.Document) usdom.newDomNode(  ) );

         sconn.call( soapm,
                     getEndpointReference(  ) );
      }
      catch ( Exception e )
View Full Code Here

      this.m_creationTime = Calendar.getInstance();
      LOG.info("new local Subscription : "+getID());
    }
   
    public void unsubscribe(){
        UnsubscribeDocument usdom= UnsubscribeDocument.Factory.newInstance();
        usdom.addNewUnsubscribe();
        try{
            //now call
            wsaSOAPConnection sconn = wsaSOAPConnection.newInstance();
            MessageFactory mf = MessageFactory.newInstance();
            SOAPMessage soapm = mf.createMessage();
            //put XMLbean into SOAPBody
            soapm.getSOAPBody().addDocument((org.w3c.dom.Document) usdom.newDomNode());
           
            sconn.call(soapm,getEndpointReference());
        }catch(Exception e){
            e.printStackTrace();
        }           
View Full Code Here

TOP

Related Classes of org.xmlsoap.schemas.ws.x2004.x08.eventing.SubscribeResponseDocument$SubscribeResponse

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.