I am facing same problem. here is the my trace. Without web service client code, I am trying to form SOAP request xml using java and send request to web service endpoint.
SEVERE: SAAJ0008: Bad Response; Cannot process the message because the content type 'text/xml' was not the expected type 'application/soap+xml; charset=utf-8'.
Error occurred while sending SOAP Request to Server
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad response: (415Cannot process the message because the content type 'text/xml' was not the expected type 'application/soap+xml; charset=utf-8'.
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(Unknown Source)
at com.optus.idm.util.BaseBean.getPinStatus(BaseBean.java:220)
at com.optus.idm.util.BaseBean.main(BaseBean.java:247)
Caused by: java.security.PrivilegedActionException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad response: (415Cannot process the message because the content type 'text/xml' was not the expected type 'application/soap+xml; charset=utf-8'.
at java.security.AccessController.doPrivileged(Native Method)
... 3 more
Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad response: (415Cannot process the message because the content type 'text/xml' was not the expected type 'application/soap+xml; charset=utf-8'.
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.post(Unknown Source)
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(Unknown Source)
... 4 more
When I copy generated XML from java and use it with SOAP UI, its perfectly fine but when I send using java soap connector, its throwing above error. Please help me