Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Client found response content type of 'multipart/related; but expected 'text/xml'.

Client found response content type of 'multipart/related; but expected 'text/xml'.

Scheduled Pinned Locked Moved C#
csharpxmlhelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NarVish
    wrote on last edited by
    #1

    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.

    U A 2 Replies Last reply
    0
    • N NarVish

      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.

      U Offline
      U Offline
      User 8865434
      wrote on last edited by
      #2

      zeyad

      N 1 Reply Last reply
      0
      • U User 8865434

        zeyad

        N Offline
        N Offline
        NarVish
        wrote on last edited by
        #3

        Was the reply typed by mistake?

        1 Reply Last reply
        0
        • N NarVish

          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.

          A Offline
          A Offline
          Abhinav S
          wrote on last edited by
          #4

          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).

          N 1 Reply Last reply
          0
          • A Abhinav S

            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).

            N Offline
            N Offline
            NarVish
            wrote on last edited by
            #5

            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'"

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups