Error when adding wsp:policy to wsdl file

Questions about XML that are not covered by the other forums should go here.
Posts: 1

Error when adding wsp:policy to wsdl file

Tue Jun 17, 2014 12:14 pm


I am new to oxygen - and are working with webservice, eg. wsdl, ws-security and policies. However when adding wsp:policy to our wsdl file the error below occurs:

cvc-complex-type.2.4.a: Invalid content was found starting with element '{"":Policy}'. One of '{"":service, "":import, "":types, "":message, "":portType, "":binding}' is expected.
System ID
Main validation file
Engine name
Start location
line: 435, column: 5
End location
line: 435, column: 15
Additional info

Are we missing something ?

Aage Nielsen
Posts: 2471

Re: Error when adding wsp:policy to wsdl file

Tue Jun 17, 2014 3:01 pm


Please note that currently (v16.0) Oxygen does not support ws-security and policies.

However, from what I've tested, the WSDL validation in Oxygen does not complain about the wsp:Policy.
In what context are you using wsp:Policy and get that error? Could you please provide a simple code snippet?

Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 1 guest