Forums Register Login

how can I set the username and password of a https web service within java cxf generated client?

+Pie Number of slices to send: Send
I have created client code of an https web service using soapUI and apache-cxf-2.7.2. There is a class named MYService_BasicEndpoint_Client.java which contains this method:


But when I run it the result is http response 401 (Unauthorized) because there isn't any option to set username and password of https web service. But I can run test case of this service within soapUI because there is an option to set username and password for endpoint. how can I set them within the code above which created by soapUI and apache-cxf-2.7.2?
+Pie Number of slices to send: Send
Welceomt to the Ranch
I think that question is too difficult for “beginning” so I shall move it.
+Pie Number of slices to send: Send
Hi

I also have the same question. where have you moved it to?

regards
Krtik
Yes, of course, and I accept that blame. In fact, i covet that blame. As does this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1191 times.
Similar Threads
Https connection with CXF
CXF Apache: null pointer problem with my reponse
Web Services Using Axis and Eclipse, SSL Handshaking Problem
Web service + xml + java
web of knowledge
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 00:21:28.