is it possible to have multiple implementors with only one address ?
So something like:
<jaxws:endpoint id="ws1" implementor="#ws1" address="/ws" />
<jaxws:endpoint id="ws2" implementor="#ws2" address="/ws" />
Thanks
–MB
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you have a huge endpoint with lots of operations. If you do contract first development, CXF will create a single class per each endpoint, containing one method per operation. I believe this is the only way. You can however use this endpoint class only as a facade, delegating to several specialized classes (one line per operation, that’s it).
Of course you can always refactor your WSDL to have multiple endpoints, but probably this is not an option for you. As far as I know there is no way to split implementation into several classes, the class must implement WS interface entirely.
In Spring WS however any method can handle SOAP request by annotating it with
@PayloadRootinside a class annotated with@Endpoint. This looks like a great feature in your case, since you can span implementation in as many classes as you want (even one class per SOAP operation!)