After upgrading API Portal from 4.5 to 5.0.2 exposing SOAP API from API Portal (automatic deployment type), API-fragment is created in API GW and the last line in this fragment is httpRouting assertion. This line was not there with API Portal 4.5 and this line is also not there for REST APIs (in both API Portal versions).
Release : 5.0.2
Component : API PORTAL
There is a bug with new API sync and it will be fixed in next release.
For now, you can move back to legacy Api sync. To enable legacy sync you need to call this endpoint with given payload (you can also find this endpoint in API explorer)
POST https://{portal-url}/api/{tenant-id}/deployments/0.1/proxies/{proxyUuid}/config
{ "useNewAutoSync": false}
and also please make sure legacy sync scheduler jobs are enabled on GW.
You will also need to update that SOAP API, so that legacy sync can deploy it.