SOAP-ERROR: Encoding: Violation of encoding rules?

前端 未结 11 520
夕颜
夕颜 2021-01-02 03:42

Guys, I\'m stuck, banging my head off the desk for the past few hours.

I am trying to consume a service, and I have 8 other functions that I call that are almost IDE

11条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-02 03:55

    I had the same problem and I resolved using this syntax for __soapCall:

    ...
    $params = new SoapParam($data, 'parameters');
    
    $response = $this->__soapCall('methodName', 
        array(new SoapVar($data, XSD_ANYTYPE, 'parameters'))
      );        
    ...
    

    Instead of

    __soapCall('methodName', array($params)
    

提交回复
热议问题