Announcement Announcement Module
Collapse
No announcement yet.
Axis2 with Spring Integration Error : The endpoint reference (EPR) is not found Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Axis2 with Spring Integration Error : The endpoint reference (EPR) is not found

    Here's my definitions for Axis2 & Spring integration with ServletContext. Getting 'org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not found' error. All required jar files(axis2 & spring integration jars) are included into the path. I'll be happy if someone can guide me to solve this problem.

    Thanks in advance,
    With regards..





    Addition to web.xml
    Code:
    <servlet>
    	 	<servlet-name>Axis2Servlet</servlet-name>
    		 <servlet-class>
    		 	org.apache.axis2.transport.http.AxisServlet
    		 </servlet-class>
    		 <load-on-startup>4</load-on-startup>
    	</servlet>
    	
    	 <servlet-mapping>
    		 <servlet-name>Axis2Servlet</servlet-name>
    		 <url-pattern>/services/*</url-pattern>
    	 </servlet-mapping>
    Addition to applicationContext.xml
    Code:
    <bean id = "kullanicilarService" class = "test.ws.KullanicilarWs">
    		<property name = "kullaniciDAO">
    			<bean class = "test.dao.kullanici.KullaniciDAO">
    			</bean>
    		</property>
    	</bean>
    services.xml (which is under the /WEB-INF/services/KullanicilarWs/META-INF/)
    Code:
    <serviceGroup>
    	<service name="KullanicilarWs">
    		<description>
    			Kullanici guncelleme/ekleme web servisi
    		</description>
    		<parameter name="ServiceClass">test.ws.IKullanicilarWs</parameter>
    		<parameter name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter>
    		<parameter name="SpringBeanName">kullanicilarService</parameter>
    		<operation name="saveOrUpdateKullanici">
    			<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
    		</operation>
    		<messageReceivers>
    			<messageReceiver mep="http://www.w3.org/2004/08/w sdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
    		</messageReceivers>
    	</service>
    </serviceGroup>
    and my service class implementation:
    Code:
    public class KullanicilarWs implements IKullanicilarWs {
    
    	@Autowired
    	private KullaniciDAO kullaniciDAO;
    
    	@Override
    	public boolean saveOrUpdateKullanici(String data) {
    		// business procedures	
    	}
    
    	@Override
    	public KullaniciDAO getKullaniciDAO() {
    		return kullaniciDAO;
    	}
    
    	@Override
    	public void setKullaniciDAO(KullaniciDAO kullaniciDAO) {
    		this.kullaniciDAO = kullaniciDAO;
    	}
    }

  • #2
    any ideas??

    Comment

    Working...
    X