No Bread I am not.

I know how to add custom headers in HTTPAPI - I am doing a lot of that on
the current project.

This thread was about creating an IWS REST web service and putting the
request parameters into the URI

If you wanted to move some of the parameters from the URI to custom
headers how would you call the service if not using HTTPAPI (or GETURI)

I am sure i am not explaining this well due to a limited understanding of
REST services :-)

But I think Nadir has answered the question that any client would have a
method to set custom headers.

I think for some reason I was thinking you may be able to add custom
headers into the URI which now thinking about it that is rather dumb :-(

Cheers


Don Brown




From: "B Stone" <bvstone@xxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxxxxxxxx>
Date: 16/01/2019 07:53 AM
Subject: Re: [WEB400] Using REST service created with IWS
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx>



He's asking how do you include custom headers using HTTPAPI.

I know there's a way, and if you search the demos in the HTTPAPI library I
bet you'd find the answer.

For GETURI it's as simple as including them in the command, or in the ILE
interface, whichever way you want to do it


Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #9 <https://www.bvstools.com/mailtool.html>: Superior
debugging (when using MAILTOOL Plus) - Bypassing the IBM SMTP server means
that we can fully debug and track down sometimes hard to find problems.
Even the Trace TCP/IP Application (TRCTCPAPP) command won't be this
detailed!

On Tue, Jan 15, 2019 at 3:47 PM Nadir Amra <amra@xxxxxxxxxx> wrote:

I am uncertain what you are asking. Any client library would have the
ability to set HTTP headers. If you are asking how would you retrieve
the
HTTP headers that are sent by a client to an IWS service, you have two
options.

(1) Inject the HTTP header into an input field, or

(2) In the web service properties, there is a "Request Information" tab,
where you can specify what information (transport meta-data or HTTP
headers) that will be sent the the web service implementation code as a
job environment variable.


"WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx> wrote on 01/15/2019
03:19:24
PM:

From: Don Brown <DBrown@xxxxxxxxxx>
To: "Web Enabling the IBM i\(AS/400 and iSeries\)"
<web400@xxxxxxxxxxxxxxxxxx>
Date: 01/15/2019 03:20 PM
Subject: Re: [WEB400] Using REST service created with IWS
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx>

I have been following this thread while working on a project to
consume
a
REST service from RPG with an external system.

In my case there are a lot of options that are required in the HEADER.

In IWS you can define a parameter type as HEADER (think this was shown
in
a previous response)

How do you include the header settings in the call.

I am using HTTPAPI and it provides a call back to handle this.

Just curious




--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.