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 data types #1057

Closed
edsuncor opened this issue Apr 20, 2024 · 4 comments
Closed

Complex data types #1057

edsuncor opened this issue Apr 20, 2024 · 4 comments
Labels

Comments

@edsuncor
Copy link

Is there a way to not include xsi:type for data types like double using XmlSerializer?

Currently outputting:
<num xsi:type="Double" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">0</num>

Would like to get:
<num>0</num>

I can see ServiceBodyWriter is checking for types guid, bool, string, enum, but not other types.
Is there an option available to produce this output?

Thanks.

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 May 21, 2024
@andersjonsson
Copy link
Collaborator

There is no built in way to do that.
You could implement it with an ISoapMessageProcessor that modifies the response messages.

Otherwise you are more than welcome to submit a PR

@github-actions github-actions bot removed the stale label May 29, 2024
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 Jun 28, 2024
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

2 participants