Exclude members from wsdl
See original GitHub issueI get an exception when trying to call service in order to get wsdl:
System.ArgumentException: .NET type ObjectId cannot be resolved into XML schema type
at SoapCore.MetaBodyWriter.ResolveType(Type type)
at SoapCore.MetaBodyWriter.AddSchemaType(XmlDictionaryWriter writer, Type type, String name, Boolean isArray, String namespace)
at SoapCore.MetaBodyWriter.AddTypes(XmlDictionaryWriter writer)
at SoapCore.MetaBodyWriter.OnWriteBodyContents(XmlDictionaryWriter writer)
at System.ServiceModel.Channels.Message.OnWriteBodyContentsAsync(XmlDictionaryWriter writer)
at System.ServiceModel.Channels.Message.OnWriteMessageAsync(XmlDictionaryWriter writer)
at System.ServiceModel.Channels.Message.WriteMessageAsync(XmlDictionaryWriter writer)
at System.ServiceModel.Channels.TextMessageEncoderFactory.TextMessageEncoder.WriteMessageAsync(Message message, Stream stream)
at System.ServiceModel.Channels.TextMessageEncoderFactory.TextMessageEncoder.WriteMessageAsyncInternal(Message message, Stream stream)
at System.Runtime.TaskHelpers.WaitForCompletionNoSpin(Task task)
at SoapCore.SoapEndpointMiddleware.ProcessMeta(HttpContext httpContext)
at SoapCore.SoapEndpointMiddleware.ProcessOperation(HttpContext httpContext, IServiceProvider serviceProvider)
at SoapCore.SoapEndpointMiddleware.Invoke(HttpContext httpContext, IServiceProvider serviceProvider)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
I tried to apply [IgnoreDataMember] and [XmlIgnore], but they seem to be ignored. Any advice is appriciated.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
JAX-WS: How to Exclude a "member/field" in a Response ...
I have a WebService that returns as the result of the Invokation of the Web-Service a ResponseObject called " CustomerResponse ". When I ......
Read more >security-constraint to exclude wsdl - Tomcat
I have a web application built using JAX-WS. I want to secure the application at the tomcat level but I would like to...
Read more >Configure policies from WSDL files
The Web Service filter is the main filter generated when a WSDL file is imported into the web service repository. It contains all...
Read more >remove policy tags from wsdl file
Hello all, i have a scenario SOAP -> XI/PI -> RFC. I just want remove the policy tags from wsdl file, which is...
Read more >Web Service Proxy
Through service configuration, you cannot remove a port or binding from the source WSDL file. You can modify the source WSDL file only...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Using IgnoreDataMember good way, but currently SoapCore don’t support them. You can add this feature to MetaBodyWriter.cs and send PR.
@neilsimp1 Thanks!