Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 2 of 2

Thread: PHP with webservices Configuration

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    22

    Default PHP with webservices Configuration

    Hello,

    I'm trying to interface PHP with WS SM7 using SOAP.
    The problem is i don't know how to call functions from WSDL in php.

    Here is what i wrote :

    <?php
    $wsdl = 'http://localhost:13080/SM/7/ConfigurationManagement.wsdl';
    $options = array(
    'compression'=>true,
    'exceptions'=>false,
    'trace'=>true
    );
    $serv_customers = new SoapClient($wsdl, $options);
    //var_dump($serv_customers->__getFunctions());
    $toto = $serv_customers->__call('CreateContact',array("ContactName"=>"TOTO "));
    echo $toto;
    ?>

    but it returns me an error :

    SoapFault exception: [Client] Function ("CreateContact") is not a valid method for this service in C:\Program Files\EasyPHP 3.0\www\ServeurC\createContactSM.php:10 Stack trace: #0 C:\Program Files\EasyPHP 3.0\www\ServeurC\createContactSM.php(10): SoapClient->__call('CreateContact', Array) #1 {main}

    or sometimes
    Fatal error: SOAP-ERROR: Encoding: object hasn't 'model' property in C:\Program Files\EasyPHP 3.0\www\ServeurC\createContactSM.php on line 10

    someone knows how exactly can we write code to call function CreateContact ?

    Thx you for your help

  2. #2
    Senior Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    930

    Default

    There might be people in here that could help you, but I think you are better off checking a PHP-type forum, as your question is regarding PHP using SOAP.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Bookmarks

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