When an array of object is used as the return type or is embedded as part of a parent type in a WCF webservice the object types appearing in the object array should be listed in the ServiceKnownTypeAttribute
[OperationContract]
[ServiceKnownType(typeof(ParameterType))]
[ServiceKnownType(typeof(ConnectorTypeSlot))]
DeviceDescription GetDeviceDescription(int revisionId, int feId);
In the case above the DeviceDescription type has an object[] defined in its object tree and the ParameterType appears as a possible object in that object[].
Wednesday, 12 January 2011
Tuesday, 21 December 2010
Silverlight, iis integrated security etc
To use integrated security for the webservice use the following web.config bindings.
Might also have problems with crossdomain security policies when writing silverlight which consumes a webservice. (ensure server name is same ie ssdintranet versus ssd365w01.uk.parker etc)
Might also have problems with crossdomain security policies when writing silverlight which consumes a webservice. (ensure server name is same ie ssdintranet versus ssd365w01.uk.parker etc)
Thursday, 9 December 2010
Linq Transactions
When using transactions in .net the MSDTC component must be configured to allow network transactions on both the client and server (ie the calling web server and the callee server in my case the chinese server). The following liknk discusses how to setup the MSDTC
http://msdn.microsoft.com/en-us/library/aa561924(v=bts.70).aspx
http://msdn.microsoft.com/en-us/library/aa561924(v=bts.70).aspx
Friday, 3 December 2010
MVC in iis 6
Need to add a Wildcard Application mapping to the Application under Application Configuration
Add a map (use .aspx as ref) to the aspnet_isapi.dll. Note this might impact on website performance.
Add a map (use .aspx as ref) to the aspnet_isapi.dll. Note this might impact on website performance.
Friday, 17 September 2010
Tuesday, 14 September 2010
Monday, 5 July 2010
Subscribe to:
Posts (Atom)