Created
November 1, 2011 16:15
-
-
Save thomasv314/1330975 to your computer and use it in GitHub Desktop.
Savon Client Request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError: You have a nil object when you didn't expect it! | |
You might have expected an instance of Array. | |
The error occurred while evaluating nil.[] | |
from /Users/thomasvendetta/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/savon-0.9.7/lib/savon/soap/fault.rb:33:in `to_hash' | |
from /Users/thomasvendetta/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/savon-0.9.7/lib/savon/soap/fault.rb:28:in `to_s' | |
from /Users/thomasvendetta/Code/RegApp/app/models/registrant.rb:277:in `rescue in nf_shopping_cart_insert' | |
from /Users/thomasvendetta/Code/RegApp/app/models/registrant.rb:273:in `nf_shopping_cart_insert' | |
from (irb):14 | |
from /Users/thomasvendetta/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/commands/console.rb:45:in `start' | |
from /Users/thomasvendetta/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/commands/console.rb:8:in `start' | |
from /Users/thomasvendetta/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/commands.rb:40:in `<top (required)>' | |
from script/rails:6:in `require' | |
from script/rails:6:in `<main>' |
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>System.Web.Services.Protocols.SoapException: Payment method is required
at Avectra.netForum.xWeb.xWebSecure.netForumXMLSecure.WEBCentralizedShoppingCartInsert(OrderEntry oCentralizedOrderEntry)</faultstring>
<faultactor>http://my.suna.org/netforumsunatest/xweb/secure/netforumxml.asmx?WSDL</faultactor>
<detail>
<SystemExceptionInfo xmlns="http://www.avectra.com/2005/">
<XWebException xmlns="http://www.avectra.com/2005/">
<Message>Payment method is required</Message>
<MessageDetail>Payment method is required</MessageDetail>
<UserMessage />
<Number>5</Number>
<Source>xWeb</Source>
<Class />
<Library />
<Method />
<Line>0</Line>
<StackTrace> at Avectra.netForum.xWeb.xWebSecure.netForumXMLSecure.WEBCentralizedShoppingCartInsert(OrderEntry oCentralizedOrderEntry)</StackTrace>
<SQLCommand />
<ErrorType>GeneralError</ErrorType>
<ErrorKey />
<Errors />
</XWebException>
</SystemExceptionInfo>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
mhh. i looked at the code and tried it out in irb, but ... i think it should just work.
i can take a closer look at it tomorrow.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what does the soap response look like?