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

@WebParam header doesn't work #53

Open
dmarczydlo opened this issue Oct 3, 2019 · 0 comments
Open

@WebParam header doesn't work #53

dmarczydlo opened this issue Oct 3, 2019 · 0 comments

Comments

@dmarczydlo
Copy link

dmarczydlo commented Oct 3, 2019

    /**
     * @WebMethod
     * @WebParam(param="string $token", header=true)
     * @WebParam(param="object $user { string $name int $age }")
     * @WebResult(param="object $userContext { string $token int $id object $userInfo { string $name int $age } }")
     */
    public function getUserContext($token, $user)
    {
        return $user;
    }

The code above doesn't work.
My Soap client return Too few arguments to function getUserContext(), 1 passed and exactly 2 expected

It looks like the $token variable is not handle.

@piotrooo do you know what can be a reason? I based on your test files

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