File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP " Watch "java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP " New topic
Author

java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP

Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 206
I have been provided a WSDL file by client.

I have generated client code using that wsdl from netbeans and Jdeveloper 10 R3.

I have created a dummy web service on netbeans using the same wsdl file also.

I am able to call that dummy web service when I write client code using the code generated by Netbeans.
But I get the following exception when I write the invoking code using the client code that is generated by Jdeveloper 10g R3.




i have been looking on internet for past 4 hours, but couldn't locate the possible solution for my problem

Anyone who have encountered this error, please share the solution if known.

Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 206
When I use netbeans to call the original web service (Not the dummy one).

I get the following exception in Netbeans

Exception in thread "main" com.sun.xml.internal.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html Supported ones are: [text/xml]
at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:284)
at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:118)
at com.sun.xml.internal.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:278)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:180)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:83)
at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:105)
at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:587)
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:546)
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:531)
at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:428)
at com.sun.xml.internal.ws.client.Stub.process(Stub.java:211)
at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:124)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:98)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
at $Proxy29.enquire(Unknown Source)
at javaapplication16.JavaApplication16.enquire(JavaApplication16.java:32)
at javaapplication16.JavaApplication16.main(JavaApplication16.java:26)
Java Result: 1
Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 206
Well, I observed that
1. Classes of all kinds that required are not generated (WHEN CLIENT CODE IS GENERATED THRU ORACLE JDEV 10g R3)


We need to use Oracle 11g JDEV and we need to use JAX-WS to generate complete set of client code.

Also regarding the exception mentioend above, we believe that the end point given in WSDL was not correct or was not exposed on internet.

I'll further update this thread, if i get further clarification.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP
 
Similar Threads
Web Service parameter for large xml ?
SL handshake failed: X509CertChainIncompleteErr
confused by PrivilegedActionException
getting exception while invoking service frm client on another system
Web Service parameter for large xml ?