{"id":331,"date":"2004-08-23T10:16:00","date_gmt":"2004-08-23T05:16:00","guid":{"rendered":"http:\/\/chris.dwan.org\/?p=331"},"modified":"2004-08-23T10:16:00","modified_gmt":"2004-08-23T05:16:00","slug":"code-autogeneration","status":"publish","type":"post","link":"https:\/\/chris.dwan.org\/?p=331","title":{"rendered":"Code autogeneration"},"content":{"rendered":"<p>Today I&#8217;m writing an autogenerator for a pile of WSDL.  It&#8217;s a program that writes another program.  Nothing new there.  I&#8217;ve been writing programs to create scripts for a while now.  The new part is that this autogenerated code defines a set of generic interfaces, which will themselves be used to autogenerate code.<\/p>\n<p>So it&#8217;s code that writes code that allows other code to write its code.  <\/p>\n<p>But wait, there&#8217;s more.  <\/p>\n<p>The autogenerated interface code that my WSDL enables will be accessing perl modules which are themselves autogenerated by another pile of scripts.  This is the reason I&#8217;m making my WSDL dynamically rather than writing it once and being done with it.  So this is a dynamic interface to a dynamically generated set of modules, all of which are specified (under the hood) in XML.  WSDL is also XML, but don&#8217;t be fooled into thinking that they&#8217;ll play nicely just because of that.  These are two very distinct document types within XML.<\/p>\n<p>It goes something like this:<\/p>\n<pre>\r\nMe:  XML --> WSDL <---> HTTP <----------> WSDL-parser  \r\n      |                                        |\r\n      +----> Perl <---> SOAP <---> HTTP <---> SOAP <----> Client, in the language of your choice : User\r\n<\/pre>\n<p>Yes, was there a question in the back?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I&#8217;m writing an autogenerator for a pile of WSDL. It&#8217;s a program that writes another program. Nothing new there. I&#8217;ve been writing programs to create scripts for a while now. The new part is that this autogenerated code defines a set of generic interfaces, which will themselves be used to autogenerate code. So it&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-331","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/chris.dwan.org\/index.php?rest_route=\/wp\/v2\/posts\/331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chris.dwan.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chris.dwan.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chris.dwan.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chris.dwan.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=331"}],"version-history":[{"count":0,"href":"https:\/\/chris.dwan.org\/index.php?rest_route=\/wp\/v2\/posts\/331\/revisions"}],"wp:attachment":[{"href":"https:\/\/chris.dwan.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chris.dwan.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chris.dwan.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}