Hi everyone,
I’m currently working with DataMiner Web Services v1 (SOAP) and using the SetParameter method to update a parameter on a remote element.
Here’s the session definition I’m using in my protocol:
<Session id="111" name="setParameter">
<Connection id="1" name="Set Parameter">
<Request verb="POST" url="/API/v1/soap.asmx">
<Headers>
<Header key="Host" pid="50" />
<Header key="Content-Type">text/xml; charset=utf-8</Header>
</Headers>
<Data pid="10412" />
</Request>
<Response statusCode="10432">
<Content pid="10452"></Content>
</Response>
</Connection>
</Session>
The SOAP request executes without errors, and I receive a status code in response (HTTP/1.1 200 OK).
However, I’d like to confirm whether this status alone guarantees that the parameter value has actually been updated on the target element or if it’s considered best practice or required to perform a GetParameter call after, to verify that the value was successfully changed.
Thanks in advance for any clarification!
Hi Tajana,
If I am not mistaken, an HTTP 200 (OK) response only indicates that the DMA successfully received and processed the SOAP request at transport level. It doesn't necessarily confirm that the parameter was actually updated on the target element.
To confirm that the value was applied correctly, it is a good idea to perform the GetParameter call afterward to verify the updated value. This also allows you to implement a retry or timeout mechanism in case the update didn't through as expected.
Hope it helps.