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

can't return special type DomDocument xml #85

Open
fidelio314 opened this issue Jan 23, 2014 · 1 comment
Open

can't return special type DomDocument xml #85

fidelio314 opened this issue Jan 23, 2014 · 1 comment

Comments

@fidelio314
Copy link

Hi!
I have set up the controller for SoapServer,
on my action i have set:
@soap\Result(phpType = "DOMDocument") on the annotations.
in my action i get a Xml whitch i try to return!
like:
return $this->container->get('besimple.soap.response')->setReturnValue($xml);
or
return $xml

But i can't get to have the xml as response!

i tried event with
@soap\Result(phpType = "string")

i always get this kind of error:
[SoapFault] looks like we got no XML document

could't please post an exemple on handling a Xml return?

thank you for the help, in advance!

@fidelio314
Copy link
Author

may be a memory_limit issue.
i abandoned BeSimpleSoapBundle, i did the way Symfony's documentation explains, through a controller and the use of a service.
i had the same error...

i set: ini_set('memory_limit', '-1');

and the problem was solved.

for this issue thought i still don't know if we need to return a XML should we do it with a phpType string?

thanks

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

1 participant