VenkatD Posted October 8, 2014 Report Posted October 8, 2014 Hello bayya's oka WSDL undi daniki client create chesi consume cheyyali ...This is the task. I am able to send the request in SOAP UI and able to get the response. But for that request I am manually adding wsse:Security tag and specifying USERNAME & password. Adi secured service anukunta .... Now I generated STUBS, Wrote a java program and trying to call service methods. Inta varaku ok. But aa stubs lo username & password pass cheyyataniki emi java files create avvaledhu ... Oka vela manual ga username & password ela set cheyyali ?? I tried to set using OMFactory omFactory = OMAbstractFactory.getOMFactory(); & SOAPFactory soapFactory = SOAPFactory.newInstance(); But my coschon is HOW TO PASS it to the REQUEST ?? HELP vayyya please ... I tried in all possible ways, no clue :(
afuser Posted October 8, 2014 Report Posted October 8, 2014 It depends on how you have implemented the client code but you can set the credentials in soap header with username and password token using soap handlers. Or if you use spring webservices template for client impl then u can use some callback handlers to set credentials
VenkatD Posted October 8, 2014 Author Report Posted October 8, 2014 It depends on how you have implemented the client code but you can set the credentials in soap header with username and password token using soap handlers. Or if you use spring webservices template for client impl then u can use some callback handlers to set credentials I am able to set bro. But aaa request ki ela pass cheyyali ?? Basic gaa oka method undi & it accepts one requestType argument. aa requestType arg lo only SOAP body ki sambandinchina tags & arguments A unnayee .... HEADER info assalu ledu .... alantappudu How can I pass the HEADER info (SECURITY info)
phoenix_nebula Posted October 8, 2014 Report Posted October 8, 2014 http://forum.spring.io/forum/spring-projects/web-services/110502-how-to-add-a-security-header-to-webservice
afuser Posted October 8, 2014 Report Posted October 8, 2014 I am able to set bro. Anthee .. set where??? But aaa request ki ela pass cheyyali ?? Basic gaa oka method undi & it accepts one requestType argument. aa requestType arg lo only SOAP body ki sambandinchina tags & arguments A unnayee .... HEADER info assalu ledu .... alantappudu How can I pass the HEADER info (SECURITY info) asallu nuvu elaa implement chesava nee webservice client nee .. spring aa? leka calling from jsp/jsf konchamu clear gaa cheppuu ...
VenkatD Posted October 8, 2014 Author Report Posted October 8, 2014 asallu nuvu elaa implement chesava nee webservice client nee .. spring aa? leka calling from jsp/jsf konchamu clear gaa cheppuu ... nenu stared with simple java main program stubs ni include chesukoni work chestunna When I tested in SOAP UI. sent a request & got response. Now I need to send request using java While sending request in SOAP UI also I manually added the security tags, username password. Only then response vastundhi ... Now my only concern is how to add the security things (username, password) through JAVA. RequestType object lo pass chese chance kuda ledu.
Katti_Ramdas Posted October 8, 2014 Report Posted October 8, 2014 usually soap header lone petti pampistaru.. and soap header ni nuvvu read chesi credentials validate cheyachu. SOAPUI ani tool untadi adi use cheyachu for test purpose
Katti_Ramdas Posted October 8, 2014 Report Posted October 8, 2014 annaya nenu kottodini links post cheyyalekunna.. google la send username and password in soap header using java ila kottanu boledu links vachyi you can follow any one
VenkatD Posted October 8, 2014 Author Report Posted October 8, 2014 usually soap header lone petti pampistaru.. and soap header ni nuvvu read chesi credentials validate cheyachu. SOAPUI ani tool untadi adi use cheyachu for test purpose SOAP UI lo working baaa JAVA lo header info ela pass cheyyali ??
Recommended Posts