Skip to content

Why Does SoapEnveloper.Header<T> Require The element name? #24

Description

@MerrittMelker

Why not just use the attributes attached to the class? It seems redundant.

[XmlRoot("MeowHeader", Namespace= "http://meow.com/")]
public class MeowResponseHeader : SimpleSOAPClient.Models.SoapHeader
{
  public string Status { get; set; }
  public string Message { get; set; }
}

var header = responseEnvelope
  .Header<MeowResponseHeader >("{http://meow.com/}MeowHeader");

I kept looking for:

var header = responseEnvelope.Header<MeowResponseHeader >();

but had to write it myself...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions