0

I have an xsd-file with which I generate dataclasses (with xsd.exe or WSCF-blue) for building a WCF-service.

Then I add the generated classes to the operations in the WCF-service like this:

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?

Mathieu
  • 3,073
  • 1
  • 19
  • 25
  • 1
    check the wire response in Fiddler or WCF logging - does it contain values or nulls? also compare the namespace between the response and request to see if client and server are in sync – Yaron Naveh May 04 '12 at 22:02
  • It was a namespace problem. The ServiceContract and the datamembers had a different namespace! – Mathieu May 05 '12 at 09:41
  • great - I would appreciate if you can mark my suggestion as answer... – Yaron Naveh May 05 '12 at 10:44

1 Answers1

0

This is most probably a namespace issue. Check with Fiddler if the request and response have the same namespaces.

Yaron Naveh
  • 23,560
  • 32
  • 103
  • 158