Last post Oct 07, 2013 01:34 AM by Steven Cheng - MSFT
Oct 05, 2013 11:59 AM|jvboyd|LINK
I'm sure this is a basic question. I've written a number of WCF (and ASMX) services with no issues on the client side in the past. Most clients were using MS-based tools i.e. svcutil.exe. I have one JAVA client who is having lots of troubles generating code
on their side from my WCF service. I got through most of their issues by using the NuGet WCFExtrasPlus extension to "flatten" the WSDL (just some extra info in case it helps others reading this post).
I was returning a DataSet object but they can't "handle" that on their side, it comes across in the response XML as type: any. So I changed to returning an XML object.
They (client-side) want the WSDL to contain the schema for that response XML so their tools can generate the class objects for it instead of having to parse the "raw" XML. They don't want JSON.
My question is: How can I have my WCF service place the XSD (XML Schema) in the response portion of the WSDL?
Oct 07, 2013 01:34 AM|Steven Cheng - MSFT|LINK
As for WCF, passing DataSet/DataTable is quite special as they are .NET Framework specific types. therefore, for other non-.NET platform (which consume the service), it is recommended that they parse it as raw XML since DataSet is not quite a good data type
for defining fixed xml schema (for WCF data object serialization).
If you do want to perform some customization on the WCF's generated WSDL metadata document, you can take a look at the WCF WSDL Exporter extension: