2 Replies Latest reply on Oct 22, 2014 12:04 PM by Frederic DHUEZ

    Update TMART monitors with WebService updateMonitorSettings

    Frederic DHUEZ

      Hi everybody !

       

      I'm developing an application for my customer using Remedy, Atrium and TMART WebServices but I'm facing a problem using one of the webservice <updateMonitorSettings>:

       

      <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:impl="http://impl.webservice.vision.segue.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

         <soapenv:Header/>

         <soapenv:Body>

            <impl:updateMonitorSettings soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

               <sessionId xsi:type="xsd:long">8744390588349601173</sessionId>

               <monitorId xsi:type="xsd:int">23</monitorId>

               <monitorSettings xsi:type="vis:ArrayOfMonitorSettings" soapenc:arrayType="vis:MonitorSetting[]" xmlns:vis="http://vision.segue.com"/>

            </impl:updateMonitorSettings>

         </soapenv:Body>

      </soapenv:Envelope>

       

      In fact I don't know how to update the monitorSettings and the correct syntax to use.

       

      There is no problem to retrieve the monitorSettings:

       

      <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>

            <ns1:getMonitorSettingsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://impl.webservice.vision.segue.com">

               <getMonitorSettingsReturn soapenc:arrayType="ns2:MonitorSetting[25]" xsi:type="soapenc:Array" xmlns:ns2="http://vision.segue.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

                  <getMonitorSettingsReturn href="#id0"/>

                  <getMonitorSettingsReturn href="#id1"/>

           ....

               </getMonitorSettingsReturn>

            </ns1:getMonitorSettingsResponse>

            <multiRef id="id12" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:MonitorSetting" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="http://vision.segue.com">

               <name xsi:type="xsd:string">Attribute/PrimaryFileLocation</name>

               <value xsi:type="xsd:string">\\S-net1lu-art1t\tmart\TMART_DATA\</value>

            </multiRef>

            <multiRef id="id21" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:MonitorSetting" xmlns:ns4="http://vision.segue.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

               <name xsi:type="xsd:string">Attribute/SimplePassword</name>

               <value xsi:type="xsd:string"/>

            </multiRef>i:type="xsd:string">HTTPCHECKER_AUTO</value>

            </multiRef>...

         </soapenv:Body>

      </soapenv:Envelope>

       

       

      ...but if somebody could help me to update them with a concrete example ?

       

      Fred