I do have the same problem. Could you solve this problem already? Because I do not know how to fix it!
Thanks for your help,
unfortunately I couldn't solve it;-(
We use a workaround now: My colleagues from SAP development package the WSDLs und put them in our company (NEXUS based) maven repository. We (the Java dvelopers) take it from there using the maven-dependency-plugin.
This also has the advantage of using a "fix" version....
Hope this idea helps you,
I solved the problem:
UtilitiesDeviceERPSmartMeterCreateConfirmation_In_Service_Impl stub = new UtilitiesDeviceERPSmartMeterCreateConfirmation_In_Service_Impl();
UtilitiesDeviceERPSmartMeterCreateConfirmation_In_PortType request = stub.getUtilitiesDeviceERPSmartMeterCreateConfirmation_BNDG();
BindingProvider bp = (BindingProvider) request;
Maybe it helps for you, too.
thanks, but I think your solution is for using the generated webservice(-stub) and setting username/password in your client code to do the "runtime" authentication, right?
My problem is that the WSDL is secured and the maven plugin cannot access the WSDL. So I cannot generate the stubs/ports.
OK, I see! Maybe you just have to set
<sysproperty key="javax.xml.rpc.security.auth.username" value="your_username" /> <sysproperty key="javax.xml.rpc.security.auth.password" value="your_password" />
I use these settings when generating client stubs with weblogic! Maybe they work for JBoss, too!
Currently, you'd need to make a local copy of the protected wsdl file and let wsconsume consume that. Btw, that's what JBoss Wise (http://www.jboss.org/wise) does, see classes at http://anonsvn.jboss.org/repos/wise/core/tags/wise-core-2.0.2.Final/core/src/main/java/org/jboss/wise/core/client/impl/wsdlResolver/