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