Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 62085 invoked from network); 3 Oct 2005 08:38:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Oct 2005 08:38:57 -0000 Received: (qmail 39602 invoked by uid 500); 3 Oct 2005 08:38:56 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 39587 invoked by uid 500); 3 Oct 2005 08:38:55 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 39576 invoked by uid 99); 3 Oct 2005 08:38:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2005 01:38:55 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_40_50,HTML_MESSAGE,SPF_HELO_FAIL,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of PRESTONF@uk.ibm.com designates 195.212.29.134 as permitted sender) Received: from [195.212.29.134] (HELO mtagate1.uk.ibm.com) (195.212.29.134) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2005 01:39:00 -0700 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate1.uk.ibm.com (8.12.10/8.12.10) with ESMTP id j938c5ea207848 for ; Mon, 3 Oct 2005 08:38:06 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1407.portsmouth.uk.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j938c5nk218138 for ; Mon, 3 Oct 2005 09:38:05 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.12.11/8.13.3) with ESMTP id j938c56A004325 for ; Mon, 3 Oct 2005 09:38:05 +0100 Received: from d06ml068.portsmouth.uk.ibm.com (d06ml068.portsmouth.uk.ibm.com [9.149.38.194]) by d06av02.portsmouth.uk.ibm.com (8.12.11/8.12.11) with ESMTP id j938c5vo004319 for ; Mon, 3 Oct 2005 09:38:05 +0100 In-Reply-To: To: "Apache AXIS C User List" MIME-Version: 1.0 Subject: Re: Axis C++ client for SAPBC X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 Message-ID: From: Fred Preston Date: Mon, 3 Oct 2005 09:38:03 +0100 X-MIMETrack: Serialize by Router on D06ML068/06/M/IBM(Release 6.53HF247 | January 6, 2005) at 03/10/2005 09:38:05, Serialize complete at 03/10/2005 09:38:05 Content-Type: multipart/alternative; boundary="=_alternative 002F6D8B8025708F_=" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multipart message in MIME format. --=_alternative 002F6D8B8025708F_= Content-Type: text/plain; charset="US-ASCII" Hi Florin, AXISCPP_HOME is used to find the axiscpp.conf file that contains information on explicitly where to find the associated DLLs. The problem is that these DLLs use other DLLs and the location of these DLLs needs to be on your path. For example, AxisXMLParserXerces.dll relies on xerces-c_2_2_0.dll (I think it also works with other, newer versions, but lets not go into that now!). If the xerces DLL is not on the path then AxisXMLParserXerces.dll will load then immediately unload and will to the user look like it has not loaded. Infact it did load, but could not load the libraries that it is dependant on and so therefore immediately unloaded.... I hope this makes things a little clearer :-) Regards, Fred Preston. John Hawkins/UK/IBM@IBMGB 03/10/2005 08:40 Please respond to "Apache AXIS C User List" To: "Apache AXIS C User List" cc: Subject: Re: Axis C++ client for SAPBC OK, What version of xerces are you running (it needs to be 2.2.0)? - and can you cut and paste your config file her pls. thanks, John. Pico Florin 03/10/2005 08:01 Please respond to "Apache AXIS C User List" To Apache AXIS C User List cc Subject Re: Axis C++ client for SAPBC Hello! I've tried to execute my client AXIS C++ for SAP BC from VC6.0 and I've received the same execption: even I've set up the AXISCPP_HOME enviroment variable to the path of axiscpp.conf. Can somebody help me to pass this error? Thank you! Florin Samisa Abeysinghe wrote: axiscpp.conf file is required by the client to locate the transport and parser. It should be located in AXISCPP_HOME (this envioronment variable must be set by you) Samisa... Pico Florin wrote: > Hi! > I've tried to create a client that sends SOAP messages to SAPBC > using AXIS C++. Running my code I've received this error: > "Exception : DLOPEN FAILED in loading parser library" > > I've understood that this problem could appear when the axiscpp.conf > is not well configured. > Firstly, in my case where this file should be located? Because in your > examples you have some specifications just for Apache servers. Is this > file needed for all the clients that we want to implement? > Secondly, I will show you how I've tried to connect to SAP BC in > order to see if the buss ines is OK: > > > InteropTestPortType::InteropTestPortType() > :Stub(" ", APTHTTP1_1) > { > m_pCall->setEndpointURI("http://localhost:5555/soap"); > } > InteropTestPortType::~InteropTestPortType() > { > } > > /*Methods corresponding to the web service methods*/ > /* > * This method wrap the service method echoString > */ > xsd__string InteropTestPortType::echoString(xsd__string Value0) > { > xsd__string Ret = NULL; > const char* pcCmplxFaultName; > try > { > if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) > return Ret; > m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoString"); > m_pCall->setSOAPVersion(SOAP_VER_1_1); > m_pCall->setOperation("SOAPRPCTESTCLIENT", "SCANDLOG"); > applyUserPreferences(); > m_pCall->addParameter((void*)&Value0, "xml", XSD_STRING); > if (AXIS_SUCCESS == m_pCall->invoke()) > { > if(AXIS_SUCCESS == m_pCall->checkMessage("hello", "SCANDLOG")) > { > Ret = m_pCall->getElementAsString("_return", 0); > } > } > > m_pCall->unInitialize(); > return Ret; > } > catch(AxisException& e) > { > int iExceptionCode = e.getExceptionCode(); > if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode) > { > > m_pCall->unInitialize(); > throw base_AxisClientException(e.what()); > } > ISoapFault* pSoapFault = (ISoapFault*) > m_pCall->checkFault("Fault","http://localhost/axis/base" ); > if(pSoapFault) > { > > m_pCall->unInitialize(); > throw base_AxisClientException(pSoapFault); > } > else throw; > } > } > > //base > > int main(int argc, char* argv[]) > { > > try > { > & lt; BR>> InteropTestPortType ws; > > printf("invoking echoString...\n"); > //testing echoString > AxisChar* pachEchoStringResult = ws.echoString("hello world"); > printf("pachEchoStringResult\n"); > > } > catch(AxisException& e) > { > printf("Exception : %s\n", e.what()); > } > catch(exception& e) > { > printf("Unknown exception has occured\n"); > } > catch(...) > { > printf("Unknown exception has occured\n"); > } > return 0; > } > Thank you, > F. > > ------------------------------------------------------------------------ > Yahoo! Messenger > > NEW - crystal clear PC to PC calling worldwide with voicemail > Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail --=_alternative 002F6D8B8025708F_= Content-Type: text/html; charset="US-ASCII"
Hi Florin,
        AXISCPP_HOME is used to find the axiscpp.conf file that contains information on explicitly where to find the associated DLLs.  The problem is that these DLLs use other DLLs and the location of these DLLs needs to be on your path.  For example, AxisXMLParserXerces.dll relies on xerces-c_2_2_0.dll (I think it also works with other, newer versions, but lets not go into that now!).  If the xerces DLL is not on the path then AxisXMLParserXerces.dll will load then immediately unload and will to the user look like it has not loaded.  Infact it did load, but could not load the libraries that it is dependant on and so therefore immediately unloaded....   I hope this makes things a little clearer :-)

