Client found response content type of '', but expected 'text/xml'. with Wse 2.0

P

powerranger

I created a very simple application which calls a ws which in turns
call another ws and return true. In my Windows application, I have
the following code on the click event


public localhost.Service1 p = new localhost.Service1();
bool test = p.test();

In the Web Service1, I have the following code which calls another Web
service...

[WebMethod]
public bool test()
{
localhost.Auth auth = new localhost.Auth();
bool test = auth.test();
return test;
}


[WebMethod]
public bool Auth()
{ return true; }

I don't undertand why it gave me an error saying:
"System.InvalidOperationException: Client found response content type
of '', but expected 'text/xml'." Thank you for your help!
 

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

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top