+ Start a Discussion

How to convert below code to apex! please...........

Hi all ! How to convert below code to apex! logic please...........


<oas:Password Type=>test</oas:Password>


gets its values from the data generated in test.cs , please convert this logic to APEX.




What do you want to do with that exactly?


you could do something like this



public someController(){
  UsernameToken ut = new UsernameToken();
  ut.Username = 'testuser';
  ut.password = 'testpass';
  ut.Nonce = 'test';
  ut.Created = '12:00';


public class UsernameToken{
  public String Username; 
  public String password;
  public String Nonce;
  public String Created;