Hi,
My problem is that i have an Endpoint class that extends AbstractMarshallingPayloadEndpoint , And i want to use many methods in the same EndPoint using annotation. i used annotation like below:
And i mapped thes request (mySecondRequest, myFirstRequest) in the ws-servlet.xml fileCode:@Endpoint public class MyServiceEndpoint extends AbstractMarshallingPayloadEndpoint { private static final Log LOG = LogFactory.getLog(MyServiceEndpoint .class); public EnumEndpoint(XmlBeansMarshaller marshaller) { super(marshaller); } @PayloadRoot(localPart = "myFirstRequest", namespace = "http://myCompany.net") protected Object invokeInternal(Object loadRequest) throws Exception { LOG.debug("INVOKE INTERNAL METHODE "); return null; } @PayloadRoot(localPart = "mySecondRequest", namespace = "http://myCompany.net") protected Object otherMethode(Object loadRequest) throws Exception { LOG.debug("otherMethode "); return null; }
If i run it, It invoke ONLY invokeInternal() method, If some one know why it dosn't work ! , OR if you have other Idea to make it work.HTML Code:<bean id="endpointMapping" class="org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping"> <property name="mappings"> <props> <prop key="{http://MyCompany.net/}myFirstRequest"> MyServiceEndpoint </prop> <prop key="{http://mycompany.net/}mySecondRequest"> MyserviceEndPoint </prop> . . .
Thank u for ur tips.
Ragards,


Reply With Quote