Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

URGENT - Deployable Web Service Proxy gets an unauthorized message

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

Not what you were looking for? View more on this topic or Ask a question