Regards,

Fred Preston.



John Hawkins/UK/IBM@IBMGB

03/10/2005 08:40
Please respond to "Apache AXIS C User List"

       
        To:        "Apache AXIS C User List" <axis-c-user@ws.apache.org>
        cc:        
        Subject:        Re: Axis C++ client for  SAPBC

       



OK, What version of xerces are you running (it needs to be 2.2.0)? - and can you cut and paste your config file her pls.


thanks,

John.





Pico Florin <picoflorin@yahoo.co.uk>

03/10/2005 08:01
Please respond to
"Apache AXIS C User List"

To
Apache AXIS C User List <axis-c-user@ws.apache.org>
cc
Subject
Re: Axis C++ client for  SAPBC







Hello!
I've tried to execute my client AXIS C++ for SAP BC from VC6.0 and I've received the same execption: <Exception : DLOPEN FAILED in loading parser library> even I've set up the AXISCPP_HOME enviroment variable to the path of axiscpp.conf. Can somebody help me to pass this error?
Thank you!
 Florin

Samisa Abeysinghe <samisa.abeysinghe@gmail.com>
wrote:
axiscpp.conf file is required by the client to locate the transport and
parser.
It should be located in AXISCPP_HOME (this envioronment variable must be
set by you)

Samisa...

Pico Florin wrote:

> Hi!
> I've tried to create a client that sends SOAP messages to SAPBC
> using AXIS C++. Running my code I've received this error:
> "Exception : DLOPEN FAILED in loading parser library"
>
> I've understood that this problem could appear when the axiscpp.conf
> is not well configured.
> Firstly, in my case where this file should be located? Because in your
> examples you have some specifications just for Apache servers. Is this
> file needed for all the clients that we want to implement?
> Secondly, I will show you how I've tried to connect to SAP BC in
> order to see if the buss ines is OK:
>
>
> InteropTestPortType::InteropTestPortType()
> :Stub(" ", APTHTTP1_1)
> {
> m_pCall->setEndpointURI("http://localhost:5555/soap");
> }
> InteropTestPortType::~InteropTestPortType()
> {
> }
>
> /*Methods corresponding to the web service methods*/
> /*
> * This method wrap the service method echoString
> */
> xsd__string InteropTestPortType::echoString(xsd__string Value0)
> {
> xsd__string Ret = NULL;
> const char* pcCmplxFaultName;
> try
> {
> if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER))
> return Ret;
> m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoString");
> m_pCall->setSOAPVersion(SOAP_VER_1_1);
> m_pCall->setOperation("SOAPRPCTESTCLIENT", "SCANDLOG");
> applyUserPreferences();
> m_pCall->addParameter((void*)&Value0, "xml", XSD_STRING);
> if (AXIS_SUCCESS == m_pCall->invoke())
> {
> if(AXIS_SUCCESS == m_pCall->checkMessage("hello", "SCANDLOG"))
> {
> Ret = m_pCall->getElementAsString("_return", 0);
> }
> }
>
> m_pCall->unInitialize();
> return Ret;
> }
> catch(AxisException& e)
> {
> int iExceptionCode = e.getExceptionCode();
> if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
> {
>
> m_pCall->unInitialize();
> throw base_AxisClientException(e.what());
> }
> ISoapFault* pSoapFault = (ISoapFault*)
> m_pCall->checkFault("Fault","http://localhost/axis/base" );
> if(pSoapFault)
> {
>
> m_pCall->unInitialize();
> throw base_AxisClientException(pSoapFault);
> }
> else throw;
> }
> }
>
> //base
>
> int main(int argc, char* argv[])
> {
>
> try
> {
> & lt; BR>> InteropTestPortType ws;
>
> printf("invoking echoString...\n");
> //testing echoString
> AxisChar* pachEchoStringResult = ws.echoString("hello world");
> printf("pachEchoStringResult\n");
>
> }
> catch(AxisException& e)
> {
> printf("Exception : %s\n", e.what());
> }
> catch(exception& e)
> {
> printf("Unknown exception has occured\n");
> }
> catch(...)
> {
> printf("Unknown exception has occured\n");
> }
> return 0;
> }
> Thank you,
> F.
>
> ------------------------------------------------------------------------
> Yahoo! Messenger
>
> NEW - crystal clear PC to PC calling worldwide with voicemail
>


Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail


Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail

--=_alternative 002F6D8B8025708F_=--