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

Complex Type as input parameter #5

Open
jonvargas opened this issue Aug 5, 2014 · 3 comments
Open

Complex Type as input parameter #5

jonvargas opened this issue Aug 5, 2014 · 3 comments
Labels

Comments

@jonvargas
Copy link

Hey guys.

I expect the following operation in the controller class to work:

/**
* Returns hello and the name that you gave
*
* @param app\models\Post $post
* @return string
* @soap
*/
public function receive($post)
{
    return 'Hello ' . $post->title;
}

The WSDL is generated correcly, here it is:

https://gist.github.com/jonvargas/054d9cac7a7c4e51e527

But SoapUI complains:

"The value 'app\models\Post' is an invalid name."

Is this the proper way to generate a service operation that expects a complex type? Could you detail a bit more?

Thanks in advance

@subdee subdee added the question label Aug 5, 2014
@subdee
Copy link
Owner

subdee commented Aug 5, 2014

The truth is I've also stumbled on this and could never find a proper solution. My solution involved escaping the backspaces in the WSDL generator but I wasn't successful.

@subdee
Copy link
Owner

subdee commented Oct 23, 2014

Please check if this PR solves your issue #9

@Ant0ny
Copy link
Contributor

Ant0ny commented Jun 18, 2021

I know it's too late, but anyway, my solving:

/**
* Returns hello and the name that you gave
*
* @param object $post Object of any type
* @return string
* @soap
*/
public function receive($post)
{
return 'Hello ' . $post->title;
}

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

No branches or pull requests

3 participants