Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

A question regarding Web Service Client
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

Report this thread to moderator Post Follow-up to this message
Old Post
Lior
09-29-04 04:03 PM


Re: A question regarding Web Service Client
In article <4d51ce8a.0409290240.1c7b93b3@posting.google.com>,
liorl@maxbill.com (Lior) wrote:

>: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

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 =
--
Steve W. Jackson
Montgomery, Alabama

Report this thread to moderator Post Follow-up to this message
Old Post
Steve W. Jackson
09-30-04 09:08 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:37 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.