English 中文(简体)
WCF与xsd生成的数据舱一起回收空物体
原标题:WCF-service with xsd generated dataclasses returns empty objects
  • 时间:2012-05-04 19:09:05
  •  标签:
  • wcf
  • xsd
  • wscf

我有一份Xsd-file,为建立全球合作框架提供数据分类(Xsd.exe或WSCF-blue)。

接着,我向“全球合作框架”服务业务增加所生成的类别如下:

MyGeneratedClassOUT operation1(MyGeneratedClassIN request)

When I call that operation from a client, the client gets back MyGeneratedClassOut request filled with null-values, even tough i fill them up server-side.

Does anyone have an idea how to solve this? Could this be a problem in the XSD-file or in the WCF configuration?

最佳回答

这很可能是一个名称问题。 如果请求和答复有相同的名称空间,则与Fiddler进行核对。

问题回答

暂无回答




相关问题
How to validate DataTable with XML Schema?

Does anyone know how to validate a DataTable against a particular DataTable XSD (Schema)? Which would be the best performance-optimized way of doing this? For example: <?xml version="1.0" ...

Deprecated XML validation code problem C#

I m trying to figure out how to correct his deprecated xml schema validation code. public static bool ValidateXml(string xmlFilename, string schemaFilename) { ⁞ //Forward stream reading ...

Getting an object representation of an .XSD file in Java

What is the easiest way to obtain a statically typed representation of an XML schema (.XSD) in Java? More specifically I want to be able to programatically traverse all defined simpleType:s and ...

xmlserializer validation

I m using XmlSerializer to deserialize Xml achives. But I found the class xsd.exe generated only offers capability to read the xml, but no validation. For example, if one node is missing in a document,...

regex for four-digit numbers (or "default")

I need a regex for four-digit numbers separated by comma ("default" can also be a value). Examples: 6755 3452,8767,9865,8766,3454 7678,9876 1234,9867,6876,9865 default Note: "default" ...

热门标签