[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Headers/Reply
Scott,
Sorry about that, I must have had a RPG2 moment.
I have attached both log files from the IFS folders not copied and paste.
The vendor is telling me that the cant convert Nils to string error is a header error. But he is not sure.
I don't know if the following attachment will help but I thought I pass it along.
I have attached the email from the vendor depicting a successful call using .NET and the failed call using HTTPAPI.
Thanks for your help.
Mauricio
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx
Sent: Friday, April 26, 2013 12:00 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Ftpapi Digest, Vol 78, Issue 42
Send Ftpapi mailing list submissions to
ftpapi@xxxxxxxxxxxxxxxxxxxxxx
To subscribe or unsubscribe via the World Wide Web, visit
http://scottklement.com/mailman/listinfo/ftpapi
or, via email, send a message with subject or body 'help' to
ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx
You can reach the person managing the list at
ftpapi-owner@xxxxxxxxxxxxxxxxxxxxxx
When replying, please edit your Subject line so it is more specific than "Re: Contents of Ftpapi digest..."
Today's Topics:
1. Re: Headers (Scott Klement)
----------------------------------------------------------------------
Message: 1
Date: Fri, 26 Apr 2013 10:14:44 -0500
From: Scott Klement <sk@xxxxxxxxxxxxxxxx>
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Headers
Message-ID: <517A99E4.9020908@xxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
Not sure what an "RX web service tool" is... Probably something similar
to SoapUI? SoapUI is a great tool for web services, by the way, and
it's available for free.
The error message that you have been sent is (from the log file):
"TypeError: can't convert NilClass into String". That sure doesn't
sound like it's related to the HTTP headers to me?!?!
To me, it sounds like your XML document is wrong.
I can't look at your XML data, since your log file appears to be completely screwed up. What did you do? copy and paste it screen-by-screen into another file?! Why would you do that? The data is already in an ASCII file, why not just send that to us instead of copy/pasting (which is a lot of work, and is very error-prone) into a separate file? Just send us the original!
But, even if I could look at your XML, I couldn't help much because I don't know what the web service is expecting. Show me the XML that your "RX web service tool" is sending, too. Or send us the WSDL.
On 4/26/2013 9:30 AM, Mauricio Diaz-Lapham wrote:
> Hi Scott,
>
>
> I obtained a free trial of RX web service tool. And the web service I
> am trying to consume works on that tool, but not on the HTTPAPI.
>
> So what I thought was, if I can find the difference between the two and
> incorporated it in the HTTPAPI, I might be able to get the HTTPAPI to
> work.
>
>
> In the RX log it shows what it passed to the server that created the
> service and the response. Here below is the log of the post.
>
> It has some additional headers. Now that you explained what they mean,
> I believe they should not make any difference but I thought I would try
> to add it to the HTPPAPI.
>
>
> POST /client_smart/api HTTP/1.1
>
> User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
>
> Host: 172.16.255.7:5001
>
> Accept: */*
>
> Connection: Keep-Alive
>
> Content-Type: text/xml; charset=utf-8
> This is from the RX tool.
>
> SOAPAction: "/client_smart/api/get_client"
>
> Content-Length: 398
>
>
> HTTP/1.1 200 OK
>
> Connection: close
>
> Date: Fri, 26 Apr 2013 13:15:39 GMT
>
>
> I talked to the vendor that created the service and they were able to
> capture what we send to them. The first log shows how a successful call
> looks like and the second is the one is the one I sent using HTPPAPI
> and it failed. I am also including the log from the HTPPAPI and my
> code. I think its something on their server, but what is a mystery is
> why some tools work and others don't.
>
> Thanks for your help.
>
>
> Here the TCP Stream on a successful call. It sends a POST request.
>
> cid:image002.jpg@01CE41B3.22275EC0
>
>
> Here's the TCP Stream on Mauricio's failing call. Note no POST
> request.
>
> cid:image006.jpg@01CE41B3.22275EC0
>
>
>
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -
-------------- next part --------------
Not sure what an "RX web service tool" is... Probably something
similar to SoapUI? SoapUI is a great tool for web services, by the
way, and it's available for free.
The error message that you have been sent is (from the log file):
"TypeError: can't convert NilClass into String". That sure doesn't
sound like it's related to the HTTP headers to me?!?!
To me, it sounds like your XML document is wrong.
I can't look at your XML data, since your log file appears to be
completely screwed up. What did you do? copy and paste it
screen-by-screen into another file?! Why would you do that? The data
is already in an ASCII file, why not just send that to us instead of
copy/pasting (which is a lot of work, and is very error-prone) into a
separate file? Just send us the original!
But, even if I could look at your XML, I couldn't help much because I
don't know what the web service is expecting. Show me the XML that
your "RX web service tool" is sending, too. Or send us the WSDL.
On 4/26/2013 9:30 AM, Mauricio Diaz-Lapham wrote:
Hi Scott,
I obtained a free trial of RX web service tool. And the web service I
am trying to consume works on that tool, but not on the HTTPAPI.
So what I thought was, if I can find the difference between the two and
incorporated it in the HTTPAPI, I might be able to get the HTTPAPI to
work.
In the RX log it shows what it passed to the server that created the
service and the response. Here below is the log of the post.
It has some additional headers. Now that you explained what they mean,
I believe they should not make any difference but I thought I would try
to add it to the HTPPAPI.
POST /client_smart/api HTTP/1.1
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Host: 172.16.255.7:5001
Accept: */*
Connection: Keep-Alive
Content-Type: text/xml; charset=utf-8
This is from the RX tool.
SOAPAction: "/client_smart/api/get_client"
Content-Length: 398
HTTP/1.1 200 OK
Connection: close
Date: Fri, 26 Apr 2013 13:15:39 GMT
I talked to the vendor that created the service and they were able to
capture what we send to them. The first log shows how a successful call
looks like and the second is the one is the one I sent using HTPPAPI
and it failed. I am also including the log from the HTPPAPI and my
code. I think its something on their server, but what is a mystery is
why some tools work and others don't.
Thanks for your help.
Here the TCP Stream on a successful call. It sends a POST request.
[1]cid:image002.jpg@01CE41B3.22275EC0
Here's the TCP Stream on Mauricio's failing call. Note no POST
request.
[2]cid:image006.jpg@01CE41B3.22275EC0
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
[3]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
References
1. cid:image002.jpg@01CE41B3.22275EC0
2. cid:image006.jpg@01CE41B3.22275EC0
3. http://www.scottklement.com/mailman/listinfo/ftpapi
------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list digest. To unsubscribe, go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
End of Ftpapi Digest, Vol 78, Issue 42
**************************************
HTTPAPI Ver 1.24 released 2012-01-23
OS/400 Ver V7R1M0
New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: VONMAUR.COM
DNS server found: 64.22.192.4
DNS server found: 64.22.192.3
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
do_oper(POST): entered
There are 1 cookies in the cache
cookie=ZDEDebuggerPresent not sent (wrong path or domain)
POST /client_smart/api HTTP/1.1
Host: 172.16.255.7:5001
User-Agent: http-api/1.24
Content-Type: text/xml; charset=utf-8
SOAPAction: /client_smart/api/get_client
Content-Length: 443
senddoc(): entered
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?> <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:ActionWebService"> <soapenv:Header/> <soapenv:Body> <urn:get_client <client_id xsi:type="xsd:int">1234</client_id> </urn:get_client> </soapenv:Body> </soapenv:Envelope>
recvresp(): entered
HTTP/1.1 500 Internal Server Error
Connection: close
Date: Fri, 26 Apr 2013 18:09:30 GMT
Content-Type: text/html
Content-Length: 15944
X-Runtime: 0.031000
SetError() #13: HTTP/1.1 500 Internal Server Error
recvresp(): end with 500
recvdoc parms: identity 15944
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Action Controller: Exception caught</title>
<style>
body { background-color: #fff; color: #333; }
body, p, ol, ul, td {
font-family: verdana, arial, helvetica, sans-serif;
font-size: 13px;
line-height: 18px;
}
pre {
background-color: #eee;
padding: 10px;
font-size: 11px;
}
a { color: #000; }
a:visited { color: #666; }
a:hover { color: #fff; background-color:#000; }
</style>
</head>
<body>
<h1>
TypeError
</h1>
<pre>can't convert NilClass into String</pre>
<p><code>Rails.root: C:/vmpss/webpss/client_smart</code></p>
<div id="traces">
<a href="#" onclick="document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Application-Trace').style.display='block';; return false;">Application Trace</a> |
<a href="#" onclick="document.getElementById('Application-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='block';; return false;">Framework Trace</a> |
<a href="#" onclick="document.getElementById('Application-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='block';; return false;">Full Trace</a>
<div id="Application-Trace" style="display: block;">
<pre><code></code></pre>
</div>
<div id="Framework-Trace" style="display: none;">
<pre><code>org/jruby/RubyIconv.java:207:in `initialize'
org/jruby/RubyIconv.java:391:in `conv'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/encodings/ICONV.rb:12:in `encode'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/source.rb:55:in `encoding='
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/source.rb:45:in `initialize'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/source.rb:160:in `initialize'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/source.rb:16:in `create_from'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/parsers/baseparser.rb:121:in `stream='
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/parsers/baseparser.rb:110:in `initialize'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/parsers/treeparser.rb:9:in `initialize'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/document.rb:227:in `build'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
vendor/bundle/jruby/1.8/gems/activesupport-3.0.20/lib/active_support/xml_mini/rexml.rb:29:in `parse'
org/jruby/RubyKernel.java:2080:in `send'
vendor/bundle/jruby/1.8/gems/activesupport-3.0.20/lib/active_support/core_ext/hash/conversions.rb:86:in `from_xml'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/params_parser.rb:41:in `parse_formatted_parameters'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/params_parser.rb:17:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/flash.rb:182:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/cookies.rb:302:in `call'
vendor/bundle/jruby/1.8/gems/activerecord-3.0.20/lib/active_record/query_cache.rb:32:in `call'
vendor/bundle/jruby/1.8/gems/activerecord-3.0.20/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
vendor/bundle/jruby/1.8/gems/activerecord-3.0.20/lib/active_record/query_cache.rb:12:in `cache'
vendor/bundle/jruby/1.8/gems/activerecord-3.0.20/lib/active_record/query_cache.rb:31:in `call'
vendor/bundle/jruby/1.8/gems/activerecord-3.0.20/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/callbacks.rb:46:in `call'
vendor/bundle/jruby/1.8/gems/activesupport-3.0.20/lib/active_support/callbacks.rb:431:in `_run_call_callbacks'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/sendfile.rb:106:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
vendor/bundle/jruby/1.8/gems/railties-3.0.20/lib/rails/rack/logger.rb:13:in `call'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/runtime.rb:17:in `call'
vendor/bundle/jruby/1.8/gems/activesupport-3.0.20/lib/active_support/cache/strategy/local_cache.rb:90:in `<Class:0x13e2d777>'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/lock.rb:13:in `call'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/lock.rb:13:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/static.rb:30:in `call'
vendor/bundle/jruby/1.8/gems/railties-3.0.20/lib/rails/application.rb:168:in `call'
org/jruby/RubyKernel.java:2080:in `send'
vendor/bundle/jruby/1.8/gems/railties-3.0.20/lib/rails/application.rb:77:in `method_missing'
vendor/bundle/jruby/1.8/gems/railties-3.0.20/lib/rails/rack/log_tailer.rb:14:in `call'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/content_length.rb:13:in `call'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/chunked.rb:15:in `call'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/handler/mongrel.rb:67:in `process'
vendor/bundle/jruby/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:159:in `process_client'
org/jruby/RubyArray.java:1615:in `each'
vendor/bundle/jruby/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:158:in `process_client'
vendor/bundle/jruby/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:110:in `process_client'
vendor/bundle/jruby/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:285:in `run'
org/jruby/RubyProc.java:270:in `call'
org/jruby/RubyProc.java:224:in `call'</code></pre>
</div>
<div id="Full-Trace" style="display: none;">
<pre><code>org/jruby/RubyIconv.java:207:in `initialize'
org/jruby/RubyIconv.java:391:in `conv'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/encodings/ICONV.rb:12:in `encode'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/source.rb:55:in `encoding='
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/source.rb:45:in `initialize'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/source.rb:160:in `initialize'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/source.rb:16:in `create_from'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/parsers/baseparser.rb:121:in `stream='
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/parsers/baseparser.rb:110:in `initialize'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/parsers/treeparser.rb:9:in `initialize'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/document.rb:227:in `build'
C:/jruby-1.6.7.2/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
vendor/bundle/jruby/1.8/gems/activesupport-3.0.20/lib/active_support/xml_mini/rexml.rb:29:in `parse'
org/jruby/RubyKernel.java:2080:in `send'
vendor/bundle/jruby/1.8/gems/activesupport-3.0.20/lib/active_support/core_ext/hash/conversions.rb:86:in `from_xml'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/params_parser.rb:41:in `parse_formatted_parameters'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/params_parser.rb:17:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/flash.rb:182:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/cookies.rb:302:in `call'
vendor/bundle/jruby/1.8/gems/activerecord-3.0.20/lib/active_record/query_cache.rb:32:in `call'
vendor/bundle/jruby/1.8/gems/activerecord-3.0.20/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
vendor/bundle/jruby/1.8/gems/activerecord-3.0.20/lib/active_record/query_cache.rb:12:in `cache'
vendor/bundle/jruby/1.8/gems/activerecord-3.0.20/lib/active_record/query_cache.rb:31:in `call'
vendor/bundle/jruby/1.8/gems/activerecord-3.0.20/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/callbacks.rb:46:in `call'
vendor/bundle/jruby/1.8/gems/activesupport-3.0.20/lib/active_support/callbacks.rb:431:in `_run_call_callbacks'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/sendfile.rb:106:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
vendor/bundle/jruby/1.8/gems/railties-3.0.20/lib/rails/rack/logger.rb:13:in `call'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/runtime.rb:17:in `call'
vendor/bundle/jruby/1.8/gems/activesupport-3.0.20/lib/active_support/cache/strategy/local_cache.rb:90:in `<Class:0x13e2d777>'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/lock.rb:13:in `call'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/lock.rb:13:in `call'
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/middleware/static.rb:30:in `call'
vendor/bundle/jruby/1.8/gems/railties-3.0.20/lib/rails/application.rb:168:in `call'
org/jruby/RubyKernel.java:2080:in `send'
vendor/bundle/jruby/1.8/gems/railties-3.0.20/lib/rails/application.rb:77:in `method_missing'
vendor/bundle/jruby/1.8/gems/railties-3.0.20/lib/rails/rack/log_tailer.rb:14:in `call'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/content_length.rb:13:in `call'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/chunked.rb:15:in `call'
vendor/bundle/jruby/1.8/gems/rack-1.2.7/lib/rack/handler/mongrel.rb:67:in `process'
vendor/bundle/jruby/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:159:in `process_client'
org/jruby/RubyArray.java:1615:in `each'
vendor/bundle/jruby/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:158:in `process_client'
vendor/bundle/jruby/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:110:in `process_client'
vendor/bundle/jruby/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:285:in `run'
org/jruby/RubyProc.java:270:in `call'
org/jruby/RubyProc.java:224:in `call'</code></pre>
</div>
</div>
<h2 style="margin-top: 30px">Request</h2>
<p><b>Parameters</b>: <pre>None</pre></p>
<p><a href="#" onclick="document.getElementById('session_dump').style.display='block'; return false;">Show session dump</a></p>
<div id="session_dump" style="display:none"><pre></pre></div>
<p><a href="#" onclick="document.getElementById('env_dump').style.display='block'; return false;">Show env dump</a></p>
<div id="env_dump" style="display:none"><pre>CONTENT_LENGTH: "443"
CONTENT_TYPE: "text/xml; charset=utf-8"
GATEWAY_INTERFACE: "CGI/1.2"
HTTP_HOST: "172.16.255.7:5001"
HTTP_SOAPACTION: "/client_smart/api/get_client"
HTTP_USER_AGENT: "http-api/1.24"
HTTP_VERSION: "HTTP/1.1"
PATH_INFO: "/client_smart/api"
QUERY_STRING: ""
RAW_POST_DATA: nil
REMOTE_ADDR: "192.168.1.6"
REQUEST_METHOD: "POST"
REQUEST_PATH: "/client_smart/api"
REQUEST_URI: "/client_smart/api"
SCRIPT_NAME: ""
SERVER_NAME: "172.16.255.7"
SERVER_PORT: "5001"
SERVER_PROTOCOL: "HTTP/1.1"
SERVER_SOFTWARE: "Mongrel 1.1.5"
action_dispatch.parameter_filter: [:password]
action_dispatch.remote_ip: #<ActionDispatch::RemoteIp::RemoteIpGetter:0x49518ea7 @trusted_proxies=/(^127\.0\.0\.1$|^(10|172\.(1[6-9]|2[0-9]|30|31)|192\.168)\.)/i, @env={"REQUEST_METHOD"=>"POST", "REQUEST_PATH"=>"/client_smart/api", "REQUEST_URI"=>"/client_smart/api", "HTTP_VERSION"=>"HTTP/1.1", "HTTP_HOST"=>"172.16.255.7:5001", "HTTP_USER_AGENT"=>"http-api/1.24", "HTTP_SOAPACTION"=>"/client_smart/api/get_client", "CONTENT_LENGTH"=>"443", "CONTENT_TYPE"=>"text/xml; charset=utf-8", "GATEWAY_INTERFACE"=>"CGI/1.2", "SERVER_NAME"=>"172.16.255.7", "SERVER_PORT"=>"5001", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"Mongrel 1.1.5", "PATH_INFO"=>"/client_smart/api", "SCRIPT_NAME"=>"", "REMOTE_ADDR"=>"192.168.1.6", "rack.version"=>[1, 1], "rack.input"=>#<StringIO:0x39580929>, "rack.errors"=>#<IO:0x3f2a225b>, "rack.multithread"=>false, "rack.multiprocess"=>false, "rack.run_once"=>false, "rack.url_scheme"=>"http", "QUERY_STRING"=>"", "action_dispatch.parameter_filter"=>[:password], "action_dispatch.secret_token"=>"4fce6b775e9a6018661a317b079f9875b95f099daa307487a4b6219c2f484601f8dcb25b35d78d4dc5b3b75428ef7fb422a0c1ce96b1b96c520942c069c46156", "action_dispatch.show_exceptions"=>true, "action_dispatch.remote_ip"=>#<ActionDispatch::RemoteIp::RemoteIpGetter:0x49518ea7 ...>, "rack.session"=>{}, "rack.session.options"=>{:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :id=>nil}, "action_dispatch.request.content_type"=>#<Mime::Type:0x1d94a7ec @synonyms=["text/xml", "application/x-xml"], @string="application/xml", @symbol=:xml>, "RAW_POST_DATA"=>nil, "action_dispatch.request.request_parameters"=>{}, "rack.request.query_string"=>"", "rack.request.query_hash"=>{}, "action_dispatch.request.query_parameters"=>{}, "action_dispatch.request.path_parameters"=>{}, "action_dispatch.request.parameters"=>{}}, @check_ip_spoofing=true>
action_dispatch.request.content_type: #<Mime::Type:0x1d94a7ec @synonyms=["text/xml", "application/x-xml"], @string="application/xml", @symbol=:xml>
action_dispatch.request.parameters: {}
action_dispatch.request.path_parameters: {}
action_dispatch.request.query_parameters: {}
action_dispatch.request.request_parameters: {}
action_dispatch.secret_token: "4fce6b775e9a6018661a317b079f9875b95f099daa307487a4b6219c2f484601f8dcb25b35d78d4dc5b3b75428ef7fb422a0c1ce96b1b96c520942c069c46156"
action_dispatch.show_exceptions: true
rack.errors: #<IO:0x3f2a225b>
rack.input: #<StringIO:0x39580929>
rack.multiprocess: false
rack.multithread: false
rack.request.query_hash: {}
rack.request.query_string: ""
rack.run_once: false
rack.session: {}
rack.session.options: {:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :id=>nil}
rack.url_scheme: "http"
rack.version: [1, 1]</pre></div>
<h2 style="margin-top: 30px">Response</h2>
<p><b>Headers</b>: <pre>None</pre></p>
</body>
</html>
SetError() #13: HTTP/1.1 500 Internal Server Error
http_close(): entered
- - - - - - - - - - - - - - - - - - - - - - - C O N N E C T I O N F E E D B A C K - - - - - - - - - - - - - - - - - - - - - - - -
About to connect() to vmas400.vonmaur.com port 10078 (#0)
Trying 192.168.1.2... connected
- - - - - - - - - - - - - - - - - - - - - - - - R A W R E Q U E S T D A T A - - - - - - - - - - - - - - - - - - - - - - - - -
POST /rpg/api/test.api.php HTTP/1.1
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Host: vmas400.vonmaur.com:10078
Accept: text/xml
Content-Type: application/x-www-form-urlencoded
SOAPAction: "/client_smart/api/get_client"
Content-Length: 398
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:ActionWebService">
<soapenv:Header/>
<soapenv:Body>
<urn:get_client>
<client_id xsi:type="xsd:int">4023</client_id>
</urn:get_client>
</soapenv:Body>
</soapenv:Envelope>
- - - - - - - - - - - - - - - - - - - - - - - - R A W R E S P O N S E D A T A - - - - - - - - - - - - - - - - - - - - - - - - -
HTTP/1.1 200 OK
Date: Fri, 26 Apr 2013 18:13:05 GMT
Server: Apache
X-Powered-By: PHP/5.2.17 ZendServer/5.0
Set-Cookie: ZDEDebuggerPresent=php,phtml,php3; path=/
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
20
DEBUG FILES SUCCESSFULLY CREATED
0
--- Begin Message ---
Here the TCP Stream on Adam's successful call. It sends a POST request.
cid:image002.jpg@01CE41B3.22275EC0
Here's the TCP Stream on Mauricio's failing call. Note no POST
request.
cid:image006.jpg@01CE41B3.22275EC0
From: Adam Stemper [[1]mailto:astemper@xxxxxxxxxxx]
Sent: Thursday, April 25, 2013 12:36 PM
To: Mauricio Diaz-Lapham; Todd Grieb
Subject: RE: RPG to CMA Web Services
He grabbed the logs that he needed, you can continue your testing
Mauricio.
Adam Stemper | Software Engineer | Von Maur | 563.468.4367 |
[2]astemper@xxxxxxxxxxx
From: Mauricio Diaz-Lapham
Sent: Thursday, April 25, 2013 11:35 AM
To: 'Todd Grieb'; Adam Stemper
Subject: RE: RPG to CMA Web Services
Todd, let me know when I can test again. I saw something and I want to
try again.
Thanks,
Mauricio
From: Todd Grieb [[3]mailto:Todd@xxxxxxxxxxxxxxxx]
Sent: Thursday, April 25, 2013 11:29 AM
To: Adam Stemper; Mauricio Diaz-Lapham
Subject: RE: RPG to CMA Web Services
I got Mauricio's.
Adam, I think I missed yours.
Give me a call so we can try again. 973 887 3069 x7204.
From: Adam Stemper [[4]mailto:astemper@xxxxxxxxxxx]
Sent: Thursday, April 25, 2013 12:09 PM
To: Todd Grieb; Mauricio Diaz-Lapham
Subject: RE: RPG to CMA Web Services
I ran two attempts which both failed because I was pointing to the
wrong location. My third attempt was successful. All from the IP of
172.16.129.193
Adam Stemper | Software Engineer | Von Maur | 563.468.4367 |
[5]astemper@xxxxxxxxxxx
From: Todd Grieb [[6]mailto:Todd@xxxxxxxxxxxxxxxx]
Sent: Thursday, April 25, 2013 11:05 AM
To: Mauricio Diaz-Lapham; Adam Stemper
Subject: RE: RPG to CMA Web Services
Adam? Did you send yours?
From: Mauricio Diaz-Lapham [[7]mailto:MDiaz-Lapham@xxxxxxxxxxx]
Sent: Thursday, April 25, 2013 12:03 PM
To: Todd Grieb; Adam Stemper
Subject: RE: RPG to CMA Web Services
Done
From: Todd Grieb [[8]mailto:Todd@xxxxxxxxxxxxxxxx]
Sent: Thursday, April 25, 2013 11:03 AM
To: Mauricio Diaz-Lapham; Adam Stemper
Subject: RE: RPG to CMA Web Services
Let me know when you're done.
From: Mauricio Diaz-Lapham [[9]mailto:MDiaz-Lapham@xxxxxxxxxxx]
Sent: Thursday, April 25, 2013 12:00 PM
To: Todd Grieb; Adam Stemper
Subject: RE: RPG to CMA Web Services
Hi Todd,
192.168.1.6
I am ready when you are.
Mauricio
From: Todd Grieb [[10]mailto:Todd@xxxxxxxxxxxxxxxx]
Sent: Thursday, April 25, 2013 10:58 AM
To: Adam Stemper
Cc: Mauricio Diaz-Lapham
Subject: RE: RPG to CMA Web Services
I want to run a Wireshark capture to grab network traffic for both a
successful call and a failing call.
Let me know the IPs you're calling from and when you're ready to fire
off the requests.
From: Adam Stemper [[11]mailto:astemper@xxxxxxxxxxx]
Sent: Thursday, April 25, 2013 10:45 AM
To: Todd Grieb
Cc: Mauricio Diaz-Lapham
Subject: RE: RPG to CMA Web Services
We changed the SOAP Envelope to include the mime type and still get the
message below. Not sure about the "accepts headers" is that something
your service requires to be defined in the XML envelope?
Started POST "/client_smart/invoke" for 192.168.1.6 at Thu Apr 25
09:38:14 -0500 2013
Processing by ClientSmartController#invoke as HTML
Completed 500 Internal Server Error in 31ms
ActionView::MissingTemplate (Missing template client_smart/invoke with
{:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:html],
:locale=>[:"en-US", :"en-US"]} in view paths
"C:/vmpss/webpss/client_smart/app/views",
"C:/vmpss/webpss/client_smart/vendor/bundle/jruby/1.8/bundler/gems/acti
onwebservice-262d6a823980/lib/action_web_service/templates/scaffolds"):
Rendered
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/midd
leware/templates/rescues/missing_template.erb within rescues/layout
(0.0ms)
Adam Stemper | Software Engineer | Von Maur | 563.468.4367 |
[12]astemper@xxxxxxxxxxx
From: Adam Stemper
Sent: Thursday, April 25, 2013 9:24 AM
To: Todd Grieb
Cc: Mauricio Diaz-Lapham; Tina Tendall; Cathy Lambrecht
Subject: RE: RPG to CMA Web Services
Yes, the successful call logs quite a bit of information *attached*
In my .NET service (for example) when we were troubleshooting the
Instant Account calls from CMA to my service, I was able to put in some
code that captured the entire request XML, headers, everything that the
server received before it began to process the information. I'm not
sure how it would be done in Ruby on Rails, but something of that
nature is what I was thinking of.
In the meantime, I will work with Mauricio to see if we can manually
set/change the AcceptsHeaders and MimeType.
Adam Stemper | Software Engineer | Von Maur | 563.468.4367 |
[13]astemper@xxxxxxxxxxx
From: Todd Grieb [[14]mailto:Todd@xxxxxxxxxxxxxxxx]
Sent: Thursday, April 25, 2013 9:13 AM
To: Adam Stemper
Cc: Mauricio Diaz-Lapham; Tina Tendall; Cathy Lambrecht
Subject: RE: RPG to CMA Web Services
Adam -
Have you identified any differences in the log between your successful
.Net and SoapUI calls and the RPG calls that fail?
One developers suggested that you check the request headers. It may be
that they do not have the mime-type or accepts headers correct.
We don't have RPG experience in-house. What kind of additional logging
do you suggest?
From: Adam Stemper [[15]mailto:astemper@xxxxxxxxxxx]
Sent: Thursday, April 25, 2013 9:31 AM
To: Todd Grieb
Cc: Mauricio Diaz-Lapham; Tina Tendall; Cathy Lambrecht
Subject: RE: RPG to CMA Web Services
Additionally, there is a third error message we have seen that I forgot
to include in my original email.
Started POST "/client_smart/invoke" for 192.168.1.6 at Tue Apr 23
09:25:59 -0500 2013
Processing by ClientSmartController#invoke as XML
Parameters:
{"Envelope"=>{"xmlns:xsi"=>"[16]http://www.w3.org/2001/XMLSchema-instan
ce", "xmlns:xsd"=>"[17]http://www.w3.org/2001/XMLSchema",
"xmlns:soapenv"=>"[18]http://schemas.xmlsoap.org/soap/envelope/",
"xmlns:urn"=>"urn:ActionWebService", "Header"=>nil,
"Body"=>{"get_client"=>{"client_id"=>"4023"}}}}
Completed 500 Internal Server Error in 31ms
ActionView::MissingTemplate (Missing template client_smart/invoke with
{:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:xml],
:locale=>[:"en-US", :"en-US"]} in view paths
"C:/vmpss/webpss/client_smart/app/views",
"C:/vmpss/webpss/client_smart/vendor/bundle/jruby/1.8/bundler/gems/acti
onwebservice-262d6a823980/lib/action_web_service/templates/scaffolds"):
Rendered
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/midd
leware/templates/rescues/missing_template.erb within rescues/layout
(0.0ms)
Adam Stemper | Software Engineer | Von Maur | 563.468.4367 |
[19]astemper@xxxxxxxxxxx
From: Adam Stemper
Sent: Thursday, April 25, 2013 8:28 AM
To: 'Todd Grieb'
Cc: Mauricio Diaz-Lapham; Tina Tendall; Cathy Lambrecht
Subject: RPG to CMA Web Services
Hi Todd,
Over the last few weeks Mauricio has been working on getting an RPG
program to call various Web Services. His program was able to consume
a generic date/time service from the W3C site, as well as one of my
.NET web services. However, every attempt to call the Client Smart
get_client Web Service (from RPG) has failed.
I am able to consume the get_client service from .NET, as well as from
SoapUI..., so we know that the service works. What we don't know is
why all of his attempts are failing. We have tried changing his XML
envelope around in a variety of ways, as well as changing various other
bits of information.
The two main error messages we are seeing in the CMA service logs
(depending on how we format the XML envelope) are below.
Is it possible for us to have a phone call with you and possibly one of
your developers familiar with this service? The development instance
you started up for us does log a little additional information... but
we are unable to determine what actually went wrong from these logs,
and would like to discuss the possibility of having the service log
additional information? Please let me know your thoughts. Thanks :-)
Started POST "/client_smart/invoke" for 192.168.1.6 at Tue Apr 23
09:19:31 -0500 2013
Error occurred while parsing request parameters.
Contents:
REXML::ParseException (#<REXML::ParseException: malformed XML: missing
tag start
Line: 1
Position: 9437
Last 80 unconsumed characters:
<urn:get_client
soapenv:encodingStyle="[20]http://schemas.xmlsoap.org/soap/encoding/">
And
Started POST "/client_smart/api" for 172.16.129.6 at Tue Apr 23
09:10:39 -0500 2013
Error occurred while parsing request parameters.
Contents:
TypeError (can't convert NilClass into String):
Rendered
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/midd
leware/templates/rescues/_trace.erb (0.0ms)
Rendered
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/midd
leware/templates/rescues/_request_and_response.erb (16.0ms)
Rendered
vendor/bundle/jruby/1.8/gems/actionpack-3.0.20/lib/action_dispatch/midd
leware/templates/rescues/diagnostics.erb within rescues/layout (16.0ms)
Adam Stemper | Software Engineer | Von Maur | 563.468.4367 |
[21]astemper@xxxxxxxxxxx
This mail was received via Mail-SeCure System.
Information contained in this message is confidential and proprietary
information that belongs to Retalix. It is intended only for the use of
the individual or entity named above. If the reader of this message is
not the intended recipient, or the employee or agent responsible to
deliver it to the intended recipient, you are hereby notified that any
dissemination, distribution, use or copying of this message is strictly
prohibited. If you are not the intended recipient, please immediately
notify us by reply e-mail or by telephone, delete this e-mail and
destroy any copies. Thank you.
This mail was received via Mail-SeCure System.
Information contained in this message is confidential and proprietary
information that belongs to Retalix. It is intended only for the use of
the individual or entity named above. If the reader of this message is
not the intended recipient, or the employee or agent responsible to
deliver it to the intended recipient, you are hereby notified that any
dissemination, distribution, use or copying of this message is strictly
prohibited. If you are not the intended recipient, please immediately
notify us by reply e-mail or by telephone, delete this e-mail and
destroy any copies. Thank you.
This mail was received via Mail-SeCure System.
Information contained in this message is confidential and proprietary
information that belongs to Retalix. It is intended only for the use of
the individual or entity named above. If the reader of this message is
not the intended recipient, or the employee or agent responsible to
deliver it to the intended recipient, you are hereby notified that any
dissemination, distribution, use or copying of this message is strictly
prohibited. If you are not the intended recipient, please immediately
notify us by reply e-mail or by telephone, delete this e-mail and
destroy any copies. Thank you.
This mail was received via Mail-SeCure System.
Information contained in this message is confidential and proprietary
information that belongs to Retalix. It is intended only for the use of
the individual or entity named above. If the reader of this message is
not the intended recipient, or the employee or agent responsible to
deliver it to the intended recipient, you are hereby notified that any
dissemination, distribution, use or copying of this message is strictly
prohibited. If you are not the intended recipient, please immediately
notify us by reply e-mail or by telephone, delete this e-mail and
destroy any copies. Thank you.
This mail was received via Mail-SeCure System.
Information contained in this message is confidential and proprietary
information that belongs to Retalix. It is intended only for the use of
the individual or entity named above. If the reader of this message is
not the intended recipient, or the employee or agent responsible to
deliver it to the intended recipient, you are hereby notified that any
dissemination, distribution, use or copying of this message is strictly
prohibited. If you are not the intended recipient, please immediately
notify us by reply e-mail or by telephone, delete this e-mail and
destroy any copies. Thank you.
This mail was received via Mail-SeCure System.
Information contained in this message is confidential and proprietary
information that belongs to Retalix. It is intended only for the use of
the individual or entity named above. If the reader of this message is
not the intended recipient, or the employee or agent responsible to
deliver it to the intended recipient, you are hereby notified that any
dissemination, distribution, use or copying of this message is strictly
prohibited. If you are not the intended recipient, please immediately
notify us by reply e-mail or by telephone, delete this e-mail and
destroy any copies. Thank you.
References
1. mailto:astemper@xxxxxxxxxxx
2. mailto:astemper@xxxxxxxxxxx
3. mailto:Todd@xxxxxxxxxxxxxxxx
4. mailto:astemper@xxxxxxxxxxx
5. mailto:astemper@xxxxxxxxxxx
6. mailto:Todd@xxxxxxxxxxxxxxxx
7. mailto:MDiaz-Lapham@xxxxxxxxxxx
8. mailto:Todd@xxxxxxxxxxxxxxxx
9. mailto:MDiaz-Lapham@xxxxxxxxxxx
10. mailto:Todd@xxxxxxxxxxxxxxxx
11. mailto:astemper@xxxxxxxxxxx
12. mailto:astemper@xxxxxxxxxxx
13. mailto:astemper@xxxxxxxxxxx
14. mailto:Todd@xxxxxxxxxxxxxxxx
15. mailto:astemper@xxxxxxxxxxx
16. http://www.w3.org/2001/XMLSchema-instance
17. http://www.w3.org/2001/XMLSchema
18. http://schemas.xmlsoap.org/soap/envelope/
19. mailto:astemper@xxxxxxxxxxx
20. http://schemas.xmlsoap.org/soap/encoding/
21. mailto:astemper@xxxxxxxxxxx


--- End Message ---
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------