Create Work Order Soap/XML
Corrigo API Samples
The below samples include steps to Create WorkOrder Entity
- GetCompanyWsdkUrl - using Discovery Url to get your company endpoint
- LogInCompany - Login Corrigo API using credentials provided to maintain Cookie for rest of method
- RetrieveMultiple – Customer by TenantCode, including children like WorkZone
- RetrieveMultiple – Location by AssetTag (for serialized Equipment assets)
- RetrieveMultiple – AssetTree by WorkZone.Asset.Id and Child.Name (for non-serialized assets)
- RetrieveMultiple – Task by Location.ModelId
- Execute – WoCreateCommand – using results from steps 3, 4, 5
- a. Include Custom Fields and Documents in payload
- b. ComputeSchedule enabled
- c. ComputeAssignments enabled
- Retrieve – WorkOrder by Id (from response of step 7)
- Logout - Logout from Corrigo Api
1. GetCompanyWsdkUrl
Request:
<--DiscoverURL to get your company endpoint>
POST http://am-apilocator.corrigo.com/wsdk/CorrigoDiscover.asmx?wsdl HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8;action="http://corrigo.com/integration/GetCompanyWsdkUrl"
Content-Length: 677
Host: am-apilocator.corrigo.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_181)
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:int="http://corrigo.com/integration/">
<soap:Header>
<int:CorrigoNetOptions>
<int:ImposeConcurrencyId>false</int:ImposeConcurrencyId>
<int:UpdateLastModified>false</int:UpdateLastModified>
<int:CanDeleteMissingEntity>false</int:CanDeleteMissingEntity>
<int:LockOnDataRetrieval>Default</int:LockOnDataRetrieval>
</int:CorrigoNetOptions>
</soap:Header>
<soap:Body>
<int:GetCompanyWsdkUrl>
<int:CompanyName>Corrigo Demo</int:CompanyName><int:Protocol>HTTP</int:Protocol>
</int:GetCompanyWsdkUrl>
</soap:Body>
</soap:Envelope>
Response:
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/soap+xml; charset=utf-8
Server:
Date: Tue, 12 May 2020 13:36:13 GMT
Content-Length: 557
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetCompanyWsdkUrlResponse xmlns="http://corrigo.com/integration/">
<GetCompanyWsdkUrlResult xsi:type="GetCompanyWsdkUrlResult">
<--Get your company endpoint and Transfer to LogInCompany Method>
<Url>https://am-ce96b.corrigo.com/wsdk/CorrigoService.asmx</Url>
<CompanyName>Corrigo Demo</CompanyName>
<Protocol>HTTP</Protocol>
</GetCompanyWsdkUrlResult>
</GetCompanyWsdkUrlResponse>
</soap:Body>
</soap:Envelope>
2. LogInCompany Method
Request:
<--The endpoint transferred from GetCompanyURLWsdk Method>
POST https://am-ce96b.corrigo.com/wsdk/CorrigoService.asmx HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8;action="http://corrigo.com/integration/LogInCompany"
<--This header is required in order to get Cookie>
SOAPACTION: http://corrigo.com/integration/LogInCompany
Content-Length: 734
Host: am-ce96b.corrigo.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_181)
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:int="http://corrigo.com/integration/">
<soap:Header>
<int:CorrigoNetOptions>
<int:ImposeConcurrencyId>false</int:ImposeConcurrencyId>
<int:UpdateLastModified>false</int:UpdateLastModified>
<int:CanDeleteMissingEntity>false</int:CanDeleteMissingEntity>
<int:LockOnDataRetrieval>Default</int:LockOnDataRetrieval>
</int:CorrigoNetOptions>
</soap:Header>
<soap:Body>
<int:LogInCompany>
<int:username>wsdk_training</int:username>
<int:password>xxxxx</int:password>
<int:companyname>corrigo demo</int:companyname>
</int:LogInCompany>
</soap:Body>
</soap:Envelope>
Response:
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/soap+xml; charset=utf-8
Server:
<--Get Cookie after calling succeeded LogInCompany Method>
Set-Cookie: ASP.NET_SessionId=halv2uuojtx4um4p0yy02yio; path=/; HttpOnly; SameSite=Lax
Date: Tue, 12 May 2020 13:36:15 GMT
Content-Length: 465
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<LogInCompanyResponse xmlns="http://corrigo.com/integration/">
<LogInCompanyResult xsi:type="LoginResponse">
<UserId>33</UserId>
<ActorTypeId>1</ActorTypeId>
<Success>true</Success>
</LogInCompanyResult>
</LogInCompanyResponse>
</soap:Body>
</soap:Envelope>
3. RetrieveMultiple Customer - by TenantCode, including children like WorkZone
This sample is to get Customers with TenantCode is empty or TenantCode=0
Request:
<--The endpoint transferred from GetCompanyWsdkUrl Method>
POST https://am-ce96b.corrigo.com/wsdk/CorrigoService.asmx HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8;action="http://corrigo.com/integration/RetrieveMultiple"
Content-Length: 1720
Host: am-ce96b.corrigo.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_181)
Cookie: ASP.NET_SessionId=4q2p01gije3ifkluv10zyeyd
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:int="http://corrigo.com/integration/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<int:CorrigoNetOptions>
<int:ImposeConcurrencyId>false</int:ImposeConcurrencyId>
<int:UpdateLastModified>false</int:UpdateLastModified>
<int:CanDeleteMissingEntity>false</int:CanDeleteMissingEntity>
<int:LockOnDataRetrieval>Default</int:LockOnDataRetrieval>
</int:CorrigoNetOptions>
</soap:Header>
<soap:Body>
<int:RetrieveMultiple><int:queryExpression xsi:type="int:QueryExpression" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<int:EntityType>Customer</int:EntityType>
<int:PropertySet xsi:type="int:PropertySet"><int:Properties>
<int:string>* </int:string>
<int:string>WorkZone.* </int:string>
<int:string>WorkZone.Asset.* </int:string>
</int:Properties></int:PropertySet><int:Orders>
<int:OrderExpression>
<int:PropertyName>Id</int:PropertyName>
<int:OrderType>Ascending</int:OrderType>
</int:OrderExpression>
</int:Orders>
<int:Count>2</int:Count>
<int:FirstResultIndex>0</int:FirstResultIndex>
<int:Criteria>
<int:Filters>
<int:FilterExpression>
<int:Conditions>
<int:ConditionExpression>
<--TenantCode as Condition to Retrieve Customer.Id>
<int:PropertyName>Tenantcode</int:PropertyName>
<int:Operator>Equal</int:Operator>
<int:Values>
<int:anyType xsi:type="xsd:string">15475</int:anyType>
</int:Values>
</int:ConditionExpression>
</int:Conditions>
</int:FilterExpression>
</int:Filters>
</int:Criteria>
<int:Distinct>true</int:Distinct>
</int:queryExpression></int:RetrieveMultiple>
</soap:Body>
</soap:Envelope>
Response:
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/soap+xml; charset=utf-8
Date: Tue, 14 Jul 2020 17:39:48 GMT
Content-Length: 2418
Strict-Transport-Security: max-age=31536000; includeSubDomains
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<RetrieveMultipleResponse xmlns="http://corrigo.com/integration/">
<RetrieveMultipleResult>
<CorrigoEntity xsi:type="Customer">
<--Get Customer.Id for TenantCode=15475>
<Id>27</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>4</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<DisplayAs>A NEW NAME 5</DisplayAs>
<Name>KFC-15475-WAXAHACHIE</Name>
<WorkZone>
<Id>5</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>5</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<DisplayAs>KFC-15475-WAXAHACHIE</DisplayAs>
<--Get WorkZone.Asset.Id, use this Id as condition to Retrieve AssetTree>
<Asset>
<Id>3360</Id>
<PerformDeletion>false</PerformDeletion>
<Name>KFC-15475-WAXAHACHIE</Name>
<ModelId>1308</ModelId>
<Orphan>false</Orphan>
<TypeId>Community</TypeId>
<ParentId>0</ParentId>
<RootId>0</RootId>
<IsTemplate>false</IsTemplate>
<Documents/>
<IsOffline>false</IsOffline>
<IsLocked>false</IsLocked>
<Attributes/>
</Asset>
<TimeZone>20</TimeZone>
<LanguageId>1033</LanguageId>
<WoNumberPrefix>15475</WoNumberPrefix>
<Entity>KFC</Entity>
<SchedulingWindow>15</SchedulingWindow>
<NoIncompleteProcedure>false</NoIncompleteProcedure>
<AccessOptionsMask>8</AccessOptionsMask>
<Number>15475</Number>
<AdvanceNotice>0</AdvanceNotice>
<WoNumberDigits>6</WoNumberDigits>
<RoundApptTimeTo>60</RoundApptTimeTo>
<WorkPlanAutoCancel>false</WorkPlanAutoCancel>
<WorkPlanChildResolution>false</WorkPlanChildResolution>
<WorkPlanAutoDependency>false</WorkPlanAutoDependency>
<CpThemeId>0</CpThemeId>
<DefaultAccess>NotApplicable</DefaultAccess>
<AutoAssignEnabled>true</AutoAssignEnabled>
<BackupRoutingId>Unassigned</BackupRoutingId>
<NoIncompleteItem>false</NoIncompleteItem>
<UiShowProvidersFirst>false</UiShowProvidersFirst>
<CurrencyTypeId>USD</CurrencyTypeId>
<IsOffline>false</IsOffline>
<ContactAddresses/>
<CustomFields/>
<Portfolios/>
<SlaValues/>
<Teams/>
<BizHours/>
<EscalationRules/>
<SpecDispatchRules/>
<OnCallRules/>
<Responsibilities/>
<UseBizHours>true</UseBizHours>
<UseHolidays>true</UseHolidays>
<UseOnCall>true</UseOnCall>
<UseEscalation>true</UseEscalation>
<DefaultBillToLogic>1</DefaultBillToLogic>
<TurnKickOffAuto>false</TurnKickOffAuto>
<TurnKickOffLagDays>0</TurnKickOffLagDays>
<TurnKickOffOnDays>127</TurnKickOffOnDays>
<EarliestSlot>1</EarliestSlot>
<LatestSlot>7</LatestSlot>
<SlotsCount>3</SlotsCount>
<IsPrecalculatedSchedule>false</IsPrecalculatedSchedule>
<AllowTimePreference>false</AllowTimePreference>
<TurnTemplateId>0</TurnTemplateId>
<IsmSpecGroupId>0</IsmSpecGroupId>
<IsmUrl/>
</WorkZone>
<Dba>A NEW NAME 5</Dba>
<Instructions/>
<TenantCode>15475</TenantCode>
<TaxExempt>false</TaxExempt>
<Spaces/>
<Contacts/>
<CustomFields/>
<Notes/>
<Addresses/>
<GroupsBridge/>
<ApprovalScopes/>
</CorrigoEntity>
</RetrieveMultipleResult>
</RetrieveMultipleResponse>
</soap:Body>
</soap:Envelope>
4. RetrieveMultiple – Location by AssetTag (for serialized Equipment assets)
This sample is to get Location.Id (Asset.Id) for WorkOrder Creation
Request:
<--The endpoint transferred from GetCompanyWsdkUrl Method>
POST https://am-ce96b.corrigo.com/wsdk/CorrigoService.asmx HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8;action="http://corrigo.com/integration/RetrieveMultiple"
Content-Length: 1714
Host: am-ce96b.corrigo.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_181)
Cookie: ASP.NET_SessionId=vu3t4zeccim0lcf1ugimr5t2
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:int="http://corrigo.com/integration/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<int:CorrigoNetOptions>
<int:ImposeConcurrencyId>false</int:ImposeConcurrencyId>
<int:UpdateLastModified>false</int:UpdateLastModified>
<int:CanDeleteMissingEntity>false</int:CanDeleteMissingEntity>
<int:LockOnDataRetrieval>Default</int:LockOnDataRetrieval>
</int:CorrigoNetOptions>
</soap:Header>
<soap:Body>
<int:RetrieveMultiple><int:queryExpression xsi:type="int:QueryExpression" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<int:EntityType>Location</int:EntityType>
<int:PropertySet xsi:type="int:PropertySet"><int:Properties>
<int:string>*</int:string>
<int:string>info.*</int:string>
</int:Properties></int:PropertySet><int:Orders>
<int:OrderExpression>
<int:PropertyName>Id</int:PropertyName>
<int:OrderType>Ascending</int:OrderType>
</int:OrderExpression>
</int:Orders>
<int:Count>10</int:Count>
<int:FirstResultIndex>0</int:FirstResultIndex>
<int:Criteria>
<int:Conditions>
<int:ConditionExpression>
<--TagId as Condition to Retrieve Location.Id>
<int:PropertyName>Info.TagId</int:PropertyName>
<int:Operator>Equal</int:Operator>
<int:Values>
<int:anyType xsi:type="xsd:string">TagID123</int:anyType>
</int:Values>
</int:ConditionExpression>
</int:Conditions>
<int:FilterOperator>And</int:FilterOperator>
</int:Criteria>
<int:Distinct>true</int:Distinct>
</int:queryExpression></int:RetrieveMultiple>
</soap:Body>
</soap:Envelope>
Response:
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/soap+xml; charset=utf-8
Date: Tue, 14 Jul 2020 16:55:57 GMT
Content-Length: 576
Strict-Transport-Security: max-age=31536000; includeSubDomains
<--Successfully execute result>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<RetrieveMultipleResponse xmlns="http://corrigo.com/integration/">
<RetrieveMultipleResult>
<CorrigoEntity xsi:type="Location">
<--Successfully execute to get Location.Id as Asset.Id for WorkOrder Creation>
<Id>4182</Id>
<PerformDeletion>false</PerformDeletion>
<Name>Ice Machine</Name>
<--get Model.Id to Retrieve Task>
<ModelId>1282</ModelId>
<Orphan>false</Orphan>
<TypeId>Equipment</TypeId>
<ParentId>0</ParentId>
<RootId>0</RootId>
<IsTemplate>false</IsTemplate>
<Info>
<Id>4182</Id>
<PerformDeletion>false</PerformDeletion>
<AssetId>4182</AssetId>
<CommunityId>5</CommunityId>
<SerialNumber/>
<TagId>TagID123</TagId>
<CheckPhone/>
</Info>
<Documents/>
<IsOffline>false</IsOffline>
<IsLocked>false</IsLocked>
<Attributes/>
</CorrigoEntity>
</RetrieveMultipleResult>
</RetrieveMultipleResponse>
</soap:Body>
</soap:Envelope>
5. RetrieveMultiple – AssetTree by WorkZone.Asset.Id and Child.Name (for non-serialized assets)
This sample is to get Asset.Id from AssetTree Entity for WorkOrder Creation
Request:
<--The endpoint transferred from GetCompanyWsdkUrl Method>
POST https://am-ce96b.corrigo.com/wsdk/CorrigoService.asmx HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8;action="http://corrigo.com/integration/RetrieveMultiple"
Content-Length: 1714
Host: am-ce96b.corrigo.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_181)
Cookie: ASP.NET_SessionId=vu3t4zeccim0lcf1ugimr5t2
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:int="http://corrigo.com/integration/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<int:CorrigoNetOptions>
<int:ImposeConcurrencyId>false</int:ImposeConcurrencyId>
<int:UpdateLastModified>false</int:UpdateLastModified>
<int:CanDeleteMissingEntity>false</int:CanDeleteMissingEntity>
<int:LockOnDataRetrieval>Default</int:LockOnDataRetrieval>
</int:CorrigoNetOptions>
</soap:Header>
<soap:Body>
<int:RetrieveMultiple><int:queryExpression xsi:type="int:QueryExpression" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<int:EntityType>AssetTree</int:EntityType>
<int:PropertySet xsi:type="int:PropertySet"><int:Properties>
<int:string>*</int:string><int:string>Child.*</int:string>
</int:Properties></int:PropertySet><int:Orders>
<int:OrderExpression>
<int:PropertyName>Id</int:PropertyName>
<int:OrderType>Ascending</int:OrderType>
</int:OrderExpression>
</int:Orders>
<int:Count>100</int:Count>
<int:FirstResultIndex>0</int:FirstResultIndex>
<int:Criteria>
<--Condition: Id from Step 3 - Customer.WorkZone.Asset.Id and Asset Nmae (Child.Name) like Ice>
<int:Conditions>
<int:ConditionExpression>
<int:PropertyName>Id</int:PropertyName>
<int:Operator>Equal</int:Operator>
<int:Values>
<int:anyType xsi:type="xsd:string">3360</int:anyType>
</int:Values>
</int:ConditionExpression>
</int:Conditions>
<int:FilterOperator>And</int:FilterOperator>
<int:Filters>
<int:FilterExpression>
<int:Conditions>
<int:ConditionExpression>
<int:PropertyName>Child.Name</int:PropertyName>
<int:Operator>Like</int:Operator>
<int:Values>
<int:anyType xsi:type="xsd:string">Ice M%</int:anyType>
</int:Values>
</int:ConditionExpression>
</int:Conditions>
</int:FilterExpression>
</int:Filters>
</int:Criteria>
<int:Distinct>true</int:Distinct>
</int:queryExpression></int:RetrieveMultiple>
</soap:Body>
</soap:Envelope>
Response:
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/soap+xml; charset=utf-8
Date: Tue, 14 Jul 2020 16:55:57 GMT
Content-Length: 576
Strict-Transport-Security: max-age=31536000; includeSubDomains
<--Successfully execute result>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<RetrieveMultipleResponse xmlns="http://corrigo.com/integration/">
<RetrieveMultipleResult>
<CorrigoEntity xsi:type="AssetTree">
<Id>3360</Id>
<PerformDeletion>false</PerformDeletion>
<ParentId>3360</ParentId>
<--Successfully execute to get Asset.Id for WorkOrder Creation>
<ChildId>4182</ChildId>
<Child>
<--Asset.Id for asset name Ice Machine>
<Id>4182</Id>
<PerformDeletion>false</PerformDeletion>
<Name>Ice Machine</Name>
<ModelId>1282</ModelId>
<Orphan>false</Orphan>
<TypeId>Equipment</TypeId>
<ParentId>0</ParentId>
<RootId>0</RootId>
<IsTemplate>false</IsTemplate>
<Documents/>
<IsOffline>false</IsOffline>
<IsLocked>false</IsLocked>
<Attributes/>
</Child>
<Distance>3</Distance>
</CorrigoEntity>
</RetrieveMultipleResult>
</RetrieveMultipleResponse>
</soap:Body>
</soap:Envelope>
6. RetrieveMultiple – Task by Location.ModelId
This sample is to get Task.Id from Task Entity for WorkOrder Creation
Request:
<--The endpoint transferred from GetCompanyWsdkUrl Method>
POST https://am-ce96b.corrigo.com/wsdk/CorrigoService.asmx HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8;action="http://corrigo.com/integration/RetrieveMultiple"
Content-Length: 1714
Host: am-ce96b.corrigo.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_181)
Cookie: ASP.NET_SessionId=vu3t4zeccim0lcf1ugimr5t2
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:int="http://corrigo.com/integration/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<int:CorrigoNetOptions>
<int:ImposeConcurrencyId>false</int:ImposeConcurrencyId>
<int:UpdateLastModified>false</int:UpdateLastModified>
<int:CanDeleteMissingEntity>false</int:CanDeleteMissingEntity>
<int:LockOnDataRetrieval>Default</int:LockOnDataRetrieval>
</int:CorrigoNetOptions>
</soap:Header>
<soap:Body>
<int:RetrieveMultiple><int:queryExpression xsi:type="int:QueryExpression" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<int:EntityType>Task</int:EntityType>
<int:PropertySet xsi:type="int:PropertySet"><int:Properties>
<int:string>*</int:string>
<int:string>Specialty.*</int:string>
</int:Properties></int:PropertySet><int:Orders>
<int:OrderExpression>
<int:PropertyName>Id</int:PropertyName>
<int:OrderType>Ascending</int:OrderType>
</int:OrderExpression>
</int:Orders>
<int:Count>10</int:Count>
<int:FirstResultIndex>0</int:FirstResultIndex>
<int:Criteria>
<--Conditon: ModelId from Step 4 Location.ModelId and Task Name - No Ice>
<int:Conditions>
<int:ConditionExpression>
<int:PropertyName>ModelId</int:PropertyName>
<int:Operator>Equal</int:Operator>
<int:Values>
<int:anyType xsi:type="xsd:string">1282</int:anyType>
</int:Values>
</int:ConditionExpression>
</int:Conditions>
<int:FilterOperator>And</int:FilterOperator>
<int:Filters>
<int:FilterExpression>
<int:Conditions>
<int:ConditionExpression>
<int:PropertyName>DisplayAs</int:PropertyName>
<int:Operator>Equal</int:Operator>
<int:Values>
<int:anyType xsi:type="xsd:string">No Ice</int:anyType>
</int:Values>
</int:ConditionExpression>
</int:Conditions>
</int:FilterExpression>
</int:Filters>
</int:Criteria>
<int:Distinct>true</int:Distinct>
</int:queryExpression></int:RetrieveMultiple>
</soap:Body>
</soap:Envelope>
Response:
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/soap+xml; charset=utf-8
Date: Tue, 14 Jul 2020 16:55:57 GMT
Content-Length: 576
Strict-Transport-Security: max-age=31536000; includeSubDomains
<--Successfully execute result>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<RetrieveMultipleResponse xmlns="http://corrigo.com/integration/">
<RetrieveMultipleResult>
<CorrigoEntity xsi:type="Task">
<--Successfully execute to get Task.Id for WorkOrder Creation>
<Id>14819</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>1</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<ModelId>1282</ModelId>
<DisplayAs>No Ice</DisplayAs>
<Preventive>false</Preventive>
<Routine>false</Routine>
<Corrective>false</Corrective>
<Default>false</Default>
<Symptom>true</Symptom>
<CompletionTime>0</CompletionTime>
<Specialty>
<Id>10054</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>1</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<DisplayAs>Refrigeration</DisplayAs>
<WONServiceId>0</WONServiceId>
<Instructions/>
<Currencies/>
</Specialty>
<Priority>
<Id>2</Id>
<PerformDeletion>false</PerformDeletion>
<IsEmergency>false</IsEmergency>
<AcknowledgeInMinutes>0</AcknowledgeInMinutes>
<RespondInMinutes>0</RespondInMinutes>
<DueInMinutes>0</DueInMinutes>
</Priority>
<SelfHelpType xsi:nil="true"/>
<Instructions/>
<SelfHelpContent/>
<PeopleRequired>0</PeopleRequired>
<SkillLevel>0</SkillLevel>
<GlAccount/>
<Number/>
<Currencies/>
</CorrigoEntity>
</RetrieveMultipleResult>
</RetrieveMultipleResponse>
</soap:Body>
</soap:Envelope>
7. Execute – WoCreateCommand – using results from steps 3, 4, 5
This sample is for WorkOrder Creation
Request:
<--The endpoint transferred from GetCompanyWsdkUrl Method>
POST https://am-ce96b.corrigo.com/wsdk/CorrigoService.asmx HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8;action="http://corrigo.com/integration/Execute"
Content-Length: 1714
Host: am-ce96b.corrigo.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_181)
Cookie: ASP.NET_SessionId=vu3t4zeccim0lcf1ugimr5t2
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:int="http://corrigo.com/integration/">
<soap:Header>
<int:CorrigoNetOptions>
<int:ImposeConcurrencyId>false</int:ImposeConcurrencyId>
<int:UpdateLastModified>false</int:UpdateLastModified>
<int:CanDeleteMissingEntity>false</int:CanDeleteMissingEntity>
<int:LockOnDataRetrieval>Default</int:LockOnDataRetrieval>
</int:CorrigoNetOptions>
</soap:Header>
<soap:Body>
<int:Execute>
<int:commandRequest xsi:type="int:WoCreateCommand" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<int:WorkOrder>
<int:TypeCategory>Request</int:TypeCategory>
<int:SubType>
<int:Id>259</int:Id>
</int:SubType>
<--Customer.Id from Step 3>
<int:Customer>
<int:Id>27</int:Id>
</int:Customer>
<int:ContactName>Store Manager</int:ContactName>
<int:ContactAddress>
<int:AddrTypeId>Contact</int:AddrTypeId>
<int:Address>214-555-5555</int:Address>
</int:ContactAddress>
<int:Items>
<int:WoItem>
<--Asset.Id from Step 4 or 5>
<int:Asset>
<int:Id>4182</int:Id>
</int:Asset>
<--Task.Id from Step 6>
<int:Task>
<int:Id>14819</int:Id>
</int:Task>
<int:Comment>This is a WO description demo</int:Comment>
</int:WoItem>
</int:Items>
<int:CustomFields>
<int:CustomField2>
<int:Descriptor>
<int:Id>1</int:Id>
</int:Descriptor>
<int:ObjectTypeId>WO</int:ObjectTypeId>
<int:Value>123456</int:Value>
</int:CustomField2>
</int:CustomFields>
</int:WorkOrder>
<int:ComputeSchedule>true</int:ComputeSchedule>
<int:ComputeAssignment>true</int:ComputeAssignment>
</int:commandRequest>
</int:Execute>
</soap:Body>
</soap:Envelope>
Response:
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/soap+xml; charset=utf-8
Date: Tue, 14 Jul 2020 16:55:57 GMT
Content-Length: 576
Strict-Transport-Security: max-age=31536000; includeSubDomains
<--Successfully execute result>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ExecuteResponse xmlns="http://corrigo.com/integration/">
<ExecuteResult xsi:type="WoActionResponse">
<--Successfully generated WorkOrder>
<Wo>
<Id>1673</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>1</ConcurrencyId>
<Number>15475000343</Number>
<TypeCategory>Request</TypeCategory>
<WorkOrderCost>
<Id>1673</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>1</ConcurrencyId>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<CostsTotal>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<Value>0</Value>
</CostsTotal>
<ApStateId>None</ApStateId>
<ApStatusId>1</ApStatusId>
<JobCode/>
<AuthorizationCode/>
<CheckNumber/>
<PaymentAmount>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<Value>0</Value>
</PaymentAmount>
<PaymentNotes/>
<CheckCutDate xsi:nil="true"/>
<CheckClearDate xsi:nil="true"/>
<GlAccount/>
<Number/>
<VendorInvoiceDate xsi:nil="true"/>
<VendorInvoiceReceivedDate xsi:nil="true"/>
<VendorInvoiceTotal>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<Value>0</Value>
</VendorInvoiceTotal>
<IsPreBilled>false</IsPreBilled>
<ExpensesTotal>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<Value>0</Value>
</ExpensesTotal>
<BillingRule>Unknown</BillingRule>
<TaxStatus>Unknown</TaxStatus>
<CustomerNte>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<Value>0</Value>
</CustomerNte>
<Items/>
<ServiceFeesTotal>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<Value>0</Value>
</ServiceFeesTotal>
<CostStatusId>1</CostStatusId>
<CostState>Pending</CostState>
<ExternalId/>
</WorkOrderCost>
<Priority>
<Id>2</Id>
<PerformDeletion>false</PerformDeletion>
<IsEmergency>false</IsEmergency>
<AcknowledgeInMinutes>0</AcknowledgeInMinutes>
<RespondInMinutes>0</RespondInMinutes>
<DueInMinutes>0</DueInMinutes>
</Priority>
<StatusId>New</StatusId>
<Access>NotApplicable</Access>
<MainAsset>
<Id>4127</Id>
<PerformDeletion>false</PerformDeletion>
<Name/>
<ModelId>0</ModelId>
<Orphan>false</Orphan>
<TypeId>Unknown</TypeId>
<ParentId>0</ParentId>
<RootId>0</RootId>
<IsTemplate>false</IsTemplate>
<Documents/>
<IsOffline>false</IsOffline>
<IsLocked>false</IsLocked>
<Attributes/>
</MainAsset>
<ShortLocation>KFC-15475-WAXAHACHIE</ShortLocation>
<TaskRefinement>Ice Machine:No Ice:This is a WO description demo</TaskRefinement>
<WorkZone>
<Id>5</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>5</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<DisplayAs/>
<TimeZone>0</TimeZone>
<LanguageId>0</LanguageId>
<WoNumberPrefix/>
<Entity/>
<SchedulingWindow>0</SchedulingWindow>
<NoIncompleteProcedure>false</NoIncompleteProcedure>
<AccessOptionsMask>0</AccessOptionsMask>
<Number/>
<AdvanceNotice>0</AdvanceNotice>
<WoNumberDigits>0</WoNumberDigits>
<RoundApptTimeTo>0</RoundApptTimeTo>
<WorkPlanAutoCancel>false</WorkPlanAutoCancel>
<WorkPlanChildResolution>false</WorkPlanChildResolution>
<WorkPlanAutoDependency>false</WorkPlanAutoDependency>
<CpThemeId>0</CpThemeId>
<DefaultAccess>Unknown</DefaultAccess>
<AutoAssignEnabled>false</AutoAssignEnabled>
<BackupRoutingId>Unassigned</BackupRoutingId>
<NoIncompleteItem>false</NoIncompleteItem>
<UiShowProvidersFirst>false</UiShowProvidersFirst>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<IsOffline>false</IsOffline>
<ContactAddresses/>
<CustomFields/>
<Portfolios/>
<SlaValues/>
<Teams/>
<BizHours/>
<EscalationRules/>
<SpecDispatchRules/>
<OnCallRules/>
<Responsibilities/>
<UseBizHours>false</UseBizHours>
<UseHolidays>false</UseHolidays>
<UseOnCall>false</UseOnCall>
<UseEscalation>false</UseEscalation>
<DefaultBillToLogic>0</DefaultBillToLogic>
<TurnKickOffAuto>false</TurnKickOffAuto>
<TurnKickOffLagDays>0</TurnKickOffLagDays>
<TurnKickOffOnDays>0</TurnKickOffOnDays>
<EarliestSlot>0</EarliestSlot>
<LatestSlot>0</LatestSlot>
<SlotsCount>0</SlotsCount>
<IsPrecalculatedSchedule>false</IsPrecalculatedSchedule>
<AllowTimePreference>false</AllowTimePreference>
<TurnTemplateId>0</TurnTemplateId>
<IsmSpecGroupId>0</IsmSpecGroupId>
</WorkZone>
<Employee>
<Id>2</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>5</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<FirstName/>
<LastName/>
<DisplayAs/>
<AccessToAllWorkZones>false</AccessToAllWorkZones>
<LanguageId>0</LanguageId>
<ActorTypeId>Unknown</ActorTypeId>
<Username/>
<DtPwdChange>0001-01-01T00:00:00</DtPwdChange>
<ProviderInvitedOn xsi:nil="true"/>
<Instructions/>
<WonMemberId>0</WonMemberId>
<WonLocationId>0</WonLocationId>
<WonServiceRadius>0</WonServiceRadius>
<IsElectronicPayment>false</IsElectronicPayment>
<ProviderStatusId>NA</ProviderStatusId>
<LabelId>0</LabelId>
<FreeTextAllowed>false</FreeTextAllowed>
<RadiusUnit>Unknown</RadiusUnit>
<Password/>
<Number/>
<JobTitle/>
<FederalId/>
<ExternalId/>
<ForcePasswordReset>false</ForcePasswordReset>
<TaxWarnOnly>false</TaxWarnOnly>
<PriceLists/>
<CustomFields/>
<BillAtZero>false</BillAtZero>
<IsSupplier>false</IsSupplier>
<ProviderTypeId>Regular</ProviderTypeId>
<ContactAddresses/>
<Teams/>
<WorkZones/>
<Portfolios/>
<CustomerGroups/>
<Specialties/>
<PayRates/>
<StockLocations/>
<Services/>
<AlertSubscriptions/>
<TaxExempt>false</TaxExempt>
<LimitAssignmentByPortfolioId>0</LimitAssignmentByPortfolioId>
</Employee>
<Duration>0</Duration>
<VendorNte>
<CurrencyTypeId>USD</CurrencyTypeId>
<Value>0.00</Value>
</VendorNte>
<Specialty>
<Id>10054</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>1</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<DisplayAs/>
<WONServiceId>0</WONServiceId>
<Instructions/>
<Currencies/>
</Specialty>
<PoNumber/>
<SubType>
<Id>259</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>1</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<TypeId>Unknown</TypeId>
<IsDefSR>false</IsDefSR>
<IsDefBasic>false</IsDefBasic>
</SubType>
<Customer>
<Id>27</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>0</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<DisplayAs/>
<Name/>
<Dba/>
<Instructions/>
<TenantCode/>
<TaxExempt>false</TaxExempt>
<Spaces/>
<Contacts/>
<CustomFields/>
<Notes/>
<Addresses/>
<GroupsBridge/>
<ApprovalScopes/>
</Customer>
<ContactName>Store Manager</ContactName>
<WonId>0</WonId>
<IsWarranty>true</IsWarranty>
<TimeZone>20</TimeZone>
<CurrencyTypeId>USD</CurrencyTypeId>
<LastActionDate>2020-12-07T17:35:33.451204</LastActionDate>
<DtCreated>2020-12-07T17:35:33.451204</DtCreated>
<DtScheduledStart xsi:nil="true"/>
<DtDue>2021-01-06T18:00:00</DtDue>
<DtAcknowledgeBy>2020-12-09T18:00:00</DtAcknowledgeBy>
<AcknowledgeByUtc>2020-12-10T00:00:00Z</AcknowledgeByUtc>
<LastActionDateUtc>2020-12-07T23:35:33.451204Z</LastActionDateUtc>
<CreatedDateUtc>2020-12-07T23:35:33.451204Z</CreatedDateUtc>
<ScheduledStartUtc xsi:nil="true"/>
<DueDateUtc>2021-01-07T00:00:00Z</DueDateUtc>
<DtOnSiteBy>2020-12-10T18:00:00</DtOnSiteBy>
<DtUtcOnSiteBy>2020-12-11T00:00:00Z</DtUtcOnSiteBy>
<LastAction>
<Id>1673</Id>
<PerformDeletion>false</PerformDeletion>
<WorkOrderId>0</WorkOrderId>
<BillStatus>NotBilled</BillStatus>
</LastAction>
<Items/>
<EquipmentWorkedOn/>
<Notes/>
<Assignments/>
<Procedures/>
<Documents/>
<CustomFields/>
<Verifications/>
<CheckInOuts/>
<ActionLogRecords/>
<InductionAndSafetyStatusID>NotApplicable</InductionAndSafetyStatusID>
</Wo>
</ExecuteResult>
</ExecuteResponse>
</soap:Body>
</soap:Envelope>
8. Retrieve – WorkOrder by Id (from response of step 7)
This sample is to get WorkOrder detail
Request:
<--The endpoint transferred from GetCompanyWsdkUrl Method>
POST https://am-ce96b.corrigo.com/wsdk/CorrigoService.asmx HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8;action="http://corrigo.com/integration/RetrieveMultiple"
Content-Length: 1714
Host: am-ce96b.corrigo.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_181)
Cookie: ASP.NET_SessionId=vu3t4zeccim0lcf1ugimr5t2
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:int="http://corrigo.com/integration/">
<soap:Header>
<int:CorrigoNetOptions>
<int:ImposeConcurrencyId>false</int:ImposeConcurrencyId>
<int:UpdateLastModified>true</int:UpdateLastModified>
<int:CanDeleteMissingEntity>false</int:CanDeleteMissingEntity>
<int:LockOnDataRetrieval>Default</int:LockOnDataRetrieval>
</int:CorrigoNetOptions>
</soap:Header>
<soap:Body>
<int:Retrieve>
<int:entitySpecifier>
<int:EntityType>WorkOrder</int:EntityType>
<--WorkOrder by Id (from response of step 7)>
<int:Id>1673</int:Id></int:entitySpecifier>
<int:propertySet xsi:type="int:PropertySet" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<int:Properties>
<int:string>*</int:string>
<int:string>WorkZone.Asset.*</int:string>
<int:string>Items.Asset.*</int:string>
<int:string>Items.Asset.ModelId</int:string>
<int:string>Customer.*</int:string>
<int:string>Items.*</int:string>
<int.string>Items.EquipmentWorkedOn</int.string>
</int:Properties>
</int:propertySet>
</int:Retrieve>
</soap:Body>
</soap:Envelope>
Response:
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/soap+xml; charset=utf-8
Date: Tue, 14 Jul 2020 16:55:57 GMT
Content-Length: 576
Strict-Transport-Security: max-age=31536000; includeSubDomains
<--Successfully execute result>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<RetrieveResponse xmlns="http://corrigo.com/integration/">
<RetrieveResult xsi:type="WorkOrder">
<Id>1673</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>1</ConcurrencyId>
<Number>15475000343</Number>
<TypeCategory>Request</TypeCategory>
<WorkOrderCost>
<Id>1673</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>0</ConcurrencyId>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<CostsTotal>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<Value>0</Value>
</CostsTotal>
<ApStateId>None</ApStateId>
<ApStatusId>1</ApStatusId>
<JobCode/>
<AuthorizationCode/>
<CheckNumber/>
<PaymentAmount>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<Value>0</Value>
</PaymentAmount>
<PaymentNotes/>
<CheckCutDate xsi:nil="true"/>
<CheckClearDate xsi:nil="true"/>
<GlAccount/>
<Number/>
<VendorInvoiceDate xsi:nil="true"/>
<VendorInvoiceReceivedDate xsi:nil="true"/>
<VendorInvoiceTotal>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<Value>0</Value>
</VendorInvoiceTotal>
<IsPreBilled>false</IsPreBilled>
<ExpensesTotal>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<Value>0</Value>
</ExpensesTotal>
<BillingRule>Unknown</BillingRule>
<TaxStatus>Unknown</TaxStatus>
<CustomerNte>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<Value>0</Value>
</CustomerNte>
<Items/>
<ServiceFeesTotal>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<Value>0</Value>
</ServiceFeesTotal>
<CostStatusId>1</CostStatusId>
<CostState>Pending</CostState>
<ExternalId/>
</WorkOrderCost>
<Priority>
<Id>2</Id>
<PerformDeletion>false</PerformDeletion>
<IsEmergency>false</IsEmergency>
<AcknowledgeInMinutes>0</AcknowledgeInMinutes>
<RespondInMinutes>0</RespondInMinutes>
<DueInMinutes>0</DueInMinutes>
</Priority>
<StatusId>New</StatusId>
<Access>NotApplicable</Access>
<MainAsset>
<Id>4127</Id>
<PerformDeletion>false</PerformDeletion>
<Name/>
<ModelId>0</ModelId>
<Orphan>false</Orphan>
<TypeId>Unknown</TypeId>
<ParentId>0</ParentId>
<RootId>0</RootId>
<IsTemplate>false</IsTemplate>
<Documents/>
<IsOffline>false</IsOffline>
<IsLocked>false</IsLocked>
<Attributes/>
</MainAsset>
<ShortLocation>KFC-15475-WAXAHACHIE</ShortLocation>
<TaskRefinement>Ice Machine:No Ice:This is a WO description demo</TaskRefinement>
<WorkZone>
<Id>5</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>5</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<DisplayAs/>
<Asset>
<Id>3360</Id>
<PerformDeletion>false</PerformDeletion>
<Name>KFC-15475-WAXAHACHIE</Name>
<ModelId>1308</ModelId>
<Orphan>false</Orphan>
<TypeId>Community</TypeId>
<ParentId>0</ParentId>
<RootId>0</RootId>
<IsTemplate>false</IsTemplate>
<Documents/>
<IsOffline>false</IsOffline>
<IsLocked>false</IsLocked>
<Attributes/>
</Asset>
<TimeZone>0</TimeZone>
<LanguageId>0</LanguageId>
<WoNumberPrefix/>
<Entity/>
<SchedulingWindow>0</SchedulingWindow>
<NoIncompleteProcedure>false</NoIncompleteProcedure>
<AccessOptionsMask>0</AccessOptionsMask>
<Number/>
<AdvanceNotice>0</AdvanceNotice>
<WoNumberDigits>0</WoNumberDigits>
<RoundApptTimeTo>0</RoundApptTimeTo>
<WorkPlanAutoCancel>false</WorkPlanAutoCancel>
<WorkPlanChildResolution>false</WorkPlanChildResolution>
<WorkPlanAutoDependency>false</WorkPlanAutoDependency>
<CpThemeId>0</CpThemeId>
<DefaultAccess>Unknown</DefaultAccess>
<AutoAssignEnabled>false</AutoAssignEnabled>
<BackupRoutingId>Unassigned</BackupRoutingId>
<NoIncompleteItem>false</NoIncompleteItem>
<UiShowProvidersFirst>false</UiShowProvidersFirst>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<IsOffline>false</IsOffline>
<ContactAddresses/>
<CustomFields/>
<Portfolios/>
<SlaValues/>
<Teams/>
<BizHours/>
<EscalationRules/>
<SpecDispatchRules/>
<OnCallRules/>
<Responsibilities/>
<UseBizHours>false</UseBizHours>
<UseHolidays>false</UseHolidays>
<UseOnCall>false</UseOnCall>
<UseEscalation>false</UseEscalation>
<DefaultBillToLogic>0</DefaultBillToLogic>
<TurnKickOffAuto>false</TurnKickOffAuto>
<TurnKickOffLagDays>0</TurnKickOffLagDays>
<TurnKickOffOnDays>0</TurnKickOffOnDays>
<EarliestSlot>0</EarliestSlot>
<LatestSlot>0</LatestSlot>
<SlotsCount>0</SlotsCount>
<IsPrecalculatedSchedule>false</IsPrecalculatedSchedule>
<AllowTimePreference>false</AllowTimePreference>
<TurnTemplateId>0</TurnTemplateId>
<IsmSpecGroupId>0</IsmSpecGroupId>
</WorkZone>
<Employee>
<Id>2</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>0</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<FirstName/>
<LastName/>
<DisplayAs/>
<AccessToAllWorkZones>false</AccessToAllWorkZones>
<LanguageId>0</LanguageId>
<ActorTypeId>Unknown</ActorTypeId>
<Username/>
<DtPwdChange>0001-01-01T00:00:00</DtPwdChange>
<ProviderInvitedOn xsi:nil="true"/>
<Instructions/>
<WonMemberId>0</WonMemberId>
<WonLocationId>0</WonLocationId>
<WonServiceRadius>0</WonServiceRadius>
<IsElectronicPayment>false</IsElectronicPayment>
<ProviderStatusId>NA</ProviderStatusId>
<LabelId>0</LabelId>
<FreeTextAllowed>false</FreeTextAllowed>
<RadiusUnit>Unknown</RadiusUnit>
<Password/>
<Number/>
<JobTitle/>
<FederalId/>
<ExternalId/>
<ForcePasswordReset>false</ForcePasswordReset>
<TaxWarnOnly>false</TaxWarnOnly>
<PriceLists/>
<CustomFields/>
<BillAtZero>false</BillAtZero>
<IsSupplier>false</IsSupplier>
<ProviderTypeId>Regular</ProviderTypeId>
<ContactAddresses/>
<Teams/>
<WorkZones/>
<Portfolios/>
<CustomerGroups/>
<Specialties/>
<PayRates/>
<StockLocations/>
<Services/>
<AlertSubscriptions/>
<TaxExempt>false</TaxExempt>
<LimitAssignmentByPortfolioId>0</LimitAssignmentByPortfolioId>
</Employee>
<Duration>0</Duration>
<VendorNte>
<CurrencyTypeId>USD</CurrencyTypeId>
<Value>0.0000</Value>
</VendorNte>
<Specialty>
<Id>10054</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>0</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<DisplayAs/>
<WONServiceId>0</WONServiceId>
<Instructions/>
<Currencies/>
</Specialty>
<PoNumber/>
<SubType>
<Id>259</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>0</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<TypeId>Unknown</TypeId>
<IsDefSR>false</IsDefSR>
<IsDefBasic>false</IsDefBasic>
</SubType>
<Customer>
<Id>27</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>4</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<DisplayAs>A NEW NAME 5</DisplayAs>
<Name>KFC-15475-WAXAHACHIE</Name>
<WorkZone>
<Id>5</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>5</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<DisplayAs/>
<TimeZone>0</TimeZone>
<LanguageId>0</LanguageId>
<WoNumberPrefix/>
<Entity/>
<SchedulingWindow>0</SchedulingWindow>
<NoIncompleteProcedure>false</NoIncompleteProcedure>
<AccessOptionsMask>0</AccessOptionsMask>
<Number/>
<AdvanceNotice>0</AdvanceNotice>
<WoNumberDigits>0</WoNumberDigits>
<RoundApptTimeTo>0</RoundApptTimeTo>
<WorkPlanAutoCancel>false</WorkPlanAutoCancel>
<WorkPlanChildResolution>false</WorkPlanChildResolution>
<WorkPlanAutoDependency>false</WorkPlanAutoDependency>
<CpThemeId>0</CpThemeId>
<DefaultAccess>Unknown</DefaultAccess>
<AutoAssignEnabled>false</AutoAssignEnabled>
<BackupRoutingId>Unassigned</BackupRoutingId>
<NoIncompleteItem>false</NoIncompleteItem>
<UiShowProvidersFirst>false</UiShowProvidersFirst>
<CurrencyTypeId>Unknown</CurrencyTypeId>
<IsOffline>false</IsOffline>
<ContactAddresses/>
<CustomFields/>
<Portfolios/>
<SlaValues/>
<Teams/>
<BizHours/>
<EscalationRules/>
<SpecDispatchRules/>
<OnCallRules/>
<Responsibilities/>
<UseBizHours>false</UseBizHours>
<UseHolidays>false</UseHolidays>
<UseOnCall>false</UseOnCall>
<UseEscalation>false</UseEscalation>
<DefaultBillToLogic>0</DefaultBillToLogic>
<TurnKickOffAuto>false</TurnKickOffAuto>
<TurnKickOffLagDays>0</TurnKickOffLagDays>
<TurnKickOffOnDays>0</TurnKickOffOnDays>
<EarliestSlot>0</EarliestSlot>
<LatestSlot>0</LatestSlot>
<SlotsCount>0</SlotsCount>
<IsPrecalculatedSchedule>false</IsPrecalculatedSchedule>
<AllowTimePreference>false</AllowTimePreference>
<TurnTemplateId>0</TurnTemplateId>
<IsmSpecGroupId>0</IsmSpecGroupId>
</WorkZone>
<Dba>A NEW NAME 5</Dba>
<Instructions/>
<TenantCode>15475</TenantCode>
<TaxExempt>false</TaxExempt>
<Spaces/>
<Contacts/>
<CustomFields/>
<Notes/>
<Addresses/>
<GroupsBridge/>
<ApprovalScopes/>
</Customer>
<ContactName>Store Manager</ContactName>
<WonId>0</WonId>
<IsWarranty>true</IsWarranty>
<TimeZone>20</TimeZone>
<CurrencyTypeId>USD</CurrencyTypeId>
<LastActionDate>2020-12-07T17:35:33.45</LastActionDate>
<DtCreated>2020-12-07T17:35:33.45</DtCreated>
<DtScheduledStart xsi:nil="true"/>
<DtDue>2021-01-06T18:00:00</DtDue>
<DtAcknowledgeBy>2020-12-09T18:00:00</DtAcknowledgeBy>
<AcknowledgeByUtc>2020-12-10T00:00:00</AcknowledgeByUtc>
<LastActionDateUtc>2020-12-07T23:35:33.45</LastActionDateUtc>
<CreatedDateUtc>2020-12-07T23:35:33.45</CreatedDateUtc>
<ScheduledStartUtc xsi:nil="true"/>
<DueDateUtc>2021-01-07T00:00:00</DueDateUtc>
<DtOnSiteBy>2020-12-10T18:00:00</DtOnSiteBy>
<DtUtcOnSiteBy>2020-12-11T00:00:00</DtUtcOnSiteBy>
<LastAction>
<Id>1673</Id>
<PerformDeletion>false</PerformDeletion>
<WorkOrderId>0</WorkOrderId>
<BillStatus>NotBilled</BillStatus>
</LastAction>
<Items>
<WoItem>
<Id>1674</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>1</ConcurrencyId>
<WorkOrderId>1673</WorkOrderId>
<SortOrderIdx>1</SortOrderIdx>
<AssetLocation>Equipment</AssetLocation>
<Asset>
<Id>4182</Id>
<PerformDeletion>false</PerformDeletion>
<Name>Ice Machine</Name>
<ModelId>1282</ModelId>
<Orphan>false</Orphan>
<TypeId>Equipment</TypeId>
<ParentId>0</ParentId>
<RootId>0</RootId>
<IsTemplate>false</IsTemplate>
<Documents/>
<IsOffline>false</IsOffline>
<IsLocked>false</IsLocked>
<Attributes/>
</Asset>
<Task>
<Id>14819</Id>
<PerformDeletion>false</PerformDeletion>
<ConcurrencyId>0</ConcurrencyId>
<IsRemoved>false</IsRemoved>
<ModelId>0</ModelId>
<DisplayAs/>
<Preventive>false</Preventive>
<Routine>false</Routine>
<Corrective>false</Corrective>
<Default>false</Default>
<Symptom>false</Symptom>
<CompletionTime>0</CompletionTime>
<SelfHelpType xsi:nil="true"/>
<Instructions/>
<SelfHelpContent/>
<PeopleRequired>0</PeopleRequired>
<SkillLevel>0</SkillLevel>
<GlAccount/>
<Number/>
<Currencies/>
</Task>
<Comment>This is a WO description demo</Comment>
</WoItem>
</Items>
<EquipmentWorkedOn/>
<Notes/>
<Assignments/>
<Procedures/>
<Documents/>
<CustomFields/>
<Verifications/>
<CheckInOuts/>
<ActionLogRecords/>
<InductionAndSafetyStatusID>NotApplicable</InductionAndSafetyStatusID>
</RetrieveResult>
</RetrieveResponse>
</soap:Body>
</soap:Envelope>
9. LogOut Method
Request:
<--The endpoint transferred from GetCompanyWsdkUrl Method>
POST https://am-ce96b.corrigo.com/wsdk/CorrigoService.asmx HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8;action="http://corrigo.com/integration/LogOut"
Content-Length: 546
Host: am-ce96b.corrigo.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_181)
Cookie: ASP.NET_SessionId=yblxbbb3ctmj4swk5r0phddt
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:int="http://corrigo.com/integration/">
<soap:Header>
<int:CorrigoNetOptions>
<int:ImposeConcurrencyId>false</int:ImposeConcurrencyId>
<int:UpdateLastModified>false</int:UpdateLastModified>
<int:CanDeleteMissingEntity>false</int:CanDeleteMissingEntity>
<int:LockOnDataRetrieval>Default</int:LockOnDataRetrieval>
</int:CorrigoNetOptions>
</soap:Header>
<soap:Body>
<int:LogOut/>
</soap:Body>
</soap:Envelope>
Response:
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/soap+xml; charset=utf-8
Date: Tue, 14 Jul 2020 18:16:55 GMT
Content-Length: 333
Strict-Transport-Security: max-age=31536000; includeSubDomains
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<LogOutResponse xmlns="http://corrigo.com/integration/">
<LogOutResult/>
</LogOutResponse>
</soap:Body>
</soap:Envelope>
Updated almost 4 years ago