axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bo Xie" <xiebopub...@gmail.com>
Subject Re: Failed to call "delayed quotes" sample web service by Axis C++ and VC 6
Date Mon, 27 Mar 2006 08:26:39 GMT
Hi Adrian,

Thank you very much for your reply! Attached please find the trace log.

Best Regards,
Xie, Bo

On 3/27/06, Adrian Dick <adrian.dick@uk.ibm.com> wrote:
> Hi,
>
> Here are a few items that will aid us in understanding the problem you're
> experiencing.
> - Provide exception handling round the use of the web service, are you
> having an AxisException thrown? If so, can you capture the message using
> exception.what().
> - Enable engine trace ( see step 4 of
> http://ws.apache.org/axis/cpp/install-guide.html#Installing_Client for
> detail on setting configuration)
>
> Thanks,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com)
>
>
> "Bo Xie" <xiebopublic@gmail.com> wrote on 27/03/2006 08:17:28:
>
> > Hi,
> >
> > I tried to build SOAP C++ Windows Client to call "delayed quotes" web
> > service, but failed. Following are steps:
> > 1. Generate .hpp/.cpp
> > ----------
> > E:\temp\TestAxis>java -classpath .\wsdl2ws.jar;.\commons-logging.
> > jar;.\jaxrpc.ja
> >
> r;.\saaj.jar;.\wsdl4j.jar;.\wsdl2ws.jar;.\axis.jar;.\commons-discovery.jar
> > org.apache.axis.wsdl.wsdl2ws.WSDL2Ws
> > http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl
> > -lc++ -sclient
> >
> > Code generation completed.
> > ----------
> > 2.  TestAxis.cpp
> > ----------
> > #include "stdafx.h"
> > #include "StockQuotePortType.hpp"
> >
> > int main(int argc, char* argv[])
> > {
> >        StockQuotePortType s;
> >        float f=s.getQuote("IBM");
> >        printf("The quote is %f\n",f);
> >        return 0;
> > }
> > ----------
> >
> > 3. When I debug the TestAxis project, it will throw an exception
> > "Unhandled exception in TestAxis.exe: 0xC0000005: Access Violation" in
> > Line 62 of StockQuotePortType.cpp
> > ------Line 62--
> > if( AXIS_SUCCESS == m_pCall->checkMessage(
> > "getQuoteResponse1","http://www.themindelectric.com/wsdl/net.
> > xmethods.services.stockquote.StockQuote/"))
> > -----------------
> >
> > If you want the TestAxis VC project, please let me know.
> >
> > Any suggestions are welcome and appreciated!
> >
> > Best Regards,
> >
> > Xie, Bo
>
>

Mime
View raw message