WinCE.Net 4.1 EMULATOR / C# / Webservice client / SoapException

I

Ital1

Hello all

I have coded a C# client that runs on .Net Compact Framework 1 SP3

The C# code runs perfectly on a basic desktop .Net Framework 1.x : The
webservice's methods reply to my Windows CE.Net 4.1 client without
matter...

The same C# code runs on a WinCE.Net *emulator* but I have a
"SoapException" error, but nothing else are in the members of the
SoapException class... There's just the
SoapException.Message="SoapException".

On a real WinCE.Net device, this code runs perfectly, and the responses
from server are well got by the real device.


To see if the responses from the server are well got by the emulator, I
have installed Ethereal on the PC that runs the WinCE.Net 4.1 emulator
(+ VS.NET 2003 PRO)... And... I see that the server replies well to my
emulator... Well, to the desktop PC that runs the emulator. But these
replies seem not to be forwarded to the emulator... Or if they are well
forwarded to the emulator, so this latter cannot parse the response...


Questions :
Why do the replies from server arrive to the PC running the emulator,
but these are not recognized by (or not forwarded to) emulator ?
Is this a bug (Probably it is) and is there a workaround for us to keep
working on the windows ce.net 4.1 emulator (our real devices are .net
cf 4.1) ?

Thank you very much for you help.
 
I

Ital1

Maybe this could help resolve this issue... Not sure about the validity
of the information I'm just gonna post... But in case someone would get
in the same situation, this could be a point of start in investigating
this problem :

Action done on the Win CE.NET 4.1 platform :
HTTP Proxy added in IE configuration + "USE LAN" checked.

Exception thrown by VS.NET 2003PRO just after calling a WS Method :
-------
Microsoft Development Environment
An unhandled exception of type 'System.InvalidOperationException'
occured in System.Web.Services.dll
Additional information: Server found request content type to be
'text/html', but expected 'text/xml'.
-------

What this message could mean : Maybe that the Web.Services.dll does not
work properly (I've written MAYBE) and would not correctly format the
web service request...
I very NOT sure about this, because of the sniffing of data with
Ethereal that shows that a response is well sent by the server, with
the good data !

Hope that I'm not shooting in the dark (AM I ? :) )

See you all



Ital1 a écrit :
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top