question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exclude members from wsdl

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kotovaleksandrcommented, Aug 1, 2018

Using IgnoreDataMember good way, but currently SoapCore don’t support them. You can add this feature to MetaBodyWriter.cs and send PR.

0reactions
kotovaleksandrcommented, Sep 6, 2018

@neilsimp1 Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found