I am trying to create a standalone client to consume some web services. I must add my username and password to the SOAP Header. I tried adding the credentials as follows:>
Also, if you're using Maven to build your project, you'll need to add the following dependency:
com.sun.xml.ws jaxws-rt {currentversion}/version>
This provides you with the class com.sun.xml.ws.developer.WSBindingProvider.
com.sun.xml.ws.developer.WSBindingProvider
Link: https://mvnrepository.com/artifact/com.sun.xml.ws/jaxws-rt