Skip to content

Commit

Permalink
need to update saved forms on each update to avoid null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
mpclocal committed Aug 31, 2009
1 parent 87d417a commit 8e33533
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 59 deletions.
3 changes: 2 additions & 1 deletion app.rb
Expand Up @@ -89,7 +89,8 @@ def save_wsdls
@endpoint = @params[:endpoint] @endpoint = @params[:endpoint]
@params = SinatraAppHelpers::update @params @params = SinatraAppHelpers::update @params
@input = @params['input'] @input = @params['input']

update_saved_forms

if @params[:action] == 'Submit' if @params[:action] == 'Submit'
@input = SinatraAppHelpers::send_request(@input,@service_method, @client, @namespace, @wsdl, @endpoint) @input = SinatraAppHelpers::send_request(@input,@service_method, @client, @namespace, @wsdl, @endpoint)
return haml :result return haml :result
Expand Down
120 changes: 62 additions & 58 deletions todo.txt
@@ -1,75 +1,79 @@
todo: todo:
- ssl passwords high:
- proxy support - make enums work as select boxes need to figure a way to make nil preserve the enum type dynamically
- amazon request response success #signature problem?
- demo video - demo video
- Enums should give a select box.
- empty request. service alive without type med:
- amazon request response success #signature problem? - implement ssl passwords
http://s2.diffuse.it/blog/show/62-Consume_SSL_protected_Web_Services_with_soap4r
- proxy support
Default driver needs the following at the end of the init:
self.options["protocol.http.basic_auth"] << [endpoint_url,'username','password']
self.options["protocol.http.proxy"] = "http://yourproxyserver:8080/"
- google get an api key and try some requests out.
- ebay working examples
- cleanup temporary files on startup
- serve this as catalina web app (finalize on war or ruby web server) (rake task)
- create a java executable that works for mac osx and windows xp (rake task)
java -cp "ruby-processing/app.rb:ruby-processing/exporters/applet_exporter.rb:ruby-processing/exporters/application_exporter.rb:ruby-processing/exporters/base_exporter.rb:ruby-processing/exporters/creator.rb:ruby-processing/helpers/numeric.rb:ruby-processing/helpers/string.rb:ruby-processing/runner.rb:ruby-processing/runners/base.rb:ruby-processing/runners/live.rb:ruby-processing/runners/run.rb:ruby-processing/runners/watch.rb:ruby-processing.rb:sand_chaser.rb:core/core.jar:core/jruby-complete.jar:jogl.jar:opengl.jar" org.jruby.Main ruby-processing/runners/run.rb sand_chaser.rb

low:
- simple fault responses should have a better ui. - simple fault responses should have a better ui.
- bug for backslashes for local files on windows systems - bug for backslashes for local files on windows systems
- loading bug optional fields missing should build default instance then populate it. - loading bug optional fields missing should build default instance then populate it.
- cleanup temporary files on startup - empty request. service alive without type

- ICmfindInventory build default instance with SchemaSequenceDefinition bug (i think this is already fixed)
-serve this as web app (finalize on war or ruby web server) (rake task) - findInventory array build default instance with Array of complextype bug (i think this is already fixed)
-create a java executable that works for mac osx and windows xp (rake task) - receipt messages bug missing on load.
java -cp "ruby-processing/app.rb:ruby-processing/exporters/applet_exporter.rb:ruby-processing/exporters/application_exporter.rb:ruby-processing/exporters/base_exporter.rb:ruby-processing/exporters/creator.rb:ruby-processing/helpers/numeric.rb:ruby-processing/helpers/string.rb:ruby-processing/runner.rb:ruby-processing/runners/base.rb:ruby-processing/runners/live.rb:ruby-processing/runners/run.rb:ruby-processing/runners/watch.rb:ruby-processing.rb:sand_chaser.rb:core/core.jar:core/jruby-complete.jar:jogl.jar:opengl.jar" org.jruby.Main ruby-processing/runners/run.rb sand_chaser.rb - min max occurs disappears on reload.

- mouse over table highlight
-ICmfindInventory build default instance with SchemaSequenceDefinition bug - create a quick driver to generate ruby tests
-findInventory array build default instance with Array of complextype bug - create a gui to do a visual diff of expected responses vs actual responses.



-receipt messages bug missing on load.
-min max occurs disappears on reload.
-make enums work as select boxes need to figure a way to make nil preserve the enum type dynamically


-mouse over table highlight
-create a quick driver to generate ruby tests
-create a gui to do a visual diff of expected responses vs actual responses.
-google / amazon / ebay working examples
done: done:
- remove other loads and saves - remove other loads and saves
- save and load wsdl - save and load wsdl
- local save and load for requests and responses. - local save and load for requests and responses.
- upload wsdl - upload wsdl
-findInventory ServiceAlive bug (think this is due to a malformed wsdl method def) (confirmed bad wsdl) - findInventory ServiceAlive bug (think this is due to a malformed wsdl method def) (confirmed bad wsdl)
- get all demo xmls working - get all demo xmls working
- investigate awardMethodENum bug - investigate awardMethodENum bug
- add nillable to the attributes of each element - add nillable to the attributes of each element
- fix for nillable false minoccurs = 0 - fix for nillable false minoccurs = 0
- nil PromotionId, AppliedStatus, and QualifyType bugs. - nil PromotionId, AppliedStatus, and QualifyType bugs.
- fix for booleans - fix for booleans
-submission bugs (soap faults should be displayed) - submission bugs (soap faults should be displayed)
- fix for errors requiring a restard due to chdir - fix for errors requiring a restard due to chdir
- upload feature - upload feature
- remove implicit .xml file extension - remove implicit .xml file extension
-manually create and submit an xml - manually create and submit an xml
-fix on restart of server having to go back to the method selector page. - fix on restart of server having to go back to the method selector page.
-make sure the appliedStatus is returned correctly from the server - make sure the appliedStatus is returned correctly from the server
-result display bugs -may already be fixed with the array of simple types fix - result display bugs -may already be fixed with the array of simple types fix
-appliedstatus bug result display bug enum must get text - appliedstatus bug result display bug enum must get text
-findInventory service name bug - findInventory service name bug
-coloring of sub tables - coloring of sub tables
-qualifingTenders visibility bug - qualifingTenders visibility bug
-(service name methods bug) - (service name methods bug)
-patch jruby openssl hex digit - patch jruby openssl hex digit
-patch jruby yaml load - patch jruby yaml load
-run the app via jruby (collect all the gem dependencies) - run the app via jruby (collect all the gem dependencies)
-store minoccurs maxoccurs in marshaller (alternative was to look it up at runtime from schemadef) - store minoccurs maxoccurs in marshaller (alternative was to look it up at runtime from schemadef)
-fix namespace issue for generated code with same name - fix namespace issue for generated code with same name
-save service descriptor locally so that tests are really unit tests. - save service descriptor locally so that tests are really unit tests.
-add a button to save the response xml for later comparison - add a button to save the response xml for later comparison
-the response should be displayed on the screen. - the response should be displayed on the screen.
-ui generate a ui that indents subelements correctly. - ui generate a ui that indents subelements correctly.
-convert from obj to xml and from xml to obj - convert from obj to xml and from xml to obj
-the submit button should gather all the inputs from the form and generate the request and send it to the server defined in the endpoint. - the submit button should gather all the inputs from the form and generate the request and send it to the server defined in the endpoint.
-optional fields should be marked as such - optional fields should be marked as such
-there should be a save button that allows you to store the request for later - there should be a save button that allows you to store the request for later
-there should be a load button to load a previously saved request. - there should be a load button to load a previously saved request.
-the add button should send a request to the server and the response should reflect this change - the add button should send a request to the server and the response should reflect this change
-map from soap4r object graph to form fields - map from soap4r object graph to form fields
-translate from form fields and data to a soap4r object representing the tree. - translate from form fields and data to a soap4r object representing the tree.
-fields that can occur more than once should have an "add field" button next to them to duplicate the input forms. - fields that can occur more than once should have an "add field" button next to them to duplicate the input forms.
-create a default empty instance of a soap4r object from the wsdl - create a default empty instance of a soap4r object from the wsdl
-accept a local(saved on hard drive) or remote (http:) copy of the wsdl and give a drop down of all methods the service handles. - accept a local(saved on hard drive) or remote (http:) copy of the wsdl and give a drop down of all methods the service handles.
-after selecting a method a web form should be generated according to the required and optional fields. - after selecting a method a web form should be generated according to the required and optional fields.

0 comments on commit 8e33533

Please sign in to comment.