Re: Question on user defined faults and multithreading (Please clarify this urgently for me)

2007-09-28 Thread Dimuthu Gamage
On 9/28/07, Dimuthu Gamage <[EMAIL PROTECTED]> wrote:
>
>
>
> On 9/27/07, Sathya Raghunathan < [EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > 1) I can understand that multithreading is taken care of by
> > axis2_http_server after reading one of the mailing lists. For a new request,
> > a worker thread is created. I would like to know if the number of threads
> > can be configured or not.
> > Should i modify any parameter in the httpd.conf for this?
> >
>
> AFAIK you can not configure threads or connections with simple axis2
> server. but you can do it with in apache (with axis2 module)
>
> 2) I read from one of your mailing list that user defined soap faults can
> > be sent as an element as part of soap Body by using the
> > AXIS2_ERROR_SET_STATUS_CODE(env->error, AXIS2_FAILURE); and
> >AXIS2_ERROR_SET_ERROR_NUMBER(env->error, AXIS2_ERROR_FOO);
> >
> > But how and where can we create this AXIS2_ERROR_FOO with a custom error
> > message? Which function to call, to create the error number for
> > AXIS2_ERROR_FOO? I saw that axis error.c file has all the axis related
> > error messages defined. Similarly where to define the the AXIS2_ERROR_FOO?
> >
> > Please clarify
> >
> > Thank you so much for all the support you have given till now
> >
> > Regards
> > Sathya
> >
> > On 9/26/07, Sathya Raghunathan <[EMAIL PROTECTED] > wrote:
> > >
> > > Hi
> > >
> > > 1) How to build a multithreaded service using axis2c? Can wsdl2c tool
> > > generate C code with multithreading functionality? If not, what is the way
> > > to implement multithreading?
> > > 2) Can we give user defined faults in wsdl file?
> > >
> >
> Yes,  It is as in the sample wsdl you attached. (Please see the comment
> inline inside the wsdl)
>
>
> How will wsdl2c generate code corresponding to the faults?
> > >
> >
>  Currently WSDL2C code generation doesnt not support on customized fault
> messages.
>

Anyway you can edit the  "axis2_svc_skel__on_fault" funciton on the
generated file "axis2_svc_skel_.c"  to build a custom soap fault.

Thanks
Dimuthu

Will the code generate any structures for these fault types? I have an
> > > example wsdl for this. But i am not able to generate code, because wsdl2c
> > > errors out saying "No element type is defined for message
> > > faultMethodRequest"
> > > Please clarify.
> > >
> >
> The wsdl is wrong in following places..
>
>
>
> Below is the wsdl for user defined faults service which takes a single
> > > integer and generates faults based on that integer value:
> > >
> > >
> > > http://schemas.xmlsoap.org/wsdl/";
> > > xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/ " xmlns:xsd="
> > > http://www.w3.org/2001/XMLSchema"; xmlns:wsdl="
> > > http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="
> > > http://www.roguewave.com/rwsf/webservice/fault"; 
> > > targetNamespace="http://www.roguewave.com/rwsf/webservice/fault
> > > " name="Fault">
> > >   
> > > 
> > >   
> > >   
> > > 
> > >   
> > >   
> > > 
> > >
> >
> You should have an element="some_schema_element" attribute if it is a doc
> style wsdl,
> i.e above should be changed to
> 
>
>
>   
> > >   
> > > 
> > > 
> > >
> >
> Always part of fault message should associated with an element (element in
> a valid schema) both in rpc and doc styles.
>
> Thanks
> Dimuthu
>
>   
> > >   
> > > 
> > >   
> > >   
> > >   
> > >   
> > > 
> > >   
> > >   
> > >  > > transport="http://schemas.xmlsoap.org/soap/http"/
> > > >
> > > 
> > >   
> > >   
> > > http://www.roguewave.com/rwsf/webservice/"/
> > > >
> > >   
> > >   
> > > http://www.roguewave.com/rwsf/webservice/"/
> > > >
> > >   
> > >   
> > > 
> > >   
> > >   
> > > 
> > >   
> > > 
> > >   
> > >   
> > > 
> > >   http://localhost:8090/fault/Fault"/
> > > >
> > > 
> > >   
> > > 
> > >
> > >
> > > Thanks
> > > Sathya
> > >
> > >
> > >
> >
> >
>


Re: Question on user defined faults and multithreading (Please clarify this urgently for me)

