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

The Archive Base Latest Questions

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

The PHP page of Soap Server (I’ve seen it): http://www.php.net/manual/en/soapserver.soapserver.php But I’m missing an

  • 0

The PHP page of Soap Server (I’ve seen it):

http://www.php.net/manual/en/soapserver.soapserver.php

But I’m missing an important lack of documentation there for my very own problem:

I need to know if it’s possible to instantiate the Server directly with an XML string, like SimpleXML class does:

//From var (the one I want):
$movies = new SimpleXMLElement($xmlstr);

or

//From file and from string (the one I want):
$xml = simplexml_load_file('test.xml');

$xml = simplexml_load_string($string);

So I would like to do something like this:

$wsdl_cont = file_get_contents("../xmls/mywsdl.wsdl");
$server = new SoapServer($wsdl_cont);

Is it possible?

The reason for this is, because I have some different URLs which have to use the same XML, so I need to do a replace on the fly on a template URL, and change it to the right one and then, load the WSDL. But I don’t want to save on HDD the instantly generated WSDL to delete it right after having it read.

Is it possible to create some kind of “virtual file” on PHP and use it like if it was a disk read one? Some kind o stream buffer? Or some kind of file descriptor on the fly?

  • 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-26T20:51:28+00:00Added an answer on May 26, 2026 at 8:51 pm

    Yes it’s possible by creating a DATA URI out of the files content and use it as “file”.

    $name = 'mywsdl.wsdl';
    $path = '/path-to-file/'.$name;
    $data = file_get_contents($path);
    $file = 'data://text/plain;base64,'.base64_encode($data);
    $server = new SoapServer($file);
    

    This should do what you’re looking for. A related answer.

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

Sidebar

Related Questions

I've created a php page with two forms but I would like to have
When you enter soap servers url in browser, normally it produces blank page. But
Confluence soap api defines two methods with the same name but different parameters: Page
I have a PHP SOAP server (using nuSOAP with wsdl) that send the content
my PHP page currently doesnot have a mail server, instead of throwing an error,
I making a php server/page which is supposed to capture a users twitter feed
I'm building a PHP page with data sent from MySQL. Is it better to
I've got a php page which handles requets for file downloads. I need to
I have a php page that displays rows from a mysql db as a
I have a particular PHP page that, for various reasons, needs to save ~200

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.