Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8677399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:26:49+00:00 2026-06-12T20:26:49+00:00

I want to consume .Net WS from IBM WebSphere. I created a WS-client with

  • 0

I want to consume .Net WS from IBM WebSphere.

I created a WS-client with JAX-WS IBM implementation that consumes a .Net WS on IIS. The client is on SUSE and the authentication is by NTLM with Windows Server 2003 Active Directory.

  • If the client is executed in command line the implementation calls java.net.Authenticator to get the credentials and the request is succesful.

  • If the client is executed inside RAD the Authenticator is not called and it fails with 401.

  • If the client is executed inside WebSphere the Authenticator is not called and it fails with 401.

  • If I create an HttpConnection directly to the .Net WS URL the Authenticator is called and the request is succesful.

  • If instead of JAX-WS IBM implementation I use the Axis2 (directly, not IBM Axis2 JAX-WS implementation) I could pass to the Axis2 client the Authenticator object and the request is succesful. This only works for NTLM protocol with Windows Server 2003. When we migrate to Windows Server 2008 the auth protocol is NTLMv2 (everybody is moving to NTLMv2 because security issues with NTLM) and the request fails because NTLMv2 is not supported by the HTTP Client 3.X that is the dependency of Axis2. And for some time they are not going to migrate.

If I use other implemetation of JAX-WS than IBM I loose the console administration and the automatic annotation reading, plus to loose support from IBM.

Questions

I don´t get why inside of RAD it didn´t work, is the same program that works from command line.

How do you make JAX-WS IBM implementation authenticate with NTLMv2 protocol support with specific credentials? (java.net.Authenticator provides you with this, and it should be called … it does not)

Is the any way to make IBM JAX-WS implemetation to use another HTTP client than the standard one?

Even the IBM JVM implementation provides NTLM auth (this is the reason why the command line and the direct HttpConnection executions works) so I don´t get why they don´t use it for the IBM WS stack.

Plus points

Is there any good way to provide bidirectional ability to consume WS with the ActiveDirectory authentication?

Comment

Spring WS uses HttpClient 4.X that supports NTLMv2 auth, but I need a JAX-WS implementation and it should be the IBM one. The IBM JAX-WS only seems to support Basic AUTH. I don´t get how the Microsoft WS interop is not important for IBM.

References

Authenticator conf:

http://docs.oracle.com/javase/6/docs/api/java/net/Authenticator.html#setDefault%28java.net.Authenticator%29

https://stackoverflow.com/a/5994706/14811

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T20:26:50+00:00Added an answer on June 12, 2026 at 8:26 pm

    Finally, this is what I did.

    I create the JAXB objects with the RAD plugin to create a JAX-WS client. I use the generated DTOs as the messages that I pass to the Spring WS library. Spring WS 2.1 comes with Http Client 4.2 that brings NTLMv2 support.

    I created an small library to make this process easier, but the procedure idea is:

    1. Generate the JAX-WS client with RAD
    2. Create a class that implements the service interface generated by RAD
    3. For each interface method:
    4. 3.1 Inject the interface method’s parameters to the JAXB object
    5. 3.2 Pass this object to the WebServiceTemplate (Spring object) web service call.
    6. 3.3 Cast the call response to the JAXB method response object
    7. 3.4 Return the inner value of the response object

    So, what you finally do is reuse the object generation for a JAX-WS client to wrap the service method’s parameters into the object that Spring WS needs to make the call.

    For NTLM authentication set NTCredentials to the WebServiceTemplate sender.

    Axis2 1.7 will have support for NTLMv2 with updated version of the HttpClient 4.2.X, but there is no release date yet.

    See:

    • WebServiceTemplate WS call

    http://static.springsource.org/spring-ws/sites/2.0/apidocs/org/springframework/ws/client/core/WebServiceTemplate.html#marshalSendAndReceive%28java.lang.Object%29

    • WebServiceTemplate sender

    http://static.springsource.org/spring-ws/sites/2.0/apidocs/org/springframework/ws/client/support/WebServiceAccessor.html#getMessageSenders%28%29

    • NTCredentials

    http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/auth/NTCredentials.html


    Update: I tested Axis 1.7 and the NTLM auth works well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an asp.net web service that I want to consume from another asp.net
I want to consume a .NET web-service that will accept SQL statement, for example:
I want to consume a web service that is running on the local machine
I want to consume a webservice and show that answer in tabhost on android.How
I have a wcf serivce I want to consume from a j2me application (blackberry).
i want to consume a php Webservice from C# which is protected by htaccess.
I'm creating a WCF service which I want to consume from a Java app.
I have a web service defined in .Net and I want to consume it
I am developing a RESTful WCF service which I then want to consume from
I've built an application that uses jQuery and JSON to consume an ASP.NET .asmx

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.