There is an application that will consume my wcf service but trying to consume the same, the error happens:
HTTP/1.1 415 Can not process the message because the content type 'text / xml; charset = utf-8 'was not the expected type' application / soap + xml; charset = utf-8 '.
Enable help on that enpoint and browse to it (e.g. Http://localhost:port/service1.svc/help). On that page you will see how your request and response should be formated. I think that you are posting in a REST XML format and you should post in SOAP
XML format. Maybe the client is also missing some headers. Hard to say. You will need to post your WCF configuration, request/response examples from help page and raw request from your client for me to give you a straight answer.
Please "Mark As Answer" if the post helped you.
mitja.gti | www.mitjagti.com
atiliosud
Member
71 Points
82 Posts
WCF Problem - text/xml - soap
Aug 16, 2012 06:28 PM|LINK
There is an application that will consume my wcf service but trying to consume the same, the error happens:
HTTP/1.1 415 Can not process the message because the content type 'text / xml;
charset = utf-8 'was not the expected type' application / soap + xml; charset = utf-8 '.
What can I do?
tks
mitja.GTI
Star
11157 Points
2094 Posts
Re: WCF Problem - text/xml - soap
Aug 16, 2012 06:34 PM|LINK
Enable help on that enpoint and browse to it (e.g. Http://localhost:port/service1.svc/help). On that page you will see how your request and response should be formated. I think that you are posting in a REST XML format and you should post in SOAP XML format. Maybe the client is also missing some headers. Hard to say. You will need to post your WCF configuration, request/response examples from help page and raw request from your client for me to give you a straight answer.
mitja.gti | www.mitjagti.com
atiliosud
Member
71 Points
82 Posts
Re: WCF Problem - text/xml - soap
Aug 16, 2012 06:47 PM|LINK
Is an XHarbour Application that will consume my wcf service. I think that only soap is avaialble in this case.
kushalrdalal
Contributor
7130 Points
1273 Posts
Re: WCF Problem - text/xml - soap
Aug 16, 2012 09:08 PM|LINK
Is your wcf service is normal service or REST?
My Blog
LinkedIn Profile