Forum Discussion

MFlawn's avatar
MFlawn
Occasional Contributor
11 years ago

[Registered] HTTP Post in SOAPUI

Hey guys, I apologise in advance if this is overly convoluted and ambiguous but I will attempt to be as precise and clear as I can.

I have a TestCase setup in my SOAPUI project with the follow elements:



I start off by creating a DataSource which stores all of the necessary information for the "GetServiceVarAnn" request to process. The purpose of this request is to download announcements (audio files) from the designated server.

GetServiceVarAnn returns the following information in the XML response:



What I am interested in extracting from this response is the URL, MaxDuration and the Reference. In order to do this, I am using another DataSource (XML) to store this data using the following:



What I need to do with is pass the "Reference" in a HTTP post to the server to download the relevant audio file. I've tried to do this using SOAP's HTTP Request below but I am getting an error that I resolve for the life of me. I've tried approaching the guys who have access to the web server's logs but we haven't been able to isolate any problems. The failed responses I get to the actual server are below (these use HTTPS):



However, when I run the same POST request to another test server using a regular HTTP, the request goes through just fine and I can even trace it to check for its contents (using WireShark):





Can anyone please help?

8 Replies

  • MFlawn's avatar
    MFlawn
    Occasional Contributor
    Hey there,

    It seems like I am not getting any exceptions that I can see. There are no errors in the error log but here's the http log for the POST request.

  • Hi,

    I see that its a 500 error, I suppose you require authentication to access the page or do you need to access the web service via proxy? I would suggest you to check with the developers on your end.

    Thanks,
    Jeshtha
  • MFlawn's avatar
    MFlawn
    Occasional Contributor
    Our Server is Windows 2003 running Cold Fusion 10

    For test purposes I have created a simple cold fusion test page (testpage.cfm) that will accept a HTTP post containing a parameter called “download_reference”.
    We can successfully post to this page from my web browser using a form (index1.htm) however when I post to the same page using SOAP UI we receive Server Error 500 in the response.


    After comparing the contents of a working HTTP post vs the one generated by the SOAP UI tool, I can see that there is an unwanted extra line included in the HTTP request generated but SOAP UI tool as indicated by the arrow in the network trace below.

    SOAP UI Generated POST


    Working HTTP POST

    Using the same HTTP Post body as above but with the additional Line removed and Content-Length Adjusted accordingly I received 200 OK back from my server.


    This looks like it may be a bug in the SOAP UI tool although some Web Servers handle this better than others. Any chance this might get fixed in the SOAP UI Tool any time soon? Or suggestions on workarounds?
  • Hi,

    Is it necessary to check the post query string check button? Can you uncheck that and try?

    Thanks,
    Jeshtha
  • MFlawn's avatar
    MFlawn
    Occasional Contributor
    Thank you for your reply, we have tried with and without this option ticked, both options generate the same response.