WSDL, XSD's and WCF
There is a wsdl file and some xsd's for describing the services (actually there's just one operation in the service called doOFX) and I used the 'svcutil' tool to make the code for the client and server communication.
The doOFX is the operation contract and it has a message as a parameter and a message as a result. Both the parameter and the result types are created as a message contract by the tool, which i suppose it's fine. Each of this types have 2 headers and 1 body.
Calling the operation with a message that only has the headers initialized works just fine, but when i try to send a message with the body initialized, i get the following exception message:
Error in deserializing body of request message for operation 'doOFX'.
Any ideas on what could it be?
Thx in advance..
PS: This is the stacktrace i get:
System.ServiceModel.FaultException`1 was unhandled
Message="Error in deserializing body of request message for operation 'doOFX'."
Source="mscorlib"
StackTrace:
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at OFXWebServicePortType.doOFX(doOFXRequest request)
at OFXWebServicePortTypeClient.OFXWebServicePortType.doOFX(doOFXRequest request) in C:\OFX\NEWAGE2\Client\Client\OFXWCF.cs:line 36626
at ConsoleApplication1.OFXAdapter.ListarCuentas() in C:\OFX\NEWAGE2\Client\Client\OFXAdapter.cs:line 45
at ConsoleApplication1.Program.Main(String[] args) in C:\OFX\NEWAGE2\Client\Client\Program.cs:line 12
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

