Difference between revisions of "Validating the XML Message validation schema"
PlatiOnline (talk | contribs) m (→XML Authorization) |
PlatiOnline (talk | contribs) m |
||
Line 8: | Line 8: | ||
Pseudo-code: | Pseudo-code: | ||
#Create the XML_Message; | #Create the XML_Message; | ||
+ | #SOAP heders: | ||
+ | #*CONTENT_TYPE = '''text/xml; charset=utf-8''' | ||
+ | #*USER_AGENT = '''PlatiOnline-SOAP''' | ||
+ | #*HTTP_SOAPACTION = '''auth-only''' | ||
#Create a random 32 alphanumeric AES KEY; | #Create a random 32 alphanumeric AES KEY; | ||
#Encrypt the AES KEY with the RSA algorithm, UrlEncode this hash (this is the value of F_CRYPT_MESSAGE); | #Encrypt the AES KEY with the RSA algorithm, UrlEncode this hash (this is the value of F_CRYPT_MESSAGE); | ||
#Encrypt the XML_Message with the AES algoritm using the AES KEY and the IV_AUTH, UrlEncode this hash (this is the value of F_MESSAGE field); | #Encrypt the XML_Message with the AES algoritm using the AES KEY and the IV_AUTH, UrlEncode this hash (this is the value of F_MESSAGE field); | ||
#Post the F_LOGIN, F_MESSAGE and F_CRYPT_MESSAGE to https://secure.plationline.eu/ | #Post the F_LOGIN, F_MESSAGE and F_CRYPT_MESSAGE to https://secure.plationline.eu/ |
Revision as of 17:19, 17 March 2014
XML Authorization
Plati Online version 5.x
- Post URL: https://secure.plationline.eu/
- Request XML validation schema: https://secure2.plationline.ro/xml_validation/po.request.v5.xsd
- XML_Message validation schema: https://secure2.plationline.ro/xml_validation/f_message.auth.v5.xsd
Pseudo-code:
- Create the XML_Message;
- SOAP heders:
- CONTENT_TYPE = text/xml; charset=utf-8
- USER_AGENT = PlatiOnline-SOAP
- HTTP_SOAPACTION = auth-only
- Create a random 32 alphanumeric AES KEY;
- Encrypt the AES KEY with the RSA algorithm, UrlEncode this hash (this is the value of F_CRYPT_MESSAGE);
- Encrypt the XML_Message with the AES algoritm using the AES KEY and the IV_AUTH, UrlEncode this hash (this is the value of F_MESSAGE field);
- Post the F_LOGIN, F_MESSAGE and F_CRYPT_MESSAGE to https://secure.plationline.eu/