Welcome Guest, Not a member yet? Register   Sign In
php5 SOAP, what is the URI for the WSDL?
#1

[eluser]Unknown[/eluser]
Normally the URI to the WSDL would be
http://hostname/Webservice.php?WSDL

how would i navigate to the WSDL with code igniter?

Sample SOAP Service code I Found for Code Igniter.
Code:
<?php

class Webservice extends Controller{
  function Webservice(){
      parent::Controller();
  }

  function index(){
      

    
           // dont cache the WSDL
     ini_set("soap.wsdl_cache_enabled", "0");
    
     // listen for SOAP Requests
     $server = new SoapServer('SomeWSDL.wsdl');
    
     // set the handler to class zomp
     $server->setClass('SomeClass');
     $server->handle();
  }
}
?>
#2

[eluser]Mischievous[/eluser]
Code:
$path_to_wsdl = $this->config->slash_item('secure_base_url')."system/wsdl/service.wsdl";

then in .htaccess file allow access to the directory Smile

#RewriteCond $1 !^(index\.php|system/wsdl|robots\.txt)




Theme © iAndrew 2016 - Forum software by © MyBB