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

RE: Programs for Trying to get program name from First Data company



Austin,

Do you understand what you are doing with these programs? You seem to have an advanced knowledge of programming but are using some terms in an unusual way. It makes it hard to know where to go to help you. 

It would appear that you are trying to consume some type of web service related to payment processing. This is easily done with HTTPAPI but the starting point is usually a document from the provider called a WSDL. There is no need to write the socket programs like you have done - the heavy lifting is done for you in HTTPAPI and you can concentrate on the meat and potatoes. Also HTTPAPI has debugging built in so that you can see what kind of errors are occurring. 

Suggestions:

1. Stop writing your own sockets program for web services.
2. Download and install HTTPAPI with Expat.
3. Run the example programs in HTTPAPI to get familiar with how it works and begin to understand web services.
4. Get the WSDL from the provider.
5. Install SOAPUI and use the WSDL provided to decipher the XML (although it looks like you might already have that).
6. Copy the XML from SOAPUI and put into the correct example code for HTTPAPI.
7. Compile and run. Look at debugging information.

You can all this in about 4-5 hours and will be miles ahead for future web services functions on the IBM i.

The URI you were provided that ends in SD "appears" to be bad. Maybe it is not used to get the web services? My guess is that the secure.linkpt.net URI is the actual one used. You will probably do a POST to that URL with the XML and it will return the XML you see in the PC tool.

HTTPAPI is the way to go on the IBMi. If this is what you trying to do http://www.firstdata.com/downloads/marketing-merchant/fdgg-web-service-api-v1.3.2.pdf , it appears you will need a client certificate to connect. This could be the problem you are experiencing with the socket program. There is information in the mailing list archives about client certificates and associating them with your program.

Good luck.
Mike  


> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of austinsauls@speech-
> server.com
> Sent: Thursday, November 11, 2010 1:59 PM
> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Programs for Trying to get program name from First Data
> company
> 
> Hi Scott,
> This is a correct document with the files included.
> Thanks,
> Austin
> 
> Repeat of previous document:
> 
> Hi Scott,
> I really do appreciate the note that you sent to me.
> I really do appreciate the excellent work that you have done.
> 
> Please let me know "what I am using" because it was written by you.
> Your documents that you used to describe this operation are:
> SSL Programming in RPG by Scott Klement, System iNetwork Programming
> Tips
> Editor
> March 26, 2006.
> 
> The GSKSSL_H program has this embedded in it:
>  /*-
>   * Copyright (c) 2001,2004 Scott C. Klement
>   * All rights reserved.
>   *
> and the SOCKET_H also has:
>  /*-
>   * Copyright (c) 1998,2001 Scott C. Klement
>   * All rights reserved.
>   *
> I inserted these two headers into my file DASCREDIT as follows:
> 
> 0008.00 H DFTACTGRP(*NO) BNDDIR('QC2LE')
> 0010.00 FADACCHST  O    E             DISK
> 0012.00  /copy asauls/qrpglesrc,socket_h
> 0014.00  /copy gskssl_h
> 0015.00 D QDCXLATE        PR                  ExtPgm('QDCXLATE')
> 0016.00 D   len                          5P 0 const
> 
> I then used your suggestions on how to write the program to use them.
> I have successfully gone to another SSL web site and sent the request
> to
> them.
> This was done one years ago and it is running 24 hours a day, 7 days a
> week.
> 
> Now for the new web site at "First Data".
> 
> For the PC portion, I am sending you the program KURL.exe and
> Kurl.exe.config files.
> The Kurl.exe.config has the name of the files that you can send data
> to.
> I have also included the KurlConnect.doc Microsoft Word File which
> contains
> the request for Kurl.
> The first part is the request and the second part is the response.
> You will note that the request goes to
> https://staging1.datawire.net/sd
> and then it returns the result.
> I simply do a copy of the request in the Microsoft Word File and paste
> it
> into the Kurl file and press go.
> 
> Please run it and you will see what it does.
> 
> Now, my AS/400 is trying to run it using the code that I sent to you
> yesterday; however, it is not working.
> 
> Thanks,
> Austin Sauls
> 770-953-6533
>  austinsauls@xxxxxxxxxxxxx
> 
> 
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------