[Spce-user] API problem - 'get_voip_account_by_external_id'

Gavin Sweet gavin.sweet at skyracktelecom.com
Thu Dec 12 04:31:32 EST 2013


Hi - 
Gentle nudge just to see if anyone else is having similar issues with api on
v3.1. ?
Do those errors mean anything to anyone?
I still cant get consistent behaviour from the wsdl, in the browser, when
trying to request WITH document (NOT using ?plain)

Thanks,
Gavin

-----
Since going to 3.1 has anybody else had any experience with the api or wsdl
behaving slightly unpredictably?

We *seem* to have fixed api interface responses (back to either of the java
or nusoap php clients that we use) by doing the following two things :
1. We added an extra stylesheet (copy of the wsdl-viewer.xls) called
Provisioning.xsl into /usr/share/perl5/Sipwise/Provisioning/backends/SOAP/
because oss.log was reporting this as not existing 
 this may be a build
bug?
2. We amended config.yml in the ossbss/apache section to specify properly
the name of the domain/virtual host that we are using (instead of the
default “myserver”). This is also the CN for the SSL cert (we’re not using
the self-signed for external API access).

However, the one thing that seems to still be erratic is the display in the
browser of the WSDL. 
https://<domain>:2443/SOAP/Provisioning.wsdl sometimes delivers the page
with documentation formatted, sometimes it just delivers the xml. 
When formatted, you can see in the source for the page that the stylesheet
has been found and applied, but not when missing the documentation.

In the oss.log the only consistent error (typically 5 seconds after a
request to the WSDL) is:
(70007)The timeout specified has expired: SSL input filter read failed.

In the apache error log we are getting many many of these errors:
found unrecognised attribute {http://schemas.xmlsoap.org/wsdl/}arrayType
(ignored) at /usr/share/perl5/SOAP/WSDL/Base.pm line 130.

Thanks in advance,
Gavin


From: spce-user-bounces at lists.sipwise.com
[mailto:spce-user-bounces at lists.sipwise.com] On Behalf Of John Murray
Sent: 05 December 2013 22:13
To: spce-user at lists.sipwise.com
Subject: [Spce-user] API problem - 'get_voip_account_by_external_id'

Hello,

On version 3.1 when calling the api function get_voip_account_by_external_id
the logs suggest that the call has worked and the correct id=20 is listed
but the return SOAP reply seems to fail.

Thanks for you help.

Regards

John

Dec  5 21:44:25 host03 apache2: [info] [client 1.1.1.1] Connection to child
1 established (server myserver:443)
Dec  5 21:44:25 host03 apache2: [info] Seeding PRNG with 656 bytes of
entropy
Dec  5 21:44:25 host03 apache2: [info] Initial (No.1) HTTPS request received
for child 1 (server myserver:443)
Dec  5 21:44:25 host03 provisioning: Sipwise::Provisioning::_log_xmldata:
get_voip_account_by_external_id called with: {'authentication' =>
{'password' => '********','type' => 'admin','username' =>
'admin-api'},'parameters' => {'external_id' => 'Big_Reseller==Cust55'}}
Dec  5 21:44:25 host03 provisioning: Sipwise::Provisioning::handle_request:
calling function 'get_voip_account_by_external_id' for admin 'admin-api'
Dec  5 21:44:25 host03 provisioning: Sipwise::Provisioning::_log_xmldata:
get_voip_account_by_external_id returned with: {'activate_timestamp' =>
'2013-12-05 21:42:33','billing_profile' =>
'SKT_WHOLESALE_STD','create_timestamp' => '2013-12-05
21:42:33','external_id' => 'Big_Reseller==Cust55','id' =>
20,'modify_timestamp' => '2013-12-05 21:42:33','product' =>
'SIP_ACCOUNT','status' => 'active','subscribers' => [],'terminate_timestamp'
=> undef}
Dec  5 21:44:25 host03 apache2: [info] [client 127.0.0.1] Connection to
child 0 established (server myserver:443)
Dec  5 21:44:25 host03 apache2: [info] Seeding PRNG with 656 bytes of
entropy
Dec  5 21:44:25 host03 apache2: [info] [client 127.0.0.1] SSL library error
1 in handshake (server myserver:443)
Dec  5 21:44:25 host03 apache2: [info] SSL Library Error: 336151574
error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown
Dec  5 21:44:25 host03 apache2: [info] [client 127.0.0.1] Connection closed
to child 0 with abortive shutdown (server myserver:443)
Dec  5 21:44:25 host03 oss: 1.1.1.1 - ngcpsoap [05/Dec/2013:21:44:25 +0000]
"POST /SOAP/Provisioning HTTP/1.1" 200 4207 "-" "Jakarta
Commons-HttpClient/3.1"
Dec  5 21:44:25 host03 apache2: [info] [client 1.1.1.1] (70014)End of file
found: SSL input filter read failed.
Dec  5 21:44:25 host03 apache2: [info] [client 1.1.1.1] Connection closed to
child 1 with standard shutdown (server myserver:443)

________________________________________
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4259 / Virus Database: 3658/6893 - Release Date: 12/05/13
________________________________________
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4259 / Virus Database: 3658/6893 - Release Date: 12/05/13





More information about the Spce-user mailing list