Call Web Service not creating objects using Import Mapping yet response content has information in

0
Been trying to get a SOAP call working all day, set up the export mapping and the call and everything is good, my response contains a returned item but no matter what I try I cant get the Import Mapping to create objects. I have them being returned as a list and then I loop through but nothing is in the list. I have posted 3 screenshots of my import mapping, the elements from my import mapping and the import mapping part of my soap response. I do not believev anything with the call to be incorrect as my SOAP response is this: <m:ResponseMessages><m:FindItemResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode><m:RootFolder TotalItemsInView="1" IncludesLastItemInRange="true"><t:Items><t:CalendarItem><t:ItemId Id="AQAYAExEQVBTZXJ2aWNlQGF0dmRldi5sb2NhbABGAAADw+7FieW80kibcsdf47NQggcAkqgcMIOpSUW0yL+t7dlP4AAAAgENAAAAkqgcMIOpSUW0yL+t7dlP4AAAAhHDAAAA" ChangeKey="DwAAABYAAACSqBwwg6lJRbTIv63t2U/gAAAAAAbG"/><t:Subject>TEST MEETING</t:Subject><t:Start>2025-10-02T11:30:00Z</t:Start><t:End>2025-10-02T12:00:00Z</t:End><t:IsAllDayEvent>false</t:IsAllDayEvent><t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus><t:Location>Meeting Room</t:Location><t:Organizer><t:Mailbox><t:Name>Service</t:Name><t:EmailAddress>Service</t:EmailAddress><t:RoutingType>EX</t:RoutingType></t:Mailbox></t:Organizer></t:CalendarItem></t:Items></m:RootFolder></m:FindItemResponseMessage></m:ResponseMessages></m:FindItemResponse></s:Body></s:Envelope>   I'm really at a loss here, is there anything further I can do for debugging? Has anyone experienced issues like this before? any help is appreciated    
asked
3 answers
0

Hi Ryan,

 

I can't spot anything wrong at first glance, other than that the example soap message you provide is missing this:

<s:Envelope>

    <s:Body>

        <m:FindItemResponse>

in the start. But i am guessing that was just a copy/paste mistake.

 

The console logs don't show anything interesting? Did you set the loglevel for log node WebServices to TRACE yet? If not, that may provide some extra insight.

 

I hope this helps.

Michiel

answered
0

Update after some more debugging, I have found exactly where it fails, using the import mapping below I can retrieve the RootFolder and I have the value for TotalItemsInView however if I try go any further like retrieving Items it fails and just returns empty objects

 

Here is my import mapping:

image.png

image.png

 

Here is my microflow:

image.png

 

Log Message:

image.png

 

Which produces:

Root Folder: EXISTS

Total In View: 2

Array of Real Items: EMPTY

 

 

And my SOAP response:

<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="15" MinorVersion="2" MajorBuildNumber="2562" MinorBuildNumber="17" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><m:FindItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:FindItemResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode><m:RootFolder TotalItemsInView="2" IncludesLastItemInRange="true"><t:Items><t:CalendarItem><t:ItemId Id="AQAYAExEQVBTZXJ2aWNlQGF0dmRldi5sb2NhbABGAAADw+7FieW80kibcsdf47NQggcAkqgcMIOpSUW0yL+t7dlP4AAAAgENAAAAkqgcMIOpSUW0yL+t7dlP4AAAAhHDAAAA" ChangeKey="DwAAABYAAACSqBwwg6lJRbTIv63t2U/gAAAAAA40"/><t:Subject>TEST MEETING v2</t:Subject><t:Start>2025-10-02T11:30:00Z</t:Start><t:End>2025-10-02T12:00:00Z</t:End><t:IsAllDayEvent>false</t:IsAllDayEvent><t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus><t:Location>D154A Meeting Room</t:Location><t:Organizer><t:Mailbox><t:Name>LDAPService</t:Name><t:EmailAddress>emailaddress</t:EmailAddress><t:RoutingType>EX</t:RoutingType></t:Mailbox></t:Organizer></t:CalendarItem><t:CalendarItem><t:ItemId Id="AQAYAExEQVBTZXJ2aWNlQGF0dmRldi5sb2NhbABGAAADw+7FieW80kibcsdf47NQggcAkqgcMIOpSUW0yL+t7dlP4AAAAgENAAAAkqgcMIOpSUW0yL+t7dlP4AAAAhHEAAAA" ChangeKey="DwAAABYAAACSqBwwg6lJRbTIv63t2U/gAAAAAA44"/><t:Subject>Test meeting v2.1</t:Subject><t:Start>2025-10-02T15:00:00Z</t:Start><t:End>2025-10-02T15:30:00Z</t:End><t:IsAllDayEvent>false</t:IsAllDayEvent><t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus><t:Location/><t:Organizer><t:Mailbox><t:Name>LDAPService</t:Name><t:EmailAddress>emailaddress</t:EmailAddress><t:RoutingType>EX</t:RoutingType></t:Mailbox></t:Organizer></t:CalendarItem></t:Items></m:RootFolder></m:FindItemResponseMessage></m:ResponseMessages></m:FindItemResponse></s:Body></s:Envelope>

answered
0

You are aware that there will be only one "Items"-object per RootFolder and multiple CalendarItems objects? Can you uncheck "Items", check "CalendarItems" and have a one-to-many association in your domain model between CalendarItems and RootFolder?

 

This may also be of interest: https://docs.mendix.com/releasenotes/studio-pro/10.18/#10183 It mentions support for arrays with name other than "item".

answered