Pranav Mandlik
Pranav Mandlik

Reputation: 644

want to implement SOAP API (server) in laravel

i want to write a web service that will just return some data from my database its in below format

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<AgentDetails xmlns="http://cdlmsp.prasware.com/distribution">
<UserID>xyz</UserID>
<Name>aabbcc xxyyzz</Name>
<PhoneNumber>00998890900</PhoneNumber>
<EmailAddress>[email protected]</EmailAddress>
</AgentDetails>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I want to write soap server for this i failed to find any packages for writing soap api with laravel can any one suggest some good packages or any ideas?

Upvotes: 1

Views: 5276

Answers (1)

viewflex
viewflex

Reputation: 11

This should do the trick: viewflex/zoap (for Laravel and Lumen) turns any class into a WS-I compliant SOAP web service, with automatic discovery and generation of WSDL definitions. It includes a demo service already configured as an example, with a collection of Postman requests including tests.

Upvotes: 1

Related Questions