What you can do is try this logic to get the URL from the delivery method as steps below:
tn.profile:getProfile (based on the receiver/ProfileID in the pipeline from TN)
Loop thru profile/Delivery
Branch on sequence
%profile/Delivery/Protocol%==“https” || %profile/Delivery/Protocol%==“http”
Inside this put a map step - receiverHttpURL var (setValue with substitution as
%profile/Delivery/Protocol%://%profile/Delivery/Host%:%profile/Delivery/Port%%profile/Delivery/Location%)
receiverHTTPURL should have the URL what you need:
HTH,
RMG
#B2B-Integration#webMethods#Integration-Server-and-ESB