2007-09-28 Thread Dimuthu Gamage
On 9/27/07, Sathya Raghunathan < [EMAIL PROTECTED]> wrote:
>
> Hi
>
> 1) I can understand that multithreading is taken care of by
> axis2_http_server after reading one of the mailing lists. For a new request,
> a worker thread is created. I would like to know if the number of threads
> can be configured or not.
> Should i modify any parameter in the httpd.conf for this?
>

AFAIK you can not configure threads or connections with simple axis2 server.
but you can do it with in apache (with axis2 module)

2) I read from one of your mailing list that user defined soap faults can be
> sent as an element as part of soap Body by using the
> AXIS2_ERROR_SET_STATUS_CODE(env->error, AXIS2_FAILURE); and
>AXIS2_ERROR_SET_ERROR_NUMBER(env->error, AXIS2_ERROR_FOO);
>
> But how and where can we create this AXIS2_ERROR_FOO with a custom error
> message? Which function to call, to create the error number for
> AXIS2_ERROR_FOO? I saw that axis error.c file has all the axis related
> error messages defined. Similarly where to define the the AXIS2_ERROR_FOO?
>
> Please clarify
>
> Thank you so much for all the support you have given till now
>
> Regards
> Sathya
>
> On 9/26/07, Sathya Raghunathan <[EMAIL PROTECTED] > wrote:
> >
> > Hi
> >
> > 1) How to build a multithreaded service using axis2c? Can wsdl2c tool
> > generate C code with multithreading functionality? If not, what is the way
> > to implement multithreading?
> > 2) Can we give user defined faults in wsdl file?
> >
>
Yes,  It is as in the sample wsdl you attached. (Please see the comment
inline inside the wsdl)


How will wsdl2c generate code corresponding to the faults?
> >
>
 Currently WSDL2C code generation doesnt not support on customized fault
messages.

Will the code generate any structures for these fault types? I have an
> > example wsdl for this. But i am not able to generate code, because wsdl2c
> > errors out saying "No element type is defined for message
> > faultMethodRequest"
> > Please clarify.
> >
>
The wsdl is wrong in following places..



Below is the wsdl for user defined faults service which takes a single
> > integer and generates faults based on that integer value:
> >
> >
> > http://schemas.xmlsoap.org/wsdl/"; 
> > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/ "
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:wsdl="
> > http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="
> > http://www.roguewave.com/rwsf/webservice/fault"; 
> > targetNamespace="http://www.roguewave.com/rwsf/webservice/fault
> > " name="Fault">
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >
>
You should have an element="some_schema_element" attribute if it is a doc
style wsdl,
i.e above should be changed to



  
> >   
> > 
> > 
> >
>
Always part of fault message should associated with an element (element in a
valid schema) both in rpc and doc styles.

Thanks
Dimuthu

  
> >   
> > 
> >   
> >   
> >   
> >   
> > 
> >   
> >   
> >  > transport="http://schemas.xmlsoap.org/soap/http"/
> > >
> > 
> >   
> >   
> > http://www.roguewave.com/rwsf/webservice/"/
> > >
> >   
> >   
> > http://www.roguewave.com/rwsf/webservice/"/
> > >
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> >   
> >   
> > 
> >   http://localhost:8090/fault/Fault"/
> > >
> > 
> >   
> > 
> >
> >
> > Thanks
> > Sathya
> >
> >
> >
>
>


Re: Question on user defined faults and multithreading (Please clarify this urgently for me)

2007-09-27 Thread Sathya Raghunathan
Hi Dimuthu, Please clarify the below questions for me.
Sathya


