I have been able to successfully use the JAX-RPC EA1 implementation in the
past. But, after moving to another development environment with identical
code, I am getting the following exception when I try to access a method on
the webservice implementation class:
My client code is:
================
CIWSWrapper_Stub stub =
(CIWSWrapper_Stub) (new
ClaimInquiryWebServiceImpl().getCIWSWrapper());
stub._setTargetEndpoint("
http://localhost:8840/ciws/ciws/CIWSWrapper");
// I GET EXCEPTION ON THE BELOW STATEMENT
claimInquiryXML =
stub.getClaimSummaryByPolicyNumber(baos.toString());
The exception I get is:
================
java.rmi.RemoteException: HTTP transport error:
java.lang.UnsupportedOperationException: HttpURLConnection.writeRequests(1);
nested exception is:
HTTP transport error: java.lang.UnsupportedOperationException:
HttpURLConnection.writeRequests(1)
HTTP transport error: java.lang.UnsupportedOperationException:
HttpURLConnection.writeRequests(1)
at
com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.j
ava:169)
at
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:59)
at
com.enc.ciws.wrapper.CIWSWrapper_Stub.getClaimSummaryByPolicyNumber(Unknown
Source)
at
com.enc.claimsinquiry.beans.claimsservices.ClaimsServicesBean.searchByPolicy
Number(ClaimsServicesBean.java:3479)
at
com.enc.claimsinquiry.beans.claimsservices.ClaimsServicesBean.search(ClaimsS
ervicesBean.java:3129)
at
com.enc.claimsinquiry.beans.claimsservices._ClaimsServices_Impl.search_WCC(_
ClaimsServices_Impl.java:340)
at java.lang.reflect.Method.invoke(Native Method)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:236)
at sun.rmi.transport.Transport$1.run(Transport.java:147)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:143)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7
01)
at java.lang.Thread.run(Thread.java:479)
Any help will be greatly appreciated.
Thanks.
- Niket.