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

how to change xml namespaces on xml request (servicecontract, messagecontract and operationcontract) #1093

Closed
juliotovar19 opened this issue Oct 16, 2024 · 3 comments
Labels

Comments

@juliotovar19
Copy link

how can I change the default xml namespace to my own namespace instead of using “xmlns:tem=”http://tempuri.org/”, and how can I change the prefix in the request name elements and add namespaces to the request element tag, all of this in the request xml

@andersjonsson
Copy link
Collaborator

You can set the namespace in your ServiceContractAttribute
image

Namespaces of the request- and response-objects can be set on the respective object with different serialization-attributes

Prefixes can be altered with XmlNamespacePrefixOverrides in SoapCoreOptions when you set up your endpoints

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 Nov 18, 2024
Copy link

github-actions bot commented Dec 2, 2024

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

@github-actions github-actions bot closed this as completed Dec 2, 2024
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