Hi All
I am using a Json REST interface in Postman to query a PM record in Maximo and return any PM attribute as response.
For that, I created an Enterprise Service as Query and, as well is Json Rest, I am using Json Mapping to convert a Json request to XML as response, but I am getting this error message:
Error 400: BMXAA6053E - Invalid object structure query element encountered. Expected MXPMQuery got MXPMSet instead
at psdi.iface.query.MOSQbeXMLProcessor.getMboSet(MOSQbeXMLProcessor.java:123) ~[businessobjects.jar:?]
at psdi.iface.query.MOSQbeXMLProcessor.getMboSet(MOSQbeXMLProcessor.java:98) ~[businessobjects.jar:?]
at psdi.iface.mic.EntMicService.buildQueryXML(EntMicService.java:379) ~[businessobjects.jar:?]
at psdi.iface.mic.EntMicService.query(EntMicService.java:216) ~[businessobjects.jar:?]
at com.ibm.tivoli.maximo.intservice.EnterpriseService.secureProcessExternalDataSyncInternal(EnterpriseService.java:176) ~[businessobjects.jar:?]
at com.ibm.tivoli.maximo.intservice.EnterpriseService.maxAPIKeySecureProcessExternalDataSync(EnterpriseService.java:122) ~[businessobjects.jar:?]
at psdi.iface.util.WebUtil.invokeEnterpriseEJB(WebUtil.java:247) ~[meaweb.war:?]
How do I force my request in Postman or Maximo understand I am using a Query instead a Sync?
There is not any automation script for this Enterprise Service.
PS: I am using Query because it gives all the PM attributes as response, but if you have another idea how to bring other attributes beyond PMNUM, PMUID and SITED (SYNC standard response), it will be much appreciated.
------------------------------
Kindly Regards
Marcello Pereira
------------------------------