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

in_header data in json requests #545

Open
solartune opened this issue Sep 28, 2017 · 0 comments
Open

in_header data in json requests #545

solartune opened this issue Sep 28, 2017 · 0 comments

Comments

@solartune
Copy link

solartune commented Sep 28, 2017

Hi guys! I don't understand, how can I send header data in json request?
In soap request I just do this

<soapenv:Header>
      <soap:headerData>
        <soap:data>my_data</soap:data>
      </soap:headerData>
   </soapenv:Header>

But in json request I can't do the same. When I try to do something like this

{
    "headerData": {
	"data": "my_data"
    },
    "getEmployee": {
	"number": "employee_number"
    }
}

I get the next error:

{
    "faultcode": "Client.ValidationError",
    "faultstring": "The value \"'Need a dictionary with exactly one key as method name.'\" could not be validated."
}

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