aspose file tools*
The moose likes Web Services and the fly likes Accessing a secure webservice...plz help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Accessing a secure webservice...plz help" Watch "Accessing a secure webservice...plz help" New topic
Author

Accessing a secure webservice...plz help

Sonia Gun
Greenhorn

Joined: Oct 15, 2004
Posts: 10
I am new to webservices. I managed to learn things by looking at code and examples from various websites. But in my project I am running into a problem and feels like i am all shoot in the dark.

Here is my problem:
on a button click my program grabs the user-defined data, accesses a webservice with the values as parameters and dispalys the response. Even though the soap envelope has all required information response from the webservice is " the parameter is incorrect". Later i learnt that the webservice needs authentication. I have the access information but do not know how to do this in the backend. I cannot pass the value in the soap envelope header. I tried and it comes back with the same error message. please help me with this.
Dharamvir (DV) Punia
Ranch Hand

Joined: Oct 04, 2004
Posts: 34
Hi,
I am not sure what approach you are using to make calls to webservive but using RPC, this is how you can call and pass security credentials:


-DV
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Sonia,
Welcome to Javaranch.
We have one simple small request, could you please edit and change your display name according to this policy http://www.javaranch.com/name.jsp


Spritle Software Blogs
Sonia Gun
Greenhorn

Joined: Oct 15, 2004
Posts: 10
All I have from the vendor is a WSDL File. I know the method name i need to access and i have the username an password. When I typr the url in the browser, it pops up a window for u/name and p/w. On authenticating my credentials, it will allow access to wsdl. There is no other authentication mechanism indicated in the WSDL. Can I safely assume that the authetication mechanism is not happening at application level and that it is at transport layer level.
Dharamvir (DV) Punia
Ranch Hand

Joined: Oct 04, 2004
Posts: 34
Hi,
I would assume security is enabled on the webservice which could be synchronized with the server but that's just a guess. Try making a call to webservice using tcp/ip monitor and see if security information is sent in the header if not then it could just be the server.

-DV
Sonia Gun
Greenhorn

Joined: Oct 15, 2004
Posts: 10
its at HTTP level. I posted another message in this forum to get an example of the webservice client. My implementation has to be on SAAJ. please provide me an example if you can. Running with a critical time frame.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing a secure webservice...plz help