Neal Sanche wrote:

Hi All,

I've been trying to make a small test web service with JBoss 3.2.0RC1 and am running into a problem. I've created a .wsr and added it to my ear with a web-service.xml that contains the following service section:

<service name="TestService" provider="Handler">
<parameter name="handlerClass" value="org.jboss.net.axis.server.EJBProvider"/>
<parameter name="beanJndiName" value="tvtracker/TestSessionLocal"/>
<parameter name="allowedMethods" value="*"/>
<requestFlow name="TestRequest">
<handler type="java:org.jboss.net.axis.server.TransactionRequestHandler"/>
</requestFlow>
<responseFlow name="TestResponse">
<handler type="java:org.jboss.net.axis.server.SerialisationResponseHandler"/>
<handler type="java:org.jboss.net.axis.server.TransactionResponseHandler"/>
</responseFlow>
</service>


Hi,

I am trying to get my Robocop/repository/Repository bean to be visible for SOAP clients but so far I haven't been able to make webservices visible, axis servlet doesn't list them or anything.

I am using 3.2RC1 and I am running out of ideas, or have already run out of them several days ago :( I attached my web-service.xml, for which I used stuff in this post as example. Those type mappings are from our previous prototype that didn't use EJBs, just simple java classes.

Does there exist any usable documentation for Jboss.net? I haven't been able to find anything, just couple examples how to make webservices ...but they were for jboss 4.0 or 3.0.4 and I couldn't make things work following them.

So if anyone could help me I would be very thankfull, and propably guys I should demo our system tomorrow too :P

I have bean deployed to Robocop/repository/Repository, it has local interfaces and 4 methods that I would like to turn into webservices. Beans are deployed in EAR and then I have this xml file and classes for those types listed in typemappings in WSR. JBoss says it deployed package Roborepo.wsr but I can't find anything about services said anywhere.

Should I put WSR into EAR? If so what should I remember to check? Does it work same way if WSR is in deploy dir next to EAR?

Is there something wrong in my xml file?

Anything?

--
 jK.MkIII


<?xml version="1.0" encoding="UTF-8"?>
<deployment name="RoboRepoService" xmlns="http://xml.apache.org/axis/wsdd/"; targetNamespace="urn:RCDP_repository" xmlns:repo="urn:RCDP_repository" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
	<ejb-ref>
		<ejb-ref-name>Repository</ejb-ref-name>
		<ejb-link>Robocop/repository/Repository</ejb-link>
	</ejb-ref>

	<service name="RoboRepoPort" provider="Handler">
		<parameter name="handlerClass" value="org.jboss. net.axis.server.EJBProvider" />
		<parameter name="beanJndiName" value="java:comp/env/Repository" />
		<parameter name="allowedMethods" value="*" />

		<requestFlow name="RoboRepoPortRequest">
			<handler type="java:org.jboss.net.axis.s erver.TransactionRequestHandler" />
		</requestFlow>
		<responseFlow name="RoboRepoPortResponse">
			<handler type="java:org.jboss.net.axis.s erver.SerialisationResponseHandler" />
			<handler type="java:org.jboss.net.axis.s erver.TransactionResponseHandler" />
		</responseFlow>

		<typeMapping xmlns:ns="urn:RCDP" qname="ns:code-t" type="java:RCDP.CodeT" serializer="org.apache.axis.encoding.ser.EnumSerializerFactory" deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
		<typeMapping xmlns:ns="urn:RCDP" qname="ns:name-t" type="java:RCDP.NameT" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
		<typeMapping xmlns:ns="urn:RCDP" qname="ns:addr-t" type="java:RCDP.AddrT" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
		<typeMapping xmlns:ns="urn:RCDP" qname="ns:cert-t" type="java:RCDP.CertT" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
	</service>
</deployment>

Reply via email to