Package org.oasis_open.docs.wsrf.bf_2

Examples of org.oasis_open.docs.wsrf.bf_2.BaseFaultType


        parentCursor.toPrevSibling();
        XmlObject childXBean = parentCursor.getObject();
        parentCursor.dispose();
        //BaseFaultDocument baseFaultDocument = BaseFaultDocument.Factory.newInstance( );
        //BaseFaultType baseFaultType = baseFaultDocument.addNewBaseFault();
        BaseFaultType baseFaultType = BaseFaultType.Factory.newInstance( );
        baseFaultType.setTimestamp( Calendar.getInstance( ) );
        childXBean.set( baseFaultType );
        System.out.println( "AFTER:\n" + oldValue.xmlText( new XmlOptions().setSaveOuter() ) );

        ResourcePropertyValueChangeNotificationDocument resourcePropertyValueChangeNotificationDocument1 = ResourcePropertyValueChangeNotificationDocument.Factory.newInstance();
        ResourcePropertyValueChangeNotificationType resourcePropertyValueChangeNotificationType1 = resourcePropertyValueChangeNotificationDocument.addNewResourcePropertyValueChangeNotification();
View Full Code Here


      XmlObject childXBean = parentCursor.getObject(  );
      parentCursor.dispose(  );

      //BaseFaultDocument baseFaultDocument = BaseFaultDocument.Factory.newInstance( );
      //BaseFaultType baseFaultType = baseFaultDocument.addNewBaseFault();
      BaseFaultType baseFaultType = BaseFaultType.Factory.newInstance(  );
      baseFaultType.setTimestamp( Calendar.getInstance(  ) );
      childXBean.set( baseFaultType );
      System.out.println( "AFTER:\n" + oldValue.xmlText( new XmlOptions(  ).setSaveOuter(  ) ) );

      ResourcePropertyValueChangeNotificationDocument      resourcePropertyValueChangeNotificationDocument1 =
         ResourcePropertyValueChangeNotificationDocument.Factory.newInstance(  );
View Full Code Here

            output = webMethod.invoke(pojo, new Object[] {input });
        } catch (InvocationTargetException e) {
            if (e.getCause() instanceof Exception) {
                WebFault fa = (WebFault) e.getCause().getClass().getAnnotation(WebFault.class);
                if (!(exchange instanceof InOnly) && fa != null) {
                    BaseFaultType info = (BaseFaultType) e.getCause().getClass().getMethod("getFaultInfo").invoke(
                            e.getCause());
                    Fault fault = exchange.createFault();
                    exchange.setFault(fault);
                    exchange.setError((Exception) e.getCause());
                    StringWriter writer = new StringWriter();
View Full Code Here

      output = webMethod.invoke(pojo, new Object[] { input });
    } catch (InvocationTargetException e) {
      if (e.getCause() instanceof Exception) {
        WebFault fa = (WebFault) e.getCause().getClass().getAnnotation(WebFault.class);
        if (exchange instanceof InOnly == false && fa != null) {
          BaseFaultType info = (BaseFaultType) e.getCause().getClass().getMethod("getFaultInfo").invoke(e.getCause());
          Fault fault = exchange.createFault();
          exchange.setFault(fault);
          exchange.setError((Exception) e.getCause());
          StringWriter writer = new StringWriter();
          jaxbContext.createMarshaller().marshal(new JbiFault(info), writer);
View Full Code Here

TOP

Related Classes of org.oasis_open.docs.wsrf.bf_2.BaseFaultType

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.