AnsweredAssumed Answered

Not able to get Operation Name from Request?

Question asked by SARTH_GUPTA on Oct 3, 2017
Latest reply on Oct 3, 2017 by SARTH_GUPTA

Hi All,

 

I am trying to create a virtual service through Request Response Pairs with the request as mentioned below.

Also My requirement is to put a assertion in VSM based on Operation Name of the Incoming Request.However for the below mentioned I am not able to get the Operation name as "GetSubscriberOverviewForESPRequest" but I am getting "Envelope" as operation name .Please suggest.

 

Request in VSI:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<GetSubscriberOverviewForESPRequest xmlns="http://services.kpn.com/GetSubscriberOverviewForESP">
<RequestHeader xmlns="http://services.kpn.com/xsd/common/1.0">
<TransactionId>00505695652611e7ef85cbdfb28d9750</TransactionId>
<Channel>12</Channel>
<TenantID>16</TenantID>
<ProcessTime>2017-08-08T13:40:26</ProcessTime>
<AccessUser>
<AccessUserName>esp</AccessUserName>
<AccessPassword>REDACTED</AccessPassword>
</AccessUser>
</RequestHeader>
<RequestBody>
<IdentifiedBy>
<ServiceNumber>31683803115</ServiceNumber>
</IdentifiedBy>
</RequestBody>
</GetSubscriberOverviewForESPRequest>
</SOAP:Body>
</SOAP:Envelope>

 

 

In VSM,I am using below code so that I get back operatio name as "GetSubscriberOverviewForESPRequest " but I am not getting it.

 

import com.itko.lisa.vse.stateful.model.Request;
import com.itko.util.ParameterList;

Request req = (Request) testExec.getStateValue("lisa.vse.request");
String opName = req.getOperation();
testExec.setStateValue("ReqOp",opName);

 

Please suggest inputs.

 

Thanks

Sarthak

Outcomes