Forum Discussion

azamatsmith's avatar
azamatsmith
New Contributor
12 years ago

How do I take my SOAP UI call and use it in HTML?

Background - New SOAP UI user, new to web services
Environment- Connecting to a webservice using username and password credentials and returning requested data from the method used in the call

I would like to know how to take this call and apply to a web application. I would then return the information in a text box in the web application also. Is this possible? My understanding of SOAP UI is that it is a way to test web services, but I don't know how to use that information to create my own in HTML. If there is a way to see exactly what SOAP UI sends to the webservice that would be very helpful.

I hope I explained this in a way that you can understand what I need help with. Thank you.
  • Hi,

    If there is a way to see exactly what SOAP UI sends to the webservice that would be very helpful.



    Look at the Raw tab in the request editor.


    Going to the SoapUI website http://www.soapui.org/ is a good start for learning about SoapUI.
  • Ok here's what the raw tab says:
    POST "https://mywebsvr HTTP/1.1"
    Accept-Encoding: gzip, deflate
    Content-Type: text/xml; charset=UTF-8
    SOAP Action:""
    User-Agent: Jakarta Commons-HttpClient/3.1
    Content-Length: 209
    Authorization:Basic "encodedstring"
    Host: "mywebsvr"

    Here is what I would like to do:
    send an xmlhttprequest to the server. So would I add all of these fields as headers to my xmlhttprequest ?
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    what you provide are http headers
    in the request editor, by default, the source xml is display. On the left, you have vertical tab selection which allow you to select the "raw" tab (see screenshot below)