|
-
January 30th, 2008, 01:36 PM
#1
C# (VS 2003) Consuming webservice
i'm consuming a Webservice (created in java) in .Net 2003 (in C#)... whenever i invoke the webmethod, i'm getting below error message
"Additional information: Client found response content type of 'text/html;
charset=ISO-8859-1', but expected 'text/xml'."
but when the same webservice is called from SOAPUI (an open source
application from www.soapui.org) or XMLSpy - it just works fine...
so i'm confused about this, any suggestions??
Cheers
Venu
Venu Bharadwaj
"Dream it. U can do it!"
-
January 30th, 2008, 01:48 PM
#2
Re: C# (VS 2003) Consuming webservice
Your WebService is retruning the WRONG content type in the header. The other programs are simply more "forgiving" than .Net. If you want to avoid problems fix the header so it is properly reporting that the response is xml and not reporting that the response is html.
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|