Web service error

  • Thread starter Thread starter Davie
  • Start date Start date
D

Davie

I've got a rather strange problem with accessing web services. This is on
the compact framework with a smartphone app. When i run the application
with my smartphone plugged into my computer the web service is accessed
correctly, (I should point out that this is a proper hosted web service and
not on my localhost). When I unplug the smartphone and run it on my GPRS
connection I have some problems.

I get the following error:

"Server found request content type to be 'text/html'; charset =
Windows-1252', but expected 'text/xml' "

Could this be something to do with the connection time? or is there a
connection limit? I should also point out that the GPRS works fine using
Outlook and all other internet apps on the phone.

I found the following link,
http://blogs.msdn.com/davidklinems/archive/category/5793.aspx but I
wondered if anyone at Microsoft could tell me what's wrong?

Regards,
Davie.
 
Hello Davie,

Normally, when we call a web service and it reutrns error like:

"Server found request content type to be 'text/html'; charset =
Windows-1252', but expected 'text/xml' "

It means the Server side find client send a incorrect soap message. I
suggest you may install some trace tool to check the soap message. This let
us see the actual message sent by client and narrow down the problem.

For such a trace tool, you can install SOAP toolkit 3.0:

http://www.microsoft.com/downloads/details.aspx?FamilyID=ba611554-5943-444c-
b53c-c0a450b7013c&displaylang=en

You can start the Trace utility on server and call the web side via your
smart phone. Then check the log info in Trace utility to see what happened.

Luke
 
For some reason this is working now, (i've not changed anything). The web
services are downloading quite a large amount of data could it be due to
this?
 
I suspect the problem is related to the connection, when it is not stable
and downloading a large amount of data, It may cause such a problem. You
may give more test with large data downloading to see if it happened again.

Luke
 

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

Back
Top