<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi! <br>
<br>
You need some little modification in the soap method<br>
you wrote this:<br>
$job = array('authentication' => array('type' => 'admin',
'username' => 'xxxxxxx', 'password' =>
'xxxxxx'),'parameters' => array('billing_profile' =>
'default', 'status' => 'active', 'external_id' =>
$trunkname));<br>
<br>
<b>and you need this: </b><br>
$job = array('authentication' => array('type' => 'admin',
'username' => 'xxxxxxx', 'password' => 'xxxxxx'),<br>
'parameters' => array(<br>
<b>'data' => array( </b><br>
'billing_profile' => 'default',<br>
'status' => 'active',<br>
'external_id' => $trunkname)));<br>
<br>
John<br>
<br>
2014.03.28. 14:55 keltezéssel, jchism2 írta:<br>
</div>
<blockquote
cite="mid:w60x25hwsrji6vph148ua7ts.1396014907478@email.android.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div><br>
</div>
<div>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. </div>
<div><br>
</div>
<div>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);</div>
<div><br>
</div>
<div>
<div style="font-size:75%;color:#575757">Sent via the Samsung
Galaxy Note® 3, an AT&T 4G LTE smartphone</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Spce-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a>
<a class="moz-txt-link-freetext" href="http://lists.sipwise.com/listinfo/spce-user">http://lists.sipwise.com/listinfo/spce-user</a>
</pre>
</blockquote>
<br>
</body>
</html>