Comments (2)
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.
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)
- Streaming? HOT 2
- Codegen bugs HOT 1
- Duplicate enums are not generated HOT 6
- Modify the LinqToXsd program such that it will emit one xml namespace to one corresponding c# file. HOT 13
- Empty namespace is not mapped when generating config file HOT 1
- The content model inheritance is broken for types derived by restriction.
- Composite content model code is not generated.
- Missing null check in a ToXTypedElement of XTypedServices.cs
- maxOccurs="unbounded", is not respected for elements in choice block
- Eager/deferred/lazy? HOT 1
- error CS1061: 'object' does not contain a definition for 'TypeDefinition' HOT 8
- Generated code doesn't compile if an element is named Content HOT 3
- LinqToXsd config -e file.xsd does not gather all sub-namespaces
- Integrate core xml.xsd into the LinqToXsdCore library
- No globa:: prefix for BuildWrapperDictionary
- Nice to have: Load and Parse overloads with LoadOptions
- Parsing error when nullable elements with empty value and "xsi:nil"=true attribute HOT 3
- Schema versioning?
- [regression in v3.4.3+] error CS0108: OneField of ParentType hides inherited member OneField of ChildType HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linqtoxsdcore.