Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / September 2004

Tip: Looking for answers? Try searching our database.

A question regarding Web Service Client

Thread view: 
Lior - 29 Sep 2004 11:40 GMT
Hi,

I read sun's tutorial "Creating Web Service Clients with JAX-RPC" and
I coundn't understand something.
The code conatins, for example: (Stub) (new
MyHelloService_Impl().getHelloIFPort()); Since it's a stand alone
client, how it suppose to recognize MyHelloService_Impl()? Should it
be added to the project libraries? What did I miss here?

Thanks, Lior
Steve W. Jackson - 30 Sep 2004 20:25 GMT
>:Hi,
>:
[quoted text clipped - 6 lines]
>:
>:Thanks, Lior

That tutorial leaves a lot for you to figure out.  Basically, you need
to set up an appropriate environment so that the Ant tasks work properly
and all the right values are included in the build.properties files and
the targets.xml files in all the right spots.  When you execute the
default Ant task (named build), it refers to the WSDL file for the
"MyHelloService" and uses wscompile (I think) to create Java code from
it.

If the directory structure is still as I remember it, you can look in
the jaxrpc/commons directory for the targets.xml file there, and find a
target named "generate-stubs".  In its <param> entry's "value"
attribute, add "-keep" before the "-d" (it'll work elsewhere, that's
just where I put mine).  That will cause the Java code created to remain
in your "build" directory after it's done.  You can look through this
code and compare it against what you see in the WSDL file to get a feel
for how this all works.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.