| Author |
java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP
|
Yogesh Gandhi
Ranch Hand
Joined: Dec 05, 2008
Posts: 176
|
|
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: 176
|
|
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: 176
|
|
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.
|
 |
 |
|
|
subject: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP
|
|
|