Click here to Skip to main content
14,660,272 members
Home » Discussions » XML / XSL
   

XML / XSL

 
QuestionXML data representation Pin
Neo101015-Apr-13 0:39
MemberNeo101015-Apr-13 0:39 
AnswerRe: XML data representation Pin
Kenneth Haugland5-Apr-13 2:13
professionalKenneth Haugland5-Apr-13 2:13 
QuestionHow to retrieve data from XLS/TXT file and DB? Pin
David venewald27-Feb-13 16:09
MemberDavid venewald27-Feb-13 16:09 
AnswerRe: How to retrieve data from XLS/TXT file and DB? Pin
jinzai17-Jul-14 13:14
Memberjinzai17-Jul-14 13:14 
Questionrunning xml Pin
Member 963455215-Jan-13 3:02
MemberMember 963455215-Jan-13 3:02 
AnswerRe: running xml Pin
Abhishek Pant15-Jan-13 3:45
professionalAbhishek Pant15-Jan-13 3:45 
QuestionExecute a task scheduler stop command (to kill one task)before starting the upgrade. Pin
Prasanth Vijayan9-Dec-12 20:07
MemberPrasanth Vijayan9-Dec-12 20:07 
Questionsharing data by using xml Pin
El Dev28-Nov-12 4:36
MemberEl Dev28-Nov-12 4: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 17:12
MemberZaf Khan28-Nov-12 17:12 
GeneralRe: sharing data by using xml Pin
El Dev28-Nov-12 19:50
MemberEl Dev28-Nov-12 19:50 
QuestionCould not find a part of the path 'C:\MyProject\xml\command.dtd'. Pin
El Dev27-Nov-12 22:18
MemberEl Dev27-Nov-12 22:18 
AnswerRe: Could not find a part of the path 'C:\MyProject\xml\command.dtd'. Pin
Richard MacCutchan28-Nov-12 0:04
mveRichard MacCutchan28-Nov-12 0:04 
GeneralRe: Could not find a part of the path 'C:\MyProject\xml\command.dtd'. Pin
El Dev28-Nov-12 0:29
MemberEl Dev28-Nov-12 0:29 
GeneralRe: Could not find a part of the path 'C:\MyProject\xml\command.dtd'. Pin
Richard MacCutchan28-Nov-12 1:11
mveRichard MacCutchan28-Nov-12 1:11 
QuestionXml generating from XSD schema Pin
muntte16-Oct-12 12:18
Membermuntte16-Oct-12 12:18 
AnswerRe: Xml generating from XSD schema Pin
Jim Meadors13-Nov-12 20:12
MemberJim Meadors13-Nov-12 20:12 
AnswerRe: Xml generating from XSD schema Pin
jinzai17-Jul-14 13:18
Memberjinzai17-Jul-14 13:18 
QuestionLayout question Pin
David Crow25-Sep-12 7:38
MemberDavid Crow25-Sep-12 7:38 
AnswerRe: Layout question Pin
Zaf Khan29-Nov-12 8:27
MemberZaf Khan29-Nov-12 8:27 
QuestionHelp with XSLT Pin
MissMac18-Sep-12 7:33
MemberMissMac18-Sep-12 7:33 
AnswerRe: Help with XSLT Pin
MissMac18-Sep-12 7:57
MemberMissMac18-Sep-12 7:57 
QuestionXML , XSL and JavaScript Pin
rajats8716-Sep-12 20:57
Memberrajats8716-Sep-12 20:57 
AnswerRe: XML , XSL and JavaScript Pin
h4ckjr17-Sep-12 15:38
Memberh4ckjr17-Sep-12 15:38 
GeneralRe: XML , XSL and JavaScript Pin
rajats8718-Sep-12 2:07
Memberrajats8718-Sep-12 2:07 
QuestionXSL Output Pin
Sta_Horse12-Sep-12 20:21
MemberSta_Horse12-Sep-12 20: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.