Forum Discussion

Koopman_Interna's avatar
Koopman_Interna
Contributor
13 years ago

Using proxy with incorrect content-type

Hello,

I am trying to use the proxy to see the Soap traffic that our app is generating. The client side code is mostly generated by EGL tools.

My problem is that soap requests going from client to server have an incorrect content-type of text/plain (while it should be text/xml).

I see the traffic coming by, but I cannot analyse it because the content-type is wrong.
I can only see the traffic as 'HTML' where all tags are stripped. XML pane is blank.

Is there a workaround for this situation?

2 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello!

    I had an idea for a solution but it won't work until our internal issue SOAPUI-2585 is resolved.

    So currently no, unfortunately not.

    Henrik
    SmartBear Sweden
  • Alas, no luck then.

    BTW, I was mistaken that the content was xml though.
    Actual request is like this:

    POST http://nidxacc:20062/RepeatOrderWeb/___proxy HTTP/1.1
    Host: nidxacc:20062
    Proxy-Connection: keep-alive
    Referer: http://nidxacc:20062/RepeatOrderWeb/RepeatOrderDashboard-en_US.html?showToscaErrorCombo=true
    Content-Length: 886
    Origin: http://nidxacc:20062
    User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 Safari/535.1
    Content-Type: application/jsonrequest;charset=UTF-8
    Accept: */*
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: nl-NL,nl;q=0.8,en-US;q=0.6,en;q=0.4
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
    Cookie: PurchaseOrderEntryLogonCurrentUser=TZU; REPEATORDER_BUYER_LOGON=MST; JSESSIONID=00003j-v5nanjJuV6eS4ncuBBsP:-1

    {"uri":"","queryParameters":{},"method":"POST","body":"{\"bindingName\":\"IProductService\",\"method\":\"getProduct\",\"params\":[{\"context\":{\"languageCode\":\"en\",\"defaultLanguageCode\":\"en\",\"mutCallStack\":\"\",\"organizationalUnit\":0,\"userId\":\"\"},\"productIDNumberView\":{\"id\":0,\"productNumber\":\"ABT000010\"}}],\"EGL_PARAMETER_ORDER\":\"request response _return\",\"binding\":{\"type\":\"WebBinding\",\"interfacename\":\"com.koopmanint.purchasing.productmanagement.entities.interfaces.IProductService\",\"name\":\"IProductService\",\"wsdlLocation\":\"wsdl\\\/ProductService.wsdl\",\"wsdlService\":\"ProductServiceService\",\"wsdlPort\":\"ProductService\",\"uri\":\"http:\\\/\\\/nidxacc:20062\\\/PurchasingEntityServices\\\/services\\\/ProductService\"}}","headers":{"EGL_TIMEOUT":120000,"EGLSOAP":"RepeatOrderWeb","Content-Type":"application\/json; charset=UTF-8"}}

    So it is application/json for the request (where there is no JSON pane for the request, so I have to read the Raw request pane.
    And the response is:

    HTTP/1.1 200
    Date: Thu, 01 Sep 2011 12:29:58 GMT
    Server: WebSphere Application Server/7.0
    Transfer-Encoding: chunked
    Content-Type: text/plain; charset=utf-8
    Content-Encoding: gzip
    Content-Language: nl-NL

    Followed by gibberish because it is zipped. In the HTML tab I see stuff that looks like JSON. But the JSON tab says <Not JSON content>.
    It starts with:
    {"headers" : {}, "status" : 200, "statusMessage" :"OK","body" : "{\"result\" :

    Important point: In the top grid, the columns Interface and Operation are -unknown-. So filtering on operation is not possible for me.

    Extra point to make: Ctrl-F gives a Find window, but it only searches in the Top grid? I was trying to search in the response, but that did not work.