WSE3 unable to DeSerialise ByteArrays on properties?
- From: "Ciaran Jessup" <ciaranj@xxxxxxxxx>
- Date: 27 Feb 2007 07:49:14 -0800
Hi,
I've recently come across an issue with WSE3 being apparently unable
to de-serialise a property on an object I'm exposting as a WSE3 web-
service in the following way:
private byte[] hashField;
[System.Xml.Serialization.XmlElementAttribute(DataType="hexBinary",
ElementName="hash")]
public byte[] Hash {
get {
return this.hashField;
}
set {
this.hashField = value;
}
}
WSE3 seems capable of Serialising this object out to XML successfully,
but appears unable to DeSerialise the XML back into an object graph,
when I attempt to do this, I'm presented with an exception as follows:
System.Web.Services.Protocols.SoapException:
System.Web.Services.Protocols.SoapException: Server was unable to
process request. ---> System.InvalidOperationException: There is an
error in the XML document. ---> System.NotImplementedException: The
method or operation is not implemented.
at
Microsoft.Web.Services3.Mime.XopDocumentReader.ReadElementContentAsBinHex(Byte[]
buffer, Int32 index, Int32 count)
at
System.Xml.Serialization.XmlSerializationReader.ReadByteArray(Boolean
isBase64)
at
System.Xml.Serialization.XmlSerializationReader.ToByteArrayHex(Boolean
isNull)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSoapHttpClientProxy_2168166a147e4781998f342797a51b45.Read15_WorkItem(Boolean
isNullable, Boolean checkType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSoapHttpClientProxy_2168166a147e4781998f342797a51b45.Read35_WorkItemList(Boolean
isNullable, Boolean checkType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSoapHttpClientProxy_2168166a147e4781998f342797a51b45.Read52_executeWorkItemSearchResponse()
at
Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer33.Deserialize(XmlSerializationReader
reader)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)
Is this the expected behaviour of attempting to De- serialise XSD
hexBin types, or should I be doing something special with my
Attributes?
Many thanks
- Ciaran
.
- Prev by Date: Re: caching the UsernameToken
- Previous by thread: Re: caching the UsernameToken
- Index(es):
Loading