سؤال

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?

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top