users@jax-rpc.java.net

Re: WSDL2RMI ???

From: Arun Gupta <arun.gupta_at_Sun.COM>
Date: Mon, 01 Apr 2002 16:02:13 -0800

Hi Barry,

Please look at
http://java.sun.com/webservices/docs/ea2/tutorial/doc/JAXRPCxrpcc3.html#64941.
This part of the tutorial talks in detail about starting from a WSDL
document.

Feeding this file along with config.xml file to xrpcc tool will also
generate a remote interface for you. You can then implement this
interface and generate ties to deploy this web service. However since
JAX-RPC does not guarantee round-trip mapping, WSDL generated by feeding
the remote interface to the tool may not match original WSDL.

The typical usage of a WSDL document generated by xrpcc tool is to
expose the web service by publishing it's WSDL in a public registry.
Since the hello example demonstrates the JAX-RPC concepts, it is not
using the WSDL in that sense.

After deploying your service, did you try verifying by specifying the
service endpoint in a browser ? It should show all the ports supported
by your service endpoint.

Thanks for your interest in JAX-RPC.

Regards,
-Arun

Barry Burd wrote:
>
> I'm trying to take the hello example in the JAXRPC tutorial, and set it up so that I start with a WSDL file, and end up with a Web service. Below are my WSDL and config.xml files. When I try to do 'ant install', I get an error message (also below). Can anyone help?
>
> Also, am I correct in observing that the hello example does not make use of the WSDL file that it generates? What I'm looking for here is an example of the use of a WSDL file, and having the hello example just generate such a file without using it doesn't do me much good.
>
> Thanks.
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <definitions name="HelloWorldService" targetNamespace="http://hello.org/wsdl" xmlns:tns="http://hello.org/wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <types/>
> <message name="sayHello">
> <part name="String_1" type="xsd:string"/></message>
> <message name="sayHelloResponse">
> <part name="result" type="xsd:string"/></message>
> <portType name="HelloIF">
> <operation name="sayHello">
> <input message="tns:sayHello"/>
> <output message="tns:sayHelloResponse"/></operation></portType>
> <binding name="HelloIFBinding" type="tns:HelloIF">
> <operation name="sayHello">
> <input>
> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://hello.org/wsdl"/></input>
> <output>
> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://hello.org/wsdl"/></output>
> <soap:operation soapAction=""/></operation>
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/></binding>
> <service name="HelloWorld">
> <!--port name="HelloIFPort" binding="tns:HelloIFBinding"-->
> <!--port name="HelloClient" binding="tns:HelloIFBinding"-->
> <port name="HelloIF" binding="tns:HelloIFBinding">
> <!-- soap:address location="REPLACE_WITH_ACTUAL_URL"/ -->
> <soap:address location="http://localhost:8080/jaxrpc-hello/jaxrpc/HelloIF"/>
> </port></service></definitions>
> -----------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration
> xmlns="http://java.sun.com/jax-rpc-ri/xrpcc-config">
> <wsdl name="HelloWorldService"
> location="HelloWorldService.wsdl"
> packageName="hello">
> </wsdl>
> </configuration>
> -------------------------
>
> javax.servlet.ServletException
> at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.init(JAXRPCServletD
> elegate.java:50)
> at com.sun.xml.rpc.server.http.JAXRPCServlet.init(JAXRPCServlet.java:40)
>
> at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
> java:919)
> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:81
> 1)
> at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
> t.java:3288)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
> 468)
> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:821)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
> 7)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:545)
>
> at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
> loyer.java:256)
> at org.apache.catalina.core.StandardHost.install(StandardHost.java:739)
> at org.apache.catalina.servlets.ManagerServlet.install(ManagerServlet.ja
> va:581)
> at org.apache.catalina.servlets.ManagerServlet.doGet(ManagerServlet.java
> :307)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:247)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:193)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:243)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java:577)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:483)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:190)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java:577)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
> torBase.java:528)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java:575)
> at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve
> .java:246)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java:575)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:483)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
> 2349)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:180)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java:577)
> at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
> rValve.java:170)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java:575)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
> ava:171)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java:575)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:483)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> ve.java:174)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java:577)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
> 469)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java:575)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:483)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
> at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
> r.java:1029)
> at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
> va:1140)
> at java.lang.Thread.run(Thread.java:536)
> [ERROR] http - -null <javax.servlet.ServletException>

--
=============================================
There is only one me, I must live myself!
There is only one today, I must live itself!
=============================================
http://members.tripod.com/~apgupta/index.html
=============================================