Is it correct you are trying to make a call TO call the function from on-premise? "but still i not able to consume the webservice from on prem vpn gateway"
Could it be you are missing a Private endpoint on your function app?
- VNET Integration is for outbound connectivity FROM the function
- Private Endpoints is for inbound connectivity if you want to make private calls TO the function from (network wise) private applications, like on-premise private systems.
However there are some things that need to be in place to make this work from On-Premise.
https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-dns-integration