I'm writing a protocol using HTTP Sessions, if I send the session with the url hard coded it works fine, but with it linked to a pid it doesn't; the header that I'm also sending that's liked to a pid doesn't get sent.
This works
<Request verb="PATCH" url="/v1/ingests/">-
<Headers>
<Header key="api_key" pid="3" />
</Headers>
<Data pid="16" />
But this doesn't
<Request verb="PATCH" pid="15">
<Headers>
<Header key="api_key" pid="3" />
</Headers>
<Data pid="16" />
I get an api key missing back.
PID 15 is: -
<Param id="15" trending="false">
<Name>UrlStartStopEvent</Name>
<Description>UrlStartStopEvent</Description>
<Type>read</Type>
<Interprete>
<RawType>other</RawType>
<LengthType>next param</LengthType>
<Type>string</Type>
</Interprete>
<Display>
<RTDisplay onAppLevel="true">true</RTDisplay>
<Positions>
<Position>
<Page>General</Page>
<Column>1</Column>
<Row>0</Row>
</Position>
</Positions>
</Display>
</Param>
Hi Jeeva,
I’ve updated the question, as adding it to a comment strips out the tags
Just to add the full answer:
The used url of an HTTP Session will be composed by the polling IP of the element and the value defined in either the url attribute of the Session Request or the value used in the param with the Id set in the pid attribute of the Session Request.
These 2 values are combined via a /, so no need to add it yourself.
Example:
<Session name="connect" id="1">
<Connection id="1">
<Request verb="POST" url="API/v0/Soap.asmx/Connect">
Will result in: [element polling ip]/API/v0/Soap.asmx/Connect
<Session name="getElements" id="2">
<Connection id="1">
<Request verb="POST" pid="100">
Will result in: [element polling ip]/[value of param id 100]
Thanks, I had identified that yesterday, and updated the protocol accordingly, so is now working correctly.
Hi Philip, can you also please include the XML for the PID 15?