PHP SoapClient creating XML references for identical elements, makes it unacceptable for service

前端 未结 4 988
北恋
北恋 2020-12-19 08:17

I am working on a SOAP client in PHP, and the calls are going through to the service fine, with the exception of calls where there are elements that are identical to each ot

4条回答
  •  误落风尘
    2020-12-19 08:45

    • Make sure not use references
    • Try to add params manually with SoapParam
    • Try to add params manually with SoapVar

    $soapClient->__soapCall('Method', array(
        new SoapParam($someelement1, 'someelement'),
        // or
        new SoapVar('name1value1', XSD_ANYXML)
    ));
    

提交回复
热议问题