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 7870819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:43:36+00:00 2026-06-03T01:43:36+00:00

I´m trying to implement a client webservice (AXIS 2 1.6.1) in JBoss 5.1.0 GA.

  • 0

I´m trying to implement a client webservice (AXIS 2 1.6.1) in JBoss 5.1.0 GA.

I´ve generated the stubs and the first invocation (to a mockService) works fine.

Now i want to invoke my web service (without the mockService) and i need to inplement the Basic-Authentication.

I already implements the basic authentication code and i´m almost sure that there isn´t a bug in the code.

HttpTransportProperties.Authenticator basicAuth = new HttpTransportProperties.Authenticator();
basicAuth.setUsername("userName");
basicAuth.setPassword("password");
basicAuth.setPreemptiveAuthentication(true);

stub._getServiceClient().getOptions().setProperty(HTTPConstants.AUTHENTICATE, basicAuth);

Since i can make a invocation using the SOAP UI, i strongly believe that my problem is that i haven´t set my
“WWS-Password Type” and “WWS TimeToLive” (i have the same error message when i disable these properties on the SOAP-UI).

I think that i may need to put a axis2.xml in the server to put these properties but…
When do i put my configuration file (in JBoss)? Or where do i define the path to this file?
Or there is something else?

Thanks all.

Note: I tried unsucessfully this solution:
Adding User/Password to SOAPHeader for WebService client call with AXIS2

My error is:

Exception in thread "main" org.apache.axis2.AxisFault: Internal Error (from server)
    at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
    at  org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
    at myPackage.process(MyStub.java:187)

P.S- Note that the server web service communicate over https.

P.S.2 – Tks Edward

  • 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-03T01:43:37+00:00Added an answer on June 3, 2026 at 1:43 am

    Just for the record, i´ve resolved the problem using the solution in Adding User/Password to SOAPHeader for WebService client call with AXIS2 .

    I had a misspelled tag (in this case, the user tag).

    Thanks a lot.

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

Sidebar

Related Questions

I am trying to implement a simple client for a webservice, the only problem
I am trying to implement a simple client that connects to a give address.
I am trying to implement a voice-cue system for a client where they can
I'm trying to implement a reconnect logic for a wcf client. I'm aware that
I'm trying to implement a very basic chat/echo web page. When the client visits
I am trying to implement a SOAP client to handle electronic reporting of California
im trying to implement simple secured client server communiction using WCF. when im launching
I am trying to implement a bidirectional client-server program, where clients and servers can
I'm trying to implement my own IRC client as a personal proejct and I
I am getting this exception while trying to call SOAP webservice using axis. basically

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.