473,385 Members | 1,518 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,385 software developers and data experts.

convert code

is there a tool that will convert cold fusion code to C#?
Or anything out there to help in this process?

thx
Nov 15 '05 #1
8 1595
Mike,

I don't believe that there is. Given that the frameworks are vastly
different, as well as the languages, I imagine that it is not an easy thing
to do. You will probably have to do it on your own.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike" <cs*********@sbcglobal.net> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
is there a tool that will convert cold fusion code to C#?
Or anything out there to help in this process?

thx

Nov 15 '05 #2
Ok, after doing some research i found the same result.

Now, here is what i'm trying to do. I'm trying to recieve a newsfeed from a
web site that is coded in Cold Fusion, how could I code a C# web app, to
consume this newsfeed?
Or better yet, is there anything out there that exlains on how to cosnume
news feeds without using RSS and a Web Service?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:O4**************@TK2MSFTNGP10.phx.gbl...
Mike,

I don't believe that there is. Given that the frameworks are vastly
different, as well as the languages, I imagine that it is not an easy thing to do. You will probably have to do it on your own.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike" <cs*********@sbcglobal.net> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
is there a tool that will convert cold fusion code to C#?
Or anything out there to help in this process?

thx


Nov 15 '05 #3
Mike,

You can do it, as long as there is some structure to it. If you know
what the protocol for communication is (HTTP I'm assuming), as well as the
format and structure of the response of the site, then its just a matter of
programming against that specification/structure.

To download the contents through HTTP, you can use the HttpWebRequest
and the HttpWebResponse classes.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike" <cs*********@sbcglobal.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Ok, after doing some research i found the same result.

Now, here is what i'm trying to do. I'm trying to recieve a newsfeed from a web site that is coded in Cold Fusion, how could I code a C# web app, to
consume this newsfeed?
Or better yet, is there anything out there that exlains on how to cosnume
news feeds without using RSS and a Web Service?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:O4**************@TK2MSFTNGP10.phx.gbl...
Mike,

I don't believe that there is. Given that the frameworks are vastly
different, as well as the languages, I imagine that it is not an easy

thing
to do. You will probably have to do it on your own.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike" <cs*********@sbcglobal.net> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
is there a tool that will convert cold fusion code to C#?
Or anything out there to help in this process?

thx



Nov 15 '05 #4
I just tried that and its gettng an error.
I'm assuming I can find an example of this online?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:O5**************@TK2MSFTNGP10.phx.gbl...
Mike,

You can do it, as long as there is some structure to it. If you know
what the protocol for communication is (HTTP I'm assuming), as well as the
format and structure of the response of the site, then its just a matter of programming against that specification/structure.

To download the contents through HTTP, you can use the HttpWebRequest
and the HttpWebResponse classes.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike" <cs*********@sbcglobal.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Ok, after doing some research i found the same result.

Now, here is what i'm trying to do. I'm trying to recieve a newsfeed from
a
web site that is coded in Cold Fusion, how could I code a C# web app, to
consume this newsfeed?
Or better yet, is there anything out there that exlains on how to

cosnume news feeds without using RSS and a Web Service?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote

in
message news:O4**************@TK2MSFTNGP10.phx.gbl...
Mike,

I don't believe that there is. Given that the frameworks are vastly different, as well as the languages, I imagine that it is not an easy

thing
to do. You will probably have to do it on your own.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike" <cs*********@sbcglobal.net> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
> is there a tool that will convert cold fusion code to C#?
> Or anything out there to help in this process?
>
> thx
>
>



Nov 15 '05 #5
Mike,

What exactly is the error you are getting? And how are you trying it?
If you want to create an HttpWebRequest, you have to make a call to the
static Create or the static CreateDefault method on the WebRequest class.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike" <cs*********@sbcglobal.net> wrote in message
news:uX**************@TK2MSFTNGP11.phx.gbl...
I just tried that and its gettng an error.
I'm assuming I can find an example of this online?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:O5**************@TK2MSFTNGP10.phx.gbl...
Mike,

You can do it, as long as there is some structure to it. If you know
what the protocol for communication is (HTTP I'm assuming), as well as the format and structure of the response of the site, then its just a matter

of
programming against that specification/structure.

To download the contents through HTTP, you can use the HttpWebRequest and the HttpWebResponse classes.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike" <cs*********@sbcglobal.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Ok, after doing some research i found the same result.

Now, here is what i'm trying to do. I'm trying to recieve a newsfeed from
a
web site that is coded in Cold Fusion, how could I code a C# web app, to consume this newsfeed?
Or better yet, is there anything out there that exlains on how to

cosnume news feeds without using RSS and a Web Service?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:O4**************@TK2MSFTNGP10.phx.gbl...
> Mike,
>
> I don't believe that there is. Given that the frameworks are vastly > different, as well as the languages, I imagine that it is not an

easy thing
> to do. You will probably have to do it on your own.
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mv*@spam.guard.caspershouse.com
>
> "Mike" <cs*********@sbcglobal.net> wrote in message
> news:ud**************@TK2MSFTNGP10.phx.gbl...
> > is there a tool that will convert cold fusion code to C#?
> > Or anything out there to help in this process?
> >
> > thx
> >
> >
>
>



Nov 15 '05 #6
Heres the snippet i'm using.
protected System.Web.UI.WebControls.Xml fetchXML;

private void Page_Load(object sender, System.EventArgs e)
{
WebRequest request =
WebRequest.Create("http://www.mediapost.com/newsfeedproc.cfm");
WebResponse response = request.GetResponse();
Stream responseStream = response.GetResponseStream();
XmlTextReader reader = new XmlTextReader(responseStream);
XmlDocument xml_doc = new XmlDocument();
xml_doc.Load(reader);
fetchXML.Document = xml_doc;
}
is it wrong, should i be doing it different way?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:OI*************@tk2msftngp13.phx.gbl...
Mike,

What exactly is the error you are getting? And how are you trying it?
If you want to create an HttpWebRequest, you have to make a call to the
static Create or the static CreateDefault method on the WebRequest class.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike" <cs*********@sbcglobal.net> wrote in message
news:uX**************@TK2MSFTNGP11.phx.gbl...
I just tried that and its gettng an error.
I'm assuming I can find an example of this online?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:O5**************@TK2MSFTNGP10.phx.gbl...
Mike,

You can do it, as long as there is some structure to it. If you know what the protocol for communication is (HTTP I'm assuming), as well as the format and structure of the response of the site, then its just a
matter
of
programming against that specification/structure.

To download the contents through HTTP, you can use the

HttpWebRequest and the HttpWebResponse classes.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike" <cs*********@sbcglobal.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
> Ok, after doing some research i found the same result.
>
> Now, here is what i'm trying to do. I'm trying to recieve a newsfeed

from
a
> web site that is coded in Cold Fusion, how could I code a C# web
app, to > consume this newsfeed?
> Or better yet, is there anything out there that exlains on how to

cosnume
> news feeds without using RSS and a Web Service?
>
>
>
> "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
> message news:O4**************@TK2MSFTNGP10.phx.gbl...
> > Mike,
> >
> > I don't believe that there is. Given that the frameworks are

vastly
> > different, as well as the languages, I imagine that it is not an easy > thing
> > to do. You will probably have to do it on your own.
> >
> > Hope this helps.
> >
> >
> > --
> > - Nicholas Paldino [.NET/C# MVP]
> > - mv*@spam.guard.caspershouse.com
> >
> > "Mike" <cs*********@sbcglobal.net> wrote in message
> > news:ud**************@TK2MSFTNGP10.phx.gbl...
> > > is there a tool that will convert cold fusion code to C#?
> > > Or anything out there to help in this process?
> > >
> > > thx
> > >
> > >
> >
> >
>
>



Nov 15 '05 #7
Mike,

The only thing I would be worried about is the setting the encoding when
creating the XmlTextReader. What you have seems correct.

What exactly is the error that you are getting? I am beginning to think
that you haven't set the user account that this page/web service running
under to something that has permissions to access a network. By default,
ASP.NET runs under the local ASPNET account. This account should not have
access to the network.

You will have to make sure that the page/service is running under a user
that has the appropriate permissions.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike" <cs*********@sbcglobal.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Heres the snippet i'm using.
protected System.Web.UI.WebControls.Xml fetchXML;

private void Page_Load(object sender, System.EventArgs e)
{
WebRequest request =
WebRequest.Create("http://www.mediapost.com/newsfeedproc.cfm");
WebResponse response = request.GetResponse();
Stream responseStream = response.GetResponseStream();
XmlTextReader reader = new XmlTextReader(responseStream);
XmlDocument xml_doc = new XmlDocument();
xml_doc.Load(reader);
fetchXML.Document = xml_doc;
}
is it wrong, should i be doing it different way?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:OI*************@tk2msftngp13.phx.gbl...
Mike,

What exactly is the error you are getting? And how are you trying it?
If you want to create an HttpWebRequest, you have to make a call to the
static Create or the static CreateDefault method on the WebRequest class.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike" <cs*********@sbcglobal.net> wrote in message
news:uX**************@TK2MSFTNGP11.phx.gbl...
I just tried that and its gettng an error.
I'm assuming I can find an example of this online?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in
message news:O5**************@TK2MSFTNGP10.phx.gbl...
> Mike,
>
> You can do it, as long as there is some structure to it. If you

know
> what the protocol for communication is (HTTP I'm assuming), as well
as the
> format and structure of the response of the site, then its just a

matter of
> programming against that specification/structure.
>
> To download the contents through HTTP, you can use the

HttpWebRequest
> and the HttpWebResponse classes.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mv*@spam.guard.caspershouse.com
>
> "Mike" <cs*********@sbcglobal.net> wrote in message
> news:%2****************@tk2msftngp13.phx.gbl...
> > Ok, after doing some research i found the same result.
> >
> > Now, here is what i'm trying to do. I'm trying to recieve a

newsfeed from
> a
> > web site that is coded in Cold Fusion, how could I code a C# web

app,
to
> > consume this newsfeed?
> > Or better yet, is there anything out there that exlains on how to
cosnume
> > news feeds without using RSS and a Web Service?
> >
> >
> >
> > "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com>

wrote
> in
> > message news:O4**************@TK2MSFTNGP10.phx.gbl...
> > > Mike,
> > >
> > > I don't believe that there is. Given that the frameworks are vastly
> > > different, as well as the languages, I imagine that it is not an

easy
> > thing
> > > to do. You will probably have to do it on your own.
> > >
> > > Hope this helps.
> > >
> > >
> > > --
> > > - Nicholas Paldino [.NET/C# MVP]
> > > - mv*@spam.guard.caspershouse.com
> > >
> > > "Mike" <cs*********@sbcglobal.net> wrote in message
> > > news:ud**************@TK2MSFTNGP10.phx.gbl...
> > > > is there a tool that will convert cold fusion code to C#?
> > > > Or anything out there to help in this process?
> > > >
> > > > thx
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 15 '05 #8
"Mike" <cs*********@sbcglobal.net> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
is there a tool that will convert cold fusion code to C#?
Or anything out there to help in this process?


We built tools to automate migrations. Our tools require source and target
language definitions, and translation rules between them.
We have C# already defined. We'd have to define ColdFusion
and the translation rules. This makes economic sense
if you have a lot of ColdFusion code (e.g., 50K SLOC or more).

See http://www.semanticdesigns.com
--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com
Nov 15 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Eric Lilja | last post by:
Hello, I've made a templated class Option (a child of the abstract base class OptionBase) that stores an option name (in the form someoption=) and the value belonging to that option. The value is...
4
by: aevans1108 | last post by:
expanding this message to microsoft.public.dotnet.xml Greetings Please direct me to the right group if this is an inappropriate place to post this question. Thanks. I want to format a...
6
by: Ricardo Quintanilla | last post by:
i have a code that sends data to a socket listening over as400 platform, the socket responds to me as a "byte array". then i need to convert the "byte array" into a string. the problem is that...
5
by: simon | last post by:
I have datetime variable: Datetime tsEndTime; Should I use (DateTime): tsEndTime=(DateTime)rdr.GetValue(15) or is better to use: tsEndTime=Convert.ToDateTime(rdr.GetValue(15))
3
by: Thubaiti | last post by:
Hi, I have this code in my ASP.NET and I want to convert it to C# (code behind) <asp:Repeater id="subCategoryRepeater" runat="server"> <ItemTemplate> <ul> <li> <asp:HyperLink...
25
by: Charles Law | last post by:
I thought this was going to be straight forward, given the wealth of conversion functions in .NET, but it is proving more convoluted than imagined. Given the following <code> Dim ba(1) As...
7
by: patang | last post by:
I want to convert amount to words. Is there any funciton available? Example: $230.30 Two Hundred Thirty Dollars and 30/100
6
by: patang | last post by:
Could someone please tell me where am I supposed to put this code. Actually my project has two forms. I created a new module and have put the following code sent by someone. All the function...
3
by: mrajanikrishna | last post by:
Hi Friends, I am accepting a number from the user entered in a textbox. I want to assign to a variable in my code and assignt this to that variable. double num1 = (double)txtNum1.text; ...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.