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

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


    collectionInfo.setAssignNewResourceID(true);

    experimentDoc.setCreateExperimentsRequest(createCollectionReq);

    OperationResponseDocument res = stub.createExperiments(experimentDoc);
    return res;
  }
View Full Code Here


      AddUsersRequestType req = reqDoc.addNewAddUsersRequest();
      UserType params = req.addNewCatalogUser();
      params.setUserId(adminDN);
      params.setUserName(userDN);

      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:"
            + responce.toString());
      }

      logger.finest("queryResult: " + queryResult);
      return queryResult;
    } catch (RuntimeException e) {
View Full Code Here

      LEADresourceDocument leadResourceDoc = LEADresourceDocument.Factory
          .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());
View Full Code Here

      collectionType.setAssignNewResourceID(assignNewResourceID);
      collectionType.setParentID(parentResourceID);

      collectionType.setLEADresource(leadResourceType);

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

      StatusEnumType.Enum statusType = outputType.getStatus();

      String[] resourceIDs = outputType.getResourceIDArray();
View Full Code Here

            collectionType.setAssignNewResourceID(true);
            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();
View Full Code Here

TOP

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

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.