PDA

Click to See Complete Forum and Search --> : [RESOLVED] Class 'SoapServer' not found


ComputerJy
Oct 5th, 2008, 07:00 AM
Hey,

The title might make my problem look simple. It isn't (hope I'm wrong)
Here is my problem: I've developed a web service using php5 on an Apache2.2 server. My problem is with my host, they won't allow me to edit or modify the php.ini settings.

So I was wondering if it's possible to somehow embed the Soap library to my project.

Please help meeeeeeeeeeeeeeeee

dclamp
Oct 5th, 2008, 01:35 PM
Have you asked your host to add the extension for you?

I'm not sure what you mean by embed it... I googled it, and nothing came up.

ComputerJy
Oct 5th, 2008, 02:21 PM
By embedding it I mean: copy the .dll or the .so file into a folder of mine (relative to the project) and let apache know about it.

I'm not really an expert in apache or php. But in ASP.Net (IIS) you can reference any library you want as long as you have access to it's file

dclamp
Oct 5th, 2008, 03:20 PM
Maybe you can do that. Try using the dl() (http://us2.php.net/dl) function.

ComputerJy
Oct 5th, 2008, 04:30 PM
Ok, I looked up the .so files for the SOAP but instead I found the .php source files for the entire package (On Ubuntu 8.04) so I modified the code and copied it to my web site. Got a few errors, fixed them but for some reason I'm still getting "Fatal error: Class 'SoapServer' not found in ...."

I've added a require_once to the beginning of my web service

<?php
require_once 'Server.php';
where Server.php contains the definition for class SOAP_Server..

Am I doing anything wrong?
Any ideas

visualAd
Oct 5th, 2008, 05:21 PM
Maybe you should change you code so it uses SOAP_Server instead of SoapServer. If you want to check weather of not SOAP support is enabled then you just need to make a call to phpinfo() and look for the SOAP section.

ComputerJy
Oct 5th, 2008, 05:48 PM
LOL Really stupid thing, I should have noticed this from the beginning.

Thanks bro

canyoncat
Nov 28th, 2008, 02:14 PM
Did this work? I am having the same problem on my host (Powweb) as they allow the use of Soap but have disabled the SoapServer call. I thought about including the definition myself and was wondering if anyone else had managed to do that. Where did you find the source for it?

ComputerJy
Nov 28th, 2008, 04:51 PM
It did work, and is still working just fine. I got the source from my Ubuntu repos, meaning it's open source and you can look it up