Jump to content

Where We Put Public Webservice Packages(Api) In Php?


sudheerphp

Recommended Posts

Hi to all,

i am new to this community,

when i am trying to run my php program ,i got one error

Error description :

1)Warning: include(Economic.Api.Data): failed to open stream: No such file or directory in xxxx

2)Warning: include(): Failed opening 'Economic.Api.Data' for inclusion (include_path='.:/opt/lampp/lib/php') in xxx

 

 

 

my code :

include ('Economic.Api.Data');

require_once('nusoap.php');

$client = new SoapClient('https://www.e-conomic.com/secure/api1/EconomicWebService.asmx?WSDL');

$client->Connect(array(

'agreementNumber' => 'xxxxxxx',

'userName' => 'xxx',

'password' => 'xxxxx'

));

$functions = $client->__getFunctions ();

//var_dump ($functions);

 

if(is_soap_fault($functions))

{

print'something went wrong';

print $functions->faultstring;

 

}

else

{

echo 'connected..';

}

 

Here, is my another question is that,

in java language ,if we want to import some packages,

we just write IMPORT JAVA.LANG.*;

similayly, is there any way to call the same in PHP. for E-conomic Api's...

** is it the right way to write include(e-conomic.api) in include....

 

Anyone help me out plz..

 

quick reply is appreceatable.

 

Kind Regards,

sudheer:mellow:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...