- This topic has 3 replies, 3 voices, and was last updated 15 years, 7 months ago by pcable.
-
AuthorPosts
-
ScottMemberI have created a WS Client using the XFire generator and everything seems to have generated correctly. However, when I attempt to run the ListsClient, I receive the following stack trace:
Dec 17, 2008 3:22:06 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: ntlm authentication scheme selected
Dec 17, 2008 3:22:06 PM org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: No credentials available for NTLM <any realm>@intranet2:80
Dec 17, 2008 3:22:06 PM org.codehaus.xfire.transport.http.HttpChannel sendViaClient
SEVERE: Server returned error code = 401 for URI : http://intranet2/sites/ISGovernance/ittopics/_vti_bin/Lists.asmx. Check server logs for details
Exception in thread “main” org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Server returned error code = 401 for URI :Any clues?
Brian FernandesModeratorStanlick,
The service you are trying to connect to seems to be protected by HTTP authentication. You would need to modify the generated code to specify a username and password. You should find an article covering this here: http://xfire.codehaus.org/Articles
If you don’t have a specific reason to use XFire, I would recommend using JAX-WS to generate the client instead as the XFire framework itself is no longer being developed.Hope this helps.
pcableMemberI am experiencing this same problem.
I am accessing a .NET WS that is using Http Authentication:
<authentication mode=”Windows” />
<authorization>
<allow roles=”~~theRole~~”/>
<deny users=”*”/>
</authorization>I then setup my Java XFire WS Client (created through Wizard in MyEclipse 6.0.1.GA – not sure how to develop through wizard for JAX-WS).
The security for the Client was setup following this article: http://www.targetprocess.com/support/Web_services_api/Web_services_java.aspxAny other suggestions?
pcableMemberPS – quite a few of the articles in the http://xfire.codehaus.org/Articles are not working. From the ones I reviewed, I didn’t see any that seemed like they were discussing this issue.
-
AuthorPosts