convert code

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

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

thx
 
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.
 
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 said:
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]
- (e-mail address removed)

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

thx
 
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]
- (e-mail address removed)

Mike said:
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?



message news:[email protected]...
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]
- (e-mail address removed)

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

thx
 
I just tried that and its gettng an error.
I'm assuming I can find an example of this online?


Nicholas Paldino said:
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]
- (e-mail address removed)

Mike said:
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?



message news:[email protected]...
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]
- (e-mail address removed)

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

thx
 
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]
- (e-mail address removed)

Mike said:
I just tried that and its gettng an error.
I'm assuming I can find an example of this online?


message news:[email protected]...
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]
- (e-mail address removed)

Mike said:
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]" <[email protected]>
wrote
in
message 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]
- (e-mail address removed)

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

thx
 
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 said:
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]
- (e-mail address removed)

Mike said:
I just tried that and its gettng an error.
I'm assuming I can find an example of this online?


message news:[email protected]...
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]
- (e-mail address removed)

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?



in
message 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]
- (e-mail address removed)

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

thx
 
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]
- (e-mail address removed)

Mike said:
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?


message news:OIYq#[email protected]...
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]
- (e-mail address removed)

Mike said:
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]" <[email protected]>
wrote
in
message 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]
- (e-mail address removed)

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?



in
message 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]
- (e-mail address removed)

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

thx
 
Mike said:
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
 
Back
Top