Permalink
Browse files

- add nillable to the attributes of each element

  - fix for nillable false minoccurs = 0
  - nil PromotionId, AppliedStatus, and QualifyType bugs.
  • Loading branch information...
1 parent 232abc5 commit 45953fb2a438905b57bdb5f2168ada6627be6ad1 sam committed Jul 9, 2009
View
11 app.rb
@@ -45,11 +45,6 @@
haml :client
end
-post '/upload_file' do
- require 'ruby-debug';debugger
- haml :client
-end
-
post '/update' do
@client = @params[:client]
@wsdl = @params[:wsdl]
@@ -80,11 +75,13 @@
haml :client
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)
+ @params['input'] = SaveLoadConvertHelpers::load_request_xml("saved_forms/requests/"+@params["file_name"], @client, @namespace, @wsdl)
@input = @params['input']
haml :client
elsif @params[:action] == 'Upload'
- File.open("saved_forms/#{@params['datafile'][:filename]}", "w+").syswrite(@params["datafile"][:tempfile].readlines)
+ File.open("saved_forms/requests/#{@params['datafile'][:filename]}", "w+").syswrite(@params["datafile"][:tempfile].readlines)
+ @params['input'] = SaveLoadConvertHelpers::load_request_xml("saved_forms/requests/#{@params['datafile'][:filename]}", @client, @namespace, @wsdl)
+ @input = @params['input']
haml :client
elsif @params[:action] == 'Add'
@input = SinatraAppHelpers::create_element(@input, @params[:element])
View
@@ -1,27 +0,0 @@
-configuration do |c|
- c.project_name = 'rsoapUI'
- c.output_dir = 'package'
- c.main_ruby_file = 'app.rb'
- c.main_java_file = 'org.jruby.Main'
-
- # Compile all Ruby and Java files recursively
- # Copy all other files taking into account exclusion filter
- c.source_dirs = ['.', 'lib/']
- c.source_exclude_filter = []
-
- # Location of the jruby-complete.jar. Override this if your jar lives elsewhere.
- # This allows Rawr to make sure it uses a compatible jrubyc when compiling,
- # so the class files are always compatible, regardless of your system JRuby.
- #c.jruby_jar = 'lib/java/jruby-complete.jar'
- c.compile_ruby_files = true
- #c.java_lib_files = []
- c.java_lib_dirs = ['lib/java']
- #c.files_to_copy = []
-
- c.target_jvm_version = 1.5
- #c.jars[:data] = { :directory => 'data/images', :location_in_jar => 'images', :exclude => /bak/}
- #c.jvm_arguments = ""
-
- # Bundler options
- # c.do_not_generate_plist = false
-end
View
@@ -1,15 +0,0 @@
-require 'rubygems'
-# require 'vendor/frozen.rb' #using this so I can freeze my gems
-require 'sinatra'
-
-root_dir = File.dirname(__FILE__)
-
-set :environment, :production
-set :root, root_dir
-set :app_file, File.join(root_dir, 'app.rb')
-disable :run
-
-require 'app'
-
-run Sinatra::Application
-
View
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 27
-/rsoapUI/!svn/ver/21/config
-END
-warble.rb
-K 25
-svn:wc:ra_dav:version-url
-V 37
-/rsoapUI/!svn/ver/21/config/warble.rb
-END
View
@@ -1,62 +0,0 @@
-9
-
-dir
-35
-http://peyepr.com/rsoapUI/config
-http://peyepr.com/rsoapUI
-
-
-
-2009-05-12T08:36:52.718836Z
-21
-soap
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-154c1a90-4c69-0410-83b7-a5ce3b0d8c10
-
-warble.rb
-file
-
-
-
-
-2009-05-12T08:35:42.000000Z
-903e06f3925cdf5781505f82df7f978c
-2009-05-12T08:36:52.718836Z
-21
-soap
-has-props
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-4241
-
View
@@ -1 +0,0 @@
-9
@@ -1,5 +0,0 @@
-K 14
-svn:executable
-V 1
-*
-END
@@ -1,98 +0,0 @@
-# Disable automatic framework detection by uncommenting/setting to false
-# Warbler.framework_detection = false
-
-# Warbler web application assembly configuration file
-Warbler::Config.new do |config|
- # Temporary directory where the application is staged
- # config.staging_dir = "tmp/war"
-
- # Application directories to be included in the webapp.
- config.dirs = %w(lib public views vendor generated_clients saved_forms)
-
- # Additional files/directories to include, above those in config.dirs
- # config.includes = FileList["db"]
- config.includes = FileList[ "app.rb", "config.ru"]
- # Additional files/directories to exclude
- # config.excludes = FileList["lib/tasks/*"]
-
- # Additional Java .jar files to include. Note that if .jar files are placed
- # in lib (and not otherwise excluded) then they need not be mentioned here.
- # JRuby and JRuby-Rack are pre-loaded in this list. Be sure to include your
- # own versions if you directly set the value
- # config.java_libs += FileList["lib/java/*.jar"]
- if ENV['JRUBY_RACK_SRC']
- config.java_libs.delete_if {|f| f =~ /jruby-rack/}
- config.java_libs += FileList["../../target/jruby-rack*.jar"]
- end
- # Loose Java classes and miscellaneous files to be placed in WEB-INF/classes.
- # config.java_classes = FileList["target/classes/**.*"]
-
- # One or more pathmaps defining how the java classes should be copied into
- # WEB-INF/classes. The example pathmap below accompanies the java_classes
- # configuration above. See http://rake.rubyforge.org/classes/String.html#M000017
- # for details of how to specify a pathmap.
- # config.pathmaps.java_classes << "%{target/classes/,}p"
-
- # Gems to be included. You need to tell Warbler which gems your application needs
- # so that they can be packaged in the war file.
- # The Rails gems are included by default unless the vendor/rails directory is present.
- # config.gems += ["activerecord-jdbcmysql-adapter", "jruby-openssl"]
- # config.gems << "tzinfo"
- config.gems = ['sinatra']
-
- # Uncomment this if you don't want to package rails gem.
- # config.gems -= ["rails"]
-
- # The most recent versions of gems are used.
- # You can specify versions of gems by using a hash assignment:
- # config.gems["rails"] = "2.0.2"
-
- # You can also use regexps or Gem::Dependency objects for flexibility or
- # fine-grained control.
- # config.gems << /^merb-/
- # config.gems << Gem::Dependency.new("merb-core", "= 0.9.3")
-
- # Include gem dependencies not mentioned specifically
- config.gem_dependencies = true
-
- # Files to be included in the root of the webapp. Note that files in public
- # will have the leading 'public/' part of the path stripped during staging.
- # config.public_html = FileList["public/**/*", "doc/**/*"]
-
- # Pathmaps for controlling how public HTML files are copied into the .war
- # config.pathmaps.public_html = ["%{public/,}p"]
-
- # Name of the war file (without the .war) -- defaults to the basename
- # of RAILS_ROOT
- config.war_name = "soapwebclient"
-
- # Name of the MANIFEST.MF template for the war file. Defaults to the
- # MANIFEST.MF normally generated by `jar cf`.
- # config.manifest_file = "config/MANIFEST.MF"
-
- # Value of RAILS_ENV for the webapp -- default as shown below
- # config.webxml.rails.env = ENV['RAILS_ENV'] || 'production'
-
- # Application booter to use, one of :rack, :rails, or :merb. (Default :rails)
- # config.webxml.booter = :rack
- config.webxml.booter = :rack
-
- # When using the :rack booter, "Rackup" script to use.
- # The script is evaluated in a Rack::Builder to load the application.
- # Examples:
- # config.webxml.rackup = %{require './lib/demo'; run Rack::Adapter::Camping.new(Demo)}
- # config.webxml.rackup = require 'cgi' && CGI::escapeHTML(File.read("config.ru"))
-
- # Control the pool of Rails runtimes. Leaving unspecified means
- # the pool will grow as needed to service requests. It is recommended
- # that you fix these values when running a production server!
- # config.webxml.jruby.min.runtimes = 2
- # config.webxml.jruby.max.runtimes = 4
- config.webxml.jruby.min.runtimes = 1
- config.webxml.jruby.max.runtimes = 1
- config.webxml.jruby.init.serial = true
-
- # JNDI data source name
- # config.webxml.jndi = 'jdbc/rails'
- config.java_libs = []
-end
View
@@ -1,98 +0,0 @@
-# Disable automatic framework detection by uncommenting/setting to false
-# Warbler.framework_detection = false
-
-# Warbler web application assembly configuration file
-Warbler::Config.new do |config|
- # Temporary directory where the application is staged
- # config.staging_dir = "tmp/war"
-
- # Application directories to be included in the webapp.
- config.dirs = %w(lib public views vendor generated_clients saved_forms)
-
- # Additional files/directories to include, above those in config.dirs
- # config.includes = FileList["db"]
- config.includes = FileList[ "app.rb", "config.ru"]
- # Additional files/directories to exclude
- # config.excludes = FileList["lib/tasks/*"]
-
- # Additional Java .jar files to include. Note that if .jar files are placed
- # in lib (and not otherwise excluded) then they need not be mentioned here.
- # JRuby and JRuby-Rack are pre-loaded in this list. Be sure to include your
- # own versions if you directly set the value
- # config.java_libs += FileList["lib/java/*.jar"]
- if ENV['JRUBY_RACK_SRC']
- config.java_libs.delete_if {|f| f =~ /jruby-rack/}
- config.java_libs += FileList["../../target/jruby-rack*.jar"]
- end
- # Loose Java classes and miscellaneous files to be placed in WEB-INF/classes.
- # config.java_classes = FileList["target/classes/**.*"]
-
- # One or more pathmaps defining how the java classes should be copied into
- # WEB-INF/classes. The example pathmap below accompanies the java_classes
- # configuration above. See http://rake.rubyforge.org/classes/String.html#M000017
- # for details of how to specify a pathmap.
- # config.pathmaps.java_classes << "%{target/classes/,}p"
-
- # Gems to be included. You need to tell Warbler which gems your application needs
- # so that they can be packaged in the war file.
- # The Rails gems are included by default unless the vendor/rails directory is present.
- # config.gems += ["activerecord-jdbcmysql-adapter", "jruby-openssl"]
- # config.gems << "tzinfo"
- config.gems = ['sinatra']
-
- # Uncomment this if you don't want to package rails gem.
- # config.gems -= ["rails"]
-
- # The most recent versions of gems are used.
- # You can specify versions of gems by using a hash assignment:
- # config.gems["rails"] = "2.0.2"
-
- # You can also use regexps or Gem::Dependency objects for flexibility or
- # fine-grained control.
- # config.gems << /^merb-/
- # config.gems << Gem::Dependency.new("merb-core", "= 0.9.3")
-
- # Include gem dependencies not mentioned specifically
- config.gem_dependencies = true
-
- # Files to be included in the root of the webapp. Note that files in public
- # will have the leading 'public/' part of the path stripped during staging.
- # config.public_html = FileList["public/**/*", "doc/**/*"]
-
- # Pathmaps for controlling how public HTML files are copied into the .war
- # config.pathmaps.public_html = ["%{public/,}p"]
-
- # Name of the war file (without the .war) -- defaults to the basename
- # of RAILS_ROOT
- config.war_name = "soapwebclient"
-
- # Name of the MANIFEST.MF template for the war file. Defaults to the
- # MANIFEST.MF normally generated by `jar cf`.
- # config.manifest_file = "config/MANIFEST.MF"
-
- # Value of RAILS_ENV for the webapp -- default as shown below
- # config.webxml.rails.env = ENV['RAILS_ENV'] || 'production'
-
- # Application booter to use, one of :rack, :rails, or :merb. (Default :rails)
- # config.webxml.booter = :rack
- config.webxml.booter = :rack
-
- # When using the :rack booter, "Rackup" script to use.
- # The script is evaluated in a Rack::Builder to load the application.
- # Examples:
- # config.webxml.rackup = %{require './lib/demo'; run Rack::Adapter::Camping.new(Demo)}
- # config.webxml.rackup = require 'cgi' && CGI::escapeHTML(File.read("config.ru"))
-
- # Control the pool of Rails runtimes. Leaving unspecified means
- # the pool will grow as needed to service requests. It is recommended
- # that you fix these values when running a production server!
- # config.webxml.jruby.min.runtimes = 2
- # config.webxml.jruby.max.runtimes = 4
- config.webxml.jruby.min.runtimes = 1
- config.webxml.jruby.max.runtimes = 1
- config.webxml.jruby.init.serial = true
-
- # JNDI data source name
- # config.webxml.jndi = 'jdbc/rails'
- config.java_libs = []
-end
@@ -1,5 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 29
-/rsoapUI/!svn/ver/30/lib/java
-END
View
@@ -1,28 +0,0 @@
-9
-
-dir
-35
-http://peyepr.com/rsoapUI/lib/java
-http://peyepr.com/rsoapUI
-
-
-
-2009-05-15T22:45:47.490037Z
-30
-soap
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-154c1a90-4c69-0410-83b7-a5ce3b0d8c10
-
View
@@ -1 +0,0 @@
-9
Oops, something went wrong.

0 comments on commit 45953fb

Please sign in to comment.