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 got some issue with parsing, when I PHP based web service. I got
I've got a web server running IIS7 and I just updated to PHP 5.3.
I have a web service that I want to access through SOAP. But I
I am trying to consume PHP Web service with JSON in android I got
i've got an android app and a really simple web service that make an
I've got a small php web app I put together to automate some manual
I've got a PHP page that parses an XML file with SimpleXml, then passes
I've got a PHP-based library that takes phone numbers and translates them into locally
when i try to parse the response returned from a web service i got
I've got a site running on php and I need my form to post

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.