Paul, I'm not sure you'll be able to use axis2 with CF. Possibly you
could use custom classloading, but you'll most likely need to keep the
axis2 jars (and its dependencies) out of CF's lib dir.
However, I'm not sure why you'd need to do this. Unless I'm missing
something, invoking that wsdl from within CF is as easy as this:
<cfinvoke
webservice="http://www.webservicex.net/stockquote.asmx?WSDL"
method="GetQuote"
returnVariable="ws" >
<cfinvokeargument name="symbol" value="ADBE" />
</cfinvoke>
<cfset stockXML = XMLParse(ws)>
<cfdump var="#stockXML#">
Best,
Marc
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
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]