[Spce-user] SOAP Requests Failed to access Class

Andrew Pogrebennyk apogrebennyk at sipwise.com
Tue Oct 2 05:10:26 EDT 2012


Hi Matt,
at a glance, the parameters for your call have to be enclosed in <data>
tags. Not sure how to do it with javascript, but with php people use
something like
'parameters' => array('data' => $parameters)

HTH.
Andrew

On 10/02/2012 12:55 AM, Matt Van Veenendaal wrote:
> Here's the generated soap request too:
> 
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>  xmlns:tns="http://dev.sipwise.com/2009/wsdl/provisioning.wsdl"
> xmlns:typens="http://dev.sipwise.com/2009/schema/provisioning_types.xsd"><soap:Header></soap:Header><soap:Body><tns:get_voip_account_by_id><authentication><username>xxx</username><password>xxx</password><type>admin</type></authentication><parameters><id>3</id></parameters></tns:get_voip_account_by_id></soap:Body></soap:Envelope>
> 
> -- 
> Matt Van Veenendaal
> 
> On Monday, October 1, 2012 at 3:45 PM, Matt Van Veenendaal wrote:
> 
>> Hey Guys,
>>
>> First time posting to the list, searched back a few months and
>> couldn't find anything similar.
>> I have a base install of CE and I'm trying to test out the SOAP API.
>> I'm trying a request to the SOAP API using node.js:
>>
>> var args = {authentication: {username: "xxx", password: "xxx", type:
>> "admin"}, parameters: {id: "3"}}
>> client.get_voip_account_by_id(args, function(err, result) {
>> if (err) {
>> console.log(err.stack);
>> res.send("Error: " + err.stack);
>> return;
>> }
>>  res.send(result);
>> });
>>
>> This is returning me with the current error on the server side:  
>>
>> Error: soap:Client: Failed to access class
>> (2009::wsdl::provisioning.wsdl) at /usr/share/perl5/SOAP/Lite.pm line
>> 2687. at WSDL.xmlToObject 
>>
>> Has anyone seen this before? Obviously i'm just getting started with
>> this API but i'd love to have someone help me with this :)
>>
>> Thanks,
>> -- 
>> Matt Van Veenendaal
>>
> 
> 
> 
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
> 





More information about the Spce-user mailing list