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. Java
  4. SOAP Error on Sending with SAAJ0537

SOAP Error on Sending with SAAJ0537

Scheduled Pinned Locked Moved Java
xmlhelpjavahtmlwcf
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.
  • O Offline
    O Offline
    omlac
    wrote on last edited by
    #1

    Hi everyone im getting the following error message when i try to send a SOAP request. does anyone know how to fix it. im using SAAJ0537. java.security.PrivilegedActionException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?

    N A 2 Replies Last reply
    0
    • O omlac

      Hi everyone im getting the following error message when i try to send a SOAP request. does anyone know how to fix it. im using SAAJ0537. java.security.PrivilegedActionException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #2

      Are the cleint and server both using the same SOAP message versions?


      Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre Have a bit more patience with newbies. Of course some of them act dumb -- they're often *students*, for heaven's sake. -- (Terry Pratchett, alt.fan.pratchett)

      O 1 Reply Last reply
      0
      • N Nagy Vilmos

        Are the cleint and server both using the same SOAP message versions?


        Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre Have a bit more patience with newbies. Of course some of them act dumb -- they're often *students*, for heaven's sake. -- (Terry Pratchett, alt.fan.pratchett)

        O Offline
        O Offline
        omlac
        wrote on last edited by
        #3

        Thanks very much for your response, here is the soap request im sending <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> SOAP-ENV:Header/SOAP-ENV:Body <ans1:readLS xmlns:ans1="http://phonedirlux.homeip.net/types"> <String_1 xsi:type="xsd:string">your message or e-mail</String_1> </ans1:readLS> </SOAP-ENV:Body> </SOAP-ENV:Envelope>

        O 1 Reply Last reply
        0
        • O omlac

          Thanks very much for your response, here is the soap request im sending <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> SOAP-ENV:Header/SOAP-ENV:Body <ans1:readLS xmlns:ans1="http://phonedirlux.homeip.net/types"> <String_1 xsi:type="xsd:string">your message or e-mail</String_1> </ans1:readLS> </SOAP-ENV:Body> </SOAP-ENV:Envelope>

          O Offline
          O Offline
          omlac
          wrote on last edited by
          #4

          I have added the faultcode to cater for version differences but still getting the same error message. im using the following as my url for the msg: to "http://www.pascalbotte.be/rcx-ws/rcx"; <?xml version="1.0" ?> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> env:Header env:Upgrade <env:SupportedEnvelope qname="ns1:Envelope" xmlns:ns1="http://www.w3.org/2003/05/soap-envelope"/> </env:Upgrade> </env:Header> env:Body env:Fault <faultcode>env:VersionMismatch</faultcode> <faultstring>Version Mismatch</faultstring> </env:Fault> </env:Body> </env:Envelope>

          1 Reply Last reply
          0
          • O omlac

            Hi everyone im getting the following error message when i try to send a SOAP request. does anyone know how to fix it. im using SAAJ0537. java.security.PrivilegedActionException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?

            A Offline
            A Offline
            all_in_flames
            wrote on last edited by
            #5

            A valid SOAP response would be formatted using text/xml, so what is likely occurring is a standard HTTP 500 response error is being returned by the service (which would by default have a text/html content-type). You might want to double check that the request you're sending is valid and conforms to the contract of the service you're attempting to reach. Hope this helps!

            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