Hi, Matthew.
The mapType() method is not exactly "beaming up" your object. This sets up a
definition of the
class behind your object so that the client and server know how to re-assemble it
after it's
"beamed up."
The actual sending of the object back and forth does not happen until you call
sendRequest()
method.
In mapType(), the class is a reference to your custom class. You can get this
reference with
something like
Class.forName("com.my.class.MyClass");
Namespace URI relate to the deployment descriptor for your class, which you must
define and deploy
before you can actually send object of your class back and forth. Look at the
SJDeploymentDescriptor for examples of how this is done. You can add your class do
your own
version of this file. Basically, you need to add a new <isd:map> directive to the
file. You can
copy any one of the <isd:map> directives in there already and all you have to do is
change the
javaType and qname. The javaType is the fully-qualified name of your class and the
qname can be
anything, I think, but the easiest thing to do would be to use x:[lower case class
name], like
I've done.
Then you'll use mapType as follows:
mapType("urn:sj-mastercontrolprogram", "myclass",
Class.forName("com.my.class.MyClass"));
--Rob
--- Matthew Johnston <[EMAIL PROTECTED]> wrote:
> I'm looking at passing a custom object between the client and server. Your
> documentation explains that when I override initPlugin() in my class
> (extending SJClientActionAdapter) to call the maptype method. Then pass the
> URI, part and class.
>
> I'm a little fuzzy with the SOAP technology, but willing to learn :-)
>
> I'm not exactly sure what the URI, part and class are doing, I believe its
> serializing the object into an XML format and transmitting it to the client
> to be reassembled. Sort-of-like beaming it up.
>
> I'm wondering though, if you have an example of taking a custom class and
> doing an initPlugin so the object can be passed back and forth?
>
> _________________________________________________________________
> Watch LIVE baseball games on your computer with MLB.TV, included with MSN
> Premium!
> http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/
>
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
SourceJammer-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sourcejammer-devel