Author |
Message
|
Venkat10 |
Posted: Tue Mar 01, 2016 1:33 pm Post subject: IIB - Http Patch Method |
|
|
Novice
Joined: 10 Mar 2014 Posts: 19
|
Hi,
I have a requirement to use Http Request node and use Patch method.
But I didn't see this method in the drop down.
Is there a way that I can call a URL using Patch method?
Thanks,
Venkat |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Mar 01, 2016 1:43 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
www-01.ibm.com/support/knowledgecenter/SSMKHH_10.0.0/com.ibm.etools.mft.doc/ac00520_.htm?lang=en _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
rekarm01 |
Posted: Tue Mar 01, 2016 7:03 pm Post subject: Re: IIB - Http Patch Method |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
This looks like a question for the message broker forum.
Venkat10 wrote: |
I have a requirement to use Http Request node and use Patch method. |
According to the KC, the HTTPRequest node doesn't support the PATCH method:
Quote: |
Valid values are POST, GET, PUT, DELETE, and HEAD. |
No PATCH.
Venkat10 wrote: |
But I didn't see this method in the drop down. Is there a way that I can call a URL using Patch method? |
Using a Local environment override to set the method might work:
Code: |
SET OutputLocalEnvironment.Destination.HTTP.RequestLine.Method = 'PATCH'; |
But, even if it seems to work, it's not documented as a valid value. |
|
Back to top |
|
 |
stoney |
Posted: Tue Mar 01, 2016 11:49 pm Post subject: |
|
|
Centurion
Joined: 03 Apr 2013 Posts: 140
|
IIB 10.0.0.2 includes a toolkit fix (that isn't listed as an APAR) that turns the HTTPRequest method dropdown into a combo box.
That combo box supports all of the usual HTTP methods - GET, POST, PUT, DELETE, PATCH, HEAD, and OPTIONS.
However, you can type whatever HTTP method you want in (for example if you wanted to make a BREW request for HTCPCP).
The Knowledge Centre needs updating to reflect this.
For previous versions of IIB, this will definetely work:
Code: |
SET OutputLocalEnvironment.Destination.HTTP.RequestLine.Method = 'PATCH'; |
|
|
Back to top |
|
 |
Venkat10 |
Posted: Wed Mar 02, 2016 10:06 am Post subject: |
|
|
Novice
Joined: 10 Mar 2014 Posts: 19
|
Tried but no luck. We are using IIB 9.0.0.3
SET OutputLocalEnvironment.Destination.HTTP.RequestLine.Method = 'PATCH';
Going to error node with below error.
X-Original-HTTP-Status-Line HTTP/1.1 501 Not Implemented
------------------------------------------------------------------------------------
10.5.2 501 Not Implemented
The server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.
------------------------------------------------------------------------------------ |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Mar 02, 2016 10:08 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Venkat10 wrote: |
Tried but no luck. We are using IIB 9.0.0.3
SET OutputLocalEnvironment.Destination.HTTP.RequestLine.Method = 'PATCH';
Going to error node with below error.
X-Original-HTTP-Status-Line HTTP/1.1 501 Not Implemented
------------------------------------------------------------------------------------
10.5.2 501 Not Implemented
The server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.
------------------------------------------------------------------------------------ |
Well. That's not IIB's fault. That's the server you're talking to.
Ask the provider nicely to explain why they want you to submit a PATCH but won't support it on their side... _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|