facebook

No credentials available for NTLM @intranet

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #292379 Reply

    Scott
    Member

    I 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?

    #292454 Reply

    Brian Fernandes
    Moderator

    Stanlick,

    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.

    #297444 Reply

    pcable
    Member

    I 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.aspx

    Any other suggestions?

    #297445 Reply

    pcable
    Member

    PS – 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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: No credentials available for NTLM @intranet

You must be logged in to post in the forum log in