Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Soap server with Micro App

Cannot attach my soap server to micro app. It throws Soap errors however i don't have them, when sending requests outside of phalcon.

Can you please advise on how to do this attaching.

Thank you

You can declare soap server in di to call them in controll or event manager.



6.0k
edited Jun '15

yes i did, and it looks like it works.

anyway, i still getting the SOAP error, i can't understand why:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost/SOAPII/SOAPServer/app.wsdl.php' :   
Extra content at the end of the document in C:\xampp\htdocs\SOAPII\SOAPClient\client.php:

My guess is, it happens because of .htaccess file that redirects all requests to public/index.php Yet i am not sure, error is not pretty obvious.

Maybe someone has got a project with Soap server to take a look at?

or can povide a simple working example of it under phalcon?

Could you put wsdl file in another uri?

yes i did, and it looks like it works.

anyway, i still getting the SOAP error, i can't understand why:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost/SOAPII/SOAPServer/app.wsdl.php' :
Extra content at the end of the document in C:\xampp\htdocs\SOAPII\SOAPClient\client.php:

My guess is, it happens because of .htaccess file that redirects all requests to public/index.php Yet i am not sure, error is not pretty obvious.

Maybe someone has got a project with Soap server to take a look at?

or can povide a simple working example of it under phalcon?

Your WSDL cannot be parsed for whatever reason.

In this file you should have your WSDL definition:

http://localhost/SOAPII/SOAPServer/app.wsdl.php

(can be named whatever, i.e. only app.wsdl)

It is complaining that you have some "Extra content at the end of the document..". It might be .htaccess redirects causing this.



6.0k
Accepted
answer

sorry, did not have time to resolve the issue. Created SOAP server without Phalcon. Sorry Phalcon. You are still the best Framework!

Pitty. I don't see the specific reason why some framework would be a problem to implement SOAP server.

But SOAP is so out of date these days anyway. I'm that vast majority of new projects are implemented with REST.