axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <samisa_abeysin...@yahoo.com>
Subject Re: Found errors in WSDL2WS tool generated methods
Date Tue, 15 Jun 2004 11:39:02 GMT
Hi Amila,
    Are you using the latest cvs code?
    This issue was fixed a while back.
Thanks,
Samisa...

--- Amila Rathnayake <writetoamila@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 

Mime
View raw message