05-22-2013 01:13 AM - edited 03-21-2019 10:03 AM
Hi
I wonder if anybody had managed to configure SPA112 (HardwareVersion 1.0.0, SoftwareVersion 1.3.1) with TR-069. I experienced with Perl ACS server implementing CWMP protocol ( https://github.com/dpavlin/perl-cwmp.git ) and when I am trying for example this:
HTTP/1.1 200 OK.
Content-Type: text/xml; charset="utf-8".
Content-Length: 779.
Set-Cookie: ID=1; path=/.
Server: Perl-CWMP/0.21.
SOAPServer: Perl-CWMP/0.21.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
<soap:Header>
<cwmp:ID soap:mustUnderstand="1">1</cwmp:ID>
<cwmp:NoMoreRequests>0</cwmp:NoMoreRequests>
</soap:Header>
<soap:Body>
<cwmp:SetParameterValues>
<ParameterList SOAP-ENC:arrayType="cwmp:ParameterValueStruct[1]">
<ParameterValueStruct>
<Name>Device.Services.VoiceService.1.VoiceProfile.1.SIP.ProxyServer</Name>
<Value xsi:type="xsd:string">1.2.3.4</Value>
</ParameterValueStruct>
</ParameterList>
<ParameterKey></ParameterKey>
</cwmp:SetParameterValues>
</soap:Body>
</soap:Envelope>
I get from SPA112:
POST / HTTP/1.1.
Host: 2.2.2.2:3333.
User-Agent: gSOAP/2.6.
Content-Type: text/xml; charset=utf-8.
Content-Length: 916.
Connection: keep-alive.
Cookie: ID=1.
SOAPAction: .
.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">1</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>CWMP fault</faultstring><detail><cwmp:Fault><FaultCode>9003</FaultCode><FaultString>Invalid arguments</FaultString><SetParameterValuesFault><ParameterName>Device.Services.VoiceService.1.VoiceProfile.1.SIP.ProxyServer</ParameterName><FaultCode>9006</FaultCode><FaultString>Invalid parameter type</FaultString></SetParameterValuesFault></cwmp:Fault></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
What conditions are necessary to perform in "SetParameterValues" to successfully manage device?
06-08-2013 02:23 AM
OK, I learned a little more about SOAP, CWMP. This is the valid request:
xmlns:cwmp="urn:dslforum-org:cwmp-1-0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
Use SOAP::Lite
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide