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

Required field 'protocolVersion' is missing #1853

Open
Konservin opened this issue Nov 10, 2023 · 6 comments
Open

Required field 'protocolVersion' is missing #1853

Konservin opened this issue Nov 10, 2023 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@Konservin
Copy link

protocolVersion is set in headers, but response error is that it is missing. What might cause this?
image

@raits
Copy link
Contributor

raits commented Nov 10, 2023

Hey @Konservin!

Unfortunately I am not familiar with the output on the screenshot. Could you please clarify what framework you are using and if it would be possible to get the actual SOAP message that is generated based on the displayed input?

@raits raits added the question Further information is requested label Nov 10, 2023
@raits raits self-assigned this Nov 10, 2023
@Konservin
Copy link
Author

test_req.xml.txt

Thank You for looking into it.
Platform is Symfony 4.4, generated XML is attached with replaced XXXXs.

@petkivim
Copy link
Contributor

Hi @Konservin! Does the response message returned by your service contain all the same headers that the request message has? The error message indicates that the response message doesn't have the protocolVersion header. The service is responsible for adding the required headers to the response message - the Security Server doesn't do it automatically. Here's an example of a request / response message pair.

@Konservin
Copy link
Author

Hi!
No, service returns an error message that says "Required field 'protocolVersion' is missing"

@petkivim
Copy link
Contributor

Thanks for the clarification! The request that you shared earlier looks good to me and it includes the protocolVersion header field correctly. Unfortunately, I'm not familiar with the framework you're using to implement the service and therefore, it's difficult to say what could cause the issue.

@jalmar-spin
Copy link

This error occurs because there are some incorrect namespaces in the request.

The namespaces should be:

  • http://x-road.eu/xsd/xroad.xsd instead of https://x-road.eu/xsd/xroad.xsd
  • http://x-road.eu/xsd/identifiers instead of https://x-road.eu/xsd/identifiers

And the namespace for element detailandmed_v1 should be http://arireg.x-road.eu/producer/ instead of http://arireg.x-road.eu.

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

No branches or pull requests

4 participants