[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What is being sent does not match what we are sending. I'm back :)



   We are having a problem doing the byte array.  From the iSeries in
   debug, it looks good (see attachment MEXDATA).  However in the
   httpapi_debug it does not match what we are seeing in the program.  Our
   provider is telling us it is garbage and we agree.  What are we doing
   wrong to cause the data to change?

   Robin Kresin
   Sr. Programmer / Analyst
   TVH® - TotalSource® Parts and Accessories
   Phone: 913.829.1000 ext.3035 Direct: 913-768-3035
   E-mail: robin.kresin@xxxxxxx
   website: [1]www.tvh.com

   The information in this e-mail and any attachments is confidential
   and is intended solely for the attention and use of
   ftpapi@xxxxxxxxxxxxxxxxxxxxxx.
   If you are not the intended recipient, or person responsible for
   delivering this information to the intended recipient, please notify
   the sender immediately and destroy this e-mail and all copies of this
   e-mail on any storage mechanism.
   Unless you are the intended recipient or his/her representative you are
   not authorized to, and must not, read, copy, distribute, use or retain
   this message or any part of it.

References

   1. file://localhost/tmp/www.tvh.com

Attachment: MEXDATA.docx
Description: Binary data

HTTPAPI Ver 1.25beta2 released 2012-03-06
NTLM Ver 1.3.1 released 2014-04-03
OS/400 Ver V5R4M0

New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0

WSDL2RPG Ver 1.15.9.a released 2013-09-27 (V5R4M0)

** 2014-07-29-09.48.14.709000: Entering POSX_ServiceSoap_EnviaArchivo(), compiled for V5R4M0
New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819. ProtLoc=0
** 2014-07-29-09.48.14.797000: Sending request to server
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: tvh.local
DNS server found: 10.1.9.200
DNS server found: 10.7.9.200
DNS server found: 8.8.8.8
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST /biossx/POSX_Service.asmx HTTP/1.1
Host: www.demo.bioss-asp.com
User-Agent: http-api/1.24
Content-Length: 4104
Content-Type: text/xml
SOAPAction: "http://tempuri.org/EnviaArchivo";


sendraw(): entered
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:tns="http://tempuri.org/";><soapenv:Body><tns:EnviaArchivo><tns:userName>xxxxxxxx</tns:userName><tns:password>xxxxxxxx</tns:password><tns:dominio>Intranetslab.com</tns:dominio><tns:tipoarchivo>SOLCFD</tns:tipoarchivo><tns:origen>TVHMEX</tns:origen><tns:destino>TVHMEX</tns:destino><tns:ID>1181306</tns:ID><tns:esarchvio>1</tns:esarchvio><tns:namearchivo>1181306</tns:namearchivo><tns:contenidobyte>8Kf09ffD8/f3w/Xz9MT3w/Px8/Hz+PPx8/Pz8PP298Pz8ffD8/Xz8ffD9PH3w/Py8/Dz8fP08sbz8PP38sbz8vP598Pz8fPx8/jz8fPz8/Dz9vfD9/T29ffz9/Ty8Pb09sby8PbF9sb39PLw9/P2+Pfw98Pz9fP18/H3w/Pw98Pz8ffD8sXz8PPw8/Dz8PfD8/Hz9vfD8/P3w/P18/Dz9PP38/jz8PPw8/Dz8ffD9PH1+PXw8/Dz9vPw8/jz8fP38/Xz+PPy98P08fX49fD08fXy9fT18/Lw9fPyxfTx8sXy8PT09PXy8PTz8sX19vLF98Pz8vT09PHy8PX29Pn09PXy9Pn09fXy9PHy8PPx8/Lz8PP498Pz8fLw9PT09fLw9MT08fX59Mby8PL49PbyxPP58/fy+ffD8sT3w/LE98P0xPTG9MX19PT19fL18vT19fn3w/Tz8sX18PLF8/bz9PP18/Xz8PfD8/D3w/TF9MP3w/Tx9fj18PTx9fL19PXz8vD18/LF9PHyxfLw9PT09fLw9PPyxfX28sX3w/Tx9fL0xPTx9MX09PTG8vD08/Xy9fX1wffD8/L09PTx8vD19vT59PT18vT59PX18vTx8vDz8fPy8/Dz+PfD8/Hy8PT09PXy8PTE9PH1+fTG8vDy+PT28sTz+fP38vn3w/fD9PPyxfXw8sXz9vP08/Xz9fPw98Pz8PfD9MX0w/fD9PL09fXz9fT3w/fD8/Xz+fP58sXz8PPw98PyxfPw8/D3w/fD98P3w/P19MTz8vP08/LyxvPw8/Dy8PLw8vDy8PLw9fT2xvb09vHy8Pbx9/X39PbG9/L2+ffB9vH28/b5xcP2xfLw9vT29fLw9vT29ff29sb2w/f19vP2+cXD9sXy8Pb09vX28vb18vD38/b19/Ly8Pfz9sb2w/b59vP2+ff09vH29Pbx8vD29Pb19sX39Pfy9sby8Pb09vXy8PbD9sb38/Lw8/Pz8PLw9vTB9fbx9/Py8Pb09vX38/fw9/XB+ffz8vD29Pb18vD29vbx9vP39Pf19/L28fbz9vnFw/bF8sX3w/Px98P3w/fD98P3w/fD8sXz8PPw98P3w/fD98P3w/fD98P3w/fD98P3w/Xw98Pz9/fD9fP0xPfD8/Hz8fP48/Hz8/Pw8/b3w/Px98P18/X59fT18/P38/Dz8PX48/Hz8vX48/X19PfD9fP1+fX09fPz9/Pw8/D1+PPx8/L1+PP19fT3w/T19PH3w/Py8sXz8PPw8/D3w/Py8/nz+fLF8/Xz8PPw8/D3w/Px8/Lz9PPz8/Pz8PP58/jz8vPw8/Dz8PP48/Hz8/fD8/Lz8PPx8/LyxvPx8/DyxvPx8/L3w/X29PX18vTx9PP18vX19cHyxffD9fP0xvTD9Pn09PLw9fT0+fXy9PXy8PP38sXz8PPw8sTz8fPy8vjz9fLw9Pn0xfLF8vD18vT59MTy+ffD98P3w/fD98M=</tns:contenidobyte><tns:contenido>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </tns:contenido></tns:EnviaArchivo></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 401 Unauthorized
Content-Length: 1656
Content-Type: text/html
Server: Microsoft-IIS/6.0
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
WWW-Authenticate: Digest qop="auth",algorithm=MD5-sess,nonce="a05920c83babcf0141d5cfff01cf989efa54f9858070f079ab9ad6d75e1c06904592fc2ee9f7a8b0",charset=utf-8,realm="intranetslab.com"
X-Powered-By: ASP.NET
MicrosoftOfficeWebServer: 5.0_Pub
Date: Tue, 29 Jul 2014 14:45:46 GMT


SetError() #13: HTTP/1.1 401 Unauthorized
recvresp(): end with 401
recvdoc parms: identity 1656
interpret_auth(): entered
interpret_auth(): entered
interpret_auth(): entered
SetError() #36: This page requires a user-id & password
AuthPlugin_mustReceiceAuthErrorPage(): entered
recvdoc(): entered
SetError() #0:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd";>
<HTML><HEAD><TITLE>You are not authorized to view this page</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css">
  BODY { font: 8pt/12pt verdana }
  H1 { font: 13pt/15pt verdana }
  H2 { font: 8pt/12pt verdana }
  A:link { color: red }
  A:visited { color: maroon }
</STYLE>
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>

<h1>You are not authorized to view this page</h1>
You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending a WWW-Authenticate header field that the Web server is not configured to accept.
<hr>
<p>Please try the following:</p>
<ul>
<li>Contact the Web site administrator if you believe you should be able to view this directory or page.</li>
<li>Click the <a href="javascript:location.reload()">Refresh</a> button to try again with different credentials.</li>
</ul>
<h2>HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration.<br>Internet Information Services (IIS)</h2>
<hr>
<p>Technical Information (for support personnel)</p>
<ul>
<li>Go to <a href="http://go.microsoft.com/fwlink/?linkid=8180";>Microsoft Product Support Services</a> and perform a title search for the words <b>HTTP</b> and <b>401</b>.</li>
<li>Open <b>IIS Help</b>, which is accessible in IIS Manager (inetmgr),
 and search for topics titled <b>About Security</b>, <b>Authentication</b>, and <b>About Custom Error Messages</b>.</li>
</ul>

</TD></TR></TABLE></BODY></HTML>

SetError() #36: This page requires a user-id & password
http_close(): entered
HTTPAPI Ver 1.25beta2 released 2012-03-06
NTLM Ver 1.3.1 released 2014-04-03
OS/400 Ver V5R4M0

** 2014-07-29-09.48.14.922000: Requesting user name and password
http_getauth(): entered
http_setauth(): entered
NTLM_setCredentials(): entered
** 2014-07-29-09.48.14.922000: Sending request to server
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: tvh.local
DNS server found: 10.1.9.200
DNS server found: 10.7.9.200
DNS server found: 8.8.8.8
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
NTLM_negotiateAuthentication(): entered
http_long_ParseURL(): entered
http_persist_get(): entered
http_persist_req(GET) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(GET): entered
AuthPlugin_produceAuthenticationHeader(): entered
There are 0 cookies in the cache
GET /biossx/POSX_Service.asmx HTTP/1.1
Host: www.demo.bioss-asp.com
User-Agent: http-api/1.24
Authorization: NTLM TlRMTVNTUAABAAAAByIAAAAAAAAAAAAACgAKACAAAABESVRST0JJTkEg
Content-Type: text/xml
SOAPAction: "http://tempuri.org/EnviaArchivo";


recvresp(): entered
HTTP/1.1 401 Unauthorized
Content-Length: 1539
Content-Type: text/html
Server: Microsoft-IIS/6.0
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAGAAYADgAAAAFAoECpKa+TtfCMFoAAAAAAAAAAK4ArgBQAAAABQLODgAAAA9JAE4AVABSAEEATgBFAFQAUwBMAEEAQgACABgASQBOAFQAUgBBAE4ARQBUAFMATABBAEIAAQAOAEMAQQBNAEUATABPAFQABAAgAGkAbgB0AHIAYQBuAGUAdABzAGwAYQBiAC4AYwBvAG0AAwAwAGMAYQBtAGUAbABvAHQALgBpAG4AdAByAGEAbgBlAHQAcwBsAGEAYgAuAGMAbwBtAAUAIABpAG4AdAByAGEAbgBlAHQAcwBsAGEAYgAuAGMAbwBtAAAAAAA=
X-Powered-By: ASP.NET
MicrosoftOfficeWebServer: 5.0_Pub
Date: Tue, 29 Jul 2014 14:45:46 GMT


SetError() #13: HTTP/1.1 401 Unauthorized
recvresp(): end with 401
recvdoc parms: identity 1539
interpret_auth(): entered
SetError() #36: This page requires a user-id & password
AuthPlugin_mustReceiceAuthErrorPage(): entered
recvdoc(): entered
SetError() #0:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd";>
<HTML><HEAD><TITLE>You are not authorized to view this page</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css">
  BODY { font: 8pt/12pt verdana }
  H1 { font: 13pt/15pt verdana }
  H2 { font: 8pt/12pt verdana }
  A:link { color: red }
  A:visited { color: maroon }
</STYLE>
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>

<h1>You are not authorized to view this page</h1>
You do not have permission to view this directory or page using the credentials that you supplied.
<hr>
<p>Please try the following:</p>
<ul>
<li>Contact the Web site administrator if you believe you should be able to view this directory or page.</li>
<li>Click the <a href="javascript:location.reload()">Refresh</a> button to try again with different credentials.</li>
</ul>
<h2>HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.<br>Internet Information Services (IIS)</h2>
<hr>
<p>Technical Information (for support personnel)</p>
<ul>
<li>Go to <a href="http://go.microsoft.com/fwlink/?linkid=8180";>Microsoft Product Support Services</a> and perform a title search for the words <b>HTTP</b> and <b>401</b>.</li>
<li>Open <b>IIS Help</b>, which is accessible in IIS Manager (inetmgr),
 and search for topics titled <b>Authentication</b>, <b>Access Control</b>, and <b>About Custom Error Messages</b>.</li>
</ul>

</TD></TR></TABLE></BODY></HTML>

SetError() #36: This page requires a user-id & password
do_oper(POST): entered
AuthPlugin_produceAuthenticationHeader(): entered
There are 0 cookies in the cache
POST /biossx/POSX_Service.asmx HTTP/1.1
Host: www.demo.bioss-asp.com
User-Agent: http-api/1.24
Content-Length: 4104
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAADeAN4AWAAAAAAAAAAAAAAADgAOADYBAAAUABQARAEAAAAAAAAAAAAABQIAANQ5FZzDuUaoJvBdxEnBVOg3GB13UcxVNeNxWPlIwf0CuTKw3g259yYBAQAAAAAAAADPlsaDb5EDKUwyjRQKD3MAAAAAAgAYAEkATgBUAFIAQQBOAEUAVABTAEwAQQBCAAEADgBDAEEATQBFAEwATwBUAAQAIABpAG4AdAByAGEAbgBlAHQAcwBsAGEAYgAuAGMAbwBtAAMAMABjAGEAbQBlAGwAbwB0AC4AaQBuAHQAcgBhAG4AZQB0AHMAbABhAGIALgBjAG8AbQAFACAAaQBuAHQAcgBhAG4AZQB0AHMAbABhAGIALgBjAG8AbQAAAAAAAAAAAHMAbQBwAG8AcwAwADEARABJAFQAUgBPAEIASQBOAEEAIAA=
Content-Type: text/xml
SOAPAction: "http://tempuri.org/EnviaArchivo";


sendraw(): entered
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:tns="http://tempuri.org/";><soapenv:Body><tns:EnviaArchivo><tns:userName>xxxxxxxx</tns:userName><tns:password>xxxxxxxx</tns:password><tns:dominio>Intranetslab.com</tns:dominio><tns:tipoarchivo>SOLCFD</tns:tipoarchivo><tns:origen>TVHMEX</tns:origen><tns:destino>TVHMEX</tns:destino><tns:ID>1181306</tns:ID><tns:esarchvio>1</tns:esarchvio><tns:namearchivo>1181306</tns:namearchivo><tns:contenidobyte>8Kf09ffD8/f3w/Xz9MT3w/Px8/Hz+PPx8/Pz8PP298Pz8ffD8/Xz8ffD9PH3w/Py8/Dz8fP08sbz8PP38sbz8vP598Pz8fPx8/jz8fPz8/Dz9vfD9/T29ffz9/Ty8Pb09sby8PbF9sb39PLw9/P2+Pfw98Pz9fP18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fT3w/T19PH3w/Py8sXz8PPw8/D3w/Py8/nz+fLF8/Xz8PPw8/D3w/Px8/Lz9PPz8/Pz8PP58/jz8vPw8/Dz8PP48/Hz8/fD8/Lz8PPx8/LyxvPx8/DyxvPx8/L3w/X29PX18vTx9PP18vX19cHyxffD9fP0xvTD9Pn09PLw9fT0+fXy9PXy8PP38sXz8PPw8sTz8fPy8vjz9fLw9Pn0xfLF8vD18vT59MTy+ffD98P3w/fD98M=</tns:contenidobyte><tns:contenido>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </tns:contenido></tns:EnviaArchivo></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Date: Tue, 29 Jul 2014 14:45:47 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
MicrosoftOfficeWebServer: 5.0_Pub
X-AspNet-Version: 2.0.50727
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 744


SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 744
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<?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><EnviaArchivoResponse xmlns="http://tempuri.org/";><EnviaArchivoResult>&lt;?xml version='1.0' encoding='utf-8'?&gt;&lt;Origen&gt;&lt;Valor&gt;TVHMEX&lt;/Valor&gt;&lt;/Origen&gt;&lt;Id&gt;&lt;Valor&gt;1181306&lt;/Valor&gt;&lt;/Id&gt;&lt;Fecha&gt;&lt;Valor&gt;20140729 09:45:47&lt;/Valor&gt;&lt;/Fecha&gt;&lt;Estado&gt;&lt;Valor&gt;0&lt;/Valor&gt;&lt;/Estado&gt;&lt;Contenido&gt;&lt;Valor&gt; Se recibio el archivo con exito.&lt;/Valor&gt;&lt;/Contenido&gt;</EnviaArchivoResult></EnviaArchivoResponse></soap:Body></soap:Envelope>
** 2014-07-29-09.48.15.598000: Preparing to parse received message
http_close(): entered
HTTPAPI Ver 1.25beta2 released 2012-03-06
NTLM Ver 1.3.1 released 2014-04-03
OS/400 Ver V5R4M0

** 2014-07-29-09.48.15.629000: Leaving POSX_ServiceSoap_EnviaArchivo()
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------