Hello,
I created a custom connector that sends a request to a SOAP Web Service.
For this reason I created two input parameters, a SOAPAction parameter that will contain the action to execute on the server, and the body that contains the actual xml string. I can correctly use the connector from Postman, and from the Connector's Test Tab, and I receive an xml string in response.
When calling the connector directly from powerapps, using
CustomConnector.Action({SOAPAction: "soapAction", body: xmlString})
nothing works anymore. I receive a "500 Internal Server Error" without any error message. The request seen from the PowerApp Monitor Tool is correct:

and if I copy the exact same request and insert it into Postman, it works without any issue.
In order to debug further, I created a flow that calls the custom connector's action, and it works as expected.
So the question is, has anyone any idea whatsoever about why the whole thing is behaving this way? I have been trying everything I know, including monitoring the request from Developer Tools, and it returns a "SOAP message is invalid!" error, even though the request's headers and body contain the correct data.
Any help would be greatly appreciated, thanks in advance.
Have a nice day!