You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Siamak Haschemi <si...@gmx.de> on 2006/04/21 17:35:01 UTC

[axis2] [svn] WSDL2Java produces a erroneous MessageReceiver

Hello.

Using WSDL2Java with the attached WSDL file produces a not compileable 
MessageReceiver.

Too much braces. I marked up the lines.
Here's a snipped:


catch (org.apache.axis2.CareSkeleton.DeleteProductException e) {
                        org.apache.axis2.AxisFault f =
                            new 
org.apache.axis2.AxisFault("DeleteProductException");
                        f.setDetail(toOM(e.getFaultMessage(),false));
                        throw f;
----->           }
               }catch 
(org.apache.axis2.CareSkeleton.SaveProductException e) {
                        org.apache.axis2.AxisFault f =
                            new 
org.apache.axis2.AxisFault("SaveProductException");
                        f.setDetail(toOM(e.getFaultMessage(),false));
                        throw f;
                    }
               }catch 
(org.apache.axis2.CareSkeleton.UpdateProductException e) {
                        org.apache.axis2.AxisFault f =
                            new 
org.apache.axis2.AxisFault("UpdateProductException");
                        f.setDetail(toOM(e.getFaultMessage(),false));
                        throw f;
----->           }
               }catch 
(org.apache.axis2.CareSkeleton.GetAllProductException e) {
                        org.apache.axis2.AxisFault f =
                            new 
org.apache.axis2.AxisFault("GetAllProductException");
                        f.setDetail(toOM(e.getFaultMessage(),false));
                        throw f;
----->           }
               }catch (org.apache.axis2.CareSkeleton.GetProductException 
e) {
                        org.apache.axis2.AxisFault f =
                            new 
org.apache.axis2.AxisFault("GetProductException");
                        f.setDetail(toOM(e.getFaultMessage(),false));
                        throw f;
                    }


I think the XSL-Template has to be changed or my WSDL-file is invalid.

PS: I have also a Thread about a Exception while using WSDL-Failures, so 
please help me.

Thanks,

Siamak Haschemi

Re: [axis2] [svn] WSDL2Java produces a erroneous MessageReceiver

Posted by Ajith Ranabahu <aj...@gmail.com>.
Try with the latest source. this bug is fixed and I just ran the
codegen successfully with the attached WSDL.

On 4/21/06, Siamak Haschemi <si...@gmx.de> wrote:
> Hello.
>
> Using WSDL2Java with the attached WSDL file produces a not compileable
> MessageReceiver.
>
> Too much braces. I marked up the lines.
> Here's a snipped:
>
>
> catch (org.apache.axis2.CareSkeleton.DeleteProductException e) {
>                         org.apache.axis2.AxisFault f =
>                             new
> org.apache.axis2.AxisFault("DeleteProductException");
>                         f.setDetail(toOM(e.getFaultMessage(),false));
>                         throw f;
> ----->           }
>                }catch
> (org.apache.axis2.CareSkeleton.SaveProductException e) {
>                         org.apache.axis2.AxisFault f =
>                             new
> org.apache.axis2.AxisFault("SaveProductException");
>                         f.setDetail(toOM(e.getFaultMessage(),false));
>                         throw f;
>                     }
>                }catch
> (org.apache.axis2.CareSkeleton.UpdateProductException e) {
>                         org.apache.axis2.AxisFault f =
>                             new
> org.apache.axis2.AxisFault("UpdateProductException");
>                         f.setDetail(toOM(e.getFaultMessage(),false));
>                         throw f;
> ----->           }
>                }catch
> (org.apache.axis2.CareSkeleton.GetAllProductException e) {
>                         org.apache.axis2.AxisFault f =
>                             new
> org.apache.axis2.AxisFault("GetAllProductException");
>                         f.setDetail(toOM(e.getFaultMessage(),false));
>                         throw f;
> ----->           }
>                }catch (org.apache.axis2.CareSkeleton.GetProductException
> e) {
>                         org.apache.axis2.AxisFault f =
>                             new
> org.apache.axis2.AxisFault("GetProductException");
>                         f.setDetail(toOM(e.getFaultMessage(),false));
>                         throw f;
>                     }
>
>
> I think the XSL-Template has to be changed or my WSDL-file is invalid.
>
> PS: I have also a Thread about a Exception while using WSDL-Failures, so
> please help me.
>
> Thanks,
>
> Siamak Haschemi
>
>
>


--
Ajith Ranabahu