Giter VIP home page Giter VIP logo

Comments (2)

mamift avatar mamift commented on July 21, 2024 1

Hello,

I just wanted to acknowledge receipt of your issue; this is an interesting error.
I myself have not used and also not seen, thus far, anyone use LinqToXsdCore for de/serialisation with WCF; I thought WCF came with it's own XML serialisation/deserialisation libraries?

One thing that comes to mind is that there is an explicit conversion operator generated by the LinqToXsd tool; are you able to check if it is being called? Look for static explicit operator in generated code.

from linqtoxsdcore.

lucky85008 avatar lucky85008 commented on July 21, 2024

Hi Mamift,

Thanks for replying it.
Yes, WCF does have its own XML serialisation/deserialisation. It is defined on OperationContract as [XmlSerializerFormat(Style = OperationFormatStyle.Document, Use = OperationFormatUse.Literal)]

Yes , static explicit operator is there in following class.

public static explicit operator CoreFilingMessage(XElement xe) { return XTypedServices.ToXTypedElement<CoreFilingMessage, aoc.efiling.ecf.extension.CoreFilingMessageType>(xe, LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); }

===================================
///


///
/// The structure of a Filing including any Payment Information will be documented in this section. This describes the filing transaction between the Filing Assembly MDE and the Filing Review MDE. This information will become part of the Record Docketing between the Filing Review MDE and the Court Record MDE but does not necessarily describe the information that is actually stored in the Court Record.
///
///

