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 7078953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:36:40+00:00 2026-05-28T06:36:40+00:00

With PHPs SOAP implementation, I can’t call methods from the WDSL, if they start

  • 0

With PHPs SOAP implementation, I can’t call methods from the WDSL, if they start with an underscore. I.e.:

$result = $server->_-testing_-getPrices(array('Receiver'=>'John'));

DOESN’T WORK!

However,

$result = $server->getPrices(array('Receiver'=>'John'));

WORKS AS EXPECTED, however, the SOAP server i’m requesting to doesn’t have this operation. The error that PHP spits out with the FIRST ONE is:

Notice: Undefined property: SoapClient::$_ in D:\SERVER\www\test123.php on line 4

Notice: Use of undefined constant testing_ - assumed 'testing_' in D:\SERVER\www\test123.php on line 4

Fatal error: Call to undefined function getPrices() in D:\SERVER\www\test123.php on line 4

This is IMHO a bug, or does anyone know how to go around this?

  • 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-28T06:36:41+00:00Added an answer on May 28, 2026 at 6:36 am

    PHP’s functions cannot contain - in their names: http://www.php.net/manual/en/functions.user-defined.php .
    So, you have to use this to call your method: http://www.php.net/manual/en/soapclient.soapcall.php

    $result = $server->__soapCall('_-testing_-getPrices',array('Receiver'=>'John'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wish to send an email from my localhost machine (using PHPs mail function)
I have an application which relies on a soap server to produce content. Additionally
I'm wondering whether methods of PHPs SPLFileObject are atomic (e.g. thread-safe) or not? If
What are the security considerations when a server fetches a file from an untrusted
The Quest I'm trying to talk to a SRCDS Server from node.js via the
https://www.googleapis.com/freebase/v1/search?query=madonna# The JSON result is breaking PHPs json_decode. To be exact, the following string
My goal is to be able to create a soap request that can contain
Any ideas on how I can get PHPs SimplXMLElement to kick off with the
Can someone tell me why I am getting this error? Call to undefined method
I'm using PHPs create_function($args, $code) function to dynamically load a function definition from a

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.