[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-user
Subject:    Re: Limitations in using ADB for our ws-clent
From:       Sudhir Mongia <sudhir.mongia () gmail ! com>
Date:       2009-04-30 14:37:28
Message-ID: 8841d5630904300725g26ee5212x222f4fa6e5e3b9ec () mail ! gmail ! com
[Download RAW message or body]

Hi Amila,
 I am also running into the same issue.

Could you please confirm which version of Axis2-ADB support both extension
and restrictions?

I can see the following on
<http://ws.apache.org/axis2/1_4_1/adb/adb-howto.html>
http://ws.apache.org/axis2/1_4_1/adb/adb-howto.html

Known Limitations

ADB is meant to be a 'Simple' databinding framework and was not meant to
compile all types of schemas. The following limitations are the most
highlighted.

   1. Complex Type Extensions and Restrictions.


The documentation says, it is a known limitation.

Thanks,
Sudhir

On Thu, Apr 30, 2009 at 3:42 PM, Amila Suriarachchi <
amilasuriarachchi@gmail.com> wrote:

>
>
> On Thu, Apr 30, 2009 at 8:58 AM, Damian Carey <jamianb@gmail.com> wrote:
>
>> Hello,
>>
>> I'm moderately experience Java Desktop (Swing/RMI/DB/Hibernate etc)
>> developer with some XML experience, but no SOAP experience. My current
>> Axis2 problem is just that I do not have experienced eyes, and so I
>> can't accurately "sniff" potential problems. I would be most
>> appreciative of any suggestions / guidance / advice  regarding these
>> beginners issues.
>>
>> We have a task to connect ourselves to an existing webservice, and we
>> have been given a WSDL file to develop our web services client.
>>
>>
>> Question 1: Limitations of ADB:
>> Firstly after reading
>>
>> http://ws.apache.org/axis2/1_4_1/userguide-creatingclients.html#choosingclient
>> I decided on ADB as a client as it seems to be the simplest. However,
>> that web page has the following intriguing comment regarding ADB :
>> "... and has difficulty with structures such as XML Schema element
>> extensions and restrictions".  For what it is worth I have scanned the
>> WSDL file and found zero instances of the string "extension", and 26
>> instances of the string "restriction". All the "restriction"s are of
>> the form
>> <simpleType name="WorkType">
>>    <restriction base="xsd:string">
>>        <enumeration value="LABR"/>
>>        <enumeration value="OTH"/>
>>    </restriction>
>> </simpleType>
>>
>> Is it easy to tell if these potential ADB "difficulties" applies to us?
>> Can experienced eyes look through a WSDL and recognise where ADB
>> will/may have a problem?
>> Or is it just a matter of waiting until testing to discover problems?
>
>
> Currently ADB supports both extension and restrictions.
>
>>
>>
>>
>> Question 2: Size of the stub:
>> Going through the process on the Axis2 web site I created the stub.
>> The WSDL file is >50KB, and the generated STUB is more than 50,000
>> lines long and 2.4MB in size!!!  Now I was surprised by the size, but
>> browsing through the stub it all seems reasonable and in order - even
>> if it is a touch verbose.  I really don't care about the size if it is
>> going to work OK.  I only care about the size if it may indicate that
>> there may be a problem.
>
>
> use -u option.
>
>>
>>
>> Does the massive size of the stub indicate any problem?
>> Does it suggest that ADB may not cope and perhaps we should pursue one
>> of the other methods? (such as XMLBeans or JiBX)
>
>
> thanks,
> Amila.
>
>>
>>
>>
>> Any guidance would be much appreciated.
>> Thanks for your time.
>>
>> -Damian
>>
>
>
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>

[Attachment #3 (text/html)]

Hi Amila,<div><br></div><div>  I am also running into the same \
issue.<br></div><div><br></div><div>Could you please confirm which version of \
Axis2-ADB support  both extension and restrictions?  </div><div><br></div><div>I can \
see the following on  <a href="http://ws.apache.org/axis2/1_4_1/adb/adb-howto.html" \
style=""><span class="Apple-style-span" style="color: rgb(0, 0, 0); text-decoration: \
none;">  </span></a><a \
href="http://ws.apache.org/axis2/1_4_1/adb/adb-howto.html">http://ws.apache.org/axis2/1_4_1/adb/adb-howto.html</a></div>
 <div><br></div><div><span class="Apple-style-span" style="color: rgb(17, 17, 17); \
font-family: verdana; font-size: 11px; line-height: 16px; "><h2 style="padding-top: \
4px; padding-right: 4px; padding-bottom: 4px; border-top-width: 1px; \
border-right-width: 1px; border-left-width: 1px; border-top-style: solid; \
border-right-style: solid; border-left-style: solid; border-top-color: rgb(153, 153, \
153); border-right-color: rgb(153, 153, 153); color: rgb(153, 0, 0); \
background-color: rgb(221, 221, 221); font-weight: 900; font-size: 15px; \
padding-left: 10px; border-bottom-width: 1px; border-bottom-style: solid; \
border-bottom-color: rgb(169, 169, 169); border-left-color: black; "> Known \
Limitations</h2><p style="line-height: 1.3em; font-size: small; ">ADB is meant to be \
a &#39;Simple&#39; databinding framework and was not meant to compile all types of \
schemas. The following limitations are the most highlighted.</p> <ol type="1" \
style="font-size: 11px; text-align: left; list-style-position: outside; display: \
block; white-space: normal; "><li style="font-family: Verdana, Helvetica, Arial, \
sans-serif; font-size: 13px; ">Complex Type Extensions and Restrictions.</li> \
</ol><div style="text-align: left;"><span class="Apple-style-span" style="font-size: \
13px;"><br></span></div><div style="text-align: left;"><span class="Apple-style-span" \
style="font-size: 13px; ">The documentation says, it is a known \
limitation.</span><br> </div><div style="text-align: left;"><span \
class="Apple-style-span" style="font-size: 13px;"><br></span></div><div \
style="text-align: left;"><span class="Apple-style-span" style="font-size: \
13px;">Thanks,</span></div><div style="text-align: left;"> <span \
class="Apple-style-span" style="font-size: \
13px;">Sudhir</span></div></span></div><div><br><div class="gmail_quote">On Thu, Apr \
30, 2009 at 3:42 PM, Amila Suriarachchi <span dir="ltr">&lt;<a \
href="mailto:amilasuriarachchi@gmail.com">amilasuriarachchi@gmail.com</a>&gt;</span> \
wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;"><br><br><div class="gmail_quote"><div><div></div><div \
class="h5">On Thu, Apr 30, 2009 at 8:58 AM, Damian Carey <span dir="ltr">&lt;<a \
href="mailto:jamianb@gmail.com" target="_blank">jamianb@gmail.com</a>&gt;</span> \
wrote:<br> <blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, \
204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"> Hello,<br>
<br>
I&#39;m moderately experience Java Desktop (Swing/RMI/DB/Hibernate etc)<br>
developer with some XML experience, but no SOAP experience. My current<br>
Axis2 problem is just that I do not have experienced eyes, and so I<br>
can&#39;t accurately &quot;sniff&quot; potential problems. I would be most<br>
appreciative of any suggestions / guidance / advice   regarding these<br>
beginners issues.<br>
<br>
We have a task to connect ourselves to an existing webservice, and we<br>
have been given a WSDL file to develop our web services client.<br>
<br>
<br>
Question 1: Limitations of ADB:<br>
Firstly after reading<br>
<a href="http://ws.apache.org/axis2/1_4_1/userguide-creatingclients.html#choosingclient" \
target="_blank">http://ws.apache.org/axis2/1_4_1/userguide-creatingclients.html#choosingclient</a><br>
 I decided on ADB as a client as it seems to be the simplest. However,<br>
that web page has the following intriguing comment regarding ADB :<br>
&quot;... and has difficulty with structures such as XML Schema element<br>
extensions and restrictions&quot;.   For what it is worth I have scanned the<br>
WSDL file and found zero instances of the string &quot;extension&quot;, and 26<br>
instances of the string &quot;restriction&quot;. All the &quot;restriction&quot;s are \
of<br> the form<br>
&lt;simpleType name=&quot;WorkType&quot;&gt;<br>
      &lt;restriction base=&quot;xsd:string&quot;&gt;<br>
            &lt;enumeration value=&quot;LABR&quot;/&gt;<br>
            &lt;enumeration value=&quot;OTH&quot;/&gt;<br>
      &lt;/restriction&gt;<br>
&lt;/simpleType&gt;<br>
<br>
Is it easy to tell if these potential ADB &quot;difficulties&quot; applies to us?<br>
Can experienced eyes look through a WSDL and recognise where ADB<br>
will/may have a problem?<br>
Or is it just a matter of waiting until testing to discover \
problems?</blockquote></div></div><div><br>Currently ADB supports both extension and \
restrictions.<br></div><div class="im"><blockquote class="gmail_quote" \
style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt \
0.8ex;padding-left:1ex">

<br>
<br>
<br>
Question 2: Size of the stub:<br>
Going through the process on the Axis2 web site I created the stub.<br>
The WSDL file is &gt;50KB, and the generated STUB is more than 50,000<br>
lines long and 2.4MB in size!!!   Now I was surprised by the size, but<br>
browsing through the stub it all seems reasonable and in order - even<br>
if it is a touch verbose.   I really don&#39;t care about the size if it is<br>
going to work OK.   I only care about the size if it may indicate that<br>
there may be a problem.</blockquote></div><div><br>use -u option. <br></div><div \
class="im"><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, \
204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><br> <br>
Does the massive size of the stub indicate any problem?<br>
Does it suggest that ADB may not cope and perhaps we should pursue one<br>
of the other methods? (such as XMLBeans or \
JiBX)</blockquote></div><div><br>thanks,<br>Amila. <br></div><div \
class="im"><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, \
204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">

<br>
<br>
<br>
Any guidance would be much appreciated.<br>
Thanks for your time.<br>
<font color="#888888"><br>
-Damian<br>
</font></blockquote></div></div><font color="#888888"><br><br clear="all"><br>-- \
<br>Amila Suriarachchi<br>WSO2 Inc.<br>blog: <a \
href="http://amilachinthaka.blogspot.com/" \
target="_blank">http://amilachinthaka.blogspot.com/</a><br>

</font></blockquote></div><br></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic