BTW you can find a axis2.xml and a repository inside the axis2
standard binary distribution..

On Mon, Mar 3, 2008 at 8:31 PM, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:
> Hi,
>  According to what I know when you instantiate a stub in the normal way
>  as you have done, Axis2 uses the default Axis2.xml which is in the
>  axis2-kernel.jar... May be your environment is preventing your stub
>  from accessing it..
>
>  Try pointing to an external axis2.xml file and an Axis2 repository..
>  IIRC the stub contains a constructor which takes in the location of
>  axis2.xml file and the axis2 repository path..
>
>  thanks,
>  Thilina
>
>
>
>  On Mon, Mar 3, 2008 at 4:22 PM, Paul Peterson <[EMAIL PROTECTED]> wrote:
>  >
>  >  I added the following main method to test the wrapper class as a java
>  >  application and it worked as expected.  Still can't get it to work from 
> CF.
>  >  Any ideas?
>  >
>  >  public static void main(java.lang.String args[])
>  >  {
>  >       try{
>  >                 java.lang.String symbol = args[0];
>  >
>  >                 java.lang.String strQuote = null;
>  >
>  >                 StockQuoteStub wsStockQuote = new StockQuoteStub();
>  >                 GetQuote objGetQuote = new GetQuote();
>  >                 objGetQuote.setSymbol(symbol);
>  >                 strQuote = 
> wsStockQuote.GetQuote(objGetQuote).getGetQuoteResult();
>  >                 System.out.println("\n" + strQuote + "\n");
>  >
>  >         } catch(Exception e){
>  >             e.printStackTrace();
>  >             System.out.println("\n\n\n");
>  >         }
>  >  }
>  >  --
>  >  View this message in context: 
> http://www.nabble.com/What-is-the-correct-way-to-instantiate-a-Axis2-client-stub-class--tp15809428p15814281.html
>  >
>  >
>  > Sent from the Axis - User mailing list archive at Nabble.com.
>  >
>  >
>  >  ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >  For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>
>
>  --
>  Thilina Gunarathne  - http://thilinag.blogspot.com
>



-- 
Thilina Gunarathne  - http://thilinag.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to