This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes getting exception while invoking service frm client on another system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "getting exception while invoking service frm client on another system" Watch "getting exception while invoking service frm client on another system" New topic
Author

getting exception while invoking service frm client on another system

Mohit Goyal
Ranch Hand

Joined: Nov 09, 2003
Posts: 65
hi all...

i have built a web service using axis..and deployed it on a machine. now i created a client using both jdeveloper and axis but i keep getting exceptions.

On the local system it works fine but as soon as i try to call it frm a client on other system.. which has generated the code using the same wsdl..it keeps throwin exceptions.

In JDeveloper it throws the following exception:

java.rmi.RemoteException: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: HTTPClient.AuthSchemeNotImplException: Negotiate; nested exception is:
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: HTTPClient.AuthSchemeNotImplException: Negotiate
at mypackage.runtime.SyncTradeLicenseSoapBinding_Stub.syncTradeLicense(SyncTradeLicenseSoapBinding_Stub.java:91)
at mypackage.SyncTradeLicenseClient.syncTradeLicense(SyncTradeLicenseClient.java:41)
at mypackage.Test1.main(Test1.java:32)
Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: HTTPClient.AuthSchemeNotImplException: Negotiate
at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:93)
at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:89)
at oracle.j2ee.ws.client.ClientTransportException.<init>(ClientTransportException.java:33)
at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:131)
at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:112)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:166)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:108)
at mypackage.runtime.SyncTradeLicenseSoapBinding_Stub.syncTradeLicense(SyncTradeLicenseSoapBinding_Stub.java:75)
... 2 more


plz help!!!
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Potentially you need to provide authentication with a remote request by setting the following properties:
javax.xml.rpc.security.auth.username
javax.xml.rpc.security.auth.password

In a Java client you have to do it manually:


In a J2EE client the container should be set up to do it for you.

A proxy can also cause problems and the solution tends to be vendor specific, e.g.:

AxisProperties.setProperty("http.proxyHost", "123.123.123.123");
AxisProperties.setProperty("http.proxyPort", "1234");
AxisProperties.setProperty("http.proxyUser", "username");
AxisProperties.setProperty("http.proxyPassword", "password");

Client Side Axis
Mohit Goyal
Ranch Hand

Joined: Nov 09, 2003
Posts: 65
prob resolved..
thanx.
Me Le
Greenhorn

Joined: Jun 26, 2007
Posts: 1
Hi,
I know this is old post but I could not find one that suits more

I'm trying to use web services, created in java, in asp.net application. Can anybody help me how to send authentication information and how to find out what is user name and password?!?!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting exception while invoking service frm client on another system
 
Similar Threads
java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP
javax.xml.soap.SOAPException: Unable to internalize message
confused by PrivilegedActionException
deserialization ERROR
SL handshake failed: X509CertChainIncompleteErr