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 ma...@birtles.org.uk on 2007/01/29 10:18:15 UTC
[axis2] wsdl2java problems
Using wsdl2java on the attached wsdl produces some incorrect results.
The xml that i would expect the generated code to produce is in
expected.xml the code it actually produces is in actual.xml. The
element name for element1 is incorrect, element2 should contain the
string directly instead of having it as a child node, element2 is also
missing the attribute that it should have.
There seems to be problems with wsdl2java's handling of enumerations
in anything other than the most basic cases
Re: [axis2] wsdl2java problems
Posted by Alan Birtles <ma...@birtles.org.uk>.
Yes i am using ADB, I have worked round it by writing a new wsdl and
using strings instead of the enumerations then modifying the generated
code. I have rasised a JIRA here:
https://issues.apache.org/jira/browse/AXIS2-2053
Quoting Ajith Ranabahu <aj...@gmail.com>:
> Hi,
> Is this using ADB ? I guess we have limitations in handling simple
> types and simple type extensions. Would it be possible to use a more
> capable databinding (say XMLBeans) and try it out ?
>
> In anycase please log a Jira as well.
>
> Ajith
>
> On 1/29/07, Amila Suriarachchi <am...@gmail.com> wrote:
>> Please log a jira
>>
>> On 1/29/07, mailinglists@birtles.org.uk < mailinglists@birtles.org.uk>
>> wrote:
>>>
>>> Using wsdl2java on the attached wsdl produces some incorrect results.
>>> The xml that i would expect the generated code to produce is in
>>> expected.xml the code it actually produces is in actual.xml. The
>>> element name for element1 is incorrect, element2 should contain the
>>> string directly instead of having it as a child node, element2 is also
>>> missing the attribute that it should have.
>>> There seems to be problems with wsdl2java's handling of enumerations
>>> in anything other than the most basic cases
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
>> axis-user-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>
>>>
>>
>>
>>
>> --
>> Amila Suriarachchi,
>> WSO2 Inc.
>
>
> --
> Ajith Ranabahu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [axis2] wsdl2java problems
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
Is this using ADB ? I guess we have limitations in handling simple
types and simple type extensions. Would it be possible to use a more
capable databinding (say XMLBeans) and try it out ?
In anycase please log a Jira as well.
Ajith
On 1/29/07, Amila Suriarachchi <am...@gmail.com> wrote:
> Please log a jira
>
> On 1/29/07, mailinglists@birtles.org.uk < mailinglists@birtles.org.uk>
> wrote:
> >
> > Using wsdl2java on the attached wsdl produces some incorrect results.
> > The xml that i would expect the generated code to produce is in
> > expected.xml the code it actually produces is in actual.xml. The
> > element name for element1 is incorrect, element2 should contain the
> > string directly instead of having it as a child node, element2 is also
> > missing the attribute that it should have.
> > There seems to be problems with wsdl2java's handling of enumerations
> > in anything other than the most basic cases
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
--
Ajith Ranabahu
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [axis2] wsdl2java problems
Posted by Amila Suriarachchi <am...@gmail.com>.
Please log a jira
On 1/29/07, mailinglists@birtles.org.uk <ma...@birtles.org.uk> wrote:
>
> Using wsdl2java on the attached wsdl produces some incorrect results.
> The xml that i would expect the generated code to produce is in
> expected.xml the code it actually produces is in actual.xml. The
> element name for element1 is incorrect, element2 should contain the
> string directly instead of having it as a child node, element2 is also
> missing the attribute that it should have.
> There seems to be problems with wsdl2java's handling of enumerations
> in anything other than the most basic cases
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
Amila Suriarachchi,
WSO2 Inc.
Re: [axis2] wsdl2java problems
Posted by Alan Birtles <ma...@birtles.org.uk>.
Attached is the corrected wsdl
Quoting Anne Thomas Manes <at...@gmail.com>:
> There are namespace errors in your WSDL. You have not declared a
> namespace for your WSDL targetNamespace; therefore you have no way to
> reference any of your WSDL elements. Perhaps you meant to use the same
> targetNamespace for both your WSDL and schema?
>
> It's always a good idea to validate a WSDL before running wsdl2java on it.
>
> Anne
>
> On 1/29/07, mailinglists@birtles.org.uk <ma...@birtles.org.uk> wrote:
>> Using wsdl2java on the attached wsdl produces some incorrect results.
>> The xml that i would expect the generated code to produce is in
>> expected.xml the code it actually produces is in actual.xml. The
>> element name for element1 is incorrect, element2 should contain the
>> string directly instead of having it as a child node, element2 is also
>> missing the attribute that it should have.
>> There seems to be problems with wsdl2java's handling of enumerations
>> in anything other than the most basic cases
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [axis2] wsdl2java problems
Posted by Anne Thomas Manes <at...@gmail.com>.
There are namespace errors in your WSDL. You have not declared a
namespace for your WSDL targetNamespace; therefore you have no way to
reference any of your WSDL elements. Perhaps you meant to use the same
targetNamespace for both your WSDL and schema?
It's always a good idea to validate a WSDL before running wsdl2java on it.
Anne
On 1/29/07, mailinglists@birtles.org.uk <ma...@birtles.org.uk> wrote:
> Using wsdl2java on the attached wsdl produces some incorrect results.
> The xml that i would expect the generated code to produce is in
> expected.xml the code it actually produces is in actual.xml. The
> element name for element1 is incorrect, element2 should contain the
> string directly instead of having it as a child node, element2 is also
> missing the attribute that it should have.
> There seems to be problems with wsdl2java's handling of enumerations
> in anything other than the most basic cases
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org