Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 16th, 2008, 07:25 PM
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling Webservice from application

Hi Guys,

When I try to call a web service from an application, I get the following error message.

Client found response content type of 'text/html', but expected 'text/xml'.

Here's the web service settings of my web.config.
<add key="wsCCRequest.CCRequest" value="http://cr-sit.ba.com/CCRequestService/CCRequest.asmx"/>

Any ideas ?

Thanks
Pr


  #2 (permalink)  
Old October 16th, 2008, 07:37 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Looks like it's not really a web service, in MS terminology.

MS defines a web service as one that takes a SOAP request and returns a SOAP response.

But the more general definition *could* be "any web-based URL that accepts a request, possibly with arguments, and return a response." In which case, yes, a simple text response (HTML or maybe not, maybe just pure text) would qualify. But if you have *that* kind of web service, then the automatic web service handling that VS and .NET give you don't work.

You have a usable URL of the service you are trying to use??
  #3 (permalink)  
Old October 16th, 2008, 09:23 PM
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes this is a working service.

Only thing that changed was a new web site was created on the same webserver after which I started getting these problems.

I also tried <add key="wsCCRequest.CCRequest" value="http://localhost.ba.com/CCRequestService/CCRequest.asmx"/> but that also gave me an error.

Any ideas.

Thanks

Pr

  #4 (permalink)  
Old October 17th, 2008, 03:24 AM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Ahh...sorry...was misled.

No, I have no idea why just adding another site on same server would affect the original site.

Sorry.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
calling c# webservice from VB6 GS Pro VB 6 2 February 26th, 2016 09:28 AM
Error calling a method in the webservice madhusrp .NET Web Services 1 April 12th, 2007 08:54 AM
calling webservice in console app error msrnivas General .NET 1 October 25th, 2006 09:38 PM
Calling COM+ component from webservice yossarian .NET Web Services 0 January 17th, 2005 02:29 PM
Calling WebService from VB6 without use SOAP toolk sanjaykabra82 .NET Web Services 1 February 25th, 2004 08:30 AM



All times are GMT -4. The time now is 04:02 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.