This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing a secure webservice...plz help

 
Sonia Gun
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sonia Gun
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic