• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

getting exception while invoking service frm client on another system

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
prob resolved..
thanx.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?!?!!
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic