SOAP Error on Sending with SAAJ0537
-
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?
-
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?
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)
-
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)
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>
-
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>
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>
-
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 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!