Forum Discussion
Hi,
What is your question/issue?
I dont know how to set and where to set request properties in xml.
- ChrisAdams3 years agoChampion Level 3
Hi,
Authentication should be in the headers of your payload.
ReadyAPI/SoapUI make this as easy as it's in the UI for a request....
This can also be applied from the Project level and propagated down to all requests below if you have a licensed copy. If you do have the licensed version, look at environments.
- dsindhumathi3 years agoNew Contributor
Thanks ChrisAdams for replying. Actually I m trying to automate web services in java. I have generated XML at run time and trying to make soap request by passing the xml. But in the code level I dont know where I have to set my username, password and password type. Weather we can insert these details in the xml itself or While creating the object for WsdlProject?. Or any other way to generate dynamic XML and make soap request. Since I am new to SoapUI need some suggestion which is good way to do.
- ChrisAdams3 years agoChampion Level 3
You need to put the authorization in the header part of the XML.
Get it running in SoapUI. Once you do, look at the Request step and the raw tab. The raw tab shows EXACTLY what SoapUI sent to the service. In there, look at the headers and you'll see the authorization hash that SoapUI generated using your user name and password.
Copy that into your Java code and test. Obviously, this breaks if you change your password!
Once you have that working, the I'd suggest using Java to generate the hash.
Related Content
- 2 years ago
- 5 years ago
Recent Discussions
- 57 minutes ago