users@jax-rpc.java.net

Service Name and Port Name

From: Manoj Kumar <m.kumar_at_ORACLE.COM>
Date: Sun, 28 Jul 2002 14:24:17 +0530

Hi,
   I am quite new to the JAX-RPC and currenly trying to explore examples
came with JWSDP.
when i am running the xrpcc tool on the interface written for the
service, it is generating a
ServiceName_Config.properties file.
The contents of the file are something like this

# This file is generated by xrpcc.

port0.tie=dynamic.HelloIF_Tie
port0.servant=dynamic.HelloImpl
port0.name=HelloIF
port0.wsdl.targetNamespace=http://dynamic.org/wsdl
port0.wsdl.serviceName=HelloWorld
port0.wsdl.portName=HelloIFPort
portcount=1


I have some of the queries with me

1) If i want to invoke this service using DII in JAX-RPC then what
service name i need to give in the line
                            Service service = factory.createService(new
QName("..............."));

2) What does portname means in JAX-RPC terminology in relation to a
service. and which name i should
  use for PortName in the following line
        QName port = new QName("............");

because the servicename_config.properties file has two values for the
port name
       port0.name=HelloIF
and
       port0.wsdl.portName=HelloIFPort



--
Thanks in Advance.....
Regards,
Manoj Kumar.