php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #36380 SoapServer class
Submitted: 2006-02-13 16:48 UTC Modified: 2011-02-21 21:34 UTC
Votes:5
Avg. Score:4.2 ± 0.7
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: php at snak3 dot de Assigned:
Status: Open Package: SOAP related
PHP Version: 5.1.2 OS: mac os x
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-02-13 16:48 UTC] php at snak3 dot de
Description:
------------
i'm trying to set up a SoapServer with an dynamic WSDL file, 
but the SoapServer class only accepts a file name and not a 
xml(wsdl) string. now my workaround is a speatly php file 
thats output wsdl string but this is "very" slow.

Reproduce code:
---------------
// My Workarond:

// -generateWSDL.php:

...
print generateWSDL(...); //returns a wsdl string
...

// -SoapServer.php:

$ssSoap = new SoapServer("http://localhost/generateWSDL.php");
$ssSoap->setClass($anyClass);
$ssSoap->handle();


// better solution, but for this the SoapServer class musst accept a xml string.
$ssSoap = new SoapServer(generateWSDL(...));
$ssSoap->setClass($anyClass);
$ssSoap->handle();



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-21 21:34 UTC] jani@php.net
-Package: Feature/Change Request +Package: SOAP related
 [2012-12-12 08:22 UTC] quamis at gmail dot com
By using stream wrappers, you can obtain the same thing, in a hack-ish way.

@see http://php.net/manual/en/wrappers.data.php

In my code, i have this now:

$server = new SoapServer("data://text/plain;base64,".base64_encode($this->_processWSDLFile()));


where $this->_processWSDLFile() generates a custom WSDl file based on some internal rules.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC