Doug,
Your welcome.
My question though, is can I count on the model file being
there in coming releases? Or is there another method where I can find
the same information?
Regards,
Rajesh
Doug Kohlert
<doug.kohlert@ To: Rajesh.Chawla_at_sybase.com
sun.com> cc:
Subject: Re: Questions using JAX-RPC as a server as
12/12/2002 well as client....
04:08 PM
Rajesh, thank you for explaining why you were inspecting the model file.
I hope everything runs smoothly for you.
Rajesh.Chawla_at_sybase.com wrote:
> Doug,
>
> Thank you for your quick answers. They are most helpful. I'll be working
on
> implementing the session code just shortly.
>
> On why I want to use the model file and need access to the Java classes,
> the scenario is as follows:
>
> I am prototyping the ability for our database (ASE) to call a web method
by
> performing
> a select on a table. To provide this functionality, I wish to require
that
> the end user only
> have a WSDL file and the ability to program SQL. Therefore, I must take
the
> WSDL file,
> dynamically generate the stubs and dynamically build a table in the
> database that maps
> a select statement into a web method call.
>
> The main reason I need access to the Java classname that represents each
> parameter
> is so that I can properly map the select statement that is being
performed
> against the
> table into a web method call.
>
> Essentially, the advantage to the customer is that using the existing
tools
> for relational
> databases the customer can now take advantage of services and data
exposed
> as web
> methods.
>
> There are a number of items that I have glossed over in this description,
> but I hope it does
> help explain the reason I wish to make use of the model file generated by
> xrpcc. If it is not
> clear, please call me at (303) 413 4229 and I would like to try to
explain
> it better.
>
> FYI, through our EBD division, Sybase is a J2EE licensee and we are going
> through
> our Sun rep to extend the source code license for JAX-RPC to ASE and
> perhaps to
> other products as well.
>
> Regards,
> Rajesh
>
>
>
>
> Doug Kohlert
> <doug.kohlert_at_SUN.CO To:
JAXRPC-INTEREST_at_JAVA.SUN.COM
> M> cc:
> Sent by: Public Subject: Re: Questions
using JAX-RPC as a server as well
> discussion on as client....
> JAX-RPC
> <JAXRPC-INTEREST_at_JAV
> A.SUN.COM>
>
>
> 12/12/2002 11:36 AM
> Please respond to
> Public discussion on
> JAX-RPC
>
>
>
>
>
> Rajesh, please see my comments below.
>
> Rajesh Chawla wrote:
>
>>Hi folks,
>>
>>I am trying to use the JAX-RPC software in scenarios as a server
>>as well as a client and I ran into a few questions:
>>
>>On the server side:
>>
>>1. How can I specify the binding of a service to be document/literal
>> instead of rpc/encoding? Any examples?
>>
>
> In the current release of the JWSDP this is not possible. Around April
> next year an new early access version of the JWSDP that will support
this.
>
>
>>2. I want to support the concept of sessions using cookies. Can I do
>> this using the JAXRPCServlet or do I need to write my own
>> servlet?
>>
>
> JAXRPC already has this support, check out this
> thread: http://forum.java.sun.com/thread.jsp?forum=331&thread=292316.
>
>
>
>
>>Question on the client side:
>>
>>1. I am parsing the model file generated by xrpcc to find the Java class
>> name that represents each parameter for a web method. I am also
>> using the model file to find the services and ports specified in the
>>WSDL
>> file. Is this a reasonable approach? If not, are there other tools
>
> in
>
>> the distribution that I could use?
>
> I don't understand why you want/need to do this, what are you trying to
> accomplish?
>
>
>>2. How can I send a cookie in the Post message to maintain session
>>information
>> on the server?
>>
>
> On your JAXRPC stub, set the SESSION_MAINTAIN_PROPERTY property to
"true".
>
>
>
>
>>Regards,
>>Rajesh
>
>
>
> --
> Doug Kohlert
> Java Software Division
> Sun Microsystems, Inc.
> phone: 503 345-9806
>
>
>
>
>
--
Doug Kohlert
Java Software Division
Sun Microsystems, Inc.
phone: 503 345-9806