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

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};

 採用された回答

Mark
Mark 2011 年 1 月 11 日
編集済み: Randy Souza 2014 年 5 月 16 日

1 投票

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"

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Programming についてさらに検索

製品

質問済み:

2011 年 1 月 11 日

編集済み:

2014 年 5 月 16 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by