Hello Experts, I have to expose a SOAP API where I have to enable the username and password WS security while exposing my API. I tried adding the custom authentication and while importing the xsd file I am getting an error as mentioned below. "The 'http://schemas.xmlsoap.org/ws/2002/04/secext:Security' element is not supported in this context." at line 5 column 2 Content Present in XSD file : <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema" > <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext"> <wsse:UsernameToken> <wsse:Username>Username</wsse:Username> <wsse:Password>Password</wsse:Password> </wsse:UsernameToken> </wsse:Security> </xs:schema> Kindly let me know what has to be changed, Answers are really much appreciated!