This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes how can I set the username and password of a https web service within java cxf generated client? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "how can I set the username and password of a https web service within java cxf generated client?" Watch "how can I set the username and password of a https web service within java cxf generated client?" New topic
Author

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

nazila naderi
Greenhorn

Joined: Mar 05, 2013
Posts: 1
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?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38052
    
  22
Welceomt to the Ranch
I think that question is too difficult for “beginning” so I shall move it.
Kartik Mahadevan
Ranch Hand

Joined: Feb 16, 2005
Posts: 47
Hi

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

regards
Krtik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can I set the username and password of a https web service within java cxf generated client?
 
Similar Threads
Https connection with CXF
Web service + xml + java
web of knowledge
Web Services Using Axis and Eclipse, SSL Handshaking Problem
CXF Apache: null pointer problem with my reponse