This topic contains 0 replies, has 0 voices, and was last updated by Kamron Mason 9 years, 3 months ago.

  • Author
    Posts
  • #6905

    Kamron Mason

    The first call to instantiate NetSuiteService fails with error “Webservice host must be specified”. The OS is ubuntu. Apache, OpenSLL, and PHP are all working.

    The error is thrown at this line of code $service = new NetSuiteService(); (NOTE: Exact same code works fine when called form Windows Command Processor)

    The only thing I can think of is the library files php_openssl and php_soap but my network administrator assures me these are up to date as well and the extensions are referenced in php.ini (,so for linux and .dll for Windows)

    What else may be causing the NetSuiteService instantiation to fail on a Linux server?

    NSConfig.php has only the following two lines.

    $nsendpoint = “2013_2”;

    $nshost = “https://webservices.netsuite.com”;

    Partial error message:

    2015-08-03T17:05:48+00:00 [3874] New Netsuite Service INFO From:##.##.##.##:## Request:[] Message: EXCEPTION: Exception Object

    (

    [message protected] => Webservice host must be specified

    [string:Exception private] =>

    [code protected] => 0

    [file protected] => /workspace/phplib_release_tag/com/netsuite/PHPToolkit_2013_2/PHPToolkit/NSPHPClient.php

    [line protected] => 187

    [trace:Exception private] => Array

    (

    [0] => Array

    (

    [file] => /workspace/phplib_release_tag/com/netsuite/PHPToolkit_2015_1/PHPToolkit/NetSuiteService.php

    [line] => 132596

    [function] => __construct

    [class] => NSPHPClient

    [type] => ->

    [args] => Array

    (

    [0] =>

    [1] => Array

    (

    )

    )

    )

    [1] => Array

    (

    [file] => /workspace/phplib_release_tag/com/docassist/lib/NetsuiteLib.php

    [line] => 241

    [function] => __construct

    [class] => NetSuiteService

    [type] => ->

    [args] => Array

    (

    )

    )
    This is a cached copy. Click here to see the original post.

You must be logged in to reply to this topic.