Hello, i continue with my SOAP experiments, but i have problems creating a VoIP account, my xml is:<div><div><?xml version="1.0" encoding="UTF-8"?></div><div><soap:Envelope xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"</div>
<div>               xmlns:soapenc="<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>"</div><div>               xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"</div>
<div>               soap:encodingStyle="<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>"</div><div>               xmlns:soap="<a href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>"></div>
<div>   <soap:Body></div><div>      <create_voip_account xmlns="/SOAP/Provisioning"></div><div>         <authentication></div><div>            <type xsi:type="xsd:string">admin</type></div>
<div>            <username xsi:type="xsd:string">administrator</username></div><div>            <password xsi:type="xsd:string">XXXXXXXXXXX</password></div><div>         </authentication></div>
<div>         <parameters></div><div>            <billing_profile xsi:type="xsd:string">default</billing_profile></div><div>            <status xsi:type="xsd:string">active</status></div>
<div>            <external_id xsi:type="xsd:string">666666666</external_id></div><div>            <username xsi:type="xsd:string">666666666</username></div><div>            <domain xsi:type="xsd:string">XXXXXXXXXXX</domain></div>
<div>            <password xsi:type="xsd:string">666666666</password></div><div>            <cc xsi:type="xsd:string">true</cc></div><div>            <ac xsi:type="xsd:string">true</ac></div>
<div>            <sn xsi:type="xsd:string">true</sn></div><div>            <admin xsi:type="xsd:boolean">false</admin></div><div>            <webusername xsi:type="xsd:string">666666666</webusername></div>
<div>            <webpassword xsi:type="xsd:string">666666666</webpassword></div><div>            <external_id xsi:type="xsd:string">666666666</external_id></div><div>         </parameters></div>
<div>      </create_voip_account></div><div>   </soap:Body></div><div></soap:Envelope></div></div><div><br></div><div>I try to create the account with:</div><div>curl -s -k --user XXX:XXXXXXX -H "Content-Type: text/xml; charset=utf-8" -H "SOAPAction: <a href="https://XXX.XXX.XXX.XXX:2443/SOAP/Provisioning#create_voip_account">https://XXX.XXX.XXX.XXX:2443/SOAP/Provisioning#create_voip_account</a>" -d @soap.xml <a href="https://XXX.XXX.XXX.XXX:2443/SOAP">https://XXX.XXX.XXX.XXX:2443/SOAP</a></div>
<div><br></div><div>I get:</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xmlns:soapenc="<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>" xmlns:typens="<a href="http://dev.sipwise.com/2009/schema/provisioning_types.xsd">http://dev.sipwise.com/2009/schema/provisioning_types.xsd</a>" xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" soap:encodingStyle="<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>" xmlns:soap="<a href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>"><soap:Body><soap:Fault><faultcode>soap:Client.Syntax.MissingParam</faultcode><faultstring>need a billing profile for the new account</faultstring></soap:Fault></soap:Body></soap</div>
<div><br></div><div>I dont understand why is complaining about the billing profile, i have confirmmed through the web interface that the profile exists.</div><div><br></div><div><br></div><div><br></div><div>Best regards.</div>
<div><br></div><div><br></div><div><br><br><div class="gmail_quote">2012/5/24 Juan José Ivars <span dir="ltr"><<a href="mailto:juanjo@beeztel.com" target="_blank">juanjo@beeztel.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you very much Andrew, i have solved the problem with the last e-mail, i was authenticating myself using only the <span style="font-family:arial,sans-serif;font-size:14px;border-collapse:collapse;color:rgb(34,34,34)">config.yml credentials, now i use the </span><span style="font-family:arial,sans-serif;font-size:14px;border-collapse:collapse;color:rgb(34,34,34)">config.yml and </span><span style="font-family:arial,sans-serif;font-size:14px;border-collapse:collapse;color:rgb(34,34,34)">sip:provider CE credentials and all works perfectly.</span><div>

<font color="#222222" face="arial, sans-serif" size="4"><span style="border-collapse:collapse;font-size:14px"><br></span></font></div><div><font color="#222222" face="arial, sans-serif" size="4"><span style="border-collapse:collapse;font-size:14px"><br>

</span></font></div><div><font color="#222222" face="arial, sans-serif" size="4"><span style="border-collapse:collapse;font-size:14px">Best regards.<br></span></font><div><div class="h5"><br><div class="gmail_quote">
2012/5/24 Andrew Pogrebennyk <span dir="ltr"><<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On 05/24/2012 12:50 PM, Juan José Ivars wrote:<br>
> Yes i know, i have pasted {SHA}bbbbb intead of my real hash password.<br>
><br>
> hank you for the notice.<br>
<br>
</div>Hm, that should work. Look how to do HTTP basic authentication in curl.<br>
The authentication for SOAP is a two-stage process: first HTTP basic<br>
authentication with login and pw specific in config.yml, then<br>
authentication with administrator credentials of your sip:provider CE<br>
placed into parameters of SOAP request.<br>
<br>
HTH.<br>
<span><font color="#888888">Andrew<br>
<br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br></div>