On 9/27/07, Sathya Raghunathan <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> 1) I can understand that multithreading is taken care of by
> axis2_http_server after reading one of the mailing lists. For a new request,
> a worker thread is created. I would like to know if the number of threads
> can be configured or not.
> Should i modify any parameter in the httpd.conf for this?
>
> 2) I read from one of your mailing list that user defined soap faults can
> be sent as an element as part of soap Body by using the
> AXIS2_ERROR_SET_STATUS_CODE(env->error, AXIS2_FAILURE); and
>AXIS2_ERROR_SET_ERROR_NUMBER(env->error, AXIS2_ERROR_FOO);
>
> But how and where can we create this AXIS2_ERROR_FOO with a custom error
> message? Which function to call, to create the error number for
> AXIS2_ERROR_FOO? I saw that axis error.c file has all the axis related
> error messages defined. Similarly where to define the the AXIS2_ERROR_FOO?
>
> Please clarify
>
> Thank you so much for all the support you have given till now
>
> Regards
> Sathya
>
> On 9/26/07, Sathya Raghunathan <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > 1) How to build a multithreaded service using axis2c? Can wsdl2c tool
> > generate C code with multithreading functionality? If not, what is the way
> > to implement multithreading?
> > 2) Can we give user defined faults in wsdl file? How will
> > wsdl2c generate code corresponding to the faults? Will the code generate any
> > structures for these fault types? I have an example wsdl for this. But i am
> > not able to generate code, because wsdl2c errors out saying "No element type
> > is defined for message faultMethodRequest"
> > Please clarify.
> >
> >
> > Below is the wsdl for user defined faults service which takes a single
> > integer and generates faults based on that integer value:
> >
> >
> > http://schemas.xmlsoap.org/wsdl/"; 
> > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/ "
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:wsdl="
> > http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="
> > http://www.roguewave.com/rwsf/webservice/fault"; 
> > targetNamespace="http://www.roguewave.com/rwsf/webservice/fault
> > " name="Fault">
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> >   
> >   
> >   
> >   
> > 
> >   
> >   
> >  > transport="http://schemas.xmlsoap.org/soap/http"/
> > >
> > 
> >   
> >   
> > http://www.roguewave.com/rwsf/webservice/"/
> > >
> >   
> >   
> > http://www.roguewave.com/rwsf/webservice/"/
> > >
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> >   
> >   
> > 
> >   http://localhost:8090/fault/Fault"/
> > >
> > 
> >   
> > 
> >
> >
> > Thanks
> > Sathya
> >
> >
> >
>
>


Question on user defined faults and multithreading (Please clarify this urgently for me)

2007-09-26 Thread Sathya Raghunathan
Hi

1) I can understand that multithreading is taken care of by
axis2_http_server after reading one of the mailing lists. For a new request,
a worker thread is created. I would like to know if the number of threads
can be configured or not.
Should i modify any parameter in the httpd.conf for this?

2) I read from one of your mailing list that user defined soap faults can be
sent as an element as part of soap Body by using the
AXIS2_ERROR_SET_STATUS_CODE(env->error, AXIS2_FAILURE); and
   AXIS2_ERROR_SET_ERROR_NUMBER(env->error, AXIS2_ERROR_FOO);

But how and where can we create this AXIS2_ERROR_FOO with a custom error
message? Which function to call, to create the error number for
AXIS2_ERROR_FOO? I saw that axis error.c file has all the axis related error
messages defined. Similarly where to define the the AXIS2_ERROR_FOO?

Please clarify

Thank you so much for all the support you have given till now

Regards
Sathya

On 9/26/07, Sathya Raghunathan <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> 1) How to build a multithreaded service using axis2c? Can wsdl2c tool
> generate C code with multithreading functionality? If not, what is the way
> to implement multithreading?
> 2) Can we give user defined faults in wsdl file? How will wsdl2c generate
> code corresponding to the faults? Will the code generate any structures for
> these fault types? I have an example wsdl for this. But i am not able to
> generate code, because wsdl2c errors out saying "No element type is defined
> for message faultMethodRequest"
> Please clarify.
>
>
> Below is the wsdl for user defined faults service which takes a single
> integer and generates faults based on that integer value:
>
>
> http://schemas.xmlsoap.org/wsdl/"; 
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/
> " xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:wsdl="
> http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="
> http://www.roguewave.com/rwsf/webservice/fault"; 
> targetNamespace="http://www.roguewave.com/rwsf/webservice/fault
> " name="Fault">
>   
> 
>   
>   
> 
>   
>   
> 
>   
>   
> 
> 
>   
>   
> 
>   
>   
>   
>   
> 
>   
>   
>  transport="http://schemas.xmlsoap.org/soap/http"/
> >
> 
>   
>   
> http://www.roguewave.com/rwsf/webservice/"/
> >
>   
>   
> http://www.roguewave.com/rwsf/webservice/"/
> >
>   
>   
> 
>   
>   
> 
>   
> 
>   
>   
> 
>   http://localhost:8090/fault/Fault"/
> >
> 
>   
> 
>
>
> Thanks
> Sathya
>
>
>