JAVA code needed to consume AXIS web Service that Returns XML File

Posted on 2012-08-20
Medium Priority
Last Modified: 2012-09-01
I am new to JAVA (usually code in .net) and would like a code example that accomplishes the following,

I need to connect to the AXIS web Service using a UserName and Password
I need to pass 3 parameters to the Web Service (See attached WDSL file that shows parameters)
I need to pass/save the returned data as an XML file. The Returned data is binary and is octet encoded.

Please could someone help me as I'm new to JAVA an it will take me forever to try and figure out how to do this. Thanks
Question by:QGSmith
  • 3
  • 2
LVL 10

Assisted Solution

by:krishna kishore mellacheruvu venkata
krishna kishore mellacheruvu venkata earned 1000 total points
ID: 38314570

Author Comment

ID: 38316488
I have modified the sample found here :


but now how do I pass a User Name and Password using Basic Authentication ?

LVL 10

Assisted Solution

by:krishna kishore mellacheruvu venkata
krishna kishore mellacheruvu venkata earned 1000 total points
ID: 38316804
If this is the destination webservice URL

you need to give as


Note you need to ask the destination about input parameters for userName and Pasword.

Accepted Solution

QGSmith earned 0 total points
ID: 38339844
Thanks for all the reponses but I am out of my depth here. I can't come right even with the tutorials. I am now trying to put together a web services call from within the .net environment and will post any questions to the .net support group. Thanks

Author Closing Comment

ID: 38356923
Did not come right.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month15 days, 1 hour left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question