Permalink
Browse files

- fix for booleans

  • Loading branch information...
1 parent 95aca16 commit 232abc59a052bd1a996dadbe66406a0d2ee32141 sam committed Jul 9, 2009
Showing with 8 additions and 12 deletions.
  1. +1 −1 app.rb
  2. +1 −1 todo.txt
  3. +1 −3 views/client.haml
  4. +4 −4 views/haml_partial.haml
  5. +1 −3 views/result.haml
View
@@ -78,7 +78,7 @@
# SaveLoadConvertHelpers::save_request_as_yaml(@params,"saved_forms/"+@params["file_name"]+".yml")
SaveLoadConvertHelpers::save_request_xml(@input, "saved_forms/responses/"+@params["file_name"], @client, @namespace, @wsdl)
haml :client
- elsif @params[:action] == 'Load'
+ elsif @params[:action] == 'LoadRequest'
#@params = SaveLoadConvertHelpers::load_request_from_yaml("saved_forms/"+@params["file_name"]+".yml")
@params['input'] = SaveLoadConvertHelpers::load_request_xml("saved_forms/requests"+@params["file_name"], @client, @namespace, @wsdl)
@input = @params['input']
View
@@ -1,6 +1,5 @@
todo:
- add nillable to the attributes of each element
- - fix for booleans
- fix for nillable false minoccurs = 0
- nil PromotionId, AppliedStatus, and QualifyType bugs.
- get all demo xmls working
@@ -27,6 +26,7 @@ todo:
-create a gui to do a visual diff of expected responses vs actual responses.
-google / amazon / ebay working examples
done:
+ - fix for booleans
-submission bugs (soap faults should be displayed)
- fix for errors requiring a restard due to chdir
- upload feature
View
@@ -32,11 +32,9 @@
%div
%label
filename:
- %small
- (defaults to .xml extension)
%input{:type => :text, :id => "file_name", :name => "file_name", :value => ''}
%input{:type => 'submit', :name => 'SaveRequest',:value => 'SaveRequest', :onclick => "document.getElementById(\"action\").value = \"SaveRequest\";"}
- %input{:type => 'submit', :name => 'Load',:value => 'Load', :onclick => "document.getElementById(\"action\").value = \"Load\";"}
+ %input{:type => 'submit', :name => 'LoadRequest',:value => 'LoadRequest', :onclick => "document.getElementById(\"action\").value = \"LoadRequest\";"}
%div
%label
fileupload:
@@ -2,10 +2,8 @@
- field = @parent.instance_variable_get(@child)
- field_type = field.class
- field_name = @child
-- #if this is a collection then iterate over the elements/
-- #if this object is one of our domain's complex types iterate over the instance variables/
-- #simple types should be text input fields/
%tr
+- #if this is a collection then iterate over the elements/
-if (field_type == Array)
- array = field
- ancestry = @ancestry + ".#{@child.gsub('@','')}"
@@ -33,6 +31,7 @@
%small [optional]
- else
+ - #if this object is one of our domain's complex types iterate over the instance variables/
- if (field_type.to_s.include?(@namespace+'::'))
%td
= "#{field_name.gsub('@','')}"# is a complexType:#{field_type}"#, parent is #{@parent.class.to_s}"
@@ -48,12 +47,13 @@
- for @child in @parent.instance_variables
= haml :haml_partial
- else
+ - #simple types should be text input fields/
- if !field_name.include?('@minoccurs') && !field_name.include?('@maxoccurs')
%td
%pre
= "#{field_name.gsub('@','')}"# is a simpleType #{field_type}"#, parent is #{@parent.class.to_s}"
%td
- %input{ :name => "#{@ancestry}.#{field_name.gsub('@','')}", :type => :text, :value => field}
+ %input{ :name => "#{@ancestry}.#{field_name.gsub('@','')}", :type => :text, :value => field.to_s}
- if field.minoccurs == 0
%small [optional]
- #restore the scope/
View
@@ -29,8 +29,6 @@
%div
%label
filename:
- %small
- (defaults to .xml extension)
%input{:type => :text, :id => "file_name", :name => "file_name", :value => ''}
- %input{:type => 'submit', :name => 'SaveResult',:value => 'SaveResult', :onclick => "document.getElementById(\"action\").value = \"SaveResult\";"}
+ %input{:type => 'submit', :name => 'SaveResponse',:value => 'SaveResponse', :onclick => "document.getElementById(\"action\").value = \"SaveResponse\";"}

0 comments on commit 232abc5

Please sign in to comment.