473,398 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

How to send xml doc to a url as mime attachment from asp.net with c#

4
MIME-Version: 1.0
Content-Type: multipart/related; boundary="ERCOT-XML-DATA";
Type="application/X-ERCOT-MARKETS"

--ERCOT-XML-DATA
Content-Type: application/xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE Header SYSTEM "header.dtd">
<Header>
<TransactionInfo>
<Action>SUBMIT</Action>
<Subject>SCHEDULES</Subject>
<Version>1.0</Version>
<Environment>TEST</Environment>
</TransactionInfo>
</Header>

--ERCOT-XML-DATA
Content-Type: application/xml

<?xml version="1.0"?>
<!DOCTYPE schedules SYSTEM "schedules.dtd">
<schedules>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0015</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>11.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>11.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0030</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>11.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>11.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0045</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>11.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>11.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0100</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>11.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>11.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0115</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>10.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>10.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0130</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>10.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>10.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0145</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>10.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>10.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0200</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>10.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>10.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0215</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>9.75</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>9.75</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0230</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>9.75</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>9.75</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0245</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>9.75</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>9.75</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
</schedules>
--ERCOT-XML-DATA--

this is my xml file by name schedule.xml in my application folder
i want post this xml file to a url :https://mos.ercot.com/ercot-xml/servlet/Listener
from asp.net with c# application.
can any body help me
as i am running out of time to submit the project to client. it would be a great help for my future.....
thanking you in advance.
praveen
praveenk2707@yahoo.com
Oct 13 '06 #1
1 2130
pal
4
MIME-Version: 1.0
Content-Type: multipart/related; boundary="ERCOT-XML-DATA";
Type="application/X-ERCOT-MARKETS"

--ERCOT-XML-DATA
Content-Type: application/xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE Header SYSTEM "header.dtd">
<Header>
<TransactionInfo>
<Action>SUBMIT</Action>
<Subject>SCHEDULES</Subject>
<Version>1.0</Version>
<Environment>TEST</Environment>
</TransactionInfo>
</Header>

--ERCOT-XML-DATA
Content-Type: application/xml

<?xml version="1.0"?>
<!DOCTYPE schedules SYSTEM "schedules.dtd">
<schedules>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0015</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>11.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>11.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0030</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>11.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>11.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0045</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>11.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>11.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0100</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>11.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>11.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0115</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>10.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>10.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0130</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>10.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>10.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0145</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>10.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>10.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0200</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>10.5</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>10.5</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0215</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>9.75</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>9.75</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0230</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>9.75</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>9.75</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
<BalancedSchedule>
<DAY>20061013</DAY>
<INTERVAL>0245</INTERVAL>
<TYPE>ENE</TYPE>
<RESOURCE_MW>9.75</RESOURCE_MW>
<PROVIDER>625275755</PROVIDER>
<PROVIDER_TY>QSE</PROVIDER_TY>
<PCMZONE>Houston</PCMZONE>
<OBLIGATION_MW>9.75</OBLIGATION_MW>
<RECIVER>8344016011000</RECIVER>
<RECEIVER_TY>QSE</RECEIVER_TY>
<RCMZONE>Houston</RCMZONE>
</BalancedSchedule>
</schedules>
--ERCOT-XML-DATA--

this is my xml file by name schedule.xml in my application folder
i want post this xml file to a url :https://mos.ercot.com/ercot-xml/servlet/Listener
from asp.net with c# application.
can any body help me
as i am running out of time to submit the project to client. it would be a great help for my future.....
thanking you in advance.
praveen
praveenk2707@yahoo.com
Oct 18 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Christian Otteneuer | last post by:
Hello NG, How can I send an email with an attachment from a python script? My code so far: mailhost = container.mailHost mMsg = 'MessageText' mTo = 'you@you.com' mFrom = 'me@me.com' mSubj...
3
by: marsandys | last post by:
Hello, I have this code below, which I am trying to have it send HTML formatted mail with embedded images. I can get this to send the mail, but it spits out a bunch of junk . I know this should...
2
by: Robbie De Sutter | last post by:
Hello, How do I open a new, empty e-mail message from the default e-mail client whereby the sender is given and a file is attached? Currently I use the command (vb.net): ---...
2
by: asnowfall | last post by:
I am trying to build System.Mail.MailMessage object out of mime encoded SMTP data. I have following questions Byte byteMailData; //mime encoded STMP data for "email with attachment" 1)...
16
by: anya | last post by:
Hey, I have a certain problem and till now I didnt find an answer on the web. I want to send an email message with picture in it. I dont want to put it as attachment but make it in the body of...
1
by: Chitu03 | last post by:
Hi I am already send a mail using Php with some attachement into it. My Problem is the attachement file is in my Database(mysql). I don't know how can i get from database and then add to my mail....
5
by: =?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= | last post by:
I have never sent attachment with webservices. Yesterday I got the challenge to redesign my solution that sends large XML structures to a Java webservice. The reason was that the Java SOAP...
1
by: maxxxxel | last post by:
Hi Can anyone help me with some asp code , I changed the code to use CDO.message instead of the old cdont.sys to send mail from a ASP webpage which works fine. Our problem is that when we send...
1
by: jgentes | last post by:
I have read through the manual on php dot net, and a number of tutorials around the net, however when I create an email and attempt to attach a file, I always get the hex (textual) representation,...
1
by: deepaks85 | last post by:
Dear All, I want to send some data through a form with Multiple attachment in an HTML Format. I have tried it but it is not working for me. I am able to send data without attachment but with the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.