[symfony-users] Re: XML template for API call
Also, there's many ways to skin that cat. I've got one app where I'm indeed using a template for the xml, and in the ups class I instantiate an instance of sfPartialView to render it. Later I've tried another approach where the xml was embedded inside the class via EOL; Both work. Lastly, there's this: http://www.symfony-project.org/plugins/sfUPSShippingPlugin Daniel On Mar 27, 6:41 am, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Thanks, Alecs. I'll take a look On Sat, Mar 27, 2010 at 9:12 AM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 we've moved somewhere else : http://code.google.com/p/sfshop/ Alecs -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Use GnuPG with Firefox :http://getfiregpg.org(Version: 0.7.10) iEYEARECAAYFAkuuBFMACgkQIdlZQSANiuZ7VgCfSlZDzY/4ooYvNGVrj4H2Hn4s deMAnja+e4smQhqbFlupiuHv+Moy1Yiq =YBH6 -END PGP SIGNATURE- On Sat, Mar 27, 2010 at 3:03 PM, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Thanks Alecs, looks like there's nothing there any more: http://svn.symfony-project.com/plugins/sfShopPlugin/ On Sat, Mar 27, 2010 at 8:51 AM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 HI! There is a plugin inside sfShop project that can handle Delivery services. I haven't yet looked at it, but it would worth for you to do it. Alecs -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Use GnuPG with Firefox :http://getfiregpg.org(Version: 0.7.10) iEYEARECAAYFAkut/0cACgkQIdlZQSANiub0VwCfQ3rlAppjthKi1q7ySHa4yc33 q6MAoJYsuitJ659vXHsV3oDXdXkre8D0 =ypYy -END PGP SIGNATURE- On Sat, Mar 27, 2010 at 2:25 PM, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Hi, I need to access the UPS shipping API for an ecommerce site. I'm writing a class for this: sfShippingServiceUps. Now the calls I have to make require me to send an XML string. My question is, do I just created the xml as a variable in the class like they do over here: http://trac.symfony-project.org/browser/plugins/sfUPSShippingPlugin/l... or is it possible to use some kind of template/view file? In the action I'd just like to be able to do: $shippingService = new sfShippingServiceUps(); $this-rateOptions = $shippingService-getRates(); I'd prefer not to have to use the action for making the API call, but if this is the best way to do it, I'm ready to listen. Thanks, TOm -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Have a nice day! Alecs Certified ScrumMaster There are no cannibals alive! I have ate the last one yesterday ... I am on web: http://www.alecslupu.ro/ I am on twitter:http://twitter.com/alecslupu I am on linkedIn:http://www.linkedin.com/in/alecslupu Tel: (+4)0722 621 280 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Have a nice day! Alecs Certified ScrumMaster There are no cannibals alive! I have ate the last one yesterday ... I am on web: http://www.alecslupu.ro/ I am on twitter:http://twitter.com/alecslupu I am
Re: [symfony-users] Re: XML template for API call
Or, use XMLWriter / simplexml (XMLWriter is usually easier) Using templated XML often leads to tears ;) On 27 Mar 2010, at 18:15, Richtermeister wrote: Also, there's many ways to skin that cat. I've got one app where I'm indeed using a template for the xml, and in the ups class I instantiate an instance of sfPartialView to render it. Later I've tried another approach where the xml was embedded inside the class via EOL; Both work. Lastly, there's this: http://www.symfony-project.org/plugins/sfUPSShippingPlugin Daniel On Mar 27, 6:41 am, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Thanks, Alecs. I'll take a look On Sat, Mar 27, 2010 at 9:12 AM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 we've moved somewhere else : http://code.google.com/p/sfshop/ Alecs -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Use GnuPG with Firefox :http://getfiregpg.org(Version: 0.7.10) iEYEARECAAYFAkuuBFMACgkQIdlZQSANiuZ7VgCfSlZDzY/4ooYvNGVrj4H2Hn4s deMAnja+e4smQhqbFlupiuHv+Moy1Yiq =YBH6 -END PGP SIGNATURE- On Sat, Mar 27, 2010 at 3:03 PM, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Thanks Alecs, looks like there's nothing there any more: http://svn.symfony-project.com/plugins/sfShopPlugin/ On Sat, Mar 27, 2010 at 8:51 AM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 HI! There is a plugin inside sfShop project that can handle Delivery services. I haven't yet looked at it, but it would worth for you to do it. Alecs -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Use GnuPG with Firefox :http://getfiregpg.org(Version: 0.7.10) iEYEARECAAYFAkut/0cACgkQIdlZQSANiub0VwCfQ3rlAppjthKi1q7ySHa4yc33 q6MAoJYsuitJ659vXHsV3oDXdXkre8D0 =ypYy -END PGP SIGNATURE- On Sat, Mar 27, 2010 at 2:25 PM, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Hi, I need to access the UPS shipping API for an ecommerce site. I'm writing a class for this: sfShippingServiceUps. Now the calls I have to make require me to send an XML string. My question is, do I just created the xml as a variable in the class like they do over here: http://trac.symfony-project.org/browser/plugins/sfUPSShippingPlugin/l... or is it possible to use some kind of template/view file? In the action I'd just like to be able to do: $shippingService= new sfShippingServiceUps(); $this-rateOptions = $shippingService-getRates(); I'd prefer not to have to use the action for making the API call, but if this is the best way to do it, I'm ready to listen. Thanks, TOm -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Have a nice day! Alecs Certified ScrumMaster There are no cannibals alive! I have ate the last one yesterday ... I am on web: http://www.alecslupu.ro/ I am on twitter:http://twitter.com/alecslupu I am on linkedIn:http://www.linkedin.com/in/alecslupu Tel: (+4)0722 621 280 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Have a nice day! Alecs Certified ScrumMaster There are no cannibals alive! I have ate the
Re: [symfony-users] Re: XML template for API call
I'm just playing with DOMDocument at the moment. Seems to do the job. On Sat, Mar 27, 2010 at 2:32 PM, Lee Bolding l...@leesbian.net wrote: Or, use XMLWriter / simplexml (XMLWriter is usually easier) Using templated XML often leads to tears ;) On 27 Mar 2010, at 18:15, Richtermeister wrote: Also, there's many ways to skin that cat. I've got one app where I'm indeed using a template for the xml, and in the ups class I instantiate an instance of sfPartialView to render it. Later I've tried another approach where the xml was embedded inside the class via EOL; Both work. Lastly, there's this: http://www.symfony-project.org/plugins/sfUPSShippingPlugin Daniel On Mar 27, 6:41 am, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Thanks, Alecs. I'll take a look On Sat, Mar 27, 2010 at 9:12 AM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 we've moved somewhere else : http://code.google.com/p/sfshop/ Alecs -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Use GnuPG with Firefox :http://getfiregpg.org(Version: 0.7.10) iEYEARECAAYFAkuuBFMACgkQIdlZQSANiuZ7VgCfSlZDzY/4ooYvNGVrj4H2Hn4s deMAnja+e4smQhqbFlupiuHv+Moy1Yiq =YBH6 -END PGP SIGNATURE- On Sat, Mar 27, 2010 at 3:03 PM, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Thanks Alecs, looks like there's nothing there any more: http://svn.symfony-project.com/plugins/sfShopPlugin/ On Sat, Mar 27, 2010 at 8:51 AM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 HI! There is a plugin inside sfShop project that can handle Delivery services. I haven't yet looked at it, but it would worth for you to do it. Alecs -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Use GnuPG with Firefox :http://getfiregpg.org(Version: 0.7.10) iEYEARECAAYFAkut/0cACgkQIdlZQSANiub0VwCfQ3rlAppjthKi1q7ySHa4yc33 q6MAoJYsuitJ659vXHsV3oDXdXkre8D0 =ypYy -END PGP SIGNATURE- On Sat, Mar 27, 2010 at 2:25 PM, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Hi, I need to access the UPS shipping API for an ecommerce site. I'm writing a class for this: sfShippingServiceUps. Now the calls I have to make require me to send an XML string. My question is, do I just created the xml as a variable in the class like they do over here: http://trac.symfony-project.org/browser/plugins/sfUPSShippingPlugin/l... or is it possible to use some kind of template/view file? In the action I'd just like to be able to do: $shippingService = new sfShippingServiceUps(); $this-rateOptions = $shippingService-getRates(); I'd prefer not to have to use the action for making the API call, but if this is the best way to do it, I'm ready to listen. Thanks, TOm -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Have a nice day! Alecs Certified ScrumMaster There are no cannibals alive! I have ate the last one yesterday ... I am on web: http://www.alecslupu.ro/ I am on twitter:http://twitter.com/alecslupu I am on linkedIn:http://www.linkedin.com/in/alecslupu Tel: (+4)0722 621 280 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.