• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 479
  • Last Modified:

error in calling soapclient in php

while calling soapclient we are getting the error "Call to undefined method soapclient::GetData()".But GetData() method exist in the wsdl link.
0
dynamicweb09
Asked:
dynamicweb09
  • 3
  • 3
1 Solution
 
Loganathan NatarajanLAMP DeveloperCommented:
check whether you have PHP configured with SOAP
0
 
Loganathan NatarajanLAMP DeveloperCommented:
0
 
dynamicweb09Author Commented:
i have added the following code in php.ini file and restart all services.

[soap]

soap.wsdl_cache_enabled = 1
; enables or disables WSDL caching feature

soap.wsdl_cache_dir = "/tmp"
; sets the directory name where SOAP extension will put cache files

soap.wsdl_cache_ttl = "86400"
; (time to live) sets the number of second while cached file will be used
; instead of original one




but still not working soapclient.
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
dynamicweb09Author Commented:
ok thanks.after adding the above code soap is enabled.but now i am getting the error "Fatal error: Cannot redeclare class soapclient in C:\wamp\www\Dynamiclevels\includes\lib\nusoap.php on line 7240"
0
 
Loganathan NatarajanLAMP DeveloperCommented:
it means, you already initiated the class again you're trying to include the class. just check with


if ( class_exists('Class_Name') )
{
return;
}
0
 
dynamicweb09Author Commented:
ok thanks my problem is solved.It is due to wrong php_soap.dll.

Thanks for guide me.
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now