I am pretty new to SOAP and have a question. I used SoapUI tool to test a wsdl and everything works fine.
The server I use is a WebSphere server and would need a username and password for accepting a request, I had to set the username, password and WSS-Password Type (had to set it to "PasswordText") in the request properties in soapUI for the server to accept it while I was testing the service.
I wonder how would I be able to do the same in my SOAP client code which is generated using wsimport tool.
Without the authentication I would be just using the generated client code directly as shown below.
MyServiceImpl serverInstance = new MyServiceImpl();
MyService serviceInterface = serverInstance.getMyServicePort();
MyServiceDataInput requestToServer = new MyServiceDataInput();
requestToServer.setSomeParameters("...");
MyServiceResponse response = serviceInterface.callMyService(requestToServer);
Where in my client would I now be able to specify this is the username and password you need to use?
Any help would be appreciated.