Search in sources :

Example 1 with ArrayOfstring

use of com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfstring in project efm-integrasjonspunkt by felleslosninger.

the class CorrespondenceAgencyMessageFactory method createReceiptRequest.

public CorrespondenceStatusHistoryRequest createReceiptRequest(Set<Conversation> conversations) {
    no.altinn.services.serviceengine.correspondence._2009._10.ObjectFactory of = new no.altinn.services.serviceengine.correspondence._2009._10.ObjectFactory();
    CorrespondenceStatusHistoryRequest historyRequest = of.createCorrespondenceStatusHistoryRequest();
    com.microsoft.schemas._2003._10.serialization.arrays.ObjectFactory arrayOf = new com.microsoft.schemas._2003._10.serialization.arrays.ObjectFactory();
    ArrayOfstring arrayOfstring = arrayOf.createArrayOfstring();
    conversations.stream().map(Conversation::getMessageId).forEach(id -> arrayOfstring.getString().add(id));
    JAXBElement<ArrayOfstring> strings = of.createCorrespondenceStatusHistoryRequestCorrespondenceSendersReferences(arrayOfstring);
    historyRequest.setCorrespondenceSendersReferences(strings);
    return historyRequest;
}
Also used : CorrespondenceStatusHistoryRequest(no.altinn.services.serviceengine.correspondence._2009._10.CorrespondenceStatusHistoryRequest) ArrayOfstring(com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfstring) ObjectFactory(no.altinn.schemas.services.serviceengine.correspondence._2010._10.ObjectFactory) no.altinn.schemas.services.serviceengine.notification._2009._10(no.altinn.schemas.services.serviceengine.notification._2009._10)

Example 2 with ArrayOfstring

use of com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfstring in project tdi-studio-se by Talend.

the class ConnT method main.

public static void main(String[] args) throws Exception {
    //Parameters need to config begin
    System.setProperty("javax.net.ssl.trustStore", "C:\\tst\\jssecacerts");
    String organizationWsdl = "https://internal.style.com:444/Talend/XRMServices/2011/Organization.svc?wsdl";
    String securityServiceWsdl = "https://internal.style.com:443/adfs/services/trust/mex";
    //The username must be in this format: <username>@<domain> or <domain>/<username>
    String userName = "administrator@style.com";
    String password = "Talendqa123!";
    //Parameters need to config begin
    MsCrmWsdl wsdl = new MsCrmWsdl(organizationWsdl, securityServiceWsdl);
    DynamicsCRMConnector orgService = new DynamicsCRMConnector(userName, password, wsdl);
    //Just Test Retrive Account
    QueryExpression query = new QueryExpression();
    query.setEntityName("account");
    ColumnSet columnSet = new ColumnSet();
    ArrayOfstring arrOfStr = new ArrayOfstring();
    arrOfStr.getStrings().add("name");
    columnSet.setColumns(arrOfStr);
    query.setColumnSet(columnSet);
    EntityCollection queryResult = orgService.getOrganizationService().retrieveMultiple(query);
    List<Entity> entityList = queryResult.getEntities().getEntities();
    for (Entity entity : entityList) {
    }
}
Also used : Entity(com.microsoft.schemas.xrm._2011.contracts.Entity) ArrayOfstring(com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfstring) EntityCollection(com.microsoft.schemas.xrm._2011.contracts.EntityCollection) ColumnSet(com.microsoft.schemas.xrm._2011.contracts.ColumnSet) QueryExpression(com.microsoft.schemas.xrm._2011.contracts.QueryExpression)

Aggregations

ArrayOfstring (com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfstring)2 ColumnSet (com.microsoft.schemas.xrm._2011.contracts.ColumnSet)1 Entity (com.microsoft.schemas.xrm._2011.contracts.Entity)1 EntityCollection (com.microsoft.schemas.xrm._2011.contracts.EntityCollection)1 QueryExpression (com.microsoft.schemas.xrm._2011.contracts.QueryExpression)1 ObjectFactory (no.altinn.schemas.services.serviceengine.correspondence._2010._10.ObjectFactory)1 no.altinn.schemas.services.serviceengine.notification._2009._10 (no.altinn.schemas.services.serviceengine.notification._2009._10)1 CorrespondenceStatusHistoryRequest (no.altinn.services.serviceengine.correspondence._2009._10.CorrespondenceStatusHistoryRequest)1