Deserializing a WSE message

Hi Folks,

I'm attempting to usethe following code to deserialize a response message from inside a SoapEnvelope object

wesNS.GetServiceHealthStateResponse response = (wesNS.GetServiceHealthStateResponse)soapEnv.GetBodyObject(typeof(wesNS.GetServiceHealthStateResponse));

The thread just seems to hang indefinitely when it hits this line. I have parsed the SoapBody manually and it contains the correct data.

Any Ideas?
Thanks
Ash

[779 byte] By [AshMcConnell] at [2007-12-26]

.NET Development

Site Classified