Difference between revisions of "Validating the XML Message validation schema"

From PlatiOnline.EU
Jump to: navigation, search
m
m
Line 8: Line 8:
 
Pseudo-code:
 
Pseudo-code:
 
#Create the XML_Message;
 
#Create the XML_Message;
#SOAP 1.1 headers:
+
#Create a random 32 alphanumeric '''AES KEY''';
 +
#Encrypt the '''AES KEY''' with the '''RSA''' algorithm, this is the value of '''f_crypt_message''' tag;
 +
#Encrypt the '''XML_Message''' with the AES algorithm using the '''AES KEY''' and the '''IV_AUTH''', this is the value of '''f_message''' tag;
 +
#Validate the '''Request XML''' using '''https://secure.plationline.eu/xml_validation/po.request.v5.xsd'''
 +
#Post SOAP (version 1.1 or 1.2) to https://secure.plationline.eu/
 +
#If you use SOAP 1.1 headers are:
 
#*CONTENT_TYPE = '''text/xml; charset=utf-8'''
 
#*CONTENT_TYPE = '''text/xml; charset=utf-8'''
 
#*USER_AGENT = '''PlatiOnline-SOAP'''
 
#*USER_AGENT = '''PlatiOnline-SOAP'''
 
#*SOAPACTION = '''auth-only'''
 
#*SOAPACTION = '''auth-only'''
#SOAP 1.2 headers:
+
#If you use SOAP 1.2 headers are:
 
#*CONTENT_TYPE = '''application/soap+xml; charset=utf-8; action=auth-only'''
 
#*CONTENT_TYPE = '''application/soap+xml; charset=utf-8; action=auth-only'''
 
#*USER_AGENT = '''PlatiOnline-SOAP'''
 
#*USER_AGENT = '''PlatiOnline-SOAP'''
#Create a random 32 alphanumeric '''AES KEY''';
 
#Encrypt the '''AES KEY''' with the '''RSA''' algorithm, this is the value of '''f_crypt_message''' tag;
 
#Encrypt the '''XML_Message''' with the AES algorithm using the '''AES KEY''' and the '''IV_AUTH''', this is the value of '''f_message''' tag;
 
#Validate the '''Request XML''' using '''https://secure.plationline.eu/xml_validation/po.request.v5.xsd'''
 
#Post SOAP (version 1.1 or 1.2) to https://secure.plationline.eu/
 

Revision as of 12:11, 2 April 2014

XML Authorization

Plati Online version 5.x

  1. Post URL: https://secure.plationline.eu/
  2. Request XML validation schema: https://secure.plationline.eu/xml_validation/po.request.v5.xsd
  3. XML_Message validation schema: https://secure.plationline.eu/xml_validation/f_message.auth.v5.xsd

Pseudo-code:

  1. Create the XML_Message;
  2. Create a random 32 alphanumeric AES KEY;
  3. Encrypt the AES KEY with the RSA algorithm, this is the value of f_crypt_message tag;
  4. Encrypt the XML_Message with the AES algorithm using the AES KEY and the IV_AUTH, this is the value of f_message tag;
  5. Validate the Request XML using https://secure.plationline.eu/xml_validation/po.request.v5.xsd
  6. Post SOAP (version 1.1 or 1.2) to https://secure.plationline.eu/
  7. If you use SOAP 1.1 headers are:
    • CONTENT_TYPE = text/xml; charset=utf-8
    • USER_AGENT = PlatiOnline-SOAP
    • SOAPACTION = auth-only
  8. If you use SOAP 1.2 headers are:
    • CONTENT_TYPE = application/soap+xml; charset=utf-8; action=auth-only
    • USER_AGENT = PlatiOnline-SOAP