You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Frank Apap <fs...@optonline.net> on 2003/04/12 02:53:41 UTC

Sample code details

Just trying to understand some of the details of the StockQuote example
client code and a few questions arose.
 
 
Just trying to figure out some of the details of the following chunk of
code:
 
/* Define the service QName and port QName */
/*******************************************/
QName servQN = new
QName("urn:xmltoday-delayed-quotes","GetQuoteService");
QName portQN = new QName("urn:xmltoday-delayed-quotes","GetQuote");
 
/* Now use those QNames as pointers into the WSDL doc */
/******************************************************/
Service service = new Service( new URL("file:GetQuote.wsdl"), servQN );
Call    call    = (Call) service.createCall( portQN, "getQuote" );
 
 
What is the difference between servQN and portQN.  What do they refer to
exactly (as in what configuration in the wsdd or wsdl files).  The same
question for the second parameter in each of the QName declarations.  
 
My other question is that it seems like there is only a small difference
in the amount of code (at least in this example) needed when comparing
using the WSDL and not using it.
 
Thanks for the help.
 
Frank