This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
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
Joined: Oct 04, 2004
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.
Joined: Oct 15, 2004
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.