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.
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)
Joined: Jan 19, 2009
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: 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.