[Spce-user] SOAP roblem

Juan José Ivars juanjo at beeztel.com
Thu May 24 06:36:09 EDT 2012


Hello

I am trying to acces sipwise through SOAP without success, these are the
steps that i have followed:
htpasswd -nbs aaaaa bbbbb

vi /etc/ngcp-config/config.yml
ossbss:
  htpasswd:
    - user: aaaaa
      pass: '{SHA}bbbbb'


ngcpcfg apply


vi soap.xml
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/
"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <get_voip_account_subscriber xmlns="/SOAP/Provisioning">
         <authentication>
            <type xsi:type="xsd:string">admin</type>
            <username xsi:type="xsd:string">aaaaa</username>
            <password xsi:type="xsd:string">bbbbb</password>
         </authentication>
         <parameters>
            <id xsi:type="xsd:int">ccccc</id>
            <username xsi:type="xsd:string">ddddd</username>
            <domain xsi:type="xsd:string">eeeee.com</domain>
         </parameters>
      </get_voip_account_subscriber>
   </soap:Body>
</soap:Envelope>

Then i try in the linux shell:
curl -s -k -H "Content-Type: text/xml; charset=utf-8" -H "SOAPAction:
https://XXX.XXX.XXX.XXX:2443/SOAP/Provisioning#get_voip_account_subscriber"
-d @soap.xml https://XXX.XXX.XXX.XXX:2443/SOAP


But i get:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.2.16 (Debian) Server at XXX.XXX.XXX.XXX Port
2443</address>
</body></html>


Can any body point me in the right direction?


Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20120524/be30b033/attachment.html>


More information about the Spce-user mailing list