Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: How to set https headers in webservice client generated by axis2

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to set https headers in webservice client generated by axis2

    Hi,

    We have developed a new webservice using axis2. Can any one expalin how to set http headers in soap request?


  2. #2
    Member
    Join Date
    Nov 2013
    Location
    Bangalore, India
    Posts
    69
    My Mood
    Cool
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Default Re: How to set https headers in webservice client generated by axis2

    Tell me the steps you tried. This forum is not for spoon feeding instead to help out if you are struck.

  3. #3
    Junior Member
    Join Date
    Jun 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to set https headers in webservice client generated by axis2

    Quote Originally Posted by dineshj83 View Post
    Tell me the steps you tried. This forum is not for spoon feeding instead to help out if you are struck.
    Hi Dinesh,

    We tried below option, but it did not worked out. Please tell me if you have any thoughts.

    // Create an instance of org.apache.commons.httpclient.Header
    Header header = new Header();
    header.setName("user");
    header.setValue("admin");
    list.add(header);

    options.setProperty(org.apache.axis2.transport.htt p.HTTPConstants.HTTP_HEADERS, list);
    client.setOptions(options); */

Similar Threads

  1. Images are not visible In HTTPS.
    By hashitagarwal in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 18th, 2012, 12:24 PM
  2. Replies: 0
    Last Post: September 21st, 2012, 11:11 AM
  3. Axis2 WebService Using Spring
    By sjunejo in forum Web Frameworks
    Replies: 0
    Last Post: July 21st, 2011, 09:01 AM
  4. Get dataset from .Net webservice by java desktop client
    By doikhongcodon in forum Member Introductions
    Replies: 1
    Last Post: December 23rd, 2010, 09:12 PM
  5. Set headers for HttpServletRequest object?
    By FailMouse in forum Web Frameworks
    Replies: 3
    Last Post: December 1st, 2010, 02:00 PM