Post XML
Read With Formatting | Free Open Source Tutorials Account
Perl Programming
Thread: Post XML
ShaSha
How do I get the HTTPs server to send/post the XML file to user's mailbox using Perl?
The situation is like this: User from System A need to send XML file to User in System B. These 2 can't communicate directly.So the XML file will be posted to an HTTPs server. This HTTPs server will then post the XML to the recipient based on the mailboxid. This mailboxid is specified in the XML. How do i send the XML to the designated mailbox? Never work with XML and HTTPs before. I'm completely lost now...Thank you...
md_doc
I assume the persons mailboxid is the persons e-mail address?
Thinking it out you need to submit the xml (I am confused as to where the xml even comes from).
Once you get there then you will need to use perl to parse the xml document and get the e-mail address that the document in question is being sent to.
From there you just attach the file to the e-mail you send out and it goes to the persons e-mail.
Does this seem like what you are trying to do?
If so let us know where the file comes from in the first place and hopefully then we can start helping you with some code.
ShaSha
I assume the persons mailboxid is the persons e-mail address?
Thinking it out you need to submit the xml (I am confused as to where the xml even comes from).
Once you get there then you will need to use perl to parse the xml document and get the e-mail address that the document in question is being sent to.
From there you just attach the file to the e-mail you send out and it goes to the persons e-mail.
Does this seem like what you are trying to do?
If so let us know where the file comes from in the first place and hopefully then we can start helping you with some code.
Hi, thanks for the reply and yes u got it right. The application goes like this: User A will send an XML file to an HTTPs
server. This HTTPs server acts more like a repository to store the incoming XML before it is being sent out to the recipient. All incoming XML will be stored in a local directories.
Inside the XML, it will have a tag to specifies the recipient's mailboxid/email address.Based on your reply, so I need to
write something in the HTTPs server that accepts the XML, parse it and get the mailboxid, then attach the XML file and send
out? Below is the portion of the XML that specifies the recipient's mailboxid. Please correct me if I'm wrong. I'm totally
new in Perl and XML stuff...Your help and advice is highly appreciated. Thanks again.
<Header>
<Sender>
<SenderID>mailboxid</SenderID>
<Sender>
<Recipient>
<RecipientID>Mailboxid</RecipientID>
<Recipient>
</Header>