ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB - Http Patch Method

Post new topic  Reply to topic
 IIB - Http Patch Method « View previous topic :: View next topic » 
Author Message
Venkat10
PostPosted: Tue Mar 01, 2016 1:33 pm    Post subject: IIB - Http Patch Method Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Mar 01, 2016 1:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
rekarm01
PostPosted: Tue Mar 01, 2016 7:03 pm    Post subject: Re: IIB - Http Patch Method Reply with quote

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
View user's profile Send private message
stoney
PostPosted: Tue Mar 01, 2016 11:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Venkat10
PostPosted: Wed Mar 02, 2016 10:06 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Mar 02, 2016 10:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB - Http Patch Method
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.