6 Replies Latest reply on Aug 6, 2020 10:07 AM by Alejandro Vidaurri de la Cruz

    Modifying Remedy Web Service Response

    Rohit Varshney
      Share This:

      Hi All,

       

      I have an issue while integrating with a third party using SOAP Web Service. The issue is they want a synchronous response in very specific format.

       

      They want the response in below format(all xml tags and name to be same):

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                  <soapenv:Body>

                             <OpModifyResponse xmlns="urn:CTTModify">

                                         <TecnicalReceipt>

                                                     <Message>OK</Message>

                                                     <ErrorCode>0000</ErrorCode>

                                                     <ErrorDescription>OK</ErrorDescription>

                                         </TecnicalReceipt>

                             </OpModifyResponse>

                  </soapenv:Body>

      </soapenv:Envelope>

       

      And what remedy web service is generating is the below format (extra ns0: in tags) which they are not able to consume:

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                  <soapenv:Body>

                             <ns0:OpModifyResponse xmlns:ns0="urn:UTS_ESS_OpModify">

                                         <ns0:TecnicalReceipt>

                                                     <ns0:Message>OK</ns0:Message>

                                                     <ns0:ErrorCode>0000</ns0:ErrorCode>

                                                     <ns0:ErrorDescription>OK</ns0:ErrorDescription>

                                         </ns0:TecnicalReceipt>

                             </ns0:OpModifyResponse>

                  </soapenv:Body>

      </soapenv:Envelope>

       

      Also when we tried using BMC AO, BAO is generating below response (extra Tags before the 'TecnicalReceipt' tag):

      <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">

         <S:Body>

            <ns1:executeProcessResponse xmlns:ns1="http://bmc.com/ao/xsd/2008/09/soa">

               <ns1:Output>

      <ns1:Output>

      <ns1:Parameter>

      <ns1:Name>soapResponse</ns1:Name>

      <ns1:Value ns1:type="xs:anyType">

      <ns1:XmlDoc>

      <TecnicalReceipt>

      <Message>OK</Message>

      <ErrorCode>0000</ErrorCode>

      <ErrorDescription>OK</ErrorDescription>

      </TecnicalReceipt>

      </ns1:XmlDoc>

      </ns1:Value>

      </ns1:Parameter>

      </ns1:Output>

               </ns1:Output>

            </ns1:executeProcessResponse>

         </S:Body>

      </S:Envelope>

       

       

      Is there any way (some script or something else) by which we can get the required response?

       

      We are in Remedy 9.1.03 version and BAO version is 7.9

       

      Thanks in Advance.

       

      Regards,

      Rohit