473,573 Members | 3,036 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webservices on Smartphoe problem

Hi all,

I have written a webservice which I am using in my smartphone applicaiton.
I have tried the webservice with a WinForms client and it works time and time
again perfectly. When I include it in my smartphone application, it will
work the first time and return ther query set, however when i try it again i
get the following error :

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

At first I thought it was my Webservice, but by virtue of the fact it works
fine from the web and fine from the WinForms app, I dont see how it can be.
In another twist when I include the service in the project and run it through
the eumulator with "Pass throught" internet, the service works perfectly
everytime.

Am i missing something????

Regards

Nov 23 '05 #1
1 2153
Hi Mike,

The error indicates that the request is mal-formed for a SOAP request. Try
tracing the request on the wire (using trace.axd). You can add a tracing
web service extension to your app and then see the entire request/response
in the trace.axd display. You can find several of these as samples on
gotdotnet.com.

If the error is being thrown by the server, it means the calling app is not
sending the right HTTP header for a SOAP message. If the server is
throwning an error page back to the client, the proxy will display a very
similar error, so it pays to examine the trace to see what is happening on
the wire.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: Webservices on Smartphoe problem
thread-index: AcTjk1e7NZF0OO+ hQMWGf3yTUtEApw ==
X-WBNR-Posting-Host: 81.86.240.211
From: "=?Utf-8?B?TWlrZQ==?=" <Mi**@discussio ns.microsoft.co m>
Subject: Webservices on Smartphoe problem
Date: Thu, 16 Dec 2004 09:19:04 -0800
Lines: 21
Message-ID: <79************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :8130
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi all,

I have written a webservice which I am using in my smartphone applicaiton.
I have tried the webservice with a WinForms client and it works time and
time
again perfectly. When I include it in my smartphone application, it will
work the first time and return ther query set, however when i try it again
i
get the following error :

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

At first I thought it was my Webservice, but by virtue of the fact it works
fine from the web and fine from the WinForms app, I dont see how it can be.

In another twist when I include the service in the project and run it
through
the eumulator with "Pass throught" internet, the service works perfectly
everytime.

Am i missing something????

Regards
Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
6189
by: Nalla | last post by:
Hi, I have a requirement to call webservices from my old C++ application.So first I tried with Vc++.net as follows.....There are 2 approach Dotnet frame work and soaptoolkit 3.0 I am not able to interact with webservice thru c++.I think ther is a bug in MS implementation for c++ to interact with webservice because I am able to connect to the...
3
1610
by: Prozon | last post by:
Hi! I have problem naming my webservices. One of the problem is that I got naming conventions between my webservices and dataset that the services uses. Can someone please give me a good example of how to name a webservice-class which handles articles for example? And what is a good name for the "corresponding" dataset/s used? By now the...
2
1962
by: Antuane | last post by:
any one have any idea how transactions could be enabled in webservices. i.e., suppose i've got 2 methods - one to add a contact, & the other to set some miscellaneous details for the contact, in a webservice. Now the client uses the above two methods & if the client is happy with the return values of the above two methdos, ONLY then are the...
0
1532
by: Pasho | last post by:
hi I have been facing problem using C# webservices (secured using SSL). In my webservice(secured with SSL) It works fine if I try to access data from database through dataset. If I try to confirm the dataset with schema using following line ds.ReadXMLSchema(schema) and then access data through dataset schema is a url to my xsd file....
2
1839
by: jkupch | last post by:
We have published a dataset through WebServices. Our .Net developers have no problem accessing the data. However, some of our clients use MSACCESS or EXCELL and would like to access the dataset. Is there a way to easily connect to the WebServices from these applications?
8
3999
by: Komandur Kannan | last post by:
We have a smart device application running on handhelds(Symbol MC9000G). The backend is Oracle and a middle tier web services development done in Vb.net. We use pessimistic Locking due to specific business needs When such a lock is made for a transaction (this code is in the web service) and the handhelds are terminated abnormally (cold...
3
4472
by: Frederik Wehlin | last post by:
Hi, I'm currently developing a windows form application, which should be able to communicate with a couple of WebServices. The Webservices are not created by me or my company and also not in .net but WebMethods (Java I suppose). The first Issue that I have is when instantiating one of webservices I get a "Method myMethod can not be reflected"...
1
2130
by: linda.chen | last post by:
This is the first project I worked in Visual Studio .NET 2005. I created a webservices by asp.net 2.0. The webservice works correctly in my development environment. When I published the webservice to the default website, even to the same machine (my default website already has a webservices but written in asp.net 1.1), I got the following...
3
1639
by: Seth Williams | last post by:
I have done some new development on older files, locally - then I copy the files, along with the .vb files for the webservices, to our DEV server. Now, mysteriously, no web services are running - I did find that some of the disco/wsdl files referenced the wrong webservice website, and I changed them, but no webservices for this application...
0
7783
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8029
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8204
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7794
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8068
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6424
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5600
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5293
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3735
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.