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

Null values in request for header members. #435

Closed
rafchm opened this issue Feb 20, 2020 · 2 comments
Closed

Null values in request for header members. #435

rafchm opened this issue Feb 20, 2020 · 2 comments
Labels

Comments

@rafchm
Copy link

rafchm commented Feb 20, 2020

Happens when custom name is set with attribute MessageHeaderAttribute(Name="custom-name")

Proposed way to fix: message headers members should use header attribute value for the name

var messageHeadersMembers = parameterType.GetPropertyOrFieldMembers().Where(x => x.GetCustomAttribute<MessageHeaderAttribute>() != null).ToArray();

similar way as body members implementation:

var messageBodyMembers = parameterType.GetPropertyOrFieldMembers().Where(x => x.GetCustomAttribute<MessageBodyMemberAttribute>() != null).Select(mi => new

rafchm pushed a commit to rafchm/SoapCore that referenced this issue Feb 21, 2020
kotovaleksandr added a commit that referenced this issue Feb 27, 2020
Fix for issue #435: Null values in request for header members.
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jul 20, 2021
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

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

1 participant