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

Re: [Ftpapi] FW: Web Service information



Cynthia,

If you haven't done so already, please take a look at the handouts from my talks on web services.  You can find them here: http://www.scottklement.com/presentations/

These talks go over the basics of what a web service is, including the fact that it uses HTTP to send and receive a documents that represent parameters, similar to parameters you would pass to a program.  The talks also explain that there are two prevalent types of web services, REST and SOAP.

Your previous e-mail contained a WSDL and an XSD document.  These are used, primarily in SOAP, as a way of documenting how the web service works.  I would suggest saving these to a folder on your PC, and naming the documents Able.wsdl and Able.xsd.  It is important that "Able.xsd" has that exact name, since it's referenced from the WSDL document.  And they must be in the same folder.

Then, download the SoapUI program (free software) that is mentioned in my talks/handout.  Take the option to create a project for a SOAP web service, and when it asks for the WSDL document, click the "Browse" button and point it to the Able.wsdl document on your PC.   It will open the document and create a project that you can expand to learn about this web service.

In the tree of options there will be something called "Request 1".  If you double-click that, it will show the XML file (in SOAP format) that is needed to be sent to the web service.  This is the document you'll need to create from the data on your IBM i, presumably in an RPG program.   Initially, however, I would suggest testing it out by typing values into the XML document in SoapUI and sending it in that tool.  This will also show you the document that is received from the service.

Once you know what these documents are meant to look like, you can code an RPG program with HTTPAPI that sends the document and gets back the response.  There are several examples in the handouts I refer to above.

Good Luck

On 11/7/2017 4:06 PM, Cynthia Marsellus wrote:

I’m consuming a web service but  do not know where to begin.

*From:* ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] *On Behalf Of *John Long
*Sent:* Monday, November 6, 2017 12:25 PM
*To:* FTPAPI/HTTPAPI mailing list <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
*Subject:* Re: [Ftpapi] FW: Web Service information

Hi

Are you offering a web service or consuming a web service?

The WSDL would imply your consuming one, unless you have to offer a service that provides the services the WSDL defines.

I only ask as I’ve had to reverse engineer one from WSDL recently.

John

Sent from my iPhone X


On 6 Nov 2017, at 18:21, Cynthia Marsellus <Cynthia.Marsellus@xxxxxx <mailto:Cynthia.Marsellus@xxxxxx>> wrote:

    Help… I am tasked with creating a web service which no one at my
    office has done before.   Please  inform how I can take an as400
    file and put it in the correct format to be used by the web
    service.   CAN I just copy my file from as400 to IFS  or  will I
    need to do more.  I’ve attached the specs that were received.  I 
    was expecting data to be set via FTP  but was informed that  it
     must be sent via a web service.  I’ve attached the layout needed
    . Any assistance would be appreciated.

    <Able.xsd>

    <Able WSDL.txt>

-- _______________________________________________
    Ftpapi mailing list
    Ftpapi@xxxxxxxxxxxxxxxxxxxxxx <mailto:Ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
    http://scottklement.com/mailman/listinfo/ftpapi

_____________________________________________________________ T.J. MORRIS LTD-CONFIDENTIALITY NOTICE This e-mail and its contents, together with any attachments, are confidential to the sender and the intended recipient(s). If you are not the intended recipient or agent responsible for delivery to the intended recipient any unauthorised storage, use, disclosure, copying, distribution or dissemination of this e-mail or any part thereof is strictly prohibited and may be illegal. If you receive this e-mail in error please advise us by telephone on +44(0)151 530 2920 and delete and destroy this e-mail and any attachments and any copies thereof from your system immediately. Any views or opinions expressed in this e-mail are solely those of the sender and do not necessarily represent those of T J Morris Ltd. Although any attachments to this e-mail have been checked for viruses we make no representation and give no warranty as to the absence of viruses and you should scan this e-mail and attachments for viruses. ___________________________________________________________




--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi