|
Haneef,
Many
thanks for your continued help on this, however I am still
stuck:
I am
using Suns j2ee reference implementation and when I start it up it does say that
naming services are bound to port 1050. However when I set the rmi url in the
wsdd as 1050 I always always get the following error:
faultString: javax.naming.CommunicationException [Root exception is
java.rmi.ConnectIOException: error during JRMP connection establishment; nested
exception is: java.net.SocketTimeoutException: Read timed
out]
This
is frustrating.
As to
your second point, I'm afraid I don't understand. Below are my jndi properties (
minimal aren't they ? ). But at no point to I use the InitialContext in my code
( the bean client, which works ( and is only for test purposes) does ) but the
web service is just the bean, and the Web Service client is
below.
It is
embarrising to be so stuck on what is given as a simple example in the user
guide.
Thanks
again
Russell
------------------------------------------------------------------------------------------
WS
CLIENT
package com.freeserve.fsmap.PAF; import java.net.URL;
import
org.apache.axis.AxisFault;
import org.apache.axis.client.Call; import org.apache.axis.client.Service; import javax.xml.namespace.QName; import javax.xml.rpc.ParameterMode; import
org.apache.axis.client.Service;
import org.apache.axis.client.Call; import org.apache.axis.encoding.XMLType; import
com.freeserve.fsmap.ArgumentSet;
import java.util.*;
public class PAFLookUpWSClient
{
public PAFLookUpWSClient()
{
} public static void main
(String args[]) {
//create args as
hashtable
Hashtable ht = new
Hashtable(5);
ht.put("postcode","LS176PJ"); ht.put("addressLine1","2"); //create
ArgumentSet
ArgumentSet as = new ArgumentSet(); as.setIdentifier("lookupPostCode"); as.setArguments(ht); Service service = new
Service();
try
{
Call call = (Call) service.createCall(); QName qn = new QName( "urn:BeanService", "ArgumentSet" ); call.registerTypeMapping(ArgumentSet.class, qn, new org.apache.axis.encoding.ser.BeanSerializerFactory(ArgumentSet.class, qn), new org.apache.axis.encoding.ser.BeanDeserializerFactory(ArgumentSet.class, qn)); ArgumentSet result; try { call.setTargetEndpointAddress( new java.net.URL("http://localhost:8080/axis/services/PAFLookUp") ); call.setOperationName( new QName("PAFLookUp", "getReturn") ); call.addParameter( "arg1", qn, ParameterMode.IN ); call.setReturnType( qn ); result
= (ArgumentSet) call.invoke( new Object[] { as }
);
} catch (AxisFault fault) { System.out.println("Error : "+fault.toString()+"\n\n\n"); fault.printStackTrace(); } } catch (Exception e)
{
System.out.println(e.toString()); System.exit(-1); } System.out.println("yaya");
}
} ----------------------------------------------------------------------------------
JNDI
PROPERTIES
java.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory
java.naming.factory.url.pkgs=com.sun.enterprise.naming cheers
|
Title: Message
- EJBs deployed as webservices continued Russell Brown
- Re: EJBs deployed as webservices contin... objectman
- Re: EJBs deployed as webservices co... Bruce Scharlau
- RE: EJBs deployed as webservices contin... Russell Brown
- RE: EJBs deployed as webservices contin... Brian Ward
- RE: EJBs deployed as webservices contin... ALI,HANEEF (HP-Cupertino,ex1)
- RE: EJBs deployed as webservices contin... Russell Brown
- RE: EJBs deployed as webservices contin... Russell Brown
- RE: EJBs deployed as webservices contin... Russell Brown
- RE: EJBs deployed as webservices contin... ALI,HANEEF (HP-Cupertino,ex1)
