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

Re: Trying to get program name from First Data company.



Hi Austin,

I think we had a misunderstanding.  When you sent this issue to me in 
private e-mail, and you had provided less detail, I thought that since 
you were doing web services, you'd be using HTTPAPI.  So I said "If you 
have a question about HTTPAPI, please use the mailing list..."

But now I see that you aren't using HTTPAPI, or any of my software at 
all.  You've written your own software.

So there's the misunderstanding...   I asked you to use this mailing 
list because I thought you were using HTTPAPI, but you're not... and so 
this is off-topic for the mailing list.

Your question "Should First Data be able to provide me with a web 
program name that I can run my XML code against?" doesn't make much 
sense to me.

HTTP doesn't work on the basis of program names.  It works on the basis 
of URI's.  You give an HTTP tool a URI, and it parses the URI, contacts 
the appropriate server, and makes the appropriate request.  You suggest 
that a program name is needed... and I really don't know where you got 
that from -- but program names aren't typically used as part of an HTTP 
request.  Though, it's possible that part of a URI will mention a 
particular program, that's certainly not always the case.

Apparently, they told you to use a URI of 
https://staging1.datawire.net/sd and I don't understand your objection 
to this URI. Keep in mind:  I don't work for FirstData.... indeed, I 
know absolutely nothing about them.  I don't know what the URI is 
supposed to be.  It may be right, and it may be wrong... I have no way 
of knowing!  But, it is a syntactically valid URI... so, if it's what 
they told you to use, I don't understand why you're objecting.

You then proceeded to say that you wrote an XML file that does a PING 
from a PC... and at that point, I got completely lost.  XML is a data 
format, it's not a programming language.  You can't write a PING utility 
in XML...  that makes no sense.  But even if you meant something else 
(like a .BAT file, for example) the notion of using PING to interact 
with an HTTP server is pure nonsense.  PING works at the ICMP level, it 
knows nothing of TCP, much less HTTP (which is built on top of TCP). 
So I can't figure out what PING has to do with the price of tea in 
China...

Then you started talking about 'listeners' and 'handlers' and I got even 
more lost.

Anyway, since you're not using HTTPAPI, I really can't help you further. 
  I don't know how your software works, and there's little chance that I 
ever will -- so I don't see how I can debug it for you.  Likewise, I 
don't work for FirstData, and therefore I don't know how their side is 
supposed to work.

Really, you need to discuss that with THEM.



On 11/10/2010 7:21 PM, austinsauls@xxxxxxxxxxxxxxxxx wrote:
>
>     Hi Scott,
>
>     I have contacted IBM about my problem and they guessed your name.
>     Then they praised you and said that you were the "absolute
>     genius" with the AS/400.
>
>
>
>     My Question is:  Should First Data be able to provide me with a web
>     program name that I can run my XML code against?
>
>
>
>     I have been using your programs "socket_h" and "gskssl_h" within my
>     RPG program to access an SSL website named "ProfitStars" and obtaining
>     information by sending them a string of XML code.  This has been
>     working successfully.  When I started with their web site, they
>     provide me with the name of the file that needed to be accessed.  I
>     would send them the XML code that requested the approval of
>     a "personal check", they would then send me the approval.  The system
>     has been working for a year.
>
>
>
>     Now, I need to access a different web site that is provided by First
>     Data.  I will use this web site to gain approval for Credit Card
>     validation.  They have provided me with a web site called
>     "https://staging1.datawire.net/sd";.  Now I have created the XML code
>     to perform a PING operation by using a program on my PC and it works
>     correctly.  However, when I do it on the AS/400, I only get back a
>     statement that the file cannot be found.
>
>
>
>     I have told them that I need the name of the file in the sd folder
>     that I can use.  They have responded that "they are using the handlers
>     and that there is a listener for POSTs that will act upon them".  This
>     message is from a first line support person that has been contacting
>     the "NetOps" department of First Data company.  I keep requesting the
>     actual name of the listener and I have never obtained it.  Should
>     First Data be able to provide me with a web program name that I can
>     run my XML code against?  So that I can "POST /sd/program-name
>     HTTP/1.1" as part of my command cmd.
>
>
>
>     Here is a sample of the code that I am using to make the request:
>
>
>     0403.00     // Connect a socket to an SSL server
>
>     0410.00     // Upgrade the socket to SSL
>
>
>     0420.00   cmd = 'POST /sd HTTP/1.1' +
>     CRLF
>
>     0421.00    + 'User-Agent: xml_3_2_0_19' +
>     CRLF
>
>     0422.00    + 'Host: staging1.datawire.net' +
>     CRLF
>
>     0423.00    + 'Connection: Keep-Alive' +
>     CRLF
>
>     0424.00    + 'Cache-Control: no-cache' +
>     CRLF
>
>     0425.00    + 'Content-Length: ' + %CHAR(%LEN(%TRIMR(SoapCode))) +
>     CRLF
>
>     0426.00    + 'Content-Type: text/xml' +
>     CRLF
>
>     0427.00    +
>     CRLF
>
>     0428.00    +
>     SoapCode;
>
>
>     Whereby the SoapCode is of the following format:
>
>
>     <!DOCTYPE Request PUBLIC "-//Datawire Communication Networks INC//DTD
>     VXN API Self-Registration 3.0//EN"
>     "[1]http://www.datawire.net/xmldtd/srs.dtd";>
>     <Request Version="3" ClientTimeout="30">
>     <ReqClientID>
>        <DID>00010391602694894655</DID>
>        <App>TESTAPPLICATION</App>
>        <Auth>123456789012345|12345678</Auth>
>        <ClientRef>1234567V123456</ClientRef>
>     </ReqClientID>
>     <Ping>
>        <ServiceID>115</ServiceID>
>     </Ping>
>     </Request>
>
>
>     When this is done on a PC, then I get:
>
>
>     <?xml version="1.0" encoding="UTF-8"?>
>     <!DOCTYPE Response SYSTEM "dwxmlapi3.dtd">
>     <Response Version="3">
>      <RespClientID>
>       <DID>00010391602694894655</DID>
>       <ClientRef>1234567V123456</ClientRef>
>      </RespClientID>
>      <Status StatusCode="OK"></Status>
>      <PingResponse>
>       <ServiceCost>
>        <ServiceID>115</ServiceID>
>        <TransactionTimeMs>10000</TransactionTimeMs>
>       </ServiceCost>
>      </PingResponse>
>     </Response>
>
>
>
>     I have also placed the following code at the beginning of SoapCode in
>     the AS/400:
>
>     <?xml version="1.0" encoding="UTF-8"?>
>
>
>     And I still get not found error 404.
>
>
>
>     Thanks,
>     Austin
>
>
>
> References
>
>     Visible links
>     1. http://www.datawire.net/xmldtd/srs.dtd
>
>     Hidden links:
>     2. http://www.datawire.net/xmldtd/srs.dtd
>
>
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> 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
-----------------------------------------------------------------------