Client found response content type of 'multipart/related; but expected 'text/xml'.
-
Hi, When I tried to access a method of webservice, I got the below exception in my windows application(.net 3.5). "Client found response content type of 'multipart/related; but expected 'text/xml'." When I searched, I found the solutions for web applications using MTOM encoding in wsHttpBinding. How can I resolve this issue in windows application(without installing WSE) Thanks in advance.
-
Hi, When I tried to access a method of webservice, I got the below exception in my windows application(.net 3.5). "Client found response content type of 'multipart/related; but expected 'text/xml'." When I searched, I found the solutions for web applications using MTOM encoding in wsHttpBinding. How can I resolve this issue in windows application(without installing WSE) Thanks in advance.
zeyad
-
zeyad
-
Hi, When I tried to access a method of webservice, I got the below exception in my windows application(.net 3.5). "Client found response content type of 'multipart/related; but expected 'text/xml'." When I searched, I found the solutions for web applications using MTOM encoding in wsHttpBinding. How can I resolve this issue in windows application(without installing WSE) Thanks in advance.
Try to use a tool like TCP monitor to check what is being sent over the wire. It could be that you are getting a response like 'authentication failed' which your client is not able to read. You cannot use MTOM without using WSE (unless you are use WCF).
-
Try to use a tool like TCP monitor to check what is being sent over the wire. It could be that you are getting a response like 'authentication failed' which your client is not able to read. You cannot use MTOM without using WSE (unless you are use WCF).
TCP monitor showing the below response " --MIMEBoundary_4a93bd5d7dcbb70d03b467000df991e9537137eb808fad18-- " There is no repsonse with 'authentication failed' I used WCF Service Library project and added the wsdl file as webreference. Still I'm getting the same exception "Client found response content type of 'multipart/related; but expected 'text/xml'"