Using Guzzle to consume SOAP

后端 未结 4 1974
夕颜
夕颜 2021-02-12 04:24

I\'m loving the Guzzle framework that I just discovered. I\'m using it to aggregate data across multiple API\'s using different response structures. It\'s worked find with JSON

4条回答
  •  一个人的身影
    2021-02-12 05:29

    IMHO Guzzle doesn't have full SOAP support and works only with HTTP requests. src/Guzzle/Http/ClientInterface.php Line:76

    public function createRequest(                                              
        $method = RequestInterface::GET,                                        
        $uri = null,                                                            
        $headers = null,                                                        
        $body = null,                                                           
        array $options = array()                                                
    ); 
    

    Even if SOAP server is configured to negotiate on port 80 I think php SoapClient is more appropriate solution here as it supports WSDL

提交回复
热议问题