Hi
I'm a newcomer of servicemix, I'm going to make a EJB proxy to expose my
EJB as webservice, but always get 'Cound not find port LoginServicePort in
wsdl for service {http://demo/servicemix}LoginService' error since
loginservice.wsdl is a 'fake' WSDL , looks like validateWsdl="false" is not
working, how can I disable it?
My code is created according to ServiceMix Tutorials ---Using EJB inside
ServiceMix(http://cwiki.apache.org/SM/6-intermediate-using-ejb-inside-servicemix.html)
It will be great help to provide a working example of EJB proxy, thanks in
advance!
ejb-http-su xbean.xml
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:tns="http://demo/servicemix">
<http:soap-consumer
service="tns:LoginService"
endpoint="ep"
targetService="tns:LoginService"
targetEndpoint="LoginServicePort"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
locationURI="http://0.0.0.0:8199/LoginServiceService"
wsdl="classpath:loginservice.wsdl"
validateWsdl="false"
useJbiWrapper="true"
/>
</beans>
cxfse xbean.xml
<beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
xmlns:tns="http://demo/servicemix">
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">
weblogic.jndi.WLInitialContextFactory
</prop>
<prop key="java.naming.provider.url">
t3://192.168.80.111:7001
</prop>
</props>
</property>
</bean>
<bean id="ejbProxy"
class="org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean">
<property name="jndiName" value="demo/UserDAORemote"/>
<property name="businessInterface" value="demo.UserDAORemote"/>
<property name="homeInterface" value="demo.UserDAORemoteHome"/>
<property name="refreshHomeOnConnectFailure" value="true"/>
<property name="cacheHome" value="true"/>
<property name="lookupHomeOnStartup" value="false"/>
<property name="resourceRef" value="true"/>
<property name="jndiTemplate" ref="jndiTemplate"/>
</bean>
<cxfse:endpoint>
<cxfse:pojo>
<bean class="demo.LoginServiceImpl">
<property name="proxy" ref="ejbProxy"/>
</bean>
</cxfse:pojo>
</cxfse:endpoint>
</beans>
--
View this message in context:
http://www.nabble.com/How-to-invoke-EJB-and-How-to-disable-WSDL-validation-in-http%3Asoap-consumer-provider--tp23963883p23963883.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.