-
1. Re: wsconsume, how to access HTTP Basic secured WSDL
harald.kirschner Jun 3, 2013 3:48 AM (in response to j_ri)Hi Jochen,
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,
Harald
-
2. Re: wsconsume, how to access HTTP Basic secured WSDL
j_ri Jun 3, 2013 3:59 AM (in response to harald.kirschner)Hello Harad,
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,
Jochen
-
3. Re: wsconsume, how to access HTTP Basic secured WSDL
harald.kirschner Jun 7, 2013 2:14 AM (in response to j_ri)Hi Jochen,
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;
bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, USER);
bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, PASSWORD);
Maybe it helps for you, too.
Regards,
Harald
-
4. Re: wsconsume, how to access HTTP Basic secured WSDL
j_ri Jun 10, 2013 3:24 AM (in response to harald.kirschner)Hello Harald,
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.
Best regards,
Jochen
-
5. Re: wsconsume, how to access HTTP Basic secured WSDL
harald.kirschner Jun 10, 2013 3:27 AM (in response to j_ri)Hi Jochen,
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!
Harald
-
6. Re: wsconsume, how to access HTTP Basic secured WSDL
asoldano Jul 12, 2013 12:07 PM (in response to harald.kirschner)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/