Click here to Skip to main content
14,453,136 members
   

XML / XSL

 
QuestionXML data representation Pin
Neo101015-Apr-13 1:39
MemberNeo101015-Apr-13 1:39 
AnswerRe: XML data representation Pin
Kenneth Haugland5-Apr-13 3:13
professionalKenneth Haugland5-Apr-13 3:13 
QuestionHow to retrieve data from XLS/TXT file and DB? Pin
David venewald27-Feb-13 17:09
MemberDavid venewald27-Feb-13 17:09 
AnswerRe: How to retrieve data from XLS/TXT file and DB? Pin
jinzai17-Jul-14 14:14
Memberjinzai17-Jul-14 14:14 
Questionrunning xml Pin
Member 963455215-Jan-13 4:02
MemberMember 963455215-Jan-13 4:02 
AnswerRe: running xml Pin
Abhishek Pant15-Jan-13 4:45
professionalAbhishek Pant15-Jan-13 4:45 
QuestionExecute a task scheduler stop command (to kill one task)before starting the upgrade. Pin
Prasanth Vijayan9-Dec-12 21:07
MemberPrasanth Vijayan9-Dec-12 21:07 
Questionsharing data by using xml Pin
El Dev28-Nov-12 5:36
MemberEl Dev28-Nov-12 5:36 
Hi!I have a scenario.a company ask me to include a payment system in my application and this is the requirement :
a) we need you to provide us a location (in the form of a URL) which we can use to hit your server
b) we will send information regarding a payment transaction in the following XML format to your server at the URL address:

Request sent from ABC Company to My Company

<?xml version="1.0"?>
  <!DOCTYPE COMMAND PUBLIC "-//Ocam//DTD XML Command 1.0//EN" "xml/command.dtd">
<COMMAND>
<TYPE>PAYMENT</TYPE>
<COMPANYNAME>Luku</COMPANYNAME>                 <CUSTOMEREFID>refernceNumber</CUSTOMEREFID>
<MSISDN>msisdn</MSISDN>
<AMOUNT></AMOUNT>
<TXNID></TXNID>
<STATUS></STATUS>
</COMMAND>

c) on your side, we need you to interpret the information provide in the XML string, take whatever actions need to be taken on your platform, and then give us a response with the results of your actions in the following format:


Asynchronous response sent from My Company to ABC
<?xml version="1.0"?>
<!DOCTYPE COMMAND PUBLIC "-//Ocam//DTD XML Command 1.0//EN" "xml/command.dtd">
<COMMAND>
<TYPE>GBPHANDLER</TYPE>
<TXNID>BP120522.1117.C00001</TXNID>
<REFID>1357</REFID>
<RESULT>TS</RESULT>
<ERRORCODE>ERR123</ERRORCODE>
<FLAG>Y</FLAG>
<CONTENT>Content For Sending SMS</CONTENT>
<MSISDN>09899847486</MSISDN>
<COMPANYCODE>Luku</COMPANYCODE>
</COMMAND>

I have tried to resolve,this is my xml file I have created:

<?xml version="1.0"?>
<!DOCTYPE COMMAND PUBLIC "-//Ocam//DTD XML Command 1.0//EN" "xml/command.dtd">
<COMMAND>
<TYPE>GBPHANDLER</TYPE>
<TXNID>BP120522.1117.C00001</TXNID>
<REFID>1357</REFID>
<RESULT>TS</RESULT>
<ERRORCODE>ERR123</ERRORCODE>
<FLAG>Y</FLAG>
<CONTENT>Content For Sending SMS</CONTENT>
<MSISDN>09899847486</MSISDN>
<COMPANYCODE>Luku</COMPANYCODE>
</COMMAND>

and this is my .dtd file :

<?xml version="1.0"?>
<!DOCTYPE COMMAND PUBLIC "-//Ocam//DTD XML Command 1.0//EN" "xml/command.dtd">
<COMMAND>
<TYPE>GBPHANDLER</TYPE>
<TXNID>BP120522.1117.C00001</TXNID>
<REFID>1357</REFID>
<RESULT>TS</RESULT>
<ERRORCODE>ERR123</ERRORCODE>
<FLAG>Y</FLAG>
<CONTENT>Content For Sending SMS</CONTENT>
<MSISDN>09899847486</MSISDN>
<COMPANYCODE>Luku</COMPANYCODE>
</COMMAND>

Now I am stack on that level.My question is this Which url I need to provide? how to make a generated xml file?Am I need to store this information into a database? because the system need to verify an incomming request everytime a customer need to make a payment by verifying a reference code generated from the system and check if it is matching the amount of a product he want to buy.Please need an idea.I am spending a lot of time learning xml but I am not finding the answer.By the way I am using c#.net.Thanks!
AnswerRe: sharing data by using xml Pin
Zaf Khan28-Nov-12 18:12
MemberZaf Khan28-Nov-12 18:12 
GeneralRe: sharing data by using xml Pin
El Dev28-Nov-12 20:50
MemberEl Dev28-Nov-12 20:50 
QuestionCould not find a part of the path 'C:\MyProject\xml\command.dtd'. Pin
El Dev27-Nov-12 23:18
MemberEl Dev27-Nov-12 23:18 
AnswerRe: Could not find a part of the path 'C:\MyProject\xml\command.dtd'. Pin
Richard MacCutchan28-Nov-12 1:04
communityengineerRichard MacCutchan28-Nov-12 1:04 
GeneralRe: Could not find a part of the path 'C:\MyProject\xml\command.dtd'. Pin
El Dev28-Nov-12 1:29
MemberEl Dev28-Nov-12 1:29 
GeneralRe: Could not find a part of the path 'C:\MyProject\xml\command.dtd'. Pin
Richard MacCutchan28-Nov-12 2:11
communityengineerRichard MacCutchan28-Nov-12 2:11 
QuestionXml generating from XSD schema Pin
muntte16-Oct-12 13:18
Membermuntte16-Oct-12 13:18 
AnswerRe: Xml generating from XSD schema Pin
Jim Meadors13-Nov-12 21:12
MemberJim Meadors13-Nov-12 21:12 
AnswerRe: Xml generating from XSD schema Pin
jinzai17-Jul-14 14:18
Memberjinzai17-Jul-14 14:18 
QuestionLayout question Pin
David Crow25-Sep-12 8:38
MemberDavid Crow25-Sep-12 8:38 
AnswerRe: Layout question Pin
Zaf Khan29-Nov-12 9:27
MemberZaf Khan29-Nov-12 9:27 
QuestionHelp with XSLT Pin
MissMac18-Sep-12 8:33
MemberMissMac18-Sep-12 8:33 
AnswerRe: Help with XSLT Pin
MissMac18-Sep-12 8:57
MemberMissMac18-Sep-12 8:57 
QuestionXML , XSL and JavaScript Pin
rajats8716-Sep-12 21:57
Memberrajats8716-Sep-12 21:57 
AnswerRe: XML , XSL and JavaScript Pin
h4ckjr17-Sep-12 16:38
Memberh4ckjr17-Sep-12 16:38 
GeneralRe: XML , XSL and JavaScript Pin
rajats8718-Sep-12 3:07
Memberrajats8718-Sep-12 3:07 
QuestionXSL Output Pin
Sta_Horse12-Sep-12 21:21
MemberSta_Horse12-Sep-12 21:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.