MATLAB: Do I need to add -largeArrayDims parameter for MEX on 64-bit in MATLAB 2011a

createclassfromwsdlMATLABwsdl

In Visual Studio I developed a "WCF Service Application". The Application compiles fine and with my web browser I can see the information pages and retrieve the WSDL information. When I try to use CREATECLASSFROMWSDL on the exact same URL however, I first see some URLs successfully being retrieved:
>> createClassFromWsdl('http://localhost:59395/Service1.svc?wsdl') Retrieving document at 'http://localhost:59395/Service1.svc?wsdl'. Retrieving schema at 'http://localhost:59395/Service1.svc?xsd=xsd1', relative to 'http://localhost:59395/Service1.svc?wsdl'. Retrieving schema at 'http://localhost:59395/Service1.svc?xsd=xsd2', relative to 'http://localhost:59395/Service1.svc?wsdl'. Retrieving schema at 'http://localhost:59395/Service1.svc?xsd=xsd0', relative to 'http://localhost:59395/Service1.svc?wsdl'. Retrieving schema at 'http://localhost:59395/Service1.svc?xsd=xsd2', relative to 'http://localhost:59395/Service1.svc?xsd=xsd0'.
But then also the error:
??? Attempt to reference field of non-structure array.
Error in ==> createClassFromWsdl at 45
name = {R.name};

Best Answer

As is documented in the "Using the createClassFromWsdl Function" section: "The createClassFromWsdl function works with WSDL documents that comply with the WS-I 1.0 standard and use one of these forms: RPC-encoded, RPC-literal, Document-literal, or Document-literal-wrapped." By default a WCF Service Application is configured to use the "wsHttpBinding" binding however; this leads to the fact that its WSDL document will not be WS-I 1.0 compliant.
To make sure the WSDL is compatible with MATLAB please configure your WCF Service Application to use the "basicHttpBinding" binding: In your Web.config file find the endpoint entry for your service, for example:
endpoint address=""
binding="wsHttpBinding"
contract="WcfService1.IService1"
Change the binding to "basicHttpBinding":
endpoint address=""
binding="basicHttpBinding"
contract="WcfService1.IService1"