<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=us-ascii"><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:11.0pt;
        font-family:"Calibri","sans-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";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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;}
/* List Definitions */
@list l0
        {mso-list-id:1307055299;
        mso-list-type:hybrid;
        mso-list-template-ids:817690836 134807567 134807577 134807579 134807567 134807577 134807579 134807567 134807577 134807579;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></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='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Since going to 3.1 has anybody else had any experience with the api or wsdl behaving slightly unpredictably?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>We *<b>seem</b>* 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 :<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='color:#1F497D'><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>       </span></span></span><![endif]><span style='color:#1F497D'>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?<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='color:#1F497D'><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>       </span></span></span><![endif]><span style='color:#1F497D'>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).<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>However, the one thing that seems to still be erratic is the display in the browser of the WSDL. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><a href="https://%3cdomain%3e:2443/SOAP/Provisioning.wsdl"><span style='color:#1F497D;text-decoration:none'>https://<domain>:2443/SOAP/Provisioning.wsdl</span></a> sometimes delivers the page with documentation formatted, sometimes it just delivers the xml. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>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.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>In the oss.log the only consistent error (typically 5 seconds after a request to the WSDL) is:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>(70007)The timeout specified has expired: SSL input filter read failed.<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>In the apache error log we are getting many many of these errors:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>found unrecognised attribute {http://schemas.xmlsoap.org/wsdl/}arrayType (ignored) at /usr/share/perl5/SOAP/WSDL/Base.pm line 130.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks in advance,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Gavin<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='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>John Murray<br><b>Sent:</b> 05 December 2013 22:13<br><b>To:</b> spce-user@lists.sipwise.com<br><b>Subject:</b> [Spce-user] API problem - 'get_voip_account_by_external_id'<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks for you help.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Regards<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Dec  5 21:44:25 host03 apache2: [info] [client 1.1.1.1] Connection to child 1 established (server myserver:443)<o:p></o:p></p><p class=MsoNormal>Dec  5 21:44:25 host03 apache2: [info] Seeding PRNG with 656 bytes of entropy<o:p></o:p></p><p class=MsoNormal>Dec  5 21:44:25 host03 apache2: [info] Initial (No.1) HTTPS request received for child 1 (server myserver:443)<o:p></o:p></p><p class=MsoNormal>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'}}<o:p></o:p></p><p class=MsoNormal>Dec  5 21:44:25 host03 provisioning: Sipwise::Provisioning::handle_request: calling function 'get_voip_account_by_external_id' for admin 'admin-api'<o:p></o:p></p><p class=MsoNormal>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}<o:p></o:p></p><p class=MsoNormal>Dec  5 21:44:25 host03 apache2: [info] [client 127.0.0.1] Connection to child 0 established (server myserver:443)<o:p></o:p></p><p class=MsoNormal>Dec  5 21:44:25 host03 apache2: [info] Seeding PRNG with 656 bytes of entropy<o:p></o:p></p><p class=MsoNormal>Dec  5 21:44:25 host03 apache2: [info] [client 127.0.0.1] SSL library error 1 in handshake (server myserver:443)<o:p></o:p></p><p class=MsoNormal>Dec  5 21:44:25 host03 apache2: [info] SSL Library Error: 336151574 error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown<o:p></o:p></p><p class=MsoNormal>Dec  5 21:44:25 host03 apache2: [info] [client 127.0.0.1] Connection closed to child 0 with abortive shutdown (server myserver:443)<o:p></o:p></p><p class=MsoNormal>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"<o:p></o:p></p><p class=MsoNormal>Dec  5 21:44:25 host03 apache2: [info] [client 1.1.1.1] (70014)End of file found: SSL input filter read failed.<o:p></o:p></p><p class=MsoNormal>Dec  5 21:44:25 host03 apache2: [info] [client 1.1.1.1] Connection closed to child 1 with standard shutdown (server myserver:443)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><hr size=1 width="100%" noshade style='color:gray' align=center></span></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>No virus found in this message.<br>Checked by AVG - <a href="http://www.avg.com">www.avg.com</a><br>Version: 2014.0.4259 / Virus Database: 3658/6893 - Release Date: 12/05/13<o:p></o:p></span></p></div></div></body></html>