cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

hi I have the same error. Ihave made this change to standard

http://atsetcro.heller-s.local:8000/sap/bc/srt/wsdl/sdef_Z_SRM_WE/wsdl11/ws_standard/document?sap-client=300&wsdl=1.1&mode=sap_wsdl

now getting the error

Invalid Response Code: (500) WSDL could not be generated. The requested URL was:"http://atsetcro.heller-s.local:8000/sap/bc/srt/wsdl/sdef_Z_SRM_WE/wsdl11/ws_standard/document?sap-client=300&wsdl=1.1&mode=sap_wsdl

Former Member
0 Kudos

hi,

In the transaction soamanager, in the business adminsitration tab, click on WebServices Administration.

Search for your webserice, apply the selection, then select the "Open WSDL document for selected binding"

and thats the url of the wsdl, and then change it for standard.

regards,

Cesar Felce