[Spce-user] How to verify if API is really working?

Andreas Granig agranig at sipwise.com
Fri Apr 29 13:05:20 EDT 2011


Hi Jose,

On 04/29/2011 01:13 PM, Jose Gonzalez wrote:
> First of all, this looks like a great product. Looks very clean.

Thanks!

> We are trying to use the Ossbss API from dotnet and haven't had much
> success, we've tried both Soap and xmlrpc. Is there any sample client
> code in any language we can use to verify if the API is actually
> functioning? We are trying to access from remote server. The error we
> get is 400 bad request.

Have you checked http://www.sipwise.com/doc/spce/ar01s07.html and
followed it to set up the interface? Does
https://<your-ip>:2443/SOAP/Provisioning.wsdl work?

Accessing it in perl using SOAP::Lite looks like this:

    my $return = SOAP::Lite
      -> uri('/SOAP/Provisioning')
      -> proxy('https://localhost:2443/SOAP')
      -> $function (
            SOAP::Data->name(authentication => {
                                                type     => "user",
                                                username => $your_user,
                                                password => $your_pass,
                                               }
                            ),
            SOAP::Data->name(parameters => $your_soap_params
                            ));

    if(ref $return eq 'SOAP::SOM' and $return->fault) {
        die "\nSOAP fault!\ncode: ", $return->faultcode,
            "\nstring: ", $return->faultstring,
            "\nactor: ", $return->faultactor,
            "\ndetail: ", Dumper($return->faultdetail),
            "\n";
    } else {
        print "\nGot result from server: ", Dumper $return->result;
    }

> 
> Thanks!
> 
> Jose Gonzalez
> 
> 
> 
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20110429/cf024cbb/attachment-0001.asc>


More information about the Spce-user mailing list