File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service Client" Watch "Web Service Client" New topic
Author

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
Greenhorn

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.


Cheers,
Naren
(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 https://trade.ncel.pk/ncel.webservices/wstradedata.asmx?WSDL.
IWAB0135E An unexpected error has occurred.
WSDLException
WSDLException: faultCode=OTHER_ERROR: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Service Client