Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5970943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:26:49+00:00 2026-05-22T20:26:49+00:00

I got a PHP web service that had been running great for a long

  • 0

I got a PHP web service that had been running great for a long time, but somewhere a long the way it some how stopped working, and I just can’t get it to work again.

I got some php page in which all I do is define a class with functions, and in the end of it I create the SoapServer.

It looks like this –

class MyClassWS
{
     function .....
     function ....
}
ini_set("soap.wsdl_cache_enabled", "0");
    error_log("Server after ini_set");
    $soapserver = new SoapServer("MyWSDL.wsdl");

    error_log("Server after new SoapServer");
$soapserver->setClass("MyClassWS");
    error_log("Server after setClass");
    //error_log(print_r($soapserver->getFunctions()));

    try
    {
        $soapserver->handle();
    }
    catch(Exception $ex)
    {
        error_log("Exception!".$ex->getMessage());

    }
error_log("Finished Handling",0);

Right after the $soapserver->handle(); the code terminates, and I get a vague “SOAP-ENV:ClientBad Request” result on my web page.

This happens when I “require_once” this page, from my index page, so I could call functions that are defined in this class, from my index page.

My guess is that maybe I’ve been fiddling too much with my WSDL and somehow it screwed up my while WebService, but I tried looking on what’s wrong with it, but couldn’t get onto anything. Especially because of this annoying vague error message, that doesn’t really help.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:26:50+00:00Added an answer on May 22, 2026 at 8:26 pm

    I think I nicely fixed it by separating the WebService class that included the SoapServer into 2 different classes.

    One that included only the class with the functions, and another that included the WebServer and only had a reference to the class.

    This way I can import the class with the functions without also importing the SoapServer and triggering the handle() function.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm thinking about a good workflow for php/mysql web-development. Anybody got some tips?
I've got a PHP script which I'm running from a command line (windows) that
I've got a PHP script that needs to invoke a shell script but doesn't
I'm new to PHP and web development in general, but have been a programmer
I've got a PHP application which needs to grab the contents from another web
I've got a php script. Most of the time the script returns html, which
I've got a PHP command line program running. And I want to connect to
I've got a PHP script on a shared webhost that selects from ~300 'feeds'
We've got an incredibly frustrating situation with a CF Web Services-based API that we
I've got a Java REST based web service sitting on a server which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.