Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

[WSDL] SOAP-ERROR: Parsing WSDL: Unexpected WSDL element <UsingPolicy>

hi experts,

i have made a webservice of a function module with the wizard, and when i try to call the WS, with

php i receive the following error.

[WSDL] SOAP-ERROR: Parsing WSDL: Unexpected WSDL element <UsingPolicy>

$client = new SoapClient('zpanda.wsdl', array('login' => "XXXXX", 'password' => "fjlkda323fdsk", 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP, 'encoding' => 'utf-8' ));

print($client->ZWsPanda("16814224"));

Can i get some help in this issue?

Thanks for the support,

Cesar Felce

replied

hi,

just do not use WS-Policy. To achieve this change the WSDL-URL fed to the constructor from

... wsdl11/ws_policy/document?sap-client=123

to

... wsdl11/standard/document?sap-client=123

and it works.

have fun,

anton

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question