Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 66198 invoked from network); 15 Jun 2004 11:21:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Jun 2004 11:21:06 -0000 Received: (qmail 74184 invoked by uid 500); 15 Jun 2004 11:21:06 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 74164 invoked by uid 500); 15 Jun 2004 11:21:05 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 74147 invoked by uid 99); 15 Jun 2004 11:21:05 -0000 Received: from [206.190.38.106] (HELO web50708.mail.yahoo.com) (206.190.38.106) by apache.org (qpsmtpd/0.27.1) with SMTP; Tue, 15 Jun 2004 04:21:05 -0700 Message-ID: <20040615112044.28463.qmail@web50708.mail.yahoo.com> Received: from [220.247.240.59] by web50708.mail.yahoo.com via HTTP; Tue, 15 Jun 2004 04:20:44 PDT Date: Tue, 15 Jun 2004 04:20:44 -0700 (PDT) From: Amila Rathnayake Subject: Found errors in WSDL2WS tool generated methods To: axis-c-dev@ws.apache.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1433384808-1087298444=:28007" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-1433384808-1087298444=:28007 Content-Type: multipart/alternative; boundary="0-182870892-1087298444=:28007" --0-182870892-1087298444=:28007 Content-Type: text/plain; charset=us-ascii Hi All, I have generated Stubs and Skeletons for DocLit type WSDL which is called ExtensibilityQuery.wsdl and implemented the server and client sides. I used the latest cvs head to generate the WSDL2ws tool. I tried to verify the xsd:any type support. Here I have attached the relevant WSDL as well. I found 3 errors, one in server side and the other two is in client side. 01). In client side in the PortType Wrapper there is an else block without having relevant if statement. Here I will give the generated code for your reference int iExceptionCode = e.getExceptionCode(); if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode) { throw; } else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost:8080/axis/ExtensibilityQuery" ))//Exception handling code goes here { cFaultcode = m_pCall->getElementAsString("faultcode", 0); cFaultstring = m_pCall->getElementAsString("faultstring", 0); cFaultactor = m_pCall->getElementAsString("faultactor", 0); else{ cFaultdetail = m_pCall->getElementAsString("faultdetail", 0); throw AxisException(cFaultdetail); } } else throw; 02). In following generated code there is an error given as; cannot convert from 'const char *' to 'const class Stub' No constructor could take the source type, or constructor overload resolution was ambiguous The relevant constructor is ; ExtensibilityQueryPortType::ExtensibilityQueryPortType(const char* pcEndpointUri):Stub(pcEndpointUri) { } 03). In the Server side in following method it has a try statement without a catch block. int ExtensibilityQueryPortTypeWrapper::query(void* pMsg) Thanks and Regards, Amila Rathnayake. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --0-182870892-1087298444=:28007 Content-Type: text/html; charset=us-ascii

Hi All,

 

I have generated Stubs and Skeletons for DocLit type WSDL which is called ExtensibilityQuery.wsdl and implemented the server and client sides. I used the latest cvs head to generate the WSDL2ws tool. I tried to verify the xsd:any type support. Here I have attached the relevant WSDL as well.

 

I found 3 errors, one in server side and the other two is in client side.

 

01).  In client side in the PortType Wrapper there is an else block without having relevant if statement.

 

Here I will give the generated code for your reference

 

int iExceptionCode = e.getExceptionCode();

                        if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)

                        {

                                    throw;

                        }

                        else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost:8080/axis/ExtensibilityQuery" ))//Exception handling code goes here

                        {

                                    cFaultcode = m_pCall->getElementAsString("faultcode", 0);

                                    cFaultstring = m_pCall->getElementAsString("faultstring", 0);

                                    cFaultactor = m_pCall->getElementAsString("faultactor", 0);

                                    else{

                                                  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);

                                                  throw AxisException(cFaultdetail);

                                    }

                        }

                        else throw;

 

02). In following generated code there is an error given as;

 

cannot convert from 'const char *' to 'const class Stub'

        No constructor could take the source type, or constructor overload resolution was ambiguous

 

The relevant constructor is ;

ExtensibilityQueryPortType::ExtensibilityQueryPortType(const char* pcEndpointUri):Stub(pcEndpointUri)

{

}

 

03). In the Server side in following method it has a try statement without a catch block.

 

int ExtensibilityQueryPortTypeWrapper::query(void* pMsg)

 

 

Thanks and Regards,

Amila Rathnayake.

 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com --0-182870892-1087298444=:28007-- --0-1433384808-1087298444=:28007 Content-Type: application/octet-stream; name="ExtensibilityQuery.wsdl" Content-Transfer-Encoding: base64 Content-Description: ExtensibilityQuery.wsdl Content-Disposition: attachment; filename="ExtensibilityQuery.wsdl" PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxkZWZp bml0aW9ucyBuYW1lPSJFeHRlbnNpYmlsaXR5UXVlcnkiIHRhcmdldE5hbWVz cGFjZT0idXJuOkV4dGVuc2liaWxpdHlRdWVyeSINCnhtbG5zPSJodHRwOi8v c2NoZW1hcy54bWxzb2FwLm9yZy93c2RsLyINCnhtbG5zOnNvYXA9Imh0dHA6 Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzZGwvc29hcC8iDQp4bWxuczp0bnM9 InVybjpFeHRlbnNpYmlsaXR5UXVlcnkiIHhtbG5zOnhzZD0iaHR0cDovL3d3 dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiPg0KICA8dHlwZXM+DQogICAgPHhz ZDpzY2hlbWEgYXR0cmlidXRlRm9ybURlZmF1bHQ9InF1YWxpZmllZCINCiAg ICBlbGVtZW50Rm9ybURlZmF1bHQ9InF1YWxpZmllZCIgdGFyZ2V0TmFtZXNw YWNlPSJ1cm46RXh0ZW5zaWJpbGl0eVF1Z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