Topic
  • 12 replies
  • Latest Post - ‏2013-12-09T11:28:18Z by Miel
RajeshKommuri
RajeshKommuri
10 Posts

Pinned topic Parse error when we add AAA policy to a MPGW

‏2013-10-10T21:48:32Z |

Hi,

    I am a new to datapower development. I have created a MPGW for a REST service with Http POST method and my front side handler is https. My REST service doesn't contain any request body. If I try to add a AAA action to my gateway request policy, it is giving below error.

Incomplete markup or missing document element at offset 0.

It is working fine when I remove AAA action. It is also working good with a AAA policy only if I send some XML content like <test>zzz</test>. Is there any attribute in AAA policy to mention that there won't be any request body?

Any suggestions to debug this issue is appreciated.

  • Miel
    Miel
    49 Posts
    ACCEPTED ANSWER

    Re: Parse error when we add AAA policy to a MPGW

    ‏2013-10-16T02:35:07Z  

    I changed input and output context to NULL. But still it gives same error.

    FYI... Next action after AAA is fetch. Input context of Fetch action is INPUT and output context is variable

    Hi Rajesh,

                   Make sure that you have turned on  the non -xml processing in the rule.

     

     

    Regards,

    Miel

  • tallurisri
    tallurisri
    103 Posts

    Re: Parse error when we add AAA policy to a MPGW

    ‏2013-10-10T22:13:34Z  

    Hi Rajesh,

     

    Try your service with  "process message whose body is empty: ON"  option, you may not see this error.

     

    Thanks.

  • tallurisri
    tallurisri
    103 Posts

    Re: Parse error when we add AAA policy to a MPGW

    ‏2013-10-11T14:41:10Z  

    Hi Rajesh,

     

    Try your service with  "process message whose body is empty: ON"  option, you may not see this error.

     

    Thanks.

    While you create AAA action's make sureoutput context should not be Output. Make it either NULL/ auto. 

  • RajeshKommuri
    RajeshKommuri
    10 Posts

    Re: Parse error when we add AAA policy to a MPGW

    ‏2013-10-14T18:38:48Z  

    While you create AAA action's make sureoutput context should not be Output. Make it either NULL/ auto. 

    I have tried with above two options, but still no luck :(

    Below is the error log. Is there anyway to set some sample payload before AAA action (by adding a tranformation action before AAA action)?

     

    15:05:19 mpgw error 62570931 error 10.244.1.35 0x00030001 mpgw (mpgw_OMS_gateway): Parse error
                   
    15:05:19 xmlparse error 62570931 request 10.244.1.35 0x80e003aa mpgw (mpgw_OMS_gateway): Incomplete markup or missing document element at offset 0 of https://127.0.0.1:60580/SampleApp/MX/zzz/aaa/123456789/bbb/1234?scheduledArrDate=10%2F11%2F2013&scheduledArrTime=17%3A15

     

    Updated on 2013-10-14T21:33:50Z at 2013-10-14T21:33:50Z by RajeshKommuri
  • ShyamSiddoji
    ShyamSiddoji
    13 Posts

    Re: Parse error when we add AAA policy to a MPGW

    ‏2013-10-14T19:00:46Z  

    I think you are making GET method call for created POST method service.

     

  • RajeshKommuri
    RajeshKommuri
    10 Posts

    Re: Parse error when we add AAA policy to a MPGW

    ‏2013-10-14T21:31:59Z  

    I think you are making GET method call for created POST method service.

     

    No. Because when I send some test payload like <test>zzz</test>, it is working fine.

  • SriniDp
    SriniDp
    46 Posts

    Re: Parse error when we add AAA policy to a MPGW

    ‏2013-10-15T00:46:47Z  

    No. Because when I send some test payload like <test>zzz</test>, it is working fine.

    Make the INPUT and OUTPUT context of AAA as NULL, it should work .

    Updated on 2013-10-15T00:47:12Z at 2013-10-15T00:47:12Z by SriniDp
  • tallurisri
    tallurisri
    103 Posts

    Re: Parse error when we add AAA policy to a MPGW

    ‏2013-10-15T15:56:50Z  

    No. Because when I send some test payload like <test>zzz</test>, it is working fine.

    Rajesh,

    Can you tell what are other actions you added in your request rule and what are the Input/Output contexts of  AAA and other actions in request rule?

  • RajeshKommuri
    RajeshKommuri
    10 Posts

    Re: Parse error when we add AAA policy to a MPGW

    ‏2013-10-15T23:09:15Z  

    Rajesh,

    Can you tell what are other actions you added in your request rule and what are the Input/Output contexts of  AAA and other actions in request rule?

    I changed input and output context to NULL. But still it gives same error.

    FYI... Next action after AAA is fetch. Input context of Fetch action is INPUT and output context is variable

  • Miel
    Miel
    49 Posts

    Re: Parse error when we add AAA policy to a MPGW

    ‏2013-10-16T02:35:07Z  

    I changed input and output context to NULL. But still it gives same error.

    FYI... Next action after AAA is fetch. Input context of Fetch action is INPUT and output context is variable

    Hi Rajesh,

                   Make sure that you have turned on  the non -xml processing in the rule.

     

     

    Regards,

    Miel

  • RajeshKommuri
    RajeshKommuri
    10 Posts

    Re: Parse error when we add AAA policy to a MPGW

    ‏2013-10-16T17:17:26Z  
    • Miel
    • ‏2013-10-16T02:35:07Z

    Hi Rajesh,

                   Make sure that you have turned on  the non -xml processing in the rule.

     

     

    Regards,

    Miel

    It worked :-)

    When I changed request type to Non XML, then it worked. Thanks everyone.

     

     

    Thanks,

    Rajesh Kommuri

  • Kausthubh
    Kausthubh
    1 Post

    Re: Parse error when we add AAA policy to a MPGW

    ‏2013-12-09T09:47:06Z  
    • Miel
    • ‏2013-10-16T02:35:07Z

    Hi Rajesh,

                   Make sure that you have turned on  the non -xml processing in the rule.

     

     

    Regards,

    Miel

    Hi Miel/Rajesh,

    Can you tell me where I can find the non -xml processing in the rule? I am facing the same problem

     

    Regards,

    Kausthubh

  • Miel
    Miel
    49 Posts

    Re: Parse error when we add AAA policy to a MPGW

    ‏2013-12-09T11:28:18Z  
    • Kausthubh
    • ‏2013-12-09T09:47:06Z

    Hi Miel/Rajesh,

    Can you tell me where I can find the non -xml processing in the rule? I am facing the same problem

     

    Regards,

    Kausthubh

    Hi Kausthubh,

                    Here you go,
     
        Control Panel-->Objects-->XML Processing-->Processing Rule(Ur processing rule name)
     
    Then enable(on) the "Non-XML Processing" 

     

    Regards,

    Miel