• bitla
  • Company Blog
  • Product Blog
  • Mobile Blog
  • Web Blog

We Build Successful Web, Mobile and Social Applications

Hire our experts to get your app done the right way

SOAP4R and ActionWebServices Conflicts and the FIX

Posted by Dash
August 1, 2010

 

SOAP4R and ActionWebServices doesn’t get along very well – due to conflicts in their naming convention.

SOAP4R is used to connect to any Web Services based third party clients – may or may not be based on rails. SOAP4R works fine when its used independently.

 

If you have to offer your own Web Services using ActionWebServices – independently it works fine without SOAP4R being used.

 

When used together – the following exception is thrown – when wsdl URL is accessed related to your ActionWebServices!

NameError (uninitialized constant SOAP::XSDNamespaceTag):
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:442:in `load_missing_constant’
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:77:in `const_missing’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/protocol/soap
protocol/marshaler.rb:160:in `qualified_type_name’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/dispatcher/ac
ion_controller_dispatcher.rb:231:in `to_wsdl’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/support/signa
ure_types.rb:205:in `each_member’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/support/signa
ure_types.rb:204:in `each’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/support/signa
ure_types.rb:204:in `each_member’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/dispatcher/ac
ion_controller_dispatcher.rb:229:in `to_wsdl’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `call’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `_nested_structures’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in `method_missing’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/dispatcher/ac
ion_controller_dispatcher.rb:228:in `to_wsdl’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `call’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `_nested_structures’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in `method_missing’
    D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/dispatcher/ac
ion_controller_dispatcher.rb:227:in `to_wsdl’

 

You must have already included gem ’soap4r’ to make your WebServices Client code working.

To fix this problem … add the following code to your environment.rb file and restart your server. Now both should be working.

 

module SOAP
    SOAPNamespaceTag = ‘env’
    XSDNamespaceTag = ‘xsd’
    XSINamespaceTag = ‘xsi’
end

Uncategorized

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)


CAPTCHA Image
Refresh Image
  • Categories

    • ActiveRecord
    • Passenger
    • RoR
    • Ruby
    • Ruby on Rails
    • Serialization
    • Uncategorized
  • Tags

    ActiveRecord Android CSS3 HTML5 iPad iPhone jQTouch Passenger rails rails background job redis RoR Ruby Ruby on Rails ruby on rails background job ruby on rails BJ Serialization
  • Recent Posts

    • Ubuntu Linux – Disk Full 100% What to do?
    • SOAP4R and ActionWebServices Conflicts and the FIX
    • How to install and configure Postfix in Ubuntu
    • How to reconfigure Postfix?
    • Learning HTML5 and CSS3 by example
    • Introduction to HTML5 & CSS3
    • Installing Passenger passenger-install-apache2-module: command not found
    • Upgrading to Phusion Passenger 2.2.11
    • Deserializing an object failed in ActiveRecord
    • Ruby on Rails: Serializing and DeSerializing Ruby objects
  • Archives

    • August 2010
    • July 2010
    • May 2010
    • March 2010
  • Our Products

    mobee.in

    Simplified Email Messaging Solution

    TicketSimply.com

    Simplified BUS Travel Management Software for Travel Operators & Travel Agents!

    AgentSimply.com

    Simplified Travel Agent Booking Software

    SimplyBus.com

    Online BUS Tickets Booking

    Bingra.com

    Info your way
What we can do for you?
Bitla has built several innovative Web and Mobile applications ourselves & also helping Web start-ups, Mobile start-ups, Small and Medium Enterprises in building their web & mobile business with strategy, designs, development, scalable architectures, cloud deployments, SEO & SEM and maintain their applications to ensure success.

We can turn your idea/vision into reality.


Read our Blogs
Company Blog
Product Blog
Web Blog
Mobile Bog
How we do it
Discovery
Strategy
Design
Kick-Start
Develop
Maintain
Services
Web Applications
Mobile Applications
Wap & Sms Application
Web Designs
Company
Home
Careers
Contact Us
About