function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
john.krjohn.kr 

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

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

 

<oas:UsernameToken>
<oas:Username>test</oas:Username>
<oas:Password Type=>test</oas:Password>
<oas:Nonce>test</oas:Nonce>
<oas1:Created>12:00</oas1:Created>
</oas:UsernameToken>

 

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

SvenSven

Hi

 

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;
}

 

Sven