You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Amila Rathnayake <wr...@yahoo.com> on 2004/06/15 13:20:44 UTC

Found errors in WSDL2WS tool generated methods

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 

Re: Found errors in WSDL2WS tool generated methods

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Hi Amila,
    Are you using the latest cvs code?
    This issue was fixed a while back.
Thanks,
Samisa...

--- Amila Rathnayake <wr...@yahoo.com> wrote:
> 
> 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 

> ATTACHMENT part 2 application/octet-stream name=ExtensibilityQuery.wsdl




		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail