Re: [flexcoders] Re: Simplest way to create a webservice and deploy
Big Thankx to all you guys...especially to Tracy & Nate Yes I really did not need a webservice to achieve what I was looking for. I was just in need of a xml response which I could achieve by simply creating a servlet which sends me a response as an XML. Thanks again!!! Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Thu, Feb 5, 2009 at 7:23 PM, johnlukemills wrote: > If what you want to do is deploy a web service on your server, the > simplest way by far is to use ColdFusion. The Cfcomponent from the > ColdFusion 8 developers guide is all you need. > > > name = "echoString" > returnType = "string" > output = "no" > access = "remote"> > > > > > > >
[flexcoders] Re: Simplest way to create a webservice and deploy
If what you want to do is deploy a web service on your server, the simplest way by far is to use ColdFusion. The Cfcomponent from the ColdFusion 8 developers guide is all you need.
[flexcoders] Re: Simplest way to create a webservice and deploy
Tracy I have been told before that I take things a little too literally. I should have thought through just what Vik really wanted rather than just answer the question. Well done for coming to the right conclusion. --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > Yes, Web Services can be difficult. > > > > But, we need to be clear on our language. Vik, when you use the words > "web service" are you using them in the specific, Flex sense, meaning > using the SOAP xml protocol? > > > > Or are you using the words web service in the more general sense of > accessing data over the internet? > > > > SOAP based WebService is compicated because the format provides for > anonymous third parties to use the service with only the wsdl as > documentation. If you ae not planning to make your back-end business > logic tier available to anonymous third parties, then you do not nead > SOAP. > > > > The easiest way to deliver data over the internet is to use HTTPService, > which is XML over HTTP. This is what "AJAX" apps often use. > > > > You would simply build xml (as an object or string) and pass it back to > Flex. You will get exactly the xml you build, unlike SOAP, that wraps > your data in a bunch of other stuff. Of course you wont get any data > type information, but since you wrote the service you will know the data > types. > > > > I have not done this with java, but have done it using a JSP page. > > http://www.cflex.net/showFileDetails.cfm?ObjectID=556 > > > > Tracy Spratt > Lariat Services > > Flex development bandwidth available > > > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of valdhor > Sent: Wednesday, February 04, 2009 9:29 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Simplest way to create a webservice and deploy > > > > As far as I know there is no simple way to create a web service. I > thought the easiest way would be to use the built-in functionality of > PHP (Should only take a few lines). I found out the hard way that it > is not that simple. It took me months of research and a lot of > tinkering (Not to mention a few leaps of faith) on my part to figure > it out. > > When I started learning Java a few months ago, I used that tutorial to > jump start my understanding of Web Services in Java. > > If you are an absolute beginner, I would suggest reading up on WSDL > files. Once you know enough, try to create a WSDL file for your Web > Service (You are going to need one when you deploy your service). Once > you can create a WSDL, you are well on your way to understanding how > to build a web service and deploy it. > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , Vik wrote: > > > > Hmm > > I think this is not at least the simplest way to start with > especially for a > > beginner. Any other ideas? > > Thankx and Regards > > > > Vik > > Founder > > www.sakshum.com > > www.sakshum.blogspot.com > > > > > > On Wed, Feb 4, 2009 at 12:51 AM, valdhor wrote: > > > > > http://java.sun.com/webservices/docs/1.6/tutorial/doc/ > <http://java.sun.com/webservices/docs/1.6/tutorial/doc/> ? > > > > > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> , > Vik > > > wrote: > > > > > > > > Hie > > > > I am very new to web services. My very simple requirement is to > > > > return the records from a db table as an xml when i invoke a ws > from > > > my flex > > > > application. > > > > > > > > I have already code ready which is having a java method fetchRow() > > > which > > > > returns a List of objects (rows). > > > > > > > > Any idea how to about creating and deploying it as a web service > > > > > > > > Thankx and Regards > > > > > > > > Vik > > > > Founder > > > > www.sakshum.com > > > > www.sakshum.blogspot.com > > > > > > > > > > > > > > > >
Re: [flexcoders] Re: Simplest way to create a webservice and deploy
The easiest thing to do would be to use HTTPService to just grab the data. http://blog.flexexamples.com/2007/08/16/using-httpservice-tag-to-sendreceive-variables-to-a-server-side-script/ Has a great example of this. To get started with HTTPService 1. Place an xml file on your webserver 2. Connect to it using HTTPService http://yoursite.com/yourxml.xml"; method="POST" resultFormat="xml" /> 3. Parse the XML. On Wed, Feb 4, 2009 at 9:45 AM, Vik wrote: > Hie Tracy > > Yes I just need a way to deliver my data as a xml which i can consume in > Flex. > I don't care about SOAP anything...I need to get my data for my Flex app > only. > > I just need a way to access the data over internet. I don't mind in > building the xml.. > So I am just looking for how to achieve this. > > Thankx and Regards > > Vik > Founder > www.sakshum.com > www.sakshum.blogspot.com > > > On Wed, Feb 4, 2009 at 10:43 PM, Tracy Spratt wrote: > >>Yes, Web Services can be difficult. >> >> >> >> But, we need to be clear on our language. Vik, when you use the words >> "web service" are you using them in the specific, Flex sense, meaning using >> the SOAP xml protocol? >> >> >> >> Or are you using the words web service in the more general sense of >> accessing data over the internet? >> >> >> >> SOAP based WebService is compicated because the format provides for >> anonymous third parties to use the service with only the wsdl as >> documentation. If you ae not planning to make your back-end business logic >> tier available to anonymous third parties, then you do not nead SOAP. >> >> >> >> The easiest way to deliver data over the internet is to use HTTPService, >> which is XML over HTTP. This is what "AJAX" apps often use. >> >> >> >> You would simply build xml (as an object or string) and pass it back to >> Flex. You will get exactly the xml you build, unlike SOAP, that wraps your >> data in a bunch of other stuff. Of course you wont get any data type >> information, but since you wrote the service you will know the data types. >> >> >> >> I have not done this with java, but have done it using a JSP page. >> >> http://www.cflex.net/showFileDetails.cfm?ObjectID=556 >> >> >> >> Tracy Spratt >> Lariat Services >> >> Flex development bandwidth available >> -- >> >> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On >> Behalf Of *valdhor >> *Sent:* Wednesday, February 04, 2009 9:29 AM >> *To:* flexcoders@yahoogroups.com >> *Subject:* [flexcoders] Re: Simplest way to create a webservice and >> deploy >> >> >> >> As far as I know there is no simple way to create a web service. I >> thought the easiest way would be to use the built-in functionality of >> PHP (Should only take a few lines). I found out the hard way that it >> is not that simple. It took me months of research and a lot of >> tinkering (Not to mention a few leaps of faith) on my part to figure >> it out. >> >> When I started learning Java a few months ago, I used that tutorial to >> jump start my understanding of Web Services in Java. >> >> If you are an absolute beginner, I would suggest reading up on WSDL >> files. Once you know enough, try to create a WSDL file for your Web >> Service (You are going to need one when you deploy your service). Once >> you can create a WSDL, you are well on your way to understanding how >> to build a web service and deploy it. >> >> --- In flexcoders@yahoogroups.com , Vik >> wrote: >> > >> > Hmm >> > I think this is not at least the simplest way to start with >> especially for a >> > beginner. Any other ideas? >> > Thankx and Regards >> > >> > Vik >> > Founder >> > www.sakshum.com >> > www.sakshum.blogspot.com >> > >> > >> > On Wed, Feb 4, 2009 at 12:51 AM, valdhor wrote: >> > >> > > http://java.sun.com/webservices/docs/1.6/tutorial/doc/ ? >> > > >> > > --- In flexcoders@yahoogroups.com >> > > > 40yahoogroups.com>, Vik >> > > wrote: >> > > > >> > > > Hie >> > > > I am very new to web services. My very simple requirement is to >> > > > return the records from a db table as an xml when i invoke a ws from >> > > my flex >> > > > application. >> > > > >> > > > I have already code ready which is having a java method fetchRow() >> > > which >> > > > returns a List of objects (rows). >> > > > >> > > > Any idea how to about creating and deploying it as a web service >> > > > >> > > > Thankx and Regards >> > > > >> > > > Vik >> > > > Founder >> > > > www.sakshum.com >> > > > www.sakshum.blogspot.com >> > > > >> > > >> > > >> > > >> > >> >> > > -- Cheers, Nate http://blog.natebeck.net
Re: [flexcoders] Re: Simplest way to create a webservice and deploy
Hie Tracy Yes I just need a way to deliver my data as a xml which i can consume in Flex. I don't care about SOAP anything...I need to get my data for my Flex app only. I just need a way to access the data over internet. I don't mind in building the xml.. So I am just looking for how to achieve this. Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Wed, Feb 4, 2009 at 10:43 PM, Tracy Spratt wrote: >Yes, Web Services can be difficult. > > > > But, we need to be clear on our language. Vik, when you use the words "web > service" are you using them in the specific, Flex sense, meaning using the > SOAP xml protocol? > > > > Or are you using the words web service in the more general sense of > accessing data over the internet? > > > > SOAP based WebService is compicated because the format provides for > anonymous third parties to use the service with only the wsdl as > documentation. If you ae not planning to make your back-end business logic > tier available to anonymous third parties, then you do not nead SOAP. > > > > The easiest way to deliver data over the internet is to use HTTPService, > which is XML over HTTP. This is what "AJAX" apps often use. > > > > You would simply build xml (as an object or string) and pass it back to > Flex. You will get exactly the xml you build, unlike SOAP, that wraps your > data in a bunch of other stuff. Of course you wont get any data type > information, but since you wrote the service you will know the data types. > > > > I have not done this with java, but have done it using a JSP page. > > http://www.cflex.net/showFileDetails.cfm?ObjectID=556 > > > > Tracy Spratt > Lariat Services > > Flex development bandwidth available > -- > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *valdhor > *Sent:* Wednesday, February 04, 2009 9:29 AM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] Re: Simplest way to create a webservice and deploy > > > > As far as I know there is no simple way to create a web service. I > thought the easiest way would be to use the built-in functionality of > PHP (Should only take a few lines). I found out the hard way that it > is not that simple. It took me months of research and a lot of > tinkering (Not to mention a few leaps of faith) on my part to figure > it out. > > When I started learning Java a few months ago, I used that tutorial to > jump start my understanding of Web Services in Java. > > If you are an absolute beginner, I would suggest reading up on WSDL > files. Once you know enough, try to create a WSDL file for your Web > Service (You are going to need one when you deploy your service). Once > you can create a WSDL, you are well on your way to understanding how > to build a web service and deploy it. > > --- In flexcoders@yahoogroups.com , Vik > wrote: > > > > Hmm > > I think this is not at least the simplest way to start with > especially for a > > beginner. Any other ideas? > > Thankx and Regards > > > > Vik > > Founder > > www.sakshum.com > > www.sakshum.blogspot.com > > > > > > On Wed, Feb 4, 2009 at 12:51 AM, valdhor wrote: > > > > > http://java.sun.com/webservices/docs/1.6/tutorial/doc/ ? > > > > > > --- In flexcoders@yahoogroups.com > > > 40yahoogroups.com>, Vik > > > wrote: > > > > > > > > Hie > > > > I am very new to web services. My very simple requirement is to > > > > return the records from a db table as an xml when i invoke a ws from > > > my flex > > > > application. > > > > > > > > I have already code ready which is having a java method fetchRow() > > > which > > > > returns a List of objects (rows). > > > > > > > > Any idea how to about creating and deploying it as a web service > > > > > > > > Thankx and Regards > > > > > > > > Vik > > > > Founder > > > > www.sakshum.com > > > > www.sakshum.blogspot.com > > > > > > > > > > > > > > > > > >
RE: [flexcoders] Re: Simplest way to create a webservice and deploy
Yes, Web Services can be difficult. But, we need to be clear on our language. Vik, when you use the words "web service" are you using them in the specific, Flex sense, meaning using the SOAP xml protocol? Or are you using the words web service in the more general sense of accessing data over the internet? SOAP based WebService is compicated because the format provides for anonymous third parties to use the service with only the wsdl as documentation. If you ae not planning to make your back-end business logic tier available to anonymous third parties, then you do not nead SOAP. The easiest way to deliver data over the internet is to use HTTPService, which is XML over HTTP. This is what "AJAX" apps often use. You would simply build xml (as an object or string) and pass it back to Flex. You will get exactly the xml you build, unlike SOAP, that wraps your data in a bunch of other stuff. Of course you wont get any data type information, but since you wrote the service you will know the data types. I have not done this with java, but have done it using a JSP page. http://www.cflex.net/showFileDetails.cfm?ObjectID=556 Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Wednesday, February 04, 2009 9:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Simplest way to create a webservice and deploy As far as I know there is no simple way to create a web service. I thought the easiest way would be to use the built-in functionality of PHP (Should only take a few lines). I found out the hard way that it is not that simple. It took me months of research and a lot of tinkering (Not to mention a few leaps of faith) on my part to figure it out. When I started learning Java a few months ago, I used that tutorial to jump start my understanding of Web Services in Java. If you are an absolute beginner, I would suggest reading up on WSDL files. Once you know enough, try to create a WSDL file for your Web Service (You are going to need one when you deploy your service). Once you can create a WSDL, you are well on your way to understanding how to build a web service and deploy it. --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , Vik wrote: > > Hmm > I think this is not at least the simplest way to start with especially for a > beginner. Any other ideas? > Thankx and Regards > > Vik > Founder > www.sakshum.com > www.sakshum.blogspot.com > > > On Wed, Feb 4, 2009 at 12:51 AM, valdhor wrote: > > > http://java.sun.com/webservices/docs/1.6/tutorial/doc/ <http://java.sun.com/webservices/docs/1.6/tutorial/doc/> ? > > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , Vik > > wrote: > > > > > > Hie > > > I am very new to web services. My very simple requirement is to > > > return the records from a db table as an xml when i invoke a ws from > > my flex > > > application. > > > > > > I have already code ready which is having a java method fetchRow() > > which > > > returns a List of objects (rows). > > > > > > Any idea how to about creating and deploying it as a web service > > > > > > Thankx and Regards > > > > > > Vik > > > Founder > > > www.sakshum.com > > > www.sakshum.blogspot.com > > > > > > > > > >
[flexcoders] Re: Simplest way to create a webservice and deploy
As far as I know there is no simple way to create a web service. I thought the easiest way would be to use the built-in functionality of PHP (Should only take a few lines). I found out the hard way that it is not that simple. It took me months of research and a lot of tinkering (Not to mention a few leaps of faith) on my part to figure it out. When I started learning Java a few months ago, I used that tutorial to jump start my understanding of Web Services in Java. If you are an absolute beginner, I would suggest reading up on WSDL files. Once you know enough, try to create a WSDL file for your Web Service (You are going to need one when you deploy your service). Once you can create a WSDL, you are well on your way to understanding how to build a web service and deploy it. --- In flexcoders@yahoogroups.com, Vik wrote: > > Hmm > I think this is not at least the simplest way to start with especially for a > beginner. Any other ideas? > Thankx and Regards > > Vik > Founder > www.sakshum.com > www.sakshum.blogspot.com > > > On Wed, Feb 4, 2009 at 12:51 AM, valdhor wrote: > > > http://java.sun.com/webservices/docs/1.6/tutorial/doc/ ? > > > > --- In flexcoders@yahoogroups.com , Vik > > wrote: > > > > > > Hie > > > I am very new to web services. My very simple requirement is to > > > return the records from a db table as an xml when i invoke a ws from > > my flex > > > application. > > > > > > I have already code ready which is having a java method fetchRow() > > which > > > returns a List of objects (rows). > > > > > > Any idea how to about creating and deploying it as a web service > > > > > > Thankx and Regards > > > > > > Vik > > > Founder > > > www.sakshum.com > > > www.sakshum.blogspot.com > > > > > > > > > >
Re: [flexcoders] Re: Simplest way to create a webservice and deploy
Hmm I think this is not at least the simplest way to start with especially for a beginner. Any other ideas? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Wed, Feb 4, 2009 at 12:51 AM, valdhor wrote: > http://java.sun.com/webservices/docs/1.6/tutorial/doc/ ? > > --- In flexcoders@yahoogroups.com , Vik > wrote: > > > > Hie > > I am very new to web services. My very simple requirement is to > > return the records from a db table as an xml when i invoke a ws from > my flex > > application. > > > > I have already code ready which is having a java method fetchRow() > which > > returns a List of objects (rows). > > > > Any idea how to about creating and deploying it as a web service > > > > Thankx and Regards > > > > Vik > > Founder > > www.sakshum.com > > www.sakshum.blogspot.com > > > > >
[flexcoders] Re: Simplest way to create a webservice and deploy
http://java.sun.com/webservices/docs/1.6/tutorial/doc/ ? --- In flexcoders@yahoogroups.com, Vik wrote: > > Hie > I am very new to web services. My very simple requirement is to > return the records from a db table as an xml when i invoke a ws from my flex > application. > > I have already code ready which is having a java method fetchRow() which > returns a List of objects (rows). > > Any idea how to about creating and deploying it as a web service > > Thankx and Regards > > Vik > Founder > www.sakshum.com > www.sakshum.blogspot.com >