Hello
We need to modify the message generated by adding the username and password to the message parameters.
Previously we have a scenario where the username and password was included in the header of the message but this new scenario is different.
New scenario with the username and password as parameters in the message (We don't know how to do it)
POST http://----------------ctricalAccountSync HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
username: -------- ( how can we include these parameters in this part of the message?)
password: -------- ( how can we include these parameters in this part of the message?)
Content-Length: 554
Host: ---------
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:elec="http://-----------/">
<soapenv:Body>
<elec:syncElectricalAccount>
<block></block>
<road></road>
<building></building>
</elec:syncElectricalAccount>
</soapenv:Body>
</soapenv:Envelope>
In previous scenario the username and password were included in the header. Header was modified with ws_header->set_request_header
POST http://----------------ctricalAccountSync HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
Content-Length: 554
Host: ---------
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:elec="http://-----------/">
<soapenv:Header>
<username>-----</username>
<password>-----</password>
<soapenv:Header/>
<soapenv:Body>
<elec:syncElectricalAccount>
<electricalAccountNumber></electricalAccountNumber>
<block></block>
<road></road>
<building></building>
</elec:syncElectricalAccount>
</soapenv:Body>
</soapenv:Envelope>
Thanks