[XmlSchemaProviderAttribute("CoreFilingMessageSchemaProvider")]
public partial class CoreFilingMessage: global::oasis.legalxml.courtfiling.CoreFilingMessage.CoreFilingMessage, IXMetaData, IXmlSerializable
{

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private aoc.efiling.ecf.extension.CoreFilingMessageType ContentField;

private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CoreFilingMessage", "http://schema.azcourts.az.gov/aoc/efiling/ecf/extension/2.2");

**public static explicit operator CoreFilingMessage(XElement xe) { return XTypedServices.ToXTypedElement<CoreFilingMessage, aoc.efiling.ecf.extension.CoreFilingMessageType>(xe, LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); }**

/// <summary>
/// <para>
/// The structure of a Filing including any Payment Information will be documented in this section. This describes the filing transaction between the Filing Assembly MDE and the Filing Review MDE. This information will become part of the Record Docketing between the Filing Review MDE and the Court Record MDE but does not necessarily describe the information that is actually stored in the Court Record.
/// </para>
/// </summary>
public CoreFilingMessage() :
        base(true)
{
  SetInnerType(new aoc.efiling.ecf.extension.CoreFilingMessageType());
}

/// <summary>
/// <para>
/// The structure of a Filing including any Payment Information will be documented in this section. This describes the filing transaction between the Filing Assembly MDE and the Filing Review MDE. This information will become part of the Record Docketing between the Filing Review MDE and the Court Record MDE but does not necessarily describe the information that is actually stored in the Court Record.
/// </para>
/// </summary>
public CoreFilingMessage(aoc.efiling.ecf.extension.CoreFilingMessageType content) :
        base(true)
{
  SetInnerType(content);
}

public override XElement Untyped
{
  get
  {
    return base.Untyped;
  }
  set
  {
    base.Untyped = value;
    this.ContentField.Untyped = value;
  }
}

public new virtual aoc.efiling.ecf.extension.CoreFilingMessageType Content
{
  get
  {
    return ContentField;
  }
}

/// <summary>
/// <para>
/// Occurrence: optional
/// </para>
/// <para>
/// Regular expression: (DocumentApplicationName?, DocumentBinary?, DocumentCategoryText*, DocumentDescriptionText?, DocumentEffectiveDate?, DocumentFileControlID?, DocumentFiledDate?, DocumentIdentification*, DocumentInformationCutOffDate?, DocumentPostDate?, DocumentReceivedDate?, DocumentSequenceID?, DocumentStatus?, DocumentTitleText?, DocumentLanguage?, DocumentSubmitter?, SendingMDELocationID, SendingMDEProfileCode, ElectronicServiceInformation*, Case, FilingConfidentialityIndicator?, FilingLeadDocument+, FilingConnectedDocument*, DocumentFiler?, ActivityRequest*, Metadata*)
/// </para>
/// </summary>
public virtual DocumentFiler DocumentFiler
{
  get
  {
    return this.ContentField.DocumentFiler;
  }
  set
  {
    this.ContentField.DocumentFiler = value;
  }
}

/// <summary>
/// <para>
/// Occurrence: optional, repeating
/// </para>
/// <para>
/// Regular expression: (DocumentApplicationName?, DocumentBinary?, DocumentCategoryText*, DocumentDescriptionText?, DocumentEffectiveDate?, DocumentFileControlID?, DocumentFiledDate?, DocumentIdentification*, DocumentInformationCutOffDate?, DocumentPostDate?, DocumentReceivedDate?, DocumentSequenceID?, DocumentStatus?, DocumentTitleText?, DocumentLanguage?, DocumentSubmitter?, SendingMDELocationID, SendingMDEProfileCode, ElectronicServiceInformation*, Case, FilingConfidentialityIndicator?, FilingLeadDocument+, FilingConnectedDocument*, DocumentFiler?, ActivityRequest*, Metadata*)
/// </para>
/// </summary>
public virtual IList<ActivityRequest> ActivityRequest
{
  get
  {
    return this.ContentField.ActivityRequest;
  }
  set
  {
    this.ContentField.ActivityRequest = value;
  }
}

/// <summary>
/// <para>
/// Occurrence: optional, repeating
/// </para>
/// <para>
/// Regular expression: (DocumentApplicationName?, DocumentBinary?, DocumentCategoryText*, DocumentDescriptionText?, DocumentEffectiveDate?, DocumentFileControlID?, DocumentFiledDate?, DocumentIdentification*, DocumentInformationCutOffDate?, DocumentPostDate?, DocumentReceivedDate?, DocumentSequenceID?, DocumentStatus?, DocumentTitleText?, DocumentLanguage?, DocumentSubmitter?, SendingMDELocationID, SendingMDEProfileCode, ElectronicServiceInformation*, Case, FilingConfidentialityIndicator?, FilingLeadDocument+, FilingConnectedDocument*, DocumentFiler?, ActivityRequest*, Metadata*)
/// </para>
/// </summary>
public virtual IList<aoc.efiling.ecf.extension.Metadata> Metadata
{
  get
  {
    return this.ContentField.Metadata;
  }
  set
  {
    this.ContentField.Metadata = value;
  }
}

Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary
{
  get
  {
    IXMetaData schemaMetaData = ((IXMetaData)(this.Content));
    return schemaMetaData.LocalElementsDictionary;
  }
}

XTypedElement IXMetaData.Content
{
  get
  {
    return this.Content;
  }
}

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
System.Xml.Linq.XName IXMetaData.SchemaName
{
  get
  {
    return xName;
  }
}

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
SchemaOrigin IXMetaData.TypeOrigin
{
  get
  {
    return SchemaOrigin.Element;
  }
}

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
ILinqToXsdTypeManager IXMetaData.TypeManager
{
  get
  {
    return LinqToXsdTypeManager.Instance;
  }
}

public new static CoreFilingMessage Load(string xmlFile)
{
  return XTypedServices.Load<CoreFilingMessage, aoc.efiling.ecf.extension.CoreFilingMessageType>(xmlFile, LinqToXsdTypeManager.Instance);
}

public static new CoreFilingMessage Load(System.IO.TextReader xmlFile)
{
  return XTypedServices.Load<CoreFilingMessage, aoc.efiling.ecf.extension.CoreFilingMessageType>(xmlFile, LinqToXsdTypeManager.Instance);
}

public new static CoreFilingMessage Parse(string xml)
{
  return XTypedServices.Parse<CoreFilingMessage, aoc.efiling.ecf.extension.CoreFilingMessageType>(xml, LinqToXsdTypeManager.Instance);
}

public override XTypedElement Clone()
{
  return new CoreFilingMessage(((aoc.efiling.ecf.extension.CoreFilingMessageType)(this.Content.Clone())));
}

private void SetInnerType(aoc.efiling.ecf.extension.CoreFilingMessageType ContentField)
{
  this.ContentField = ((aoc.efiling.ecf.extension.CoreFilingMessageType)(XTypedServices.GetCloneIfRooted(ContentField)));
  XTypedServices.SetName(this, this.ContentField);
  base.SetSubstitutionMember(ContentField);
}

ContentModelEntity IXMetaData.GetContentModel()
{
  return ContentModelEntity.Default;
}

public static new XmlSchemaType CoreFilingMessageSchemaProvider(XmlSchemaSet schemas)
{
  LinqToXsdTypeManager.AddSchemas(schemas);
  XmlSchemaElement element = ((XmlSchemaElement)(schemas.GlobalElements[new XmlQualifiedName("CoreFilingMessage", "http://schema.azcourts.az.gov/aoc/efiling/ecf/extension/2.2")]));
  if ((element != null))
  {
    return element.ElementSchemaType;
  }
  return null;
}

}

from linqtoxsdcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.