Web Service consumption in the SOAP standard with sending XML as a parameter in PHP

1

I'm developing an integration application between my city's prefecture and a system for a company, for optimization of NFS-e generation. It consists of using the City's Web Service to send, using SOAP, XML files to be validated. That is, the passed parameter will be an XML file.

Since I've never created such an application, I'm in doubt as to how to do this. For example:

How do I use the services provided ( link ) and do SOAP communication in PHP? Assuming I have the XML file ready and structured correctly, how do I pass it as a parameter to the Web Service services?

I do not want the solution of anything, only tips and examples that can help me.

    
asked by anonymous 25.11.2017 / 14:32

1 answer

1

Hello, in my opinion this is a very complex topic, if it is NFS-and it is very likely worth using an API / library already made by other people, that is, do not try to do everything from scratch ...

How do I use the services provided ( link ) and make SOAP communication in PHP? == > Using the cURL () functions, see link

Then as a suggestion, check out the existing efforts of the NFePHP community, link (it is the national NF-e plus has NFS-initiatives as well).

    
27.11.2017 / 18:58