<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You’re missing the child array ‘data’:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>'parameters' => array('data' => array('billing_profile' => 'default’ <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> spce-user-bounces@lists.sipwise.com [mailto:spce-user-bounces@lists.sipwise.com] <b>On Behalf Of </b>jchism2<br><b>Sent:</b> 28 March 2014 13:55<br><b>To:</b> spce-user@lists.sipwise.com<br><b>Subject:</b> [Spce-user] Soap create voip account<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Here is the code we are using. It is replying with a missing billing profile error. Can you see anything in this code that would cause the problem. We are using the default profile for billing. <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>require_once($_SERVER['DOCUMENT_ROOT'].'/sites/all/data/nusoap/lib/nusoap.php');    //   I had to get the SOAP library in place on  SERVER A for NUSOAP //--not the yum install php-soap <br><br><br><br>// Create the client instance<br>$client = new nusoap_client($_SERVER['DOCUMENT_ROOT'].'/sites/all/data/Provisioning.wsdl', true);<br>//$client->soap_defencoding = 'UTF-8'; // We had noticed the client defaults to something else. Doesn't seem to effect either way?<br><br>$client->setCredentials("xxxx","xxxxxxx","basic");  // The Login and Pass for the SOAP connection - Username and pass on PORT 2443<br><br><br><br>// Call the SOAP method<br>$job = array('authentication' => array('type' => 'admin', 'username' => 'xxxxxxx', 'password' => 'xxxxxx'),'parameters' => array('billing_profile' => 'default', 'status' => 'active', 'external_id' => $trunkname));<br><br>$result = $client->call('create_voip_account',$job);  // This is just a test pull of information for proof of concept, nothing really for production use.<br><br><br><br>//print_r($job);<br><br><br>// Check for a fault<br>if ($client->fault) {<br>    echo '<h2>Fault</h2><pre>';<br>    print_r($result);<br>    echo '</pre>';<br>}<br><br><br>else<br>{<br>  // Check for errors<br>  $err = $client->getError();<br>  if ($err)<br>  {<br>    // Display the error<br>    echo '<h2>Error</h2><pre>' . $err . '</pre>';<br>  }<br>  else<br>  {<br>  // Display the result<br>  echo '<h2>Result</h2><pre>';<br>  print_r($result);<br>  echo '</pre>';<br>  }<br>}<br><br>exit(0);<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal><span style='font-size:9.0pt;color:#575757'>Sent via the Samsung Galaxy Note® 3, an AT&T 4G LTE smartphone<o:p></o:p></span></p></div></div><div class=MsoNormal align=center style='text-align:center'><hr size=1 width="100%" noshade style='color:gray' align=center></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>No virus found in this message.<br>Checked by AVG - <a href="http://www.avg.com">www.avg.com</a><br>Version: 2014.0.4354 / Virus Database: 3722/7244 - Release Date: 03/25/14<o:p></o:p></p></div></div></body></html>