Need help! I'm having a problem with putting sub-objects in a response from Maximo to SOAP.
for Example, I want my response to look like this:
<mainObject>
<--Imagine mainObject fields here-->
<subObject>
<--Imagine subObject fields here-->
</subObject>
</mainObject>
I can't seem to find any sample from the internet that I can use as a reference. Can anyone give me some clues/hints?
You can use the method createChildrenData() to create a new sub-object and then add the fields to that. For example:
irData.createChildrenData(subObject)
I had to decompile the StructureObject class to get that method. You'll need to create a new WSDL for this modified response, otherwise the end point won't recognize the new format.