Results 1 to 3 of 3

Thread: I cannot call method of sugar by using webservice

  1. #1
    nongball is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    20

    Default I cannot call method of sugar by using webservice

    I cannot call method of sugar by using webservice. Can someone help me?

    This is my client code

    <?php

    $client = new SoapClient('https://[SITE]/testenv/soap.php?wsdl');
    $result = $client->end_session("test");

    ?>

    This is output :

    Warning: SoapClient::__construct() [function.SoapClient---construct]: I/O warning : failed to load external entity "https://[SITE]/testenv/soap.php?wsdl" in C:\AppServ\www\work\test4.php on line 2

    Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://[SITE]/testenv/soap.php?wsdl' in C:\AppServ\www\work\test4.php:2 Stack trace: #0 C:\AppServ\www\work\test4.php(2): SoapClient->__construct('https://[SITE]...') #1 {main} thrown in C:\AppServ\www\work\test4.php on line 2
    Last edited by julian; 2009-06-30 at 12:10 AM. Reason: Author requested I remove a reference to their Sugar URL

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: I cannot call method of sugar by using webservice

    Again, harder to help if you dont give us at least what version of SugarCRM and PHP you are using.

    try

    $soapclient = new nusoapclient('https://[SITE]/testenv/soap.php');

    instead
    Last edited by julian; 2009-06-30 at 12:10 AM. Reason: Author requested I remove a reference to their Sugar URL
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    nongball is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    20

    Default Re: I cannot call method of sugar by using webservice

    Quote Originally Posted by kbrill
    Again, harder to help if you dont give us at least what version of SugarCRM and PHP you are using.

    try

    $soapclient = new nusoapclient('https://[SITE]/testenv/soap.php');

    instead
    I use SugarCRM version 5.0a professional and PHP version 5.1.6.

    and I try to use your code
    $soapclient = new nusoapclient('https://[SITE]/testenv/soap.php');

    The output is :
    Fatal error: Class 'nusoapclient' not found in C:\AppServ\www\work\test4.php on line 6
    Last edited by julian; 2009-06-30 at 12:10 AM. Reason: Author requested I remove a reference to their Sugar URL

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sugar is slow - some ideas to improve the speed
    By mycrmspacegunnar in forum General Discussion
    Replies: 22
    Last Post: 2012-04-04, 01:44 PM
  2. Sugar Events - programing hooks
    By gasparz in forum Developer Help
    Replies: 8
    Last Post: 2011-08-24, 07:55 AM
  3. So Long Sugar, and thanks for all the fish
    By alsutton in forum General Discussion
    Replies: 41
    Last Post: 2006-11-15, 07:57 PM
  4. Call management
    By 3v3ntiq in forum Sales Force Automation
    Replies: 0
    Last Post: 2006-09-09, 12:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •