• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Accessing a secure webservice...plz help

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
"To do good, you actually have to do something." -- Yvon Chouinard
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic