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. Web Development
  3. ASP.NET
  4. Content Type Error when trying to access Java Web Server

Content Type Error when trying to access Java Web Server

Scheduled Pinned Locked Moved ASP.NET
wcfcsharpxmlhelpjava
1 Posts 1 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.
  • P Offline
    P Offline
    paas
    wrote on last edited by
    #1

    I am trying to access a Java web service from an ASP.NET application written under Visual Studio 2010. If I just try to retrieve the WSDL using the URL (modified for security) below I receive the error that follows. http://PathToWebService/ServiceName?WSDL

    <error>
    <description>Unable to generate WSDL 1.1 for this service</description>
    <reason>If you wish Axis2 to automatically generate the WSDL 1.1, then please set useOriginalwsdl as false in your services.xml</reason>
    </error>

    If I try to add a service reference for the URL I receive the error at the bottom of this message. Does anyone happen to know what I might be able to try on the ASP.NET end to resolve this issue? Thanks...

    There was an error downloading 'http://PathToWebService/ServiceName'.
    The request failed with the error message:

    --MIMEBoundaryurn_uuid_7831B404AE7996BD4D1329310360131
    Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml"
    Content-Transfer-Encoding: binary
    Content-ID: <0.urn:uuid:7831B404AE7996BD4D1329310360132@apache.org>

    <soapenv:Reason xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Text xml:lang="en-US">The endpoint reference (EPR) for the Operation not found is /ServiceName and the WSA Action = null</soapenv:Text></soapenv:Reason>
    --MIMEBoundaryurn_uuid_7831B404AE7996BD4D1329310360131--
    --.
    Metadata contains a reference that cannot be resolved: 'http://PathToWebService/ServiceName'.
    The content type multipart/related; boundary=MIMEBoundaryurn_uuid_7831B404AE7996BD4D1329310361638; type="application/xop+xml"; start="<0.urn:uuid:7831B404AE7996BD4D1329310361639@apache.org>"; start-info="application/soap+xml"; action="http://www.w3.org/2005/08/addressing/fault" of the response message does not match the content type of the binding (application/soap+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: '--MIMEBoundaryurn_uuid_7831B404AE7996BD4D1329310361638
    Content-Type: application/xop+xml; charset=utf-8; type="application/soap+xml"
    Content-Transfer-Encoding: binary
    Content-ID: <0.urn:uuid:7831B404AE7996BD4D1329310361639@apache.org>

    <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv=&q

    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