Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soap\Server::handle() never returns #20

Closed
weierophinney opened this issue Dec 31, 2019 · 6 comments
Closed

Soap\Server::handle() never returns #20

weierophinney opened this issue Dec 31, 2019 · 6 comments

Comments

@weierophinney
Copy link
Member

Hi There,

I'm having a problem when using Soap\Server() but I'm not 100% sure if this is a framework bug or if I'm not using the API correctly (as the documentation is a little sparse on the matter)

If I construct Soap\Server() with WSDL generated from Soap\AutoDiscover->generate(), a very strange thing happens. Upon calling Server->handle(), the framework will bail immediately and prints the following (regardless of ::setReturnResponse) :

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
        <SOAP-ENV:Fault>
            <faultcode>SOAP-ENV:Server</faultcode>
            <faultstring>SoapServer::SoapServer(): Invalid parameters</faultstring>
        </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

In addition, anything outputted previously will appear inside a "detail" element appended to the "Fault" element.

What could be causing this?

I look forward to your thoughts. Thanks in advance.

PS I notice there are no bugs here, should I be making this bug somewhere else?


Originally posted by @feamsr00 at zendframework/zend-soap#6

@weierophinney
Copy link
Member Author

Note: If I instead consume the WSDL from a second request to the echoed XML (eg "../Service?wsdl") it works. But, this couldn't be by design. Having to spin up full tcp\httpd\php\framework machinery just to get at data that is a few JMPs away is ludicrous, right?


Originally posted by @feamsr00 at zendframework/zend-soap#6 (comment)

@weierophinney
Copy link
Member Author

Giving this issue a bump, was setting up a SOAP integration but ran into this issue which is now rather blocking.


Originally posted by @ghost at zendframework/zend-soap#6 (comment)

@SalvatorePollaci
Copy link

UP

@Xerkus
Copy link
Member

Xerkus commented Apr 2, 2020

Proper way to bump the issue is by opening the PR

@weierophinney
Copy link
Member Author

@SalvatorePollaci Or by providing information on how to reproduce.

There's no information here on how the author was setting up the Autodiscover or Server instances, or what types of classes or functions were being attached; it's entirely possible there are errors.

Based on the comments they posted later, it sounds very much like they could be calling code that has side effects in terms of output that would cause the instances to raise error conditions.

@weierophinney
Copy link
Member Author

This package is considered feature-complete, and is now in security-only maintenance mode, following a decision by the Technical Steering Committee.
If you have a security issue, please follow our security reporting guidelines.
If you wish to take on the role of maintainer, please nominate yourself

If you need an actively developed SOAP client, we recommend phpro/soap-client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants