1 Reply Latest reply: Nov 30, 2012 10:40 AM by 972629 RSS

    Rest Web service testing

    972629
      I am creating the REST based web service using PT 8.52. I have created the document having one primitive element USERID. When I am testing it by handler tester, after populating the document with the value for USERID, handler code is not fecthing the value for USERID. If I hardcode this value, it is working fine.

      Any one has idea if there is issue with handler tester for rest based service?

      My code is like this:

      &msg_resp = CreateMessage(Operation.xyz, %IntBroker_Response);
      &DOC = &msg.GetURIDocument();
      &root = &DOC.DocumentElement;

      &prim = &root.GetPropertyByName("USERID");
      &user = &prim.Value;

      after populating userid in handler tester, still code did n't get value for &user.

      Edited by: 969626 on Nov 30, 2012 8:38 AM