Regarding the documentation looks like you need to configure the port in the Business Service:

(Configured Web Services exposed using the SOAP Inbound Adapter may also be invoked with this URL parameter but because each configured Inbound Adapter listens on its own TCP/IP port this parameter is just a safety check for them.)

https://docs.intersystems.com/iris20241/csp/documatic/%25CSP.Documatic.c...

I was Java developer for more than 15 years and for me to use arguments by reference was totally disgusting, you can use it in Java, but it's not very common, in Objectscript is the opposite, Output arguments are the rule, no the exception.

Calling instance methods using variables not declared as arguments made me feel dirty.