I implemented the multi service and multi port support in the following way. if the user has specified a service and a port (using -sn and -pn) then the wsdl2java generates the code only for that combination. otherwise it generates the code for all services and ports.
When Generating code for multiple ports (i.e when user has not specified any service name or ports) first it picks a soap binding and generates the code for the bindings with the same portType as the chosen binding. other ports are ignored. I could not figure out a method to add multi service support for jibx binding. So I kept the getAxisService method in codegenConfiguration to support jibx. Denis can you please look into this? -- Amila Suriarachchi, WSO2 Inc.
