Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Web Services and the fly likes Web Service Client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service Client" Watch "Web Service Client" New topic

Web Service Client

faisal hameed
Ranch Hand

Joined: Jan 19, 2009
Posts: 48
I want to consume a web service (written in .Net) using java.
I have given the uri of web service i.e. https://myProject/WebServices/WSClientsInfo.asmx
and method DS_ClientsInfo GetClientsInformation(string[] paramIds, DateTime date).
This method is returning a XML file.
My problem is that.
Can i use this web service with given information?if No what information is needed to use it.
Please give me sample code to use this web service and how to pass parameters to web service.
Or give me some useful related links.
Thanks in advance.

Regards, M Faisal Hameed
PUCIT, Pakistan
haishen wang

Joined: Nov 16, 2009
Posts: 2
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577

Hi Faisal,

Can i use this web service with given information?

Yes, you can. With the web services link you got, you can also access WSDL of your service for more details if interested by appending ?wsdl at the end of the url.

give me some useful related links.

You sound like beginner of web services development, if so go through this link FAQ

@Haishen, as readers of this forum are not expecting any non-english postings, do only post in english, thanks.

(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
faisal hameed
Ranch Hand

Joined: Jan 19, 2009
Posts: 48
Thanks for your reply.
I already read this FAQ link.
Now i can build Web Service in java on eclipse and also i can consume those web services.
Now i am getting the following exception while trying to access external WSDL file from Web Service Explorer of eclipse.
I have installed the SSL certificate in my web browser provided by owner of web services.And i can view this file in browser but unable to access in eclipse web service explorer.

IWAB0379E Unable to open
IWAB0135E An unexpected error has occurred.
WSDLException: faultCode=OTHER_ERROR: PKIX path building failed: unable to find valid certification path to requested target

and sometimes i get this exception
Unable to tunnel through the proxy.

Please tell me what should i do?
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577

Hi Faisal,
I never tried importing within Eclipse or any IDE for that matter. Try using SOAP UI, which is most of the web services developers' favourite.
Consider Paul's rocket mass heater.
subject: Web Service Client