Package edu.indiana.dde.mylead.agent.xmlbeans

Examples of edu.indiana.dde.mylead.agent.xmlbeans.OperationResponseType


      OperationResponseDocument responce = stub.addUsers(reqDoc);
      if (null == responce || null == responce.getOperationResponse()) {
        throw new MyLeadException("Invalid responce");
      }
      OperationResponseType outputType = responce.getOperationResponse();
      Enum status = outputType.getStatus();
      String queryResult = null;
      if (status.equals(StatusEnumType.SUCCESS)) {
        if (outputType.isSetMessage()) {
          queryResult = outputType.getMessage();
        }
      } else {
        if (outputType.isSetMessage()) {
          logger.finest("faultMessage: " + outputType.getMessage());
          throw new MyLeadException(outputType.getMessage());
        }
      }

      if (status == StatusEnumType.FAILURE) {
        throw new MyLeadException("Failed adding user:"
View Full Code Here


          .parse(leadResource);
      LEADResourceType leadResourceType = leadResourceDoc
          .getLEADresource();
      topLevelObjectType.setLEADresource(leadResourceType);
      OperationResponseDocument outputMsg = stub.createProjects(inputMsg);
      OperationResponseType outputType = outputMsg.getOperationResponse();
      StatusEnumType.Enum statusType = outputType.getStatus();
      String[] resourceIDs = outputType.getResourceIDArray();
      if (!statusType.equals(StatusEnumType.SUCCESS)) {
        if (outputType.isSetMessage()) {
          logger.finest("faultMessage: " + outputType.getMessage());
          throw new MyLeadException(outputType.getMessage());
        }
      }
      String resourceID = null;
      if (resourceIDs != null && resourceIDs.length > 0) {
        resourceID = resourceIDs[0];
View Full Code Here

      collectionType.setLEADresource(leadResourceType);

      OperationResponseDocument outputMsg = stub
          .createCollections(inputMsg);
      OperationResponseType outputType = outputMsg.getOperationResponse();

      StatusEnumType.Enum statusType = outputType.getStatus();

      String[] resourceIDs = outputType.getResourceIDArray();

      if (!statusType.equals(StatusEnumType.SUCCESS)) {
        if (outputType.isSetMessage()) {
          logger.finest("faultMessage: " + outputType.getMessage());
          throw new MyLeadException(outputType.getMessage());
        }

      }
      String resourceID = null;
      if (resourceIDs != null && resourceIDs.length > 0) {
View Full Code Here

            collectionType.setParentID(projectId);
            
            collectionType.setLEADresource(workflowCollResourceType);
            
            OperationResponseDocument outputMsg = createStub(userID).createCollections(createColl);
            OperationResponseType outputType = outputMsg.getOperationResponse();
            
            StatusEnumType.Enum statusType = outputType.getStatus();
            
            if (statusType.equals(StatusEnumType.SUCCESS)) {
               String[] resourceIDs = outputType.getResourceIDArray();
                   for (String collectionId : resourceIDs) {
                       logger.finest("Workflow Collection Id is " + collectionId);
                       collectionResourceId = collectionId;
                   }
                   if (outputType.isSetMessage()) {
                     logger.finest("Add collection message is = " + outputType.getMessage());
                   }
             } else {
                 if (outputType.isSetMessage()) {
                   logger.severe("An error occurred when trying to create the "
                             + "workflow templates collection for the Sample: " + outputType.getMessage());
                 }
                 if (outputType.isSetOperationSummary()) {
                   logger.severe("An error occurred when trying to create the "
                             + "workflow templates collection for the Sample: " + outputType.getOperationSummary());
                 }
                 if (outputType.isSetOperationSummaryStreamUrl()) {
                   logger.severe("An error occurred when trying to create the "
                             + "workflow templates collection for the Sample: " + outputType.getOperationSummaryStreamUrl());
                 }
             }              
         } catch (Exception e) {
            logger.caught(e);
       throw new MyLeadException(e);
View Full Code Here

TOP

Related Classes of edu.indiana.dde.mylead.agent.xmlbeans.OperationResponseType

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.