laravel / telescope

An elegant debug assistant for the Laravel framework.
https://laravel.com/docs/telescope
MIT License
4.89k stars 586 forks source link

Soap Request and Response are empty in client-requests Payload and response #1520

Open GaneshKandu opened 2 months ago

GaneshKandu commented 2 months ago

Telescope Version

^5.0

Laravel Version

^10.8

PHP Version

8.2.0

Database Driver & Version

No response

Description

I am making this soap request, its successful but i am getting empty data in poyload and response

Payload section

[
]

Response section

HTML Response

My php code

        $response = Http::withHeaders([
            'Content-Type' => 'application/xml',
            'Ocp-Apim-Subscription-Key' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        ])
        ->withBody(
            view('rgi.asia.quote',compact(
                'travel_start_date',
                'travel_end_date'
            ))->render()
            ,'text/xml'
        )
        ->post('http://domain.com/api')->body();

               dd($response);

Please check and fix

Steps To Reproduce

install laravel install telescope write code for soap request make soap request check request and response in your soap

github-actions[bot] commented 2 months ago

Thank you for reporting this issue!

As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.

If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.

Thank you!

ev-gor commented 3 weeks ago

This is not a bug. Telescope doesn't recognize and parse XML that SOAP is based on. I'm not sure if we should implement such support, as SOAP is not a very popular protocol