Symantec IGA

“Accept-Language” setting in HTTP Header for TEWS. 

Sep 09, 2015 12:07 PM

Submitting a TEWS request to a multi-language tokenized IME, without any special header info, does show a description in VST which is not dealing with your expected language and so

based on default task.ModifyUser.name of the generic ***-RoleDefinitions_Tokenized.properties:

 

e.g.: From SoapUI, submitting this following modify user request (no HTTP header setting):

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl">

   <soapenv:Header>

      <wsdl:ModifyUserTaskContext>

         <wsdl:admin_id>uid=SuperAdmin,ou=People,ou=Employee,ou=NeteAuto,dc=security,dc=com</wsdl:admin_id>

         <wsdl:admin_password>********</wsdl:admin_password>

      </wsdl:ModifyUserTaskContext>

   </soapenv:Header>

   <soapenv:Body>

      <wsdl:ModifyUser>

         <wsdl:ModifyUserSearch>

         <wsdl:Subject index="0">

               <wsdl:UID>ftarta</wsdl:UID>

            </wsdl:Subject>

         </wsdl:ModifyUserSearch>

         <wsdl:ModifyUserProfileTab>

            <wsdl:employeeNumber>The_Value</wsdl:employeeNumber>

         </wsdl:ModifyUserProfileTab>

      </wsdl:ModifyUser>

   </soapenv:Body>

</soapenv:Envelope>

 

gives the following in VST:

Description field as: "Modify User task, User ftarta"

 

You need to set Accept-Language in HTTP Header with your value, e.g.: fr for French:

002.png

And the result will be the expected one as: "Tâche Modifier un utilisateur : Utilisateur ftarta"

 

If you are in a java custom code then it can be set as following (e.g. for French language):

  Tews6PortType port=locator.getTews6Port();
        String adminid = "nobody";
        Tews6SoapBindingStub stub = (Tews6SoapBindingStub) port;
        if (bIsProtectedBySiteMinder) {
            stub.setUsername("SuperAdmin");
            stub.setPassword("test");
            stub.setMaintainSession(true);
            //stub._setProperty("Cookie","SMCHALLENGE=YES");
           stub._setProperty("Cookie",       new String[]{"SMCHALLENGE=YES", "Accept-Language: fr"});
        } else {
            adminid = "uid=SuperAdmin,ou=People,ou=Employee,ou=imcorp,dc=security,dc=com";
            stub._setProperty("javax.xml.rpc.session.maintain", new Boolean(true));
           stub._setProperty("Cookie", "Accept-Language: fr");
        }

Statistics
0 Favorited
2 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.