Author |
Message
|
EricCox |
Posted: Mon May 22, 2017 12:37 pm Post subject: IIB Not Setting Parser when Request Coming from APIC |
|
|
Master
Joined: 08 Apr 2011 Posts: 292
|
To all,
When I test with SoapUI I get this where it invokes the XMLNS Parser and works:
2017-05-22 11:19:18.294750 11567 UserTrace BIP6061I: Node 'ALS_REQUEST.HTTPS Input ALS' used parser type ''HTTPInputHeader'' to process a portion of the incoming message of length '468' bytes beginning at offset '364'. The parser type was selected based on value ''WSINPHDR'' from the previous parser.
2017-05-22 11:19:18.294788 11567 UserTrace BIP6061I: Node 'ALS_REQUEST.HTTPS Input ALS' used parser type ''XMLNS'' to process a portion of the incoming message of length '842' bytes beginning at offset '832'. The parser type was selected based on value ''XMLNS'' from the previous parser.
But when I test going through APIC IIB Does not invoke the XMLNS Parser and the service fails:
2017-05-22 11:28:18.695722 11567 UserTrace BIP6061I: Node 'ALS_REQUEST.HTTPS Input ALS' used parser type ''HTTPInputHeader'' to process a portion of the incoming message of length '692' bytes beginning at offset '364'. The parser type was selected based on value ''WSINPHDR'' from the previous parser.
Here is where it should invoke the parser as shown above.
2017-05-22 11:28:18.695756 11567 UserTrace BIP2537I: Node 'ALS_REQUEST.getRqId': Executing statement ''BEGIN ... END;'' at ('.ALS_REQUEST_Compute.Main', '2.2').
I'm trying to do REST>>>SOAP>>>REST/JSON. I have a REST API defined on APIC which invokes a SOAP Service. The SOAP Response comes back to APIC which then converts it to a JSON Response. When I do this from APIC Assemble Tab or do it from SoapUI this is when I notice the lack of invoking the XMLNS Parser. If I take that exact same XML Request from the Debug window in APIC Assemple and put it in SoapUI it works and invokes that Parser correctly. So for some reason it appears when the request is built and sent by APIC it is having some affect on the XMLNS Parser being invoked on IIB. I can't put my finger on why yet.
Does anyone have any hints or insights on what might be going on and how to fix it?
Thanks to all in advance.
EC |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon May 22, 2017 3:47 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Can you confirm that you have correctly defined the parser on the SOAP Input node / SOAP Request node?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
EricCox |
Posted: Tue May 23, 2017 3:56 am Post subject: XMLNS Parser |
|
|
Master
Joined: 08 Apr 2011 Posts: 292
|
FJ,
I took a close look at the parser setting on the HTTPInput Node. It is set to XMLNS On-Demand.
Is there another setting I need to look at changing?
Thanks,
I hope all is well.
EC |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue May 23, 2017 6:23 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You talk about HTTPInput node... are you using SOAP or JSON on that node?
If using SOAP would it help switching to a SOAP Input node?
Is there an RFH header in play somewhere that would potentially superseed the parser?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
EricCox |
Posted: Wed May 24, 2017 4:01 am Post subject: APIC Forced to POST |
|
|
Master
Joined: 08 Apr 2011 Posts: 292
|
APIC was passing along the GET method to IIB by default. I forced APIC to switch it to POST and it works.
Thanks FJ |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed May 24, 2017 12:30 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You're welcome
Glad you have it working  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|