Author |
Message
|
sleepyjamie |
Posted: Thu Oct 01, 2015 3:59 pm Post subject: Setting parser automatically from HTTP content type |
|
|
Centurion
Joined: 29 Apr 2015 Posts: 135
|
Is there a way to configure IIB to automatically set the Parser based on the Content-Type header in the HTTP Response?
For example, if it is "application/json" then JSON parser, "application/xml" then XMLNSC parser, etc... |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Oct 01, 2015 8:15 pm Post subject: Re: Setting parser automatically from HTTP content type |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
sleepyjamie wrote: |
Is there a way to configure IIB to automatically set the Parser based on the Content-Type header in the HTTP Response?
For example, if it is "application/json" then JSON parser, "application/xml" then XMLNSC parser, etc... |
You can either parse it dynamically using CREATE ... PARSE, or use a content redescriptor node.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Oct 02, 2015 5:45 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What parser do you actually get without doing anything? _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
sleepyjamie |
Posted: Fri Oct 02, 2015 6:49 am Post subject: |
|
|
Centurion
Joined: 29 Apr 2015 Posts: 135
|
|
Back to top |
|
 |
mqjeff |
Posted: Fri Oct 02, 2015 6:51 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
sleepyjamie wrote: |
BLOB is the default. |
And is that what you actually *get* ? _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
sleepyjamie |
Posted: Fri Oct 02, 2015 7:53 am Post subject: |
|
|
Centurion
Joined: 29 Apr 2015 Posts: 135
|
mqjeff wrote: |
sleepyjamie wrote: |
BLOB is the default. |
And is that what you actually *get* ? |
Yes. |
|
Back to top |
|
 |
|