Edit report at https://bugs.php.net/bug.php?id=36380&edit=1

 ID:                 36380
 Comment by:         quamis at gmail dot com
 Reported by:        php at snak3 dot de
 Summary:            SoapServer class
 Status:             Open
 Type:               Feature/Change Request
 Package:            SOAP related
 Operating System:   mac os x
 PHP Version:        5.1.2
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2006-02-13 16:48:10] 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();




------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=36380&edit=1

Reply via email to