SOAP-ERROR: Encoding: Violation of encoding rules?

前端 未结 11 519
夕颜
夕颜 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 04:05

    I had the same problem when trying to pass XML as a parameter to one of my webservices. Wrapping the XML data in got rid of the SOAP-ERROR: Encoding: Violation of encoding rules and everything worked fine.

    Other details:
    1. The parameter was defined as xsd:string as well.
    2. WSDL was document/literal.
    3. Using built in SOAP class with php 5.2.10.

提交回复
热议问题