Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT - Deployable Web Service Proxy gets an unauthorized message

Former Member
0 Kudos

Hello Guys!

I had developed a deployable web service proxy that is called from a servlet. The web service is secured by a basic authentication. My servlet instantiates the proxy and I set the stub like the code bellow:

Maintenance myMaintenance = (Maintenance)ctx.lookup("java:comp/env/MaintenanceWSProxy");
MaintenanceViDocument port = (MaintenanceViDocument)myMaintenance.getLogicalPort("MaintenancePort_Document", MaintenanceViDocument.class);			
 
port._setProperty("javax.xml.rpc.security.auth.username", "user");
port._setProperty("javax.xml.rpc.security.auth.password", "password");

But when I call the servlet, an exception is thrown:

407 - Unauthorized

Somebody knows what is happened?

Thanks a lot!

Best regards,

Marcelo

1 REPLY 1

Former Member
0 Kudos

Hi Marcelo ,

407 indicates a Proxy Authentication error

have a look at this link:

<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html</a>

Ragards,

Talimeren