简体   繁体   中英

Problem calling a SOAP wcf service (.net 4.5.2) from dotnet core in server 2008 r2

I have made a webapi service in dotnet core (I've tried both 2.2 and 3.1).

It is a bridge to an old wcf soap service (.net 4.5.2) and it runs fine when both services are on my win10 dev machine.

When the wcf service is placed on our server (2008 r2), I get this error:

"message": "The content type text/html; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: 'http://testxxxitms-api.xxxbilling.org/Service.svc? disco \\"

The error is that I get an html answer instead of xml and it seems that the reason is that the call is somehow changed to a 'disco' call. The only thing I change in the client, is the endpoint address and it does not contain the disco parameter.

I can call the wcf service with SOAPUI.

What can cause this behaviour?

Thx /Jesper

Thanks a lot Abraham.

Your input led me to try a myriad of solutions. My conclusion is that it will not work on Windows Server 2008.

I have insisted to have the server upgraded to 2012 and now it works :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM