File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting exception while invoking service frm client on another system

 
Mohit Goyal
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2939
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
prob resolved..
thanx.
 
Me Le
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic