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

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.

  • tallurisri
    tallurisri
    91 Posts
    ACCEPTED ANSWER

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

    ‏2013-10-10T22:13:34Z  in response to RajeshKommuri

    Hi Rajesh,

     

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

     

    Thanks.

  • ShyamSiddoji
    ShyamSiddoji
    13 Posts
    ACCEPTED ANSWER

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

    ‏2013-10-14T19:00:46Z  in response to RajeshKommuri

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

     

    • RajeshKommuri
      RajeshKommuri
      10 Posts
      ACCEPTED ANSWER

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

      ‏2013-10-14T21:31:59Z  in response to ShyamSiddoji

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

      • SriniDp
        SriniDp
        46 Posts
        ACCEPTED ANSWER

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

        ‏2013-10-15T00:46:47Z  in response to RajeshKommuri

        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
        91 Posts
        ACCEPTED ANSWER

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

        ‏2013-10-15T15:56:50Z  in response to RajeshKommuri

        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
          ACCEPTED ANSWER

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

          ‏2013-10-15T23:09:15Z  in response to tallurisri

          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
            ACCEPTED ANSWER

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

            ‏2013-10-16T02:35:07Z  in response to RajeshKommuri

            Hi Rajesh,

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

             

             

            Regards,

            Miel

            • RajeshKommuri
              RajeshKommuri
              10 Posts
              ACCEPTED ANSWER

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

              ‏2013-10-16T17:17:26Z  in response to Miel

              It worked :-)

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

               

               

              Thanks,

              Rajesh Kommuri

            • Kausthubh
              Kausthubh
              1 Post
              ACCEPTED ANSWER

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

              ‏2013-12-09T09:47:06Z  in response to 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
                ACCEPTED ANSWER

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

                ‏2013-12-09T11:28:18Z  in response to 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