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

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



   Mike;
   We did find in the provider's code where they were converting whatever
   we sent them  to base64.  We changed that code to use a string versus
   Base64.  FYI - their code is in Spanish.  However, we are going to look
   at your questions because now we have another issue.  I think it is
   more with the webservice provider.

   From:    Mike Krebs <mkrebs@xxxxxxxxxxxxxxxxxx>
   To:      HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>,
   Date:    07/29/2014 02:39 PM
   Subject: RE: What is being sent does not match what we are sending. I'm
            back :)
     __________________________________________________________________

   When you created the stub in WSDL2RPG, did you tell it to do any
   translation/encoding on that element?
   Something is changing it. After MEXDATAOUT, follow the path of the
   data. Someplace, something is transforming it.
   MEXDATAOUT is around 555 bytes long. The data you are sending is 1486.
   That is some fancy encoding you are doing - just have to find where it
   is happening.
   Are you running WSDL2RPG to do the web service? Or just using the NTLM
   procedures for authentication? Does MEXDATAOUT get written to a file at
   any point? What is the CCSID of the job running this process?
   -----Original Message-----
   From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   [[1]mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
   Robin.Kresin@xxxxxxx
   Sent: Tuesday, July 29, 2014 1:34 PM
   To: HTTPAPI and FTPAPI Projects
   Subject: RE: What is being sent does not match what we are sending. I'm
   back :)
   Hopefully, seeing the below will make more sense.  This was an
   attachment on the original E-mail.
   A. Below is what I have before running the XLATE command:
    MEXDATAIN =
              ....5...10...15...20...25...30...35...40...45...50...55...60
         1   'E|7|SM|1181306|1|51|A|2014/07/29|1181306|test do not
   shp|551'
        61   '|0|1|.0000|16|3|504780001|AXP060817582|AXPARTS S.A. DE
   C.V.|'
       121   '2DA VIDRIERA 1208|1 DE MAYO
   (F-97)|-|-|MONTERREY|C.P.64550|0'
       181   '|NL|AXPARTS S.A. DE C.V.|ARMANDO CRUZ|2DA VIDRIERA 1208|1
   DE'
       241   ' MAYO (F-97)||C.P.64550|0|NL|BEST||599.00|.00||||5M242/00
   '
       301   '  Toda autorización de devolución debe ser solicitada
   dentro'
       361   ' de los 30 días después de
   facturación.|1||||||.00||||||||||'
       421
   '|P|7|SM|1181306|1|SYTS700X12X5T|SYTS700X12X5T|EA|2.000|299.5'
       481   '000|124330982000813|2012/10/12|VERACRUZ.|SOLID TIRE
   7.00-12('
       541   '5 IN. RIM)|||||
   '
       601   '
   '
       661   '
   '
       721   '
   '
       781   '
   '
    841   '                                                            '
    901   '                                                            '
    961   '                                                            '
   1021   '    '
   B. Here is the data after XLATE and it is correct
   MEXDATAOUT =

   ....5...10...15...20...25...30...35...40...45...50...55...60
          1
   '0x457C377C534D7C313138313330367C317C35317C417C323031342F3037'
         61
   '2F32397C313138313330367C7465737420646F206E6F74207368707C3535'
        121
   '317C307C317C2E303030307C31367C337C3530343738303030317C415850'
        181
   '3036303831373538327C4158504152545320532E412E20444520432E562E'
        241
   '7C32444120564944524945524120313230387C31204445204D41594F2028'
        301
   '462D3937297C2D7C2D7C4D4F4E5445525245597C432E502E36343535307C'
        361
   '307C4E4C7C4158504152545320532E412E20444520432E562E7C41524D41'
        421
   '4E444F204352555A7C32444120564944524945524120313230387C312044'
        481
   '45204D41594F2028462D3937297C7C432E502E36343535307C307C4E4C7C'
        541
   '424553547C7C3539392E30307C2E30307C7C7C7C354D3234322F30302020'
        601
   '202020546F6461206175746F72697A616369EC6E206465206465766F6C75'
        661
   '6369EC6E20646562652073657220736F6C696369746164612064656E7472'
        721
   '6F206465206C6F732033302064A56173206465737075A973206465206661'
        781
   '63747572616369EC6E2E7C317C7C7C7C7C7C2E30307C7C7C7C7C7C7C7C7C'
        841
   '7C7C507C377C534D7C313138313330367C317C5359545337303058313258'
        901
   '35547C535954533730305831325835547C45417C322E3030307C3239392E'
        961
   '353030307C3132343333303938323030303831337C323031322F31302F31'
      1021   '327C'
   C. However, what shows in the httpati.debug is incorrect.  The red
   below
   is what is being sent to the provider.  We don't know how the data
   changes
   from B to below, which is garbage
   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: [2]www.demo.bioss-asp.com
   User-Agent: http-api/1.24
   Content-Length: 4104
   Content-Type: text/xml
   SOAPAction: "[3]http://tempuri.org/EnviaArchivo";
   sendraw(): entered
   <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="
   [4]http://schemas.xmlsoap.org/soap/envelope/";
   xmlns:tns="[5]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</t
   ns: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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z8PPw98P3w/fD98P3w/fD98P3w/fD98P3w/Xw98Pz9/fD
   9fP0xPfD8/Hz8fP48/Hz8/Pw8/b3w/Px98P18/X59fT18/P38/Dz8PX48/Hz8vX48/X19Pf
   D9fP1+fX09fPz9/Pw8/D1+PPx8/L1+PP19fT3w/T19PH3w/Py8sXz8PPw8/D3w/Py8/nz+f
   LF8/Xz8PPw8/D3w/Px8/Lz9PPz8/Pz8PP58/jz8vPw8/Dz8PP48/Hz8/fD8/Lz8PPx8/Lyx
   vPx8/DyxvPx8/L3w/X29PX18vTx9PP18vX19cHyxffD9fP0xvTD9Pn09PLw9fT0+fXy9PXy
   8PP38sXz8PPw8sTz8fPy8vjz9fLw9Pn0xfLF8vD18vT59MTy+ffD98P3w/fD98M=</tns:c
   ontenidobyte><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="a05920c83babcf0141d5cfff01cf989efa
   54f9858070f079ab9ad6d75e1c06904592fc2ee9f7a8b0",charset=utf-8,realm="in
   tranetslab.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" "
   [6]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="[7]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="[8]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: [9]www.demo.bioss-asp.com
   User-Agent: http-api/1.24
   Authorization: NTLM
   TlRMTVNTUAABAAAAByIAAAAAAAAAAAAACgAKACAAAABESVRST0JJTkEg
   Content-Type: text/xml
   SOAPAction: "[10]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+TtfCMFoAAAAAAAAAAK4ArgBQAAAABQLODgA
   AAA9JAE4AVABSAEEATgBFAFQAUwBMAEEAQgACABgASQBOAFQAUgBBAE4ARQBUAFMATABBAE
   IAAQAOAEMAQQBNAEUATABPAFQABAAgAGkAbgB0AHIAYQBuAGUAdABzAGwAYQBiAC4AYwBvA
   G0AAwAwAGMAYQBtAGUAbABvAHQALgBpAG4AdAByAGEAbgBlAHQAcwBsAGEAYgAuAGMAbwBt
   AAUAIABpAG4AdAByAGEAbgBlAHQAcwBsAGEAYgAuAGMAbwBtAAAAAAA=
   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" "
   [11]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="[12]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="[13]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: [14]www.demo.bioss-asp.com
   User-Agent: http-api/1.24
   Content-Length: 4104
   Authorization: NTLM
   TlRMTVNTUAADAAAAGAAYAEAAAADeAN4AWAAAAAAAAAAAAAAADgAOADYBAAAUABQARAEAAAA
   AAAAAAAAABQIAANQ5FZzDuUaoJvBdxEnBVOg3GB13UcxVNeNxWPlIwf0CuTKw3g259yYBAQ
   AAAAAAAADPlsaDb5EDKUwyjRQKD3MAAAAAAgAYAEkATgBUAFIAQQBOAEUAVABTAEwAQQBCA
   AEADgBDAEEATQBFAEwATwBUAAQAIABpAG4AdAByAGEAbgBlAHQAcwBsAGEAYgAuAGMAbwBt
   AAMAMABjAGEAbQBlAGwAbwB0AC4AaQBuAHQAcgBhAG4AZQB0AHMAbABhAGIALgBjAG8AbQA
   FACAAaQBuAHQAcgBhAG4AZQB0AHMAbABhAGIALgBjAG8AbQAAAAAAAAAAAHMAbQBwAG8Acw
   AwADEARABJAFQAUgBPAEIASQBOAEEAIAA=
   Content-Type: text/xml
   SOAPAction: "[15]http://tempuri.org/EnviaArchivo";
   sendraw(): entered
   <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="
   [16]http://schemas.xmlsoap.org/soap/envelope/";
   xmlns:tns="[17]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</t
   ns: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/Xz8
   ffD9PH3w/Py8/Dz8fP08sbz8PP38sbz8vP598Pz8fPx8/jz8fPz8/Dz9vfD9/T29ffz9/Ty
   8Pb09sby8PbF9sb39PLw9/P2+Pfw98Pz9fP18/H3w/Pw98Pz8ffD8sXz8PPw8/Dz8PfD8/H
   z9vfD8/P3w/P18/Dz9PP38/jz8PPw8/Dz8ffD9PH1+PXw8/Dz9vPw8/jz8fP38/Xz+PPy98
   P08fX49fD08fXy9fT18/Lw9fPyxfTx8sXy8PT09PXy8PTz8sX19vLF98Pz8vT09PHy8PX29
   Pn09PXy9Pn09fXy9PHy8PPx8/Lz8PP498Pz8fLw9PT09fLw9M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Tz8fPy8vjz9fLw9Pn0xfLF8vD18vT59MTy+ffD9
   8P3w/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="
   [18]http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="
   [19]http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="
   [20]http://www.w3.org/2001/XMLSchema";><soap:Body><EnviaArchivoResponse
   xmlns="
   [21]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;/Va
   lor&gt;&lt;/Estado&gt;&lt;Contenido&gt;&lt;Valor&gt;
   Se recibio el archivo con
   exito.&lt;/Valor&gt;&lt;/Contenido&gt;</EnviaArchivoResult></EnviaArchi
   voResponse></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()
   From:
   Mike Krebs <mkrebs@xxxxxxxxxxxxxxxxxx>
   To:
   HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>,
   Cc:
   "ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx"
   <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx>
   Date:
   07/29/2014 01:11 PM
   Subject:
   RE: What is being sent does not match what we are sending. I'm back :)
   Let's think this through once more. You need to send an ascii
   representation but not actual ascii.
   MEXDATAOUT should be ebcdic but have the representaion that would
   translate to correct ascii. For example, first character in your string
   is
   E which in ASCII is x45. So, we need to have a 45 in MEXDATAOUT. Looks
   like that is correct. The vertical line should be 7C and it looks like
   that is correct.
   In debug, if this is the field...we should see the string x0457C...hmmm
   <tns:contenidobyte>8Kf09ffD8/f3w/Xz9MT3w/Px8/Hz+PPx8/P
   Was there further processing that was done to that field? That is not
   correct. You should see x0457C there.
   -----Original Message-----
   From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [
   [22]mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
   Robin.Kresin@xxxxxxx
   Sent: Tuesday, July 29, 2014 11:39 AM
   To: HTTPAPI and FTPAPI Projects
   Cc: HTTPAPI and FTPAPI Projects; ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   Subject: Re: What is being sent does not match what we are sending. I'm
   back :)
   It looks good as ASCII in debug.
   Robin Kresin
   Sr. Programmer / Analyst
   TVH(r) - TotalSource(r) Parts and Accessories
   Phone: 913.829.1000 ext.3035 Direct: 913-768-3035
   E-mail: robin.kresin@xxxxxxx
   website: [23]www.tvh.com
   From:
   Scott Klement <sk@xxxxxxxxxxxxxxxx>
   To:
   HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>,
   Date:
   07/29/2014 11:33 AM
   Subject:
   Re: What is being sent does not match what we are sending. I'm back :)
   If it looks good in debug, then you haven't converted the data to
   ASCII...
   On 7/29/2014 11:00 AM, Robin.Kresin@xxxxxxx wrote:
   >     We are using Tom's WSDL2RPG program and Scott's Httpati and we
   are
   >     connecting to a Web Service sending invoice information and we
   are
   >     receiving errors back.  Our provider has requested  contenidobyte
   in
   >     ASCII Hex.  We use the XLATE from Mike Krebb to convert the data
   to
   >     ASCII Hex.
   >     When we are in the RPG program in Debug, the data looks correct.
   >     However, in the httpi debug log, it is garbage.
   >     We are trying to find out what has caused the data to change.
   >     If you need the program or what the webservice provider gave us,
   let
   me
   >     know.
   >
   >     From:    Scott Klement <sk@xxxxxxxxxxxxxxxx>
   >     To:      HTTPAPI and FTPAPI Projects
   <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>,
   >     Date:    07/29/2014 10:45 AM
   >     Subject: Re: What is being sent does not match what we are
   sending.
   I'm
   >              back :)
   >
   __________________________________________________________________
   >
   >     Hello Robin,
   >     Can you explain what you're doing and what you're expecting
   HTTPAPI
   to
   >     send and get in response?
   >     From where I'm sitting, this all looks fine -- but, remember, I'm
   not
   >     familiar with your application.
   >     -SK
   >     On 7/29/2014 10:27 AM, Robin.Kresin@xxxxxxx wrote:
   >     >     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?
   >     >
   >
   -----------------------------------------------------------------------
   >     This is the FTPAPI mailing list.  To unsubscribe, please go to:
   >     [1][24]http://www.scottklement.com/mailman/listinfo/ftpapi
   >
   -----------------------------------------------------------------------
   >
   >     The information in this e-mail and any attachments is
   confidential
   >     and is intended solely for the attention and use of  HTTPAPI and
   FTPAPI
   >     Projects .
   >     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. [25]http://www.scottklement.com/mailman/listinfo/ftpapi
   >
   >
   >
   >
   -----------------------------------------------------------------------
   > This is the FTPAPI mailing list.  To unsubscribe, please go to:
   > [26]http://www.scottklement.com/mailman/listinfo/ftpapi
   >
   -----------------------------------------------------------------------
   -----------------------------------------------------------------------
   This is the FTPAPI mailing list.  To unsubscribe, please go to:
   [27]http://www.scottklement.com/mailman/listinfo/ftpapi
   -----------------------------------------------------------------------
   The information in this e-mail and any attachments is confidential
   and is intended solely for the attention and use of  HTTPAPI and FTPAPI
   Projects <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.
   -----------------------------------------------------------------------
   This is the FTPAPI mailing list.  To unsubscribe, please go to:
   [28]http://www.scottklement.com/mailman/listinfo/ftpapi
   -----------------------------------------------------------------------
   The information in this e-mail and any attachments is confidential
   and is intended solely for the attention and use of  HTTPAPI and FTPAPI
   Projects <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.
   -----------------------------------------------------------------------
   This is the FTPAPI mailing list.  To unsubscribe, please go to:
   [29]http://www.scottklement.com/mailman/listinfo/ftpapi
   -----------------------------------------------------------------------

   The information in this e-mail and any attachments is confidential
   and is intended solely for the attention and use of  HTTPAPI and FTPAPI
   Projects .
   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. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   2. file://localhost/tmp/www.demo.bioss-asp.com
   3. http://tempuri.org/EnviaArchivo
   4. http://schemas.xmlsoap.org/soap/envelope/
   5. http://tempuri.org/
   6. http://www.w3.org/TR/html4/strict.dtd
   7. javascript:location.reload()
   8. http://go.microsoft.com/fwlink/?linkid=8180
   9. file://localhost/tmp/www.demo.bioss-asp.com
  10. http://tempuri.org/EnviaArchivo
  11. http://www.w3.org/TR/html4/strict.dtd
  12. javascript:location.reload()
  13. http://go.microsoft.com/fwlink/?linkid=8180
  14. file://localhost/tmp/www.demo.bioss-asp.com
  15. http://tempuri.org/EnviaArchivo
  16. http://schemas.xmlsoap.org/soap/envelope/
  17. http://tempuri.org/
  18. http://schemas.xmlsoap.org/soap/envelope/
  19. http://www.w3.org/2001/XMLSchema-instance
  20. http://www.w3.org/2001/XMLSchema
  21. http://tempuri.org/
  22. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  23. file://localhost/tmp/www.tvh.com
  24. http://www.scottklement.com/mailman/listinfo/ftpapi
  25. http://www.scottklement.com/mailman/listinfo/ftpapi
  26. http://www.scottklement.com/mailman/listinfo/ftpapi
  27. http://www.scottklement.com/mailman/listinfo/ftpapi
  28. http://www.scottklement.com/mailman/listinfo/ftpapi
  29. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------