Forum Discussion
subex
Occasional Contributor
Hi, I have used the Event-> RequestFilter.filterRequest and "Remove Empty Content" property to remove the empty nodes in my request. It is helping upto certain extent but not really removing the Parent node "Product" in the below example. Can someone help me with a work around to achieve it?
Original Request
<soapenv:Body>
<v1:Retrieve>
<v1:RetrieveCriteria>
<v1:RetrieveAll>true</v1:RetrieveAll>
<v1:Product>
<v1:Productid></v1:Productid>
<v1:Productid></v1:Productid>
</v1:Product>
</v1:RetrieveCriteria>
</v1:Retrieve>
</soapenv:Body>
Expected :
<soapenv:Body>
<v1:Retrieve>
<v1:RetrieveCriteria>
<v1:RetrieveAll>true</v1:RetrieveAll>
</v1:RetrieveCriteria>
</v1:Retrieve>
</soapenv:Body>
Actual :
<soapenv:Body>
<v1:Retrieve>
<v1:RetrieveCriteria>
<v1:RetrieveAll>true</v1:RetrieveAll>
<v1:Product>
</v1:Product>
</v1:RetrieveCriteria>
</v1:Retrieve>
</soapenv:Body>
Original Request
<soapenv:Body>
<v1:Retrieve>
<v1:RetrieveCriteria>
<v1:RetrieveAll>true</v1:RetrieveAll>
<v1:Product>
<v1:Productid></v1:Productid>
<v1:Productid></v1:Productid>
</v1:Product>
</v1:RetrieveCriteria>
</v1:Retrieve>
</soapenv:Body>
Expected :
<soapenv:Body>
<v1:Retrieve>
<v1:RetrieveCriteria>
<v1:RetrieveAll>true</v1:RetrieveAll>
</v1:RetrieveCriteria>
</v1:Retrieve>
</soapenv:Body>
Actual :
<soapenv:Body>
<v1:Retrieve>
<v1:RetrieveCriteria>
<v1:RetrieveAll>true</v1:RetrieveAll>
<v1:Product>
</v1:Product>
</v1:RetrieveCriteria>
</v1:Retrieve>
</soapenv:Body>
Related Content
- 4 years agokrasnoludpauli
- 3 years agojbl666
- 4 years agomehdisinger
- 3 years agoprekar
Recent Discussions
- 22 hours agoGuhan-B
- 5 days agoruchisingh