Passing complex object types (java server/ PHP client)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nisansala
    New Member
    • Mar 2007
    • 1

    #1

    Passing complex object types (java server/ PHP client)

    Hi all,


    We are writing a PHP client to access netsuite methods(netsuit e.wsdl). THis is the code which we wrote for login logout and search.login logout are working fine but when it comes to search it does not pass the values.

    require_once('N etSuiteService. php'); // this is the class generated from wsdl file.

    $ns = new NetSuiteService ;

    //===========logi n Info==========
    $pass = new Passport;
    $pass->email = "test@test.com" ;
    $pass->password = "test";
    $pass->account = "test";
    $pass->internalId = "test";
    $lgreq = new LoginRequest;
    $lgreq->passport = $pass;
    $lgres = $ns->login($lgreq );

    //=============== ==Search======= ===
    $sString = new SearchStringFie ld;
    $sString->operator = 'contains';
    $sString->searchValue = 'joe';

    $csb = new CustomerSearchB asic;
    $csb->firstName = $sString;
    $cs = new CustomerSearch;
    $cs->basic = $csb;

    $searchObj = new SearchRequest;
    $searchObj->searchRecord = $searchObj;
    $searchRes = $ns->search($search Obj);

    //=============== =Logout======== =

    $lgOreq = new LogoutRequest;
    $lgres = $ns->logout($lgOreq );

    any help........... ...........

    Thanks
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Welcome to TSDN.

    I see you are new to this forum, but before you post any further, read the Posting Guidelines at the top of this forum.

    Especially the part about enclosing your code within code or php tags!!

    Ronald :cool:

    Comment

    Working...