cancel
Showing results for 
Search instead for 
Did you mean: 

Authentification failed

Former Member
0 Kudos

Hi all!

I create my web service and I chose HTTP authentification mechanism. After that in Visual Administrator for my portal I configurated Web Service Security in URL I put string connection like in logical port for example:

http://epaw008:50000/GetSAPClient/Config1?style=document

in Logon data I selected Authentification - BASIC and put user name and pass. But when I try test my web services authentification failed and no any message shows me. Why??

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Srinivasan T maybe do you know how I can set property for my SOAP protocol for JAX-RPC with bacis authen with pair parametrs user/pass. For the client side I have some stub file for example:

public class Config1BindingStub extends com.sap.engine.services.webservices.jaxrpc.wsdl2java.BaseGeneratedStub implements com.epam.samara.client.AuthClient.VIFacadeBeanDocument,com.sap.engine.services.webservices.jaxrpc.wsdl2java.dynamic.DynamicInterface

And in function getClient() I must maybe to use some set parameters sequence wich will be determinate my security connection. This code for this function:

public com.epam.samara.client.AuthClient.types.GetClientResponse getClient(com.epam.samara.client.AuthClient.types.GetClient parameters) throws java.rmi.RemoteException {
    try {
      super._beginLogFrame();
      // Operation input params initialization
      this.inputParams = new ServiceParam[1];
      this.inputParams[0] = new ServiceParam();
      this.inputParams[0].isElement = true;
      this.inputParams[0].schemaName = new QName("urn:VIFacadeBean","getClient");
      this.inputParams[0].name = "parameters";
      this.inputParams[0].contentClass = com.epam.samara.client.AuthClient.types.GetClient.class;
      this.inputParams[0].content = parameters;
      // Operation output params initialization
      this.outputParams = new ServiceParam[1];
      this.outputParams[0] = new ServiceParam();
      this.outputParams[0].isElement = true;
      this.outputParams[0].schemaName = new QName("urn:VIFacadeBean","getClientResponse");
      this.outputParams[0].name = "parameters";
      this.outputParams[0].contentClass = com.epam.samara.client.AuthClient.types.GetClientResponse.class;
      // Operation faults initialization
      this.faultParams = new ServiceParam[0];
      com.epam.samara.client.AuthClient.types.GetClientResponse parametersTemp;
      this.transportBinding.setTypeMappingRegistry(this.typeRegistry);
      this.transportBinding.startOperation(this.inputParams,this.outputParams,this.faultParams);
      // Binding Context initialization
      this.bindingConfiguration.clear();
      bindingConfiguration.setProperty("soapAction","");
      bindingConfiguration.setProperty("style","document");
      bindingConfiguration.setProperty("transport","http://schemas.xmlsoap.org/soap/http");
      PropertyContext bindingConfigurationX;
      bindingConfigurationX = bindingConfiguration.getSubContext("output");
      bindingConfigurationX.setProperty("operationName","getClient");
      bindingConfigurationX.setProperty("use","literal");
      bindingConfigurationX = bindingConfiguration.getSubContext("input");
      bindingConfigurationX.setProperty("operationName","getClient");
      bindingConfigurationX.setProperty("use","literal");
      bindingConfigurationX.setProperty("parts","parameters");
      super._fillEndpoint(bindingConfiguration);
      _buildOperationContext("getClient",this.transportBinding);
      this.transportBinding.call(this.stubConfiguration,this.globalProtocols,_getOperationProtocols("getClient"));
      _setEndpoint((String) bindingConfiguration.getProperty(com.sap.engine.services.webservices.jaxrpc.wsdl2java.ClientTransportBinding.ENDPOINT));
      parametersTemp = (com.epam.samara.client.AuthClient.types.GetClientResponse) this.outputParams[0].content;
      return parametersTemp;
    } catch (javax.xml.rpc.soap.SOAPFaultException e) {
      throw e;
    } catch (java.lang.Exception e) {
      throw new RemoteException("Service call exception",e);
    } finally {
      super._endLogFrame("getClient");
    }
  }

Former Member
0 Kudos

Hi,

Sorry! I am not aware of it.

Regards

Srinivasan T

Former Member
0 Kudos

If I change config file in souce code and do redeploy it work without authentification

Former Member
0 Kudos

Hi,

So it has become clear that the user authentication mechanism fails to work. Go thru relevant documents and take up necessary configuration steps.

Regards

Srinivasan T

Former Member
0 Kudos

Hi,

No it does't work. I remove all config in VA for security, but my service ask me again user/password

Former Member
0 Kudos

Hi Srinivasan T

I always have installed all jars in this derectory, but no effect. And a don't ues Web Dynpro application too.

Former Member
0 Kudos

Hi,

Check whether the web service works after removing the selection of BASIC authentication in VA. If it works, then we can assume some problem in the user authentication mechanism.

Srinivasan T

Former Member
0 Kudos

No it doe's not work with inluding jar achive in .ear project srinivasan_t!

Former Member
0 Kudos

Hi,

Check whether you have added the following jar files, other than the said above:

tc_sec_compat.jar

tc_sec_destinations_interface.jar

tc_sec_destinations_service.jar

tc_sec_jaas.jar

tc_sec_ssf.jar

tc_sec_userstore_lib.jar

In the Web Dynpro Reference, add tcsecdestinationsinterface and tcsecdestinationsservice.

Regards,

Srinivasan T

Former Member
0 Kudos

Hi srinivasan_t.

Where I can get this libs? In my portal directory? I can't find it. And how about if I add client in Web services Security in DynimicWSProxies by my hand, and not with Deploytable Proxy Project. I use Standalone Proxy Project for connect with WS. Maybe it influences on authentication.

Former Member
0 Kudos

Hi,

You will find those jar files in the undermentioned path in the system where WAS is installed:

c:\usr\sap\<SID>\JC00\j2ee\cluster\server0\bin\ext\security.class

Regards

Srinivasan T

Former Member
0 Kudos

Hi,

Add the following jar files in the Java Build Path,

tc_sec_https.jar

(ii) tc_sec_saml_util.jar

Then rebuild+redeploy the web service.

Hope this helps.

Regards,

Srinivasan T