Guest User

Untitled

a guest
Nov 14th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. package com.siebel.eai.outbound.server.PackageName;
  2.  
  3. import com.siebel.common.util.Base64;
  4. import com.siebel.data.SiebelPropertySet;
  5. import com.siebel.eai.SiebelBusinessServiceException;
  6.  
  7. public class Classname extends com.siebel.eai.SiebelBusinessService {
  8.  
  9. public static void main(String[] args){
  10. Classname ObjectName = new Classname();
  11. SiebelPropertySet input = new SiebelPropertySet();
  12. SiebelPropertySet output = new SiebelPropertySet();
  13. input.setProperty("result", "false");
  14. try {
  15. ObjectName.doInvokeMethod("GregToHijry", input, output);
  16. } catch (SiebelBusinessServiceException e) {
  17. }
  18. String hijryDate = output.getProperty("hijryDate");
  19. }
  20.  
  21. @Override
  22. public void doInvokeMethod(String methodName, SiebelPropertySet input,SiebelPropertySet output) throws SiebelBusinessServiceException {
  23.  
  24. if (methodName.equals ("GregToHijry"))
  25. {
  26. String hijryDate = "Hello";
  27. input.getProperty("result");
  28. output.setProperty("hijryDate", hijryDate);
  29. }
  30. else
  31. throw new SiebelBusinessServiceException("NO_SUCH_METHOD", "No such method");
  32. }
  33.  
  34.  
  35. }
Add Comment
Please, Sign In to add comment