wso2 / product-micro-integrator

The cloud-native configuration driven runtime that helps developers implement composite microservices.
https://wso2.com/integration/
Apache License 2.0
204 stars 221 forks source link

[Bug]: Sending a SOAP request to the SimpleStockQuoteService in AxisServer returns an empty response body for 202 status code #3391

Open ShammiL opened 4 months ago

ShammiL commented 4 months ago

Description

When calling SimpleStockQuoteService in AxisServer using the wsdl file located in https://github.com/wso2-docs/WSO2_EI/blob/master/samples-protocol-switching/sample_proxy_1.wsdl through a proxy service returns an empty response with 202 status code.

[2024-07-02 15:57:35,406] INFO {access} - - 127.0.0.1 - [02/Jul/2024:15:57:35.403 +0530] "- - " 202 - "-" "-" [2024-07-02 15:57:35,412] INFO {LogMediator} - {proxy:SimpleStockQuoteProxy} To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:648b0eca-824b-4582-b601-7ac65aebac1a, correlation_id: 3999604a-0d7e-4915-b34e-a4f48470b5c9, Direction: request, name = *****, Envelope: <?xml version='1.0' encoding='utf-8'?></soapenv:Body/></soapenv:Envelope> [2024-07-02 15:57:35,412] INFO {access} - - 127.0.0.1 - [02/Jul/2024:15:57:35.360 +0530] "- - " 202 - "-" "-"

Steps to Reproduce

Follow the documentation for Using WSDL Endpoint.

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

ShammiL commented 4 months ago

The reason for the above:

When the placeOrder resource used in the above example is called by a client, the server console would display the following message:

samples.services.SimpleStockQuoteService :: Accepted order #1 for : 18398 stocks of IBM at $ 172.23182849731984

but would not send a proper response or terminate the connection from the server side. Hence the client would hang waiting for a responde before timing out.