You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kandula-dev@ws.apache.org by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org> on 2010/03/09 16:57:28 UTC

[jira] Created: (AXIS2-4650) BAD WSDL generation from Java class

BAD WSDL generation from Java class
-----------------------------------

                 Key: AXIS2-4650
                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
             Project: Axis2
          Issue Type: Bug
         Environment: OS: Debian GNU/Linux
WSO2 WSAS v3.1.3

            Reporter: Vitor Manuel Alves Rodrigues


Hello everyone,

I have this snippet from the WSDL:

...
<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
                </xs:sequence>
</xs:complexType>
...

The correct would be this:

<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
                </xs:sequence>
</xs:complexType>

I have this in Java:

public class Entity {
...
/*Inner class*/
    public class EntityPersonWithContactType {
        private EntityPersonType entity;
        private DigitalAddress.DigitalAddressType[] digital_address;
        private PhoneNumber.PhoneNumberType[] phone_number;
        private PostalAddress.PostalAddressType[] postal_address;
        private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;

        /**
         * The default constructor.
         */
        public EntityPersonWithContactType(){}
        /**
         * The constructor with all the input for one record.
         * @param entity value;
         * @param digital_address list value;
         * @param phone_number list value;
         * @param postal_address list value;
         * @param postal_address__phone_number list value;
         */
       public EntityPersonWithContactType(EntityPersonType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) {
.....
}

I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>

My build.xml  :
..
<target name="install"
          depends="build-service,doc"
          description="Installs the service package AAR into the Web service server repository.">
    <echo message="Copying the created AAR files into the repository..."/>
    <copy toDir="${repository.dir}/${services.dir}">
      <fileset dir="${services.dir}">
        <include name="**/*.aar"/>
      </fileset>
    </copy>
  </target>
...

What am i doing wrong? Help. :(

For more info, please please contact me :)







-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843447#action_12843447 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4650:
-----------------------------------------------------

can you attach a complete sample class with shows the issue.

I tried with this but it works fine

public class Entity {

    public class EntityCompanyWithContactType {
        private EntityCompanyType entity;
        private int age;

        public EntityCompanyType getEntity() {
            return entity;
        }

        public void setEntity(EntityCompanyType entity) {
            this.entity = entity;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
    }

    public int test(EntityCompanyWithContactType contactType){
        return 2;
    }
}

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844005#action_12844005 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

First of all, many thanks Amila for your correcting time . I'm simply amazed :D

Question:

What should i do for using the new revision? Sorry i'm new to this.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Issue Comment Edited: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843495#action_12843495 ] 

Vitor Manuel Alves Rodrigues edited comment on AXIS2-4650 at 3/10/10 9:38 AM:
------------------------------------------------------------------------------

Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.







      was (Author: vitor rodrigues):
    Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.




  
> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Attachment: tree_of_org.txt

The snapshot of unpacked SNAPSHOT.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Reopened: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues reopened AXIS2-4650:
-------------------------------------------------


How can i use this revision?

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845291#action_12845291 ] 

Andreas Veithen commented on AXIS2-4650:
----------------------------------------

There was indeed a build failure when specifying maven.test.skip=true on the command line. This should be fixed now.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Description: 
Hello everyone,

I have this snippet from the WSDL:

...
<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
                </xs:sequence>
</xs:complexType>
...

The correct would be this:

<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
                </xs:sequence>
</xs:complexType>

I have this in Java:

public class Entity {
...
/*Inner class*/
       public class EntityCompanyWithContactType {
        private EntityCompanyType entity;
        private DigitalAddress.DigitalAddressType[] digital_address;
        private PhoneNumber.PhoneNumberType[] phone_number;
        private PostalAddress.PostalAddressType[] postal_address;
        private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;


            /**
         * The default constructor.
         */
        public EntityCompanyWithContactType(){}
        /**
         * The constructor with all the input for one record.
         * @param entity value;
         * @param digital_address list value;
         * @param phone_number list value;
         * @param postal_address list value;
         * @param postal_address__phone_number list value;
         */
        public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
 
.....
}

I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>

My build.xml  :
..
<target name="install"
          depends="build-service,doc"
          description="Installs the service package AAR into the Web service server repository.">
    <echo message="Copying the created AAR files into the repository..."/>
    <copy toDir="${repository.dir}/${services.dir}">
      <fileset dir="${services.dir}">
        <include name="**/*.aar"/>
      </fileset>
    </copy>
  </target>
...

What am i doing wrong? Help. :(

For more info, please please contact me :)







  was:
Hello everyone,

I have this snippet from the WSDL:

...
<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
                </xs:sequence>
</xs:complexType>
...

The correct would be this:

<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
                </xs:sequence>
</xs:complexType>

I have this in Java:

public class Entity {
...
/*Inner class*/
    public class EntityPersonWithContactType {
        private EntityPersonType entity;
        private DigitalAddress.DigitalAddressType[] digital_address;
        private PhoneNumber.PhoneNumberType[] phone_number;
        private PostalAddress.PostalAddressType[] postal_address;
        private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;

        /**
         * The default constructor.
         */
        public EntityPersonWithContactType(){}
        /**
         * The constructor with all the input for one record.
         * @param entity value;
         * @param digital_address list value;
         * @param phone_number list value;
         * @param postal_address list value;
         * @param postal_address__phone_number list value;
         */
       public EntityPersonWithContactType(EntityPersonType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) {
.....
}

I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>

My build.xml  :
..
<target name="install"
          depends="build-service,doc"
          description="Installs the service package AAR into the Web service server repository.">
    <echo message="Copying the created AAR files into the repository..."/>
    <copy toDir="${repository.dir}/${services.dir}">
      <fileset dir="${services.dir}">
        <include name="**/*.aar"/>
      </fileset>
    </copy>
  </target>
...

What am i doing wrong? Help. :(

For more info, please please contact me :)








> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Issue Comment Edited: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843495#action_12843495 ] 

Vitor Manuel Alves Rodrigues edited comment on AXIS2-4650 at 3/10/10 9:38 AM:
------------------------------------------------------------------------------

Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.







      was (Author: vitor rodrigues):
    Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.




  
> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845274#action_12845274 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Hello Amila,


When i build using what you tould me:

[INFO] [clean:clean]
[INFO] [remote-resources:process {execution: default}]
[INFO] [remote-resources:process {execution: legal-files}]
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 9 source files to /root/axis2/modules/java2wsdl/target/classes
[INFO] [resources:testResources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
     [echo] Generating p2n.wsdl
     [java] Exception in thread "main" java.lang.ClassNotFoundException: org.apache.axis2.description.CalculatorService
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
     [java]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:247)
     [java]     at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(DefaultSchemaGenerator.java:140)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLBuilder.resolveSchemaGen(Java2WSDLBuilder.java:368)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilder.java:211)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:59)
     [java]     at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:32)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: Java returned: 1

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute
[INFO] Finished at: Sun Mar 14 16:55:15 WET 2010
[INFO] Final Memory: 48M/63M
[INFO] ------------------------------------------------------------------------


I'm trying, neitherless calling java2wsdl class to test, like this:

/* In this dir i have my class Entity.class(the class i want to generate wsdl), axis2-SNAPSHOT.jar, the unpacked jar(which creates org dir and sub-folders(i will attach the tree view in this issue)
*/
// this is me trying to generate de wsdl, from the Java Class

/root/java2wsdl$ rm -f abc.wsdl; export JAVA_HOME=/usr/lib/jvm/java-6-sun; export AXIS2_HOME=/opt/wso2wsas; java -cp .:$AXIS2_HOME/lib/commons-logging-1.1.1.jar:$AXIS2_HOME/repository/components/plugins/axiom-1.2.7.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/neethi-2.0.4.wso2v1.jar org.apache.ws.java2wsdl.Java2WSDL -of abc.wsdl -cn Entity

And it gaves me this error:

Exception in thread "main" java.lang.RuntimeException: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.<init>(Java2WSDLBuilder.java:108)
        at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.<init>(Java2WSDLCodegenEngine.java:51)
        at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:31)
Caused by: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender
        at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:711)
        at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:122)
        at org.apache.axis2.context.ConfigurationContextFactory.createBasicConfigurationContext(ConfigurationContextFactory.java:343)
        at org.apache.axis2.context.ConfigurationContextFactory.createDefaultConfigurationContext(ConfigurationContextFactory.java:330)
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.<init>(Java2WSDLBuilder.java:101)
        ... 2 more
Caused by: java.lang.ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
        at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:686)
        ... 6 more


And thoughts, ideas?









> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843640#action_12843640 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?


> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Right - we are actually planning on generating javascript code (for 
browser-based invocations) from the WSDL
file. I  do know WSO2 and CXF are both doing something similar so I will 
look into that as well.
I also use the Content Type field of the HTTP to identify the nature of 
the incoming request - the links you sent
below are pretty good.

Thanks very much - I will follow up on this and let you know how it goes.

Sagara Gunathunga wrote:
>
>
> On Fri, Mar 19, 2010 at 2:37 AM, Demetris <demetris@ece.neu.edu 
> <ma...@ece.neu.edu>> wrote:
>
>
>     Thanks Sagara ---
>     Good links - I heard of Woden before but I never looked into it.
>     If I don't want to parse the document manually what is the
>     second choice (in the case of REST I mean). I know with SOAP how
>     things work the stubs etc. But what does the REST
>     case generate? Still stubs which means the application needs to
>     use them to implement the invocations?
>
>
> For REST invocation you can use Axis2 ServiceClient in a programmatic 
> way or simply you can use a web browser with url encoded request ( 
> e.g. - 
> http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF 
> <http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF> 
> ).
>
> Axis2 engine use HTTP Method of the incoming request or content type 
> of  the incoming request to identify REST request. This may help out 
> [1] [2]
>
> [1] - http://ws.apache.org/axis2/1_5_1/rest-ws.html
> [2] - http://wso2.org/library/175
>
> Thanks,
>
>
>     Thanks
>
>     Sagara Gunathunga wrote:
>
>         Hi,
>
>         It is possible to use WSDL 2.0 to represent any REST service
>         in the same way as SOAP services [1] , if you want to parse
>         WSDL 2.0 manually you can use Apache Woden [2] for that , as
>         an example have look at this class used in Axis2 [3].
>
>         Thanks,
>
>         [1] -
>         http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
>         [2] - http://ws.apache.org/woden/
>         [3] -
>         http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>
>         On Thu, Mar 18, 2010 at 11:01 AM, Demetris
>         <demetris@ece.neu.edu <ma...@ece.neu.edu>
>         <mailto:demetris@ece.neu.edu <ma...@ece.neu.edu>>>
>         wrote:
>
>            Hi all,
>
>            Are there any examples of parsing the WSDL 2.0 manually at the
>            application level (instead of
>            the Axis engine doing it?). I am assuming the parsing of a WSDL
>            2.0 representing a SOAP
>            service would be different than the REST one - where are these
>            capabilities in the distribution
>            so that I can make use of them?
>
>            Thanks very much in advance
>
>          
>          ---------------------------------------------------------------------
>            To unsubscribe, e-mail:
>         java-dev-unsubscribe@axis.apache.org
>         <ma...@axis.apache.org>
>            <mailto:java-dev-unsubscribe@axis.apache.org
>         <ma...@axis.apache.org>>
>
>            For additional commands, e-mail:
>         java-dev-help@axis.apache.org
>         <ma...@axis.apache.org>
>            <mailto:java-dev-help@axis.apache.org
>         <ma...@axis.apache.org>>
>
>
>
>
>
>         -- 
>         Sagara Gunathunga
>
>         Blog - http://ssagara.blogspot.com
>         Web - http://people.apache.org/~sagara/
>         <http://people.apache.org/%7Esagara/>
>         <http://people.apache.org/%7Esagara/>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>     <ma...@axis.apache.org>
>     For additional commands, e-mail: java-dev-help@axis.apache.org
>     <ma...@axis.apache.org>
>
>
>
>
> -- 
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://people.apache.org/~sagara/ 
> <http://people.apache.org/%7Esagara/>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Right - we are actually planning on generating javascript code (for 
browser-based invocations) from the WSDL
file. I  do know WSO2 and CXF are both doing something similar so I will 
look into that as well.
I also use the Content Type field of the HTTP to identify the nature of 
the incoming request - the links you sent
below are pretty good.

Thanks very much - I will follow up on this and let you know how it goes.

Sagara Gunathunga wrote:
>
>
> On Fri, Mar 19, 2010 at 2:37 AM, Demetris <demetris@ece.neu.edu 
> <ma...@ece.neu.edu>> wrote:
>
>
>     Thanks Sagara ---
>     Good links - I heard of Woden before but I never looked into it.
>     If I don't want to parse the document manually what is the
>     second choice (in the case of REST I mean). I know with SOAP how
>     things work the stubs etc. But what does the REST
>     case generate? Still stubs which means the application needs to
>     use them to implement the invocations?
>
>
> For REST invocation you can use Axis2 ServiceClient in a programmatic 
> way or simply you can use a web browser with url encoded request ( 
> e.g. - 
> http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF 
> <http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF> 
> ).
>
> Axis2 engine use HTTP Method of the incoming request or content type 
> of  the incoming request to identify REST request. This may help out 
> [1] [2]
>
> [1] - http://ws.apache.org/axis2/1_5_1/rest-ws.html
> [2] - http://wso2.org/library/175
>
> Thanks,
>
>
>     Thanks
>
>     Sagara Gunathunga wrote:
>
>         Hi,
>
>         It is possible to use WSDL 2.0 to represent any REST service
>         in the same way as SOAP services [1] , if you want to parse
>         WSDL 2.0 manually you can use Apache Woden [2] for that , as
>         an example have look at this class used in Axis2 [3].
>
>         Thanks,
>
>         [1] -
>         http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
>         [2] - http://ws.apache.org/woden/
>         [3] -
>         http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>
>         On Thu, Mar 18, 2010 at 11:01 AM, Demetris
>         <demetris@ece.neu.edu <ma...@ece.neu.edu>
>         <mailto:demetris@ece.neu.edu <ma...@ece.neu.edu>>>
>         wrote:
>
>            Hi all,
>
>            Are there any examples of parsing the WSDL 2.0 manually at the
>            application level (instead of
>            the Axis engine doing it?). I am assuming the parsing of a WSDL
>            2.0 representing a SOAP
>            service would be different than the REST one - where are these
>            capabilities in the distribution
>            so that I can make use of them?
>
>            Thanks very much in advance
>
>          
>          ---------------------------------------------------------------------
>            To unsubscribe, e-mail:
>         java-dev-unsubscribe@axis.apache.org
>         <ma...@axis.apache.org>
>            <mailto:java-dev-unsubscribe@axis.apache.org
>         <ma...@axis.apache.org>>
>
>            For additional commands, e-mail:
>         java-dev-help@axis.apache.org
>         <ma...@axis.apache.org>
>            <mailto:java-dev-help@axis.apache.org
>         <ma...@axis.apache.org>>
>
>
>
>
>
>         -- 
>         Sagara Gunathunga
>
>         Blog - http://ssagara.blogspot.com
>         Web - http://people.apache.org/~sagara/
>         <http://people.apache.org/%7Esagara/>
>         <http://people.apache.org/%7Esagara/>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>     <ma...@axis.apache.org>
>     For additional commands, e-mail: java-dev-help@axis.apache.org
>     <ma...@axis.apache.org>
>
>
>
>
> -- 
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://people.apache.org/~sagara/ 
> <http://people.apache.org/%7Esagara/>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Right - we are actually planning on generating javascript code (for 
browser-based invocations) from the WSDL
file. I  do know WSO2 and CXF are both doing something similar so I will 
look into that as well.
I also use the Content Type field of the HTTP to identify the nature of 
the incoming request - the links you sent
below are pretty good.

Thanks very much - I will follow up on this and let you know how it goes.

Sagara Gunathunga wrote:
>
>
> On Fri, Mar 19, 2010 at 2:37 AM, Demetris <demetris@ece.neu.edu 
> <ma...@ece.neu.edu>> wrote:
>
>
>     Thanks Sagara ---
>     Good links - I heard of Woden before but I never looked into it.
>     If I don't want to parse the document manually what is the
>     second choice (in the case of REST I mean). I know with SOAP how
>     things work the stubs etc. But what does the REST
>     case generate? Still stubs which means the application needs to
>     use them to implement the invocations?
>
>
> For REST invocation you can use Axis2 ServiceClient in a programmatic 
> way or simply you can use a web browser with url encoded request ( 
> e.g. - 
> http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF 
> <http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF> 
> ).
>
> Axis2 engine use HTTP Method of the incoming request or content type 
> of  the incoming request to identify REST request. This may help out 
> [1] [2]
>
> [1] - http://ws.apache.org/axis2/1_5_1/rest-ws.html
> [2] - http://wso2.org/library/175
>
> Thanks,
>
>
>     Thanks
>
>     Sagara Gunathunga wrote:
>
>         Hi,
>
>         It is possible to use WSDL 2.0 to represent any REST service
>         in the same way as SOAP services [1] , if you want to parse
>         WSDL 2.0 manually you can use Apache Woden [2] for that , as
>         an example have look at this class used in Axis2 [3].
>
>         Thanks,
>
>         [1] -
>         http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
>         [2] - http://ws.apache.org/woden/
>         [3] -
>         http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>
>         On Thu, Mar 18, 2010 at 11:01 AM, Demetris
>         <demetris@ece.neu.edu <ma...@ece.neu.edu>
>         <mailto:demetris@ece.neu.edu <ma...@ece.neu.edu>>>
>         wrote:
>
>            Hi all,
>
>            Are there any examples of parsing the WSDL 2.0 manually at the
>            application level (instead of
>            the Axis engine doing it?). I am assuming the parsing of a WSDL
>            2.0 representing a SOAP
>            service would be different than the REST one - where are these
>            capabilities in the distribution
>            so that I can make use of them?
>
>            Thanks very much in advance
>
>          
>          ---------------------------------------------------------------------
>            To unsubscribe, e-mail:
>         java-dev-unsubscribe@axis.apache.org
>         <ma...@axis.apache.org>
>            <mailto:java-dev-unsubscribe@axis.apache.org
>         <ma...@axis.apache.org>>
>
>            For additional commands, e-mail:
>         java-dev-help@axis.apache.org
>         <ma...@axis.apache.org>
>            <mailto:java-dev-help@axis.apache.org
>         <ma...@axis.apache.org>>
>
>
>
>
>
>         -- 
>         Sagara Gunathunga
>
>         Blog - http://ssagara.blogspot.com
>         Web - http://people.apache.org/~sagara/
>         <http://people.apache.org/%7Esagara/>
>         <http://people.apache.org/%7Esagara/>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>     <ma...@axis.apache.org>
>     For additional commands, e-mail: java-dev-help@axis.apache.org
>     <ma...@axis.apache.org>
>
>
>
>
> -- 
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://people.apache.org/~sagara/ 
> <http://people.apache.org/%7Esagara/>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Right - we are actually planning on generating javascript code (for 
browser-based invocations) from the WSDL
file. I  do know WSO2 and CXF are both doing something similar so I will 
look into that as well.
I also use the Content Type field of the HTTP to identify the nature of 
the incoming request - the links you sent
below are pretty good.

Thanks very much - I will follow up on this and let you know how it goes.

Sagara Gunathunga wrote:
>
>
> On Fri, Mar 19, 2010 at 2:37 AM, Demetris <demetris@ece.neu.edu 
> <ma...@ece.neu.edu>> wrote:
>
>
>     Thanks Sagara ---
>     Good links - I heard of Woden before but I never looked into it.
>     If I don't want to parse the document manually what is the
>     second choice (in the case of REST I mean). I know with SOAP how
>     things work the stubs etc. But what does the REST
>     case generate? Still stubs which means the application needs to
>     use them to implement the invocations?
>
>
> For REST invocation you can use Axis2 ServiceClient in a programmatic 
> way or simply you can use a web browser with url encoded request ( 
> e.g. - 
> http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF 
> <http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF> 
> ).
>
> Axis2 engine use HTTP Method of the incoming request or content type 
> of  the incoming request to identify REST request. This may help out 
> [1] [2]
>
> [1] - http://ws.apache.org/axis2/1_5_1/rest-ws.html
> [2] - http://wso2.org/library/175
>
> Thanks,
>
>
>     Thanks
>
>     Sagara Gunathunga wrote:
>
>         Hi,
>
>         It is possible to use WSDL 2.0 to represent any REST service
>         in the same way as SOAP services [1] , if you want to parse
>         WSDL 2.0 manually you can use Apache Woden [2] for that , as
>         an example have look at this class used in Axis2 [3].
>
>         Thanks,
>
>         [1] -
>         http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
>         [2] - http://ws.apache.org/woden/
>         [3] -
>         http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>
>         On Thu, Mar 18, 2010 at 11:01 AM, Demetris
>         <demetris@ece.neu.edu <ma...@ece.neu.edu>
>         <mailto:demetris@ece.neu.edu <ma...@ece.neu.edu>>>
>         wrote:
>
>            Hi all,
>
>            Are there any examples of parsing the WSDL 2.0 manually at the
>            application level (instead of
>            the Axis engine doing it?). I am assuming the parsing of a WSDL
>            2.0 representing a SOAP
>            service would be different than the REST one - where are these
>            capabilities in the distribution
>            so that I can make use of them?
>
>            Thanks very much in advance
>
>          
>          ---------------------------------------------------------------------
>            To unsubscribe, e-mail:
>         java-dev-unsubscribe@axis.apache.org
>         <ma...@axis.apache.org>
>            <mailto:java-dev-unsubscribe@axis.apache.org
>         <ma...@axis.apache.org>>
>
>            For additional commands, e-mail:
>         java-dev-help@axis.apache.org
>         <ma...@axis.apache.org>
>            <mailto:java-dev-help@axis.apache.org
>         <ma...@axis.apache.org>>
>
>
>
>
>
>         -- 
>         Sagara Gunathunga
>
>         Blog - http://ssagara.blogspot.com
>         Web - http://people.apache.org/~sagara/
>         <http://people.apache.org/%7Esagara/>
>         <http://people.apache.org/%7Esagara/>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>     <ma...@axis.apache.org>
>     For additional commands, e-mail: java-dev-help@axis.apache.org
>     <ma...@axis.apache.org>
>
>
>
>
> -- 
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://people.apache.org/~sagara/ 
> <http://people.apache.org/%7Esagara/>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Right - we are actually planning on generating javascript code (for 
browser-based invocations) from the WSDL
file. I  do know WSO2 and CXF are both doing something similar so I will 
look into that as well.
I also use the Content Type field of the HTTP to identify the nature of 
the incoming request - the links you sent
below are pretty good.

Thanks very much - I will follow up on this and let you know how it goes.

Sagara Gunathunga wrote:
>
>
> On Fri, Mar 19, 2010 at 2:37 AM, Demetris <demetris@ece.neu.edu 
> <ma...@ece.neu.edu>> wrote:
>
>
>     Thanks Sagara ---
>     Good links - I heard of Woden before but I never looked into it.
>     If I don't want to parse the document manually what is the
>     second choice (in the case of REST I mean). I know with SOAP how
>     things work the stubs etc. But what does the REST
>     case generate? Still stubs which means the application needs to
>     use them to implement the invocations?
>
>
> For REST invocation you can use Axis2 ServiceClient in a programmatic 
> way or simply you can use a web browser with url encoded request ( 
> e.g. - 
> http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF 
> <http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF> 
> ).
>
> Axis2 engine use HTTP Method of the incoming request or content type 
> of  the incoming request to identify REST request. This may help out 
> [1] [2]
>
> [1] - http://ws.apache.org/axis2/1_5_1/rest-ws.html
> [2] - http://wso2.org/library/175
>
> Thanks,
>
>
>     Thanks
>
>     Sagara Gunathunga wrote:
>
>         Hi,
>
>         It is possible to use WSDL 2.0 to represent any REST service
>         in the same way as SOAP services [1] , if you want to parse
>         WSDL 2.0 manually you can use Apache Woden [2] for that , as
>         an example have look at this class used in Axis2 [3].
>
>         Thanks,
>
>         [1] -
>         http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
>         [2] - http://ws.apache.org/woden/
>         [3] -
>         http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>
>         On Thu, Mar 18, 2010 at 11:01 AM, Demetris
>         <demetris@ece.neu.edu <ma...@ece.neu.edu>
>         <mailto:demetris@ece.neu.edu <ma...@ece.neu.edu>>>
>         wrote:
>
>            Hi all,
>
>            Are there any examples of parsing the WSDL 2.0 manually at the
>            application level (instead of
>            the Axis engine doing it?). I am assuming the parsing of a WSDL
>            2.0 representing a SOAP
>            service would be different than the REST one - where are these
>            capabilities in the distribution
>            so that I can make use of them?
>
>            Thanks very much in advance
>
>          
>          ---------------------------------------------------------------------
>            To unsubscribe, e-mail:
>         java-dev-unsubscribe@axis.apache.org
>         <ma...@axis.apache.org>
>            <mailto:java-dev-unsubscribe@axis.apache.org
>         <ma...@axis.apache.org>>
>
>            For additional commands, e-mail:
>         java-dev-help@axis.apache.org
>         <ma...@axis.apache.org>
>            <mailto:java-dev-help@axis.apache.org
>         <ma...@axis.apache.org>>
>
>
>
>
>
>         -- 
>         Sagara Gunathunga
>
>         Blog - http://ssagara.blogspot.com
>         Web - http://people.apache.org/~sagara/
>         <http://people.apache.org/%7Esagara/>
>         <http://people.apache.org/%7Esagara/>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>     <ma...@axis.apache.org>
>     For additional commands, e-mail: java-dev-help@axis.apache.org
>     <ma...@axis.apache.org>
>
>
>
>
> -- 
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://people.apache.org/~sagara/ 
> <http://people.apache.org/%7Esagara/>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: WSDL 2.0

Posted by Sagara Gunathunga <sa...@gmail.com>.
On Fri, Mar 19, 2010 at 2:37 AM, Demetris <de...@ece.neu.edu> wrote:

>
> Thanks Sagara ---
> Good links - I heard of Woden before but I never looked into it. If I don't
> want to parse the document manually what is the
> second choice (in the case of REST I mean). I know with SOAP how things
> work the stubs etc. But what does the REST
> case generate? Still stubs which means the application needs to use them to
> implement the invocations?
>

For REST invocation you can use Axis2 ServiceClient in a programmatic way or
simply you can use a web browser with url encoded request ( e.g. -
http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF).

Axis2 engine use HTTP Method of the incoming request or content type of  the
incoming request to identify REST request. This may help out [1] [2]

[1] - http://ws.apache.org/axis2/1_5_1/rest-ws.html
[2] - http://wso2.org/library/175

Thanks,

>
> Thanks
>
> Sagara Gunathunga wrote:
>
>> Hi,
>>
>> It is possible to use WSDL 2.0 to represent any REST service in the same
>> way as SOAP services [1] , if you want to parse WSDL 2.0 manually you can
>> use Apache Woden [2] for that , as an example have look at this class used
>> in Axis2 [3].
>>
>> Thanks,
>>
>> [1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
>> [2] - http://ws.apache.org/woden/
>> [3] -
>> http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>>
>> On Thu, Mar 18, 2010 at 11:01 AM, Demetris <demetris@ece.neu.edu <mailto:
>> demetris@ece.neu.edu>> wrote:
>>
>>    Hi all,
>>
>>    Are there any examples of parsing the WSDL 2.0 manually at the
>>    application level (instead of
>>    the Axis engine doing it?). I am assuming the parsing of a WSDL
>>    2.0 representing a SOAP
>>    service would be different than the REST one - where are these
>>    capabilities in the distribution
>>    so that I can make use of them?
>>
>>    Thanks very much in advance
>>
>>    ---------------------------------------------------------------------
>>    To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>>    <ma...@axis.apache.org>
>>
>>    For additional commands, e-mail: java-dev-help@axis.apache.org
>>    <ma...@axis.apache.org>
>>
>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Blog - http://ssagara.blogspot.com
>> Web - http://people.apache.org/~sagara/<http://people.apache.org/%7Esagara/><
>> http://people.apache.org/%7Esagara/>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>


-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

Re: WSDL 2.0

Posted by Sagara Gunathunga <sa...@gmail.com>.
On Fri, Mar 19, 2010 at 2:37 AM, Demetris <de...@ece.neu.edu> wrote:

>
> Thanks Sagara ---
> Good links - I heard of Woden before but I never looked into it. If I don't
> want to parse the document manually what is the
> second choice (in the case of REST I mean). I know with SOAP how things
> work the stubs etc. But what does the REST
> case generate? Still stubs which means the application needs to use them to
> implement the invocations?
>

For REST invocation you can use Axis2 ServiceClient in a programmatic way or
simply you can use a web browser with url encoded request ( e.g. -
http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF).

Axis2 engine use HTTP Method of the incoming request or content type of  the
incoming request to identify REST request. This may help out [1] [2]

[1] - http://ws.apache.org/axis2/1_5_1/rest-ws.html
[2] - http://wso2.org/library/175

Thanks,

>
> Thanks
>
> Sagara Gunathunga wrote:
>
>> Hi,
>>
>> It is possible to use WSDL 2.0 to represent any REST service in the same
>> way as SOAP services [1] , if you want to parse WSDL 2.0 manually you can
>> use Apache Woden [2] for that , as an example have look at this class used
>> in Axis2 [3].
>>
>> Thanks,
>>
>> [1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
>> [2] - http://ws.apache.org/woden/
>> [3] -
>> http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>>
>> On Thu, Mar 18, 2010 at 11:01 AM, Demetris <demetris@ece.neu.edu <mailto:
>> demetris@ece.neu.edu>> wrote:
>>
>>    Hi all,
>>
>>    Are there any examples of parsing the WSDL 2.0 manually at the
>>    application level (instead of
>>    the Axis engine doing it?). I am assuming the parsing of a WSDL
>>    2.0 representing a SOAP
>>    service would be different than the REST one - where are these
>>    capabilities in the distribution
>>    so that I can make use of them?
>>
>>    Thanks very much in advance
>>
>>    ---------------------------------------------------------------------
>>    To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>>    <ma...@axis.apache.org>
>>
>>    For additional commands, e-mail: java-dev-help@axis.apache.org
>>    <ma...@axis.apache.org>
>>
>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Blog - http://ssagara.blogspot.com
>> Web - http://people.apache.org/~sagara/<http://people.apache.org/%7Esagara/><
>> http://people.apache.org/%7Esagara/>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>


-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

Re: WSDL 2.0

Posted by Sagara Gunathunga <sa...@gmail.com>.
On Fri, Mar 19, 2010 at 2:37 AM, Demetris <de...@ece.neu.edu> wrote:

>
> Thanks Sagara ---
> Good links - I heard of Woden before but I never looked into it. If I don't
> want to parse the document manually what is the
> second choice (in the case of REST I mean). I know with SOAP how things
> work the stubs etc. But what does the REST
> case generate? Still stubs which means the application needs to use them to
> implement the invocations?
>

For REST invocation you can use Axis2 ServiceClient in a programmatic way or
simply you can use a web browser with url encoded request ( e.g. -
http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF).

Axis2 engine use HTTP Method of the incoming request or content type of  the
incoming request to identify REST request. This may help out [1] [2]

[1] - http://ws.apache.org/axis2/1_5_1/rest-ws.html
[2] - http://wso2.org/library/175

Thanks,

>
> Thanks
>
> Sagara Gunathunga wrote:
>
>> Hi,
>>
>> It is possible to use WSDL 2.0 to represent any REST service in the same
>> way as SOAP services [1] , if you want to parse WSDL 2.0 manually you can
>> use Apache Woden [2] for that , as an example have look at this class used
>> in Axis2 [3].
>>
>> Thanks,
>>
>> [1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
>> [2] - http://ws.apache.org/woden/
>> [3] -
>> http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>>
>> On Thu, Mar 18, 2010 at 11:01 AM, Demetris <demetris@ece.neu.edu <mailto:
>> demetris@ece.neu.edu>> wrote:
>>
>>    Hi all,
>>
>>    Are there any examples of parsing the WSDL 2.0 manually at the
>>    application level (instead of
>>    the Axis engine doing it?). I am assuming the parsing of a WSDL
>>    2.0 representing a SOAP
>>    service would be different than the REST one - where are these
>>    capabilities in the distribution
>>    so that I can make use of them?
>>
>>    Thanks very much in advance
>>
>>    ---------------------------------------------------------------------
>>    To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>>    <ma...@axis.apache.org>
>>
>>    For additional commands, e-mail: java-dev-help@axis.apache.org
>>    <ma...@axis.apache.org>
>>
>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Blog - http://ssagara.blogspot.com
>> Web - http://people.apache.org/~sagara/<http://people.apache.org/%7Esagara/><
>> http://people.apache.org/%7Esagara/>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>


-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

Re: WSDL 2.0

Posted by Sagara Gunathunga <sa...@gmail.com>.
On Fri, Mar 19, 2010 at 2:37 AM, Demetris <de...@ece.neu.edu> wrote:

>
> Thanks Sagara ---
> Good links - I heard of Woden before but I never looked into it. If I don't
> want to parse the document manually what is the
> second choice (in the case of REST I mean). I know with SOAP how things
> work the stubs etc. But what does the REST
> case generate? Still stubs which means the application needs to use them to
> implement the invocations?
>

For REST invocation you can use Axis2 ServiceClient in a programmatic way or
simply you can use a web browser with url encoded request ( e.g. -
http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF).

Axis2 engine use HTTP Method of the incoming request or content type of  the
incoming request to identify REST request. This may help out [1] [2]

[1] - http://ws.apache.org/axis2/1_5_1/rest-ws.html
[2] - http://wso2.org/library/175

Thanks,

>
> Thanks
>
> Sagara Gunathunga wrote:
>
>> Hi,
>>
>> It is possible to use WSDL 2.0 to represent any REST service in the same
>> way as SOAP services [1] , if you want to parse WSDL 2.0 manually you can
>> use Apache Woden [2] for that , as an example have look at this class used
>> in Axis2 [3].
>>
>> Thanks,
>>
>> [1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
>> [2] - http://ws.apache.org/woden/
>> [3] -
>> http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>>
>> On Thu, Mar 18, 2010 at 11:01 AM, Demetris <demetris@ece.neu.edu <mailto:
>> demetris@ece.neu.edu>> wrote:
>>
>>    Hi all,
>>
>>    Are there any examples of parsing the WSDL 2.0 manually at the
>>    application level (instead of
>>    the Axis engine doing it?). I am assuming the parsing of a WSDL
>>    2.0 representing a SOAP
>>    service would be different than the REST one - where are these
>>    capabilities in the distribution
>>    so that I can make use of them?
>>
>>    Thanks very much in advance
>>
>>    ---------------------------------------------------------------------
>>    To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>>    <ma...@axis.apache.org>
>>
>>    For additional commands, e-mail: java-dev-help@axis.apache.org
>>    <ma...@axis.apache.org>
>>
>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Blog - http://ssagara.blogspot.com
>> Web - http://people.apache.org/~sagara/<http://people.apache.org/%7Esagara/><
>> http://people.apache.org/%7Esagara/>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>


-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

Re: WSDL 2.0

Posted by Sagara Gunathunga <sa...@gmail.com>.
On Fri, Mar 19, 2010 at 2:37 AM, Demetris <de...@ece.neu.edu> wrote:

>
> Thanks Sagara ---
> Good links - I heard of Woden before but I never looked into it. If I don't
> want to parse the document manually what is the
> second choice (in the case of REST I mean). I know with SOAP how things
> work the stubs etc. But what does the REST
> case generate? Still stubs which means the application needs to use them to
> implement the invocations?
>

For REST invocation you can use Axis2 ServiceClient in a programmatic way or
simply you can use a web browser with url encoded request ( e.g. -
http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF).

Axis2 engine use HTTP Method of the incoming request or content type of  the
incoming request to identify REST request. This may help out [1] [2]

[1] - http://ws.apache.org/axis2/1_5_1/rest-ws.html
[2] - http://wso2.org/library/175

Thanks,

>
> Thanks
>
> Sagara Gunathunga wrote:
>
>> Hi,
>>
>> It is possible to use WSDL 2.0 to represent any REST service in the same
>> way as SOAP services [1] , if you want to parse WSDL 2.0 manually you can
>> use Apache Woden [2] for that , as an example have look at this class used
>> in Axis2 [3].
>>
>> Thanks,
>>
>> [1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
>> [2] - http://ws.apache.org/woden/
>> [3] -
>> http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>>
>> On Thu, Mar 18, 2010 at 11:01 AM, Demetris <demetris@ece.neu.edu <mailto:
>> demetris@ece.neu.edu>> wrote:
>>
>>    Hi all,
>>
>>    Are there any examples of parsing the WSDL 2.0 manually at the
>>    application level (instead of
>>    the Axis engine doing it?). I am assuming the parsing of a WSDL
>>    2.0 representing a SOAP
>>    service would be different than the REST one - where are these
>>    capabilities in the distribution
>>    so that I can make use of them?
>>
>>    Thanks very much in advance
>>
>>    ---------------------------------------------------------------------
>>    To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>>    <ma...@axis.apache.org>
>>
>>    For additional commands, e-mail: java-dev-help@axis.apache.org
>>    <ma...@axis.apache.org>
>>
>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Blog - http://ssagara.blogspot.com
>> Web - http://people.apache.org/~sagara/<http://people.apache.org/%7Esagara/><
>> http://people.apache.org/%7Esagara/>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>


-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

Re: WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Thanks Sagara ---
Good links - I heard of Woden before but I never looked into it. If I 
don't want to parse the document manually what is the
second choice (in the case of REST I mean). I know with SOAP how things 
work the stubs etc. But what does the REST
case generate? Still stubs which means the application needs to use them 
to implement the invocations?

Thanks

Sagara Gunathunga wrote:
> Hi,
>
> It is possible to use WSDL 2.0 to represent any REST service in the 
> same way as SOAP services [1] , if you want to parse WSDL 2.0 manually 
> you can use Apache Woden [2] for that , as an example have look at 
> this class used in Axis2 [3].
>
> Thanks,
>
> [1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
> [2] - http://ws.apache.org/woden/
> [3] - 
> http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>
> On Thu, Mar 18, 2010 at 11:01 AM, Demetris <demetris@ece.neu.edu 
> <ma...@ece.neu.edu>> wrote:
>
>     Hi all,
>
>     Are there any examples of parsing the WSDL 2.0 manually at the
>     application level (instead of
>     the Axis engine doing it?). I am assuming the parsing of a WSDL
>     2.0 representing a SOAP
>     service would be different than the REST one - where are these
>     capabilities in the distribution
>     so that I can make use of them?
>
>     Thanks very much in advance
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>     <ma...@axis.apache.org>
>     For additional commands, e-mail: java-dev-help@axis.apache.org
>     <ma...@axis.apache.org>
>
>
>
>
> -- 
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://people.apache.org/~sagara/ 
> <http://people.apache.org/%7Esagara/>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Thanks Sagara ---
Good links - I heard of Woden before but I never looked into it. If I 
don't want to parse the document manually what is the
second choice (in the case of REST I mean). I know with SOAP how things 
work the stubs etc. But what does the REST
case generate? Still stubs which means the application needs to use them 
to implement the invocations?

Thanks

Sagara Gunathunga wrote:
> Hi,
>
> It is possible to use WSDL 2.0 to represent any REST service in the 
> same way as SOAP services [1] , if you want to parse WSDL 2.0 manually 
> you can use Apache Woden [2] for that , as an example have look at 
> this class used in Axis2 [3].
>
> Thanks,
>
> [1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
> [2] - http://ws.apache.org/woden/
> [3] - 
> http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>
> On Thu, Mar 18, 2010 at 11:01 AM, Demetris <demetris@ece.neu.edu 
> <ma...@ece.neu.edu>> wrote:
>
>     Hi all,
>
>     Are there any examples of parsing the WSDL 2.0 manually at the
>     application level (instead of
>     the Axis engine doing it?). I am assuming the parsing of a WSDL
>     2.0 representing a SOAP
>     service would be different than the REST one - where are these
>     capabilities in the distribution
>     so that I can make use of them?
>
>     Thanks very much in advance
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>     <ma...@axis.apache.org>
>     For additional commands, e-mail: java-dev-help@axis.apache.org
>     <ma...@axis.apache.org>
>
>
>
>
> -- 
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://people.apache.org/~sagara/ 
> <http://people.apache.org/%7Esagara/>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Thanks Sagara ---
Good links - I heard of Woden before but I never looked into it. If I 
don't want to parse the document manually what is the
second choice (in the case of REST I mean). I know with SOAP how things 
work the stubs etc. But what does the REST
case generate? Still stubs which means the application needs to use them 
to implement the invocations?

Thanks

Sagara Gunathunga wrote:
> Hi,
>
> It is possible to use WSDL 2.0 to represent any REST service in the 
> same way as SOAP services [1] , if you want to parse WSDL 2.0 manually 
> you can use Apache Woden [2] for that , as an example have look at 
> this class used in Axis2 [3].
>
> Thanks,
>
> [1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
> [2] - http://ws.apache.org/woden/
> [3] - 
> http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>
> On Thu, Mar 18, 2010 at 11:01 AM, Demetris <demetris@ece.neu.edu 
> <ma...@ece.neu.edu>> wrote:
>
>     Hi all,
>
>     Are there any examples of parsing the WSDL 2.0 manually at the
>     application level (instead of
>     the Axis engine doing it?). I am assuming the parsing of a WSDL
>     2.0 representing a SOAP
>     service would be different than the REST one - where are these
>     capabilities in the distribution
>     so that I can make use of them?
>
>     Thanks very much in advance
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>     <ma...@axis.apache.org>
>     For additional commands, e-mail: java-dev-help@axis.apache.org
>     <ma...@axis.apache.org>
>
>
>
>
> -- 
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://people.apache.org/~sagara/ 
> <http://people.apache.org/%7Esagara/>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Thanks Sagara ---
Good links - I heard of Woden before but I never looked into it. If I 
don't want to parse the document manually what is the
second choice (in the case of REST I mean). I know with SOAP how things 
work the stubs etc. But what does the REST
case generate? Still stubs which means the application needs to use them 
to implement the invocations?

Thanks

Sagara Gunathunga wrote:
> Hi,
>
> It is possible to use WSDL 2.0 to represent any REST service in the 
> same way as SOAP services [1] , if you want to parse WSDL 2.0 manually 
> you can use Apache Woden [2] for that , as an example have look at 
> this class used in Axis2 [3].
>
> Thanks,
>
> [1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
> [2] - http://ws.apache.org/woden/
> [3] - 
> http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>
> On Thu, Mar 18, 2010 at 11:01 AM, Demetris <demetris@ece.neu.edu 
> <ma...@ece.neu.edu>> wrote:
>
>     Hi all,
>
>     Are there any examples of parsing the WSDL 2.0 manually at the
>     application level (instead of
>     the Axis engine doing it?). I am assuming the parsing of a WSDL
>     2.0 representing a SOAP
>     service would be different than the REST one - where are these
>     capabilities in the distribution
>     so that I can make use of them?
>
>     Thanks very much in advance
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>     <ma...@axis.apache.org>
>     For additional commands, e-mail: java-dev-help@axis.apache.org
>     <ma...@axis.apache.org>
>
>
>
>
> -- 
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://people.apache.org/~sagara/ 
> <http://people.apache.org/%7Esagara/>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Thanks Sagara ---
Good links - I heard of Woden before but I never looked into it. If I 
don't want to parse the document manually what is the
second choice (in the case of REST I mean). I know with SOAP how things 
work the stubs etc. But what does the REST
case generate? Still stubs which means the application needs to use them 
to implement the invocations?

Thanks

Sagara Gunathunga wrote:
> Hi,
>
> It is possible to use WSDL 2.0 to represent any REST service in the 
> same way as SOAP services [1] , if you want to parse WSDL 2.0 manually 
> you can use Apache Woden [2] for that , as an example have look at 
> this class used in Axis2 [3].
>
> Thanks,
>
> [1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
> [2] - http://ws.apache.org/woden/
> [3] - 
> http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>
> On Thu, Mar 18, 2010 at 11:01 AM, Demetris <demetris@ece.neu.edu 
> <ma...@ece.neu.edu>> wrote:
>
>     Hi all,
>
>     Are there any examples of parsing the WSDL 2.0 manually at the
>     application level (instead of
>     the Axis engine doing it?). I am assuming the parsing of a WSDL
>     2.0 representing a SOAP
>     service would be different than the REST one - where are these
>     capabilities in the distribution
>     so that I can make use of them?
>
>     Thanks very much in advance
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>     <ma...@axis.apache.org>
>     For additional commands, e-mail: java-dev-help@axis.apache.org
>     <ma...@axis.apache.org>
>
>
>
>
> -- 
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://people.apache.org/~sagara/ 
> <http://people.apache.org/%7Esagara/>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: WSDL 2.0

Posted by Sagara Gunathunga <sa...@gmail.com>.
Hi,

It is possible to use WSDL 2.0 to represent any REST service in the same way
as SOAP services [1] , if you want to parse WSDL 2.0 manually you can use
Apache Woden [2] for that , as an example have look at this class used in
Axis2 [3].

Thanks,

[1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
[2] - http://ws.apache.org/woden/
[3] -
http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java

On Thu, Mar 18, 2010 at 11:01 AM, Demetris <de...@ece.neu.edu> wrote:

> Hi all,
>
> Are there any examples of parsing the WSDL 2.0 manually at the application
> level (instead of
> the Axis engine doing it?). I am assuming the parsing of a WSDL 2.0
> representing a SOAP
> service would be different than the REST one - where are these capabilities
> in the distribution
> so that I can make use of them?
>
> Thanks very much in advance
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>


-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

Re: WSDL 2.0

Posted by Sagara Gunathunga <sa...@gmail.com>.
Hi,

It is possible to use WSDL 2.0 to represent any REST service in the same way
as SOAP services [1] , if you want to parse WSDL 2.0 manually you can use
Apache Woden [2] for that , as an example have look at this class used in
Axis2 [3].

Thanks,

[1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
[2] - http://ws.apache.org/woden/
[3] -
http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java

On Thu, Mar 18, 2010 at 11:01 AM, Demetris <de...@ece.neu.edu> wrote:

> Hi all,
>
> Are there any examples of parsing the WSDL 2.0 manually at the application
> level (instead of
> the Axis engine doing it?). I am assuming the parsing of a WSDL 2.0
> representing a SOAP
> service would be different than the REST one - where are these capabilities
> in the distribution
> so that I can make use of them?
>
> Thanks very much in advance
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>


-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

Re: WSDL 2.0

Posted by Sagara Gunathunga <sa...@gmail.com>.
Hi,

It is possible to use WSDL 2.0 to represent any REST service in the same way
as SOAP services [1] , if you want to parse WSDL 2.0 manually you can use
Apache Woden [2] for that , as an example have look at this class used in
Axis2 [3].

Thanks,

[1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
[2] - http://ws.apache.org/woden/
[3] -
http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java

On Thu, Mar 18, 2010 at 11:01 AM, Demetris <de...@ece.neu.edu> wrote:

> Hi all,
>
> Are there any examples of parsing the WSDL 2.0 manually at the application
> level (instead of
> the Axis engine doing it?). I am assuming the parsing of a WSDL 2.0
> representing a SOAP
> service would be different than the REST one - where are these capabilities
> in the distribution
> so that I can make use of them?
>
> Thanks very much in advance
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>


-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

Re: WSDL 2.0

Posted by Sagara Gunathunga <sa...@gmail.com>.
Hi,

It is possible to use WSDL 2.0 to represent any REST service in the same way
as SOAP services [1] , if you want to parse WSDL 2.0 manually you can use
Apache Woden [2] for that , as an example have look at this class used in
Axis2 [3].

Thanks,

[1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
[2] - http://ws.apache.org/woden/
[3] -
http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java

On Thu, Mar 18, 2010 at 11:01 AM, Demetris <de...@ece.neu.edu> wrote:

> Hi all,
>
> Are there any examples of parsing the WSDL 2.0 manually at the application
> level (instead of
> the Axis engine doing it?). I am assuming the parsing of a WSDL 2.0
> representing a SOAP
> service would be different than the REST one - where are these capabilities
> in the distribution
> so that I can make use of them?
>
> Thanks very much in advance
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>


-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

Re: WSDL 2.0

Posted by Sagara Gunathunga <sa...@gmail.com>.
Hi,

It is possible to use WSDL 2.0 to represent any REST service in the same way
as SOAP services [1] , if you want to parse WSDL 2.0 manually you can use
Apache Woden [2] for that , as an example have look at this class used in
Axis2 [3].

Thanks,

[1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
[2] - http://ws.apache.org/woden/
[3] -
http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java

On Thu, Mar 18, 2010 at 11:01 AM, Demetris <de...@ece.neu.edu> wrote:

> Hi all,
>
> Are there any examples of parsing the WSDL 2.0 manually at the application
> level (instead of
> the Axis engine doing it?). I am assuming the parsing of a WSDL 2.0
> representing a SOAP
> service would be different than the REST one - where are these capabilities
> in the distribution
> so that I can make use of them?
>
> Thanks very much in advance
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>


-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Hi all,

Are there any examples of parsing the WSDL 2.0 manually at the 
application level (instead of
the Axis engine doing it?). I am assuming the parsing of a WSDL 2.0 
representing a SOAP
service would be different than the REST one - where are these 
capabilities in the distribution
so that I can make use of them?

Thanks very much in advance

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Hi all,

Are there any examples of parsing the WSDL 2.0 manually at the 
application level (instead of
the Axis engine doing it?). I am assuming the parsing of a WSDL 2.0 
representing a SOAP
service would be different than the REST one - where are these 
capabilities in the distribution
so that I can make use of them?

Thanks very much in advance

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Hi all,

Are there any examples of parsing the WSDL 2.0 manually at the 
application level (instead of
the Axis engine doing it?). I am assuming the parsing of a WSDL 2.0 
representing a SOAP
service would be different than the REST one - where are these 
capabilities in the distribution
so that I can make use of them?

Thanks very much in advance

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Hi all,

Are there any examples of parsing the WSDL 2.0 manually at the 
application level (instead of
the Axis engine doing it?). I am assuming the parsing of a WSDL 2.0 
representing a SOAP
service would be different than the REST one - where are these 
capabilities in the distribution
so that I can make use of them?

Thanks very much in advance

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


WSDL 2.0

Posted by Demetris <de...@ece.neu.edu>.
Hi all,

Are there any examples of parsing the WSDL 2.0 manually at the 
application level (instead of
the Axis engine doing it?). I am assuming the parsing of a WSDL 2.0 
representing a SOAP
service would be different than the REST one - where are these 
capabilities in the distribution
so that I can make use of them?

Thanks very much in advance

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Closed: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues closed AXIS2-4650.
-----------------------------------------------

    Resolution: Fixed

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843447#action_12843447 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4650:
-----------------------------------------------------

can you attach a complete sample class with shows the issue.

I tried with this but it works fine

public class Entity {

    public class EntityCompanyWithContactType {
        private EntityCompanyType entity;
        private int age;

        public EntityCompanyType getEntity() {
            return entity;
        }

        public void setEntity(EntityCompanyType entity) {
            this.entity = entity;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
    }

    public int test(EntityCompanyWithContactType contactType){
        return 2;
    }
}

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845274#action_12845274 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Hello Amila,


When i build using what you tould me:

[INFO] [clean:clean]
[INFO] [remote-resources:process {execution: default}]
[INFO] [remote-resources:process {execution: legal-files}]
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 9 source files to /root/axis2/modules/java2wsdl/target/classes
[INFO] [resources:testResources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
     [echo] Generating p2n.wsdl
     [java] Exception in thread "main" java.lang.ClassNotFoundException: org.apache.axis2.description.CalculatorService
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
     [java]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:247)
     [java]     at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(DefaultSchemaGenerator.java:140)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLBuilder.resolveSchemaGen(Java2WSDLBuilder.java:368)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilder.java:211)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:59)
     [java]     at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:32)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: Java returned: 1

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute
[INFO] Finished at: Sun Mar 14 16:55:15 WET 2010
[INFO] Final Memory: 48M/63M
[INFO] ------------------------------------------------------------------------


I'm trying, neitherless calling java2wsdl class to test, like this:

/* In this dir i have my class Entity.class(the class i want to generate wsdl), axis2-SNAPSHOT.jar, the unpacked jar(which creates org dir and sub-folders(i will attach the tree view in this issue)
*/
// this is me trying to generate de wsdl, from the Java Class

/root/java2wsdl$ rm -f abc.wsdl; export JAVA_HOME=/usr/lib/jvm/java-6-sun; export AXIS2_HOME=/opt/wso2wsas; java -cp .:$AXIS2_HOME/lib/commons-logging-1.1.1.jar:$AXIS2_HOME/repository/components/plugins/axiom-1.2.7.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/neethi-2.0.4.wso2v1.jar org.apache.ws.java2wsdl.Java2WSDL -of abc.wsdl -cn Entity

And it gaves me this error:

Exception in thread "main" java.lang.RuntimeException: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.<init>(Java2WSDLBuilder.java:108)
        at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.<init>(Java2WSDLCodegenEngine.java:51)
        at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:31)
Caused by: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender
        at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:711)
        at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:122)
        at org.apache.axis2.context.ConfigurationContextFactory.createBasicConfigurationContext(ConfigurationContextFactory.java:343)
        at org.apache.axis2.context.ConfigurationContextFactory.createDefaultConfigurationContext(ConfigurationContextFactory.java:330)
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.<init>(Java2WSDLBuilder.java:101)
        ... 2 more
Caused by: java.lang.ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
        at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:686)
        ... 6 more


And thoughts, ideas?









> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Attachment: entity.txt

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844005#action_12844005 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

First of all, many thanks Amila for your correcting time . I'm simply amazed :D

Question:

What should i do for using the new revision? Sorry i'm new to this.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843495#action_12843495 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.





> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Resolved: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4650.
-------------------------------------------------

    Resolution: Fixed

fixed in revision 921694

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Closed: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues closed AXIS2-4650.
-----------------------------------------------

    Resolution: Fixed

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844005#action_12844005 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

First of all, many thanks Amila for your correcting time . I'm simply amazed :D

Question:

What should i do for using the new revision? Sorry i'm new to this.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Reopened: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues reopened AXIS2-4650:
-------------------------------------------------


How can i use this revision?

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Issue Comment Edited: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843640#action_12843640 ] 

Vitor Manuel Alves Rodrigues edited comment on AXIS2-4650 at 3/10/10 5:19 PM:
------------------------------------------------------------------------------

Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
    }
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?


      was (Author: vitor rodrigues):
    Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?

  
> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844806#action_12844806 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4650:
-----------------------------------------------------

you can use a SNAPSHOT build.

please take an update from here and build

use mvn clean install -Dmaven.test.skip=true to skip tests.

[1] https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Attachment: tree_of_org.txt

The snapshot of unpacked SNAPSHOT.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843495#action_12843495 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.





> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Resolved: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4650.
-------------------------------------------------

    Resolution: Fixed

fixed in revision 921694

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845290#action_12845290 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

It worked...i just had to pin-point the "new" jars for it to work:

 rm -f wp.wsdl; export JAVA_HOME=/usr/lib/jvm/java-6-sun; export AXIS2_HOME=/opt/wso2wsas; java -cp .:$AXIS2_HOME/lib/commons-logging-1.1.1.jar:$AXIS2_HOME/repository/components/plugins/axiom-1.2.7.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/neethi-2.0.4.wso2v1.jar:../../root/axis2/modules/transport/local/target/axis2-transport-local-SNAPSHOT.jar:../../root/axis2/modules/transport/http/target/axis2-transport-http-SNAPSHOT.jar:$AXIS2_HOME/repository/components/plugins/XmlSchema-1.4.2.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/wsdl4j-1.6.2.wso2v1.jar org.apache.ws.java2wsdl.Java2WSDL -of wp.wsdl -tn "http://entitas.turismodeportugal.pt" -cn pt.turismodeportugal.entitas.Entity

Thks Amila. Now i will make a diff between the jars that need to be crushed by this new revision ;)

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Resolved: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4650.
-------------------------------------------------

    Resolution: Fixed

fixed in revision 921694

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Description: 
Hello everyone,

I have this snippet from the WSDL:

...
<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
                </xs:sequence>
</xs:complexType>
...

The correct would be this:

<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
                </xs:sequence>
</xs:complexType>

I have this in Java:

public class Entity {
...
/*Inner class*/
       public class EntityCompanyWithContactType {
        private EntityCompanyType entity;
        private DigitalAddress.DigitalAddressType[] digital_address;
        private PhoneNumber.PhoneNumberType[] phone_number;
        private PostalAddress.PostalAddressType[] postal_address;
        private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;


            /**
         * The default constructor.
         */
        public EntityCompanyWithContactType(){}
        /**
         * The constructor with all the input for one record.
         * @param entity value;
         * @param digital_address list value;
         * @param phone_number list value;
         * @param postal_address list value;
         * @param postal_address__phone_number list value;
         */
        public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
 
.....
}

I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>

My build.xml  :
..
<target name="install"
          depends="build-service,doc"
          description="Installs the service package AAR into the Web service server repository.">
    <echo message="Copying the created AAR files into the repository..."/>
    <copy toDir="${repository.dir}/${services.dir}">
      <fileset dir="${services.dir}">
        <include name="**/*.aar"/>
      </fileset>
    </copy>
  </target>
...

What am i doing wrong? Help. :(

For more info, please please contact me :)







  was:
Hello everyone,

I have this snippet from the WSDL:

...
<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
                </xs:sequence>
</xs:complexType>
...

The correct would be this:

<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
                </xs:sequence>
</xs:complexType>

I have this in Java:

public class Entity {
...
/*Inner class*/
    public class EntityPersonWithContactType {
        private EntityPersonType entity;
        private DigitalAddress.DigitalAddressType[] digital_address;
        private PhoneNumber.PhoneNumberType[] phone_number;
        private PostalAddress.PostalAddressType[] postal_address;
        private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;

        /**
         * The default constructor.
         */
        public EntityPersonWithContactType(){}
        /**
         * The constructor with all the input for one record.
         * @param entity value;
         * @param digital_address list value;
         * @param phone_number list value;
         * @param postal_address list value;
         * @param postal_address__phone_number list value;
         */
       public EntityPersonWithContactType(EntityPersonType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) {
.....
}

I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>

My build.xml  :
..
<target name="install"
          depends="build-service,doc"
          description="Installs the service package AAR into the Web service server repository.">
    <echo message="Copying the created AAR files into the repository..."/>
    <copy toDir="${repository.dir}/${services.dir}">
      <fileset dir="${services.dir}">
        <include name="**/*.aar"/>
      </fileset>
    </copy>
  </target>
...

What am i doing wrong? Help. :(

For more info, please please contact me :)








> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844005#action_12844005 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

First of all, many thanks Amila for your correcting time . I'm simply amazed :D

Question:

What should i do for using the new revision? Sorry i'm new to this.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Closed: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues closed AXIS2-4650.
-----------------------------------------------

    Resolution: Fixed

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Attachment: tree_of_org.txt

The snapshot of unpacked SNAPSHOT.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845274#action_12845274 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Hello Amila,


When i build using what you tould me:

[INFO] [clean:clean]
[INFO] [remote-resources:process {execution: default}]
[INFO] [remote-resources:process {execution: legal-files}]
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 9 source files to /root/axis2/modules/java2wsdl/target/classes
[INFO] [resources:testResources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
     [echo] Generating p2n.wsdl
     [java] Exception in thread "main" java.lang.ClassNotFoundException: org.apache.axis2.description.CalculatorService
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
     [java]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:247)
     [java]     at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(DefaultSchemaGenerator.java:140)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLBuilder.resolveSchemaGen(Java2WSDLBuilder.java:368)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilder.java:211)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:59)
     [java]     at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:32)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: Java returned: 1

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute
[INFO] Finished at: Sun Mar 14 16:55:15 WET 2010
[INFO] Final Memory: 48M/63M
[INFO] ------------------------------------------------------------------------


I'm trying, neitherless calling java2wsdl class to test, like this:

/* In this dir i have my class Entity.class(the class i want to generate wsdl), axis2-SNAPSHOT.jar, the unpacked jar(which creates org dir and sub-folders(i will attach the tree view in this issue)
*/
// this is me trying to generate de wsdl, from the Java Class

/root/java2wsdl$ rm -f abc.wsdl; export JAVA_HOME=/usr/lib/jvm/java-6-sun; export AXIS2_HOME=/opt/wso2wsas; java -cp .:$AXIS2_HOME/lib/commons-logging-1.1.1.jar:$AXIS2_HOME/repository/components/plugins/axiom-1.2.7.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/neethi-2.0.4.wso2v1.jar org.apache.ws.java2wsdl.Java2WSDL -of abc.wsdl -cn Entity

And it gaves me this error:

Exception in thread "main" java.lang.RuntimeException: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.<init>(Java2WSDLBuilder.java:108)
        at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.<init>(Java2WSDLCodegenEngine.java:51)
        at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:31)
Caused by: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender
        at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:711)
        at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:122)
        at org.apache.axis2.context.ConfigurationContextFactory.createBasicConfigurationContext(ConfigurationContextFactory.java:343)
        at org.apache.axis2.context.ConfigurationContextFactory.createDefaultConfigurationContext(ConfigurationContextFactory.java:330)
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.<init>(Java2WSDLBuilder.java:101)
        ... 2 more
Caused by: java.lang.ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
        at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:686)
        ... 6 more


And thoughts, ideas?









> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Issue Comment Edited: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843495#action_12843495 ] 

Vitor Manuel Alves Rodrigues edited comment on AXIS2-4650 at 3/10/10 9:38 AM:
------------------------------------------------------------------------------

Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.







      was (Author: vitor rodrigues):
    Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.




  
> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Attachment: entity.txt

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Issue Comment Edited: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843640#action_12843640 ] 

Vitor Manuel Alves Rodrigues edited comment on AXIS2-4650 at 3/10/10 5:19 PM:
------------------------------------------------------------------------------

Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
    }
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?


      was (Author: vitor rodrigues):
    Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?

  
> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843640#action_12843640 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?


> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843447#action_12843447 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4650:
-----------------------------------------------------

can you attach a complete sample class with shows the issue.

I tried with this but it works fine

public class Entity {

    public class EntityCompanyWithContactType {
        private EntityCompanyType entity;
        private int age;

        public EntityCompanyType getEntity() {
            return entity;
        }

        public void setEntity(EntityCompanyType entity) {
            this.entity = entity;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
    }

    public int test(EntityCompanyWithContactType contactType){
        return 2;
    }
}

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845290#action_12845290 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

It worked...i just had to pin-point the "new" jars for it to work:

 rm -f wp.wsdl; export JAVA_HOME=/usr/lib/jvm/java-6-sun; export AXIS2_HOME=/opt/wso2wsas; java -cp .:$AXIS2_HOME/lib/commons-logging-1.1.1.jar:$AXIS2_HOME/repository/components/plugins/axiom-1.2.7.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/neethi-2.0.4.wso2v1.jar:../../root/axis2/modules/transport/local/target/axis2-transport-local-SNAPSHOT.jar:../../root/axis2/modules/transport/http/target/axis2-transport-http-SNAPSHOT.jar:$AXIS2_HOME/repository/components/plugins/XmlSchema-1.4.2.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/wsdl4j-1.6.2.wso2v1.jar org.apache.ws.java2wsdl.Java2WSDL -of wp.wsdl -tn "http://entitas.turismodeportugal.pt" -cn pt.turismodeportugal.entitas.Entity

Thks Amila. Now i will make a diff between the jars that need to be crushed by this new revision ;)

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Resolved: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4650.
-------------------------------------------------

    Resolution: Fixed

fixed in revision 921694

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844005#action_12844005 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

First of all, many thanks Amila for your correcting time . I'm simply amazed :D

Question:

What should i do for using the new revision? Sorry i'm new to this.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Description: 
Hello everyone,

I have this snippet from the WSDL:

...
<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
                </xs:sequence>
</xs:complexType>
...

The correct would be this:

<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
                </xs:sequence>
</xs:complexType>

I have this in Java:

public class Entity {
...
/*Inner class*/
       public class EntityCompanyWithContactType {
        private EntityCompanyType entity;
        private DigitalAddress.DigitalAddressType[] digital_address;
        private PhoneNumber.PhoneNumberType[] phone_number;
        private PostalAddress.PostalAddressType[] postal_address;
        private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;


            /**
         * The default constructor.
         */
        public EntityCompanyWithContactType(){}
        /**
         * The constructor with all the input for one record.
         * @param entity value;
         * @param digital_address list value;
         * @param phone_number list value;
         * @param postal_address list value;
         * @param postal_address__phone_number list value;
         */
        public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
 
.....
}

I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>

My build.xml  :
..
<target name="install"
          depends="build-service,doc"
          description="Installs the service package AAR into the Web service server repository.">
    <echo message="Copying the created AAR files into the repository..."/>
    <copy toDir="${repository.dir}/${services.dir}">
      <fileset dir="${services.dir}">
        <include name="**/*.aar"/>
      </fileset>
    </copy>
  </target>
...

What am i doing wrong? Help. :(

For more info, please please contact me :)







  was:
Hello everyone,

I have this snippet from the WSDL:

...
<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
                </xs:sequence>
</xs:complexType>
...

The correct would be this:

<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
                </xs:sequence>
</xs:complexType>

I have this in Java:

public class Entity {
...
/*Inner class*/
    public class EntityPersonWithContactType {
        private EntityPersonType entity;
        private DigitalAddress.DigitalAddressType[] digital_address;
        private PhoneNumber.PhoneNumberType[] phone_number;
        private PostalAddress.PostalAddressType[] postal_address;
        private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;

        /**
         * The default constructor.
         */
        public EntityPersonWithContactType(){}
        /**
         * The constructor with all the input for one record.
         * @param entity value;
         * @param digital_address list value;
         * @param phone_number list value;
         * @param postal_address list value;
         * @param postal_address__phone_number list value;
         */
       public EntityPersonWithContactType(EntityPersonType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) {
.....
}

I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>

My build.xml  :
..
<target name="install"
          depends="build-service,doc"
          description="Installs the service package AAR into the Web service server repository.">
    <echo message="Copying the created AAR files into the repository..."/>
    <copy toDir="${repository.dir}/${services.dir}">
      <fileset dir="${services.dir}">
        <include name="**/*.aar"/>
      </fileset>
    </copy>
  </target>
...

What am i doing wrong? Help. :(

For more info, please please contact me :)








> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843640#action_12843640 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?


> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Issue Comment Edited: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843640#action_12843640 ] 

Vitor Manuel Alves Rodrigues edited comment on AXIS2-4650 at 3/10/10 5:19 PM:
------------------------------------------------------------------------------

Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
    }
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?


      was (Author: vitor rodrigues):
    Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?

  
> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Issue Comment Edited: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843495#action_12843495 ] 

Vitor Manuel Alves Rodrigues edited comment on AXIS2-4650 at 3/10/10 9:38 AM:
------------------------------------------------------------------------------

Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.







      was (Author: vitor rodrigues):
    Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.




  
> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843640#action_12843640 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?


> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845291#action_12845291 ] 

Andreas Veithen commented on AXIS2-4650:
----------------------------------------

There was indeed a build failure when specifying maven.test.skip=true on the command line. This should be fixed now.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Closed: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues closed AXIS2-4650.
-----------------------------------------------

    Resolution: Fixed

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843495#action_12843495 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.





> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Description: 
Hello everyone,

I have this snippet from the WSDL:

...
<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
                </xs:sequence>
</xs:complexType>
...

The correct would be this:

<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
                </xs:sequence>
</xs:complexType>

I have this in Java:

public class Entity {
...
/*Inner class*/
       public class EntityCompanyWithContactType {
        private EntityCompanyType entity;
        private DigitalAddress.DigitalAddressType[] digital_address;
        private PhoneNumber.PhoneNumberType[] phone_number;
        private PostalAddress.PostalAddressType[] postal_address;
        private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;


            /**
         * The default constructor.
         */
        public EntityCompanyWithContactType(){}
        /**
         * The constructor with all the input for one record.
         * @param entity value;
         * @param digital_address list value;
         * @param phone_number list value;
         * @param postal_address list value;
         * @param postal_address__phone_number list value;
         */
        public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
 
.....
}

I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>

My build.xml  :
..
<target name="install"
          depends="build-service,doc"
          description="Installs the service package AAR into the Web service server repository.">
    <echo message="Copying the created AAR files into the repository..."/>
    <copy toDir="${repository.dir}/${services.dir}">
      <fileset dir="${services.dir}">
        <include name="**/*.aar"/>
      </fileset>
    </copy>
  </target>
...

What am i doing wrong? Help. :(

For more info, please please contact me :)







  was:
Hello everyone,

I have this snippet from the WSDL:

...
<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
                </xs:sequence>
</xs:complexType>
...

The correct would be this:

<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
                </xs:sequence>
</xs:complexType>

I have this in Java:

public class Entity {
...
/*Inner class*/
    public class EntityPersonWithContactType {
        private EntityPersonType entity;
        private DigitalAddress.DigitalAddressType[] digital_address;
        private PhoneNumber.PhoneNumberType[] phone_number;
        private PostalAddress.PostalAddressType[] postal_address;
        private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;

        /**
         * The default constructor.
         */
        public EntityPersonWithContactType(){}
        /**
         * The constructor with all the input for one record.
         * @param entity value;
         * @param digital_address list value;
         * @param phone_number list value;
         * @param postal_address list value;
         * @param postal_address__phone_number list value;
         */
       public EntityPersonWithContactType(EntityPersonType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) {
.....
}

I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>

My build.xml  :
..
<target name="install"
          depends="build-service,doc"
          description="Installs the service package AAR into the Web service server repository.">
    <echo message="Copying the created AAR files into the repository..."/>
    <copy toDir="${repository.dir}/${services.dir}">
      <fileset dir="${services.dir}">
        <include name="**/*.aar"/>
      </fileset>
    </copy>
  </target>
...

What am i doing wrong? Help. :(

For more info, please please contact me :)








> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Reopened: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues reopened AXIS2-4650:
-------------------------------------------------


How can i use this revision?

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845290#action_12845290 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

It worked...i just had to pin-point the "new" jars for it to work:

 rm -f wp.wsdl; export JAVA_HOME=/usr/lib/jvm/java-6-sun; export AXIS2_HOME=/opt/wso2wsas; java -cp .:$AXIS2_HOME/lib/commons-logging-1.1.1.jar:$AXIS2_HOME/repository/components/plugins/axiom-1.2.7.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/neethi-2.0.4.wso2v1.jar:../../root/axis2/modules/transport/local/target/axis2-transport-local-SNAPSHOT.jar:../../root/axis2/modules/transport/http/target/axis2-transport-http-SNAPSHOT.jar:$AXIS2_HOME/repository/components/plugins/XmlSchema-1.4.2.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/wsdl4j-1.6.2.wso2v1.jar org.apache.ws.java2wsdl.Java2WSDL -of wp.wsdl -tn "http://entitas.turismodeportugal.pt" -cn pt.turismodeportugal.entitas.Entity

Thks Amila. Now i will make a diff between the jars that need to be crushed by this new revision ;)

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844806#action_12844806 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4650:
-----------------------------------------------------

you can use a SNAPSHOT build.

please take an update from here and build

use mvn clean install -Dmaven.test.skip=true to skip tests.

[1] https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844806#action_12844806 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4650:
-----------------------------------------------------

you can use a SNAPSHOT build.

please take an update from here and build

use mvn clean install -Dmaven.test.skip=true to skip tests.

[1] https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845274#action_12845274 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Hello Amila,


When i build using what you tould me:

[INFO] [clean:clean]
[INFO] [remote-resources:process {execution: default}]
[INFO] [remote-resources:process {execution: legal-files}]
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 9 source files to /root/axis2/modules/java2wsdl/target/classes
[INFO] [resources:testResources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
     [echo] Generating p2n.wsdl
     [java] Exception in thread "main" java.lang.ClassNotFoundException: org.apache.axis2.description.CalculatorService
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
     [java]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:247)
     [java]     at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(DefaultSchemaGenerator.java:140)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLBuilder.resolveSchemaGen(Java2WSDLBuilder.java:368)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilder.java:211)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:59)
     [java]     at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:32)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: Java returned: 1

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute
[INFO] Finished at: Sun Mar 14 16:55:15 WET 2010
[INFO] Final Memory: 48M/63M
[INFO] ------------------------------------------------------------------------


I'm trying, neitherless calling java2wsdl class to test, like this:

/* In this dir i have my class Entity.class(the class i want to generate wsdl), axis2-SNAPSHOT.jar, the unpacked jar(which creates org dir and sub-folders(i will attach the tree view in this issue)
*/
// this is me trying to generate de wsdl, from the Java Class

/root/java2wsdl$ rm -f abc.wsdl; export JAVA_HOME=/usr/lib/jvm/java-6-sun; export AXIS2_HOME=/opt/wso2wsas; java -cp .:$AXIS2_HOME/lib/commons-logging-1.1.1.jar:$AXIS2_HOME/repository/components/plugins/axiom-1.2.7.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/neethi-2.0.4.wso2v1.jar org.apache.ws.java2wsdl.Java2WSDL -of abc.wsdl -cn Entity

And it gaves me this error:

Exception in thread "main" java.lang.RuntimeException: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.<init>(Java2WSDLBuilder.java:108)
        at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.<init>(Java2WSDLCodegenEngine.java:51)
        at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:31)
Caused by: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender
        at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:711)
        at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:122)
        at org.apache.axis2.context.ConfigurationContextFactory.createBasicConfigurationContext(ConfigurationContextFactory.java:343)
        at org.apache.axis2.context.ConfigurationContextFactory.createDefaultConfigurationContext(ConfigurationContextFactory.java:330)
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.<init>(Java2WSDLBuilder.java:101)
        ... 2 more
Caused by: java.lang.ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
        at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:686)
        ... 6 more


And thoughts, ideas?









> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Description: 
Hello everyone,

I have this snippet from the WSDL:

...
<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
                </xs:sequence>
</xs:complexType>
...

The correct would be this:

<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
                </xs:sequence>
</xs:complexType>

I have this in Java:

public class Entity {
...
/*Inner class*/
       public class EntityCompanyWithContactType {
        private EntityCompanyType entity;
        private DigitalAddress.DigitalAddressType[] digital_address;
        private PhoneNumber.PhoneNumberType[] phone_number;
        private PostalAddress.PostalAddressType[] postal_address;
        private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;


            /**
         * The default constructor.
         */
        public EntityCompanyWithContactType(){}
        /**
         * The constructor with all the input for one record.
         * @param entity value;
         * @param digital_address list value;
         * @param phone_number list value;
         * @param postal_address list value;
         * @param postal_address__phone_number list value;
         */
        public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
 
.....
}

I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>

My build.xml  :
..
<target name="install"
          depends="build-service,doc"
          description="Installs the service package AAR into the Web service server repository.">
    <echo message="Copying the created AAR files into the repository..."/>
    <copy toDir="${repository.dir}/${services.dir}">
      <fileset dir="${services.dir}">
        <include name="**/*.aar"/>
      </fileset>
    </copy>
  </target>
...

What am i doing wrong? Help. :(

For more info, please please contact me :)







  was:
Hello everyone,

I have this snippet from the WSDL:

...
<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
                </xs:sequence>
</xs:complexType>
...

The correct would be this:

<xs:complexType name="EntityCompanyWithCountType">
                <xs:sequence>
                    <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
                </xs:sequence>
</xs:complexType>

I have this in Java:

public class Entity {
...
/*Inner class*/
    public class EntityPersonWithContactType {
        private EntityPersonType entity;
        private DigitalAddress.DigitalAddressType[] digital_address;
        private PhoneNumber.PhoneNumberType[] phone_number;
        private PostalAddress.PostalAddressType[] postal_address;
        private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;

        /**
         * The default constructor.
         */
        public EntityPersonWithContactType(){}
        /**
         * The constructor with all the input for one record.
         * @param entity value;
         * @param digital_address list value;
         * @param phone_number list value;
         * @param postal_address list value;
         * @param postal_address__phone_number list value;
         */
       public EntityPersonWithContactType(EntityPersonType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) {
.....
}

I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>

My build.xml  :
..
<target name="install"
          depends="build-service,doc"
          description="Installs the service package AAR into the Web service server repository.">
    <echo message="Copying the created AAR files into the repository..."/>
    <copy toDir="${repository.dir}/${services.dir}">
      <fileset dir="${services.dir}">
        <include name="**/*.aar"/>
      </fileset>
    </copy>
  </target>
...

What am i doing wrong? Help. :(

For more info, please please contact me :)








> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Reopened: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues reopened AXIS2-4650:
-------------------------------------------------


How can i use this revision?

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844806#action_12844806 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4650:
-----------------------------------------------------

you can use a SNAPSHOT build.

please take an update from here and build

use mvn clean install -Dmaven.test.skip=true to skip tests.

[1] https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Attachment: entity.txt

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Closed: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues closed AXIS2-4650.
-----------------------------------------------

    Resolution: Fixed

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Attachment: entity.txt

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845290#action_12845290 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

It worked...i just had to pin-point the "new" jars for it to work:

 rm -f wp.wsdl; export JAVA_HOME=/usr/lib/jvm/java-6-sun; export AXIS2_HOME=/opt/wso2wsas; java -cp .:$AXIS2_HOME/lib/commons-logging-1.1.1.jar:$AXIS2_HOME/repository/components/plugins/axiom-1.2.7.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/neethi-2.0.4.wso2v1.jar:../../root/axis2/modules/transport/local/target/axis2-transport-local-SNAPSHOT.jar:../../root/axis2/modules/transport/http/target/axis2-transport-http-SNAPSHOT.jar:$AXIS2_HOME/repository/components/plugins/XmlSchema-1.4.2.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/wsdl4j-1.6.2.wso2v1.jar org.apache.ws.java2wsdl.Java2WSDL -of wp.wsdl -tn "http://entitas.turismodeportugal.pt" -cn pt.turismodeportugal.entitas.Entity

Thks Amila. Now i will make a diff between the jars that need to be crushed by this new revision ;)

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845291#action_12845291 ] 

Andreas Veithen commented on AXIS2-4650:
----------------------------------------

There was indeed a build failure when specifying maven.test.skip=true on the command line. This should be fixed now.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845290#action_12845290 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

It worked...i just had to pin-point the "new" jars for it to work:

 rm -f wp.wsdl; export JAVA_HOME=/usr/lib/jvm/java-6-sun; export AXIS2_HOME=/opt/wso2wsas; java -cp .:$AXIS2_HOME/lib/commons-logging-1.1.1.jar:$AXIS2_HOME/repository/components/plugins/axiom-1.2.7.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/neethi-2.0.4.wso2v1.jar:../../root/axis2/modules/transport/local/target/axis2-transport-local-SNAPSHOT.jar:../../root/axis2/modules/transport/http/target/axis2-transport-http-SNAPSHOT.jar:$AXIS2_HOME/repository/components/plugins/XmlSchema-1.4.2.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/wsdl4j-1.6.2.wso2v1.jar org.apache.ws.java2wsdl.Java2WSDL -of wp.wsdl -tn "http://entitas.turismodeportugal.pt" -cn pt.turismodeportugal.entitas.Entity

Thks Amila. Now i will make a diff between the jars that need to be crushed by this new revision ;)

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843447#action_12843447 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4650:
-----------------------------------------------------

can you attach a complete sample class with shows the issue.

I tried with this but it works fine

public class Entity {

    public class EntityCompanyWithContactType {
        private EntityCompanyType entity;
        private int age;

        public EntityCompanyType getEntity() {
            return entity;
        }

        public void setEntity(EntityCompanyType entity) {
            this.entity = entity;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
    }

    public int test(EntityCompanyWithContactType contactType){
        return 2;
    }
}

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Attachment: entity.txt

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845291#action_12845291 ] 

Andreas Veithen commented on AXIS2-4650:
----------------------------------------

There was indeed a build failure when specifying maven.test.skip=true on the command line. This should be fixed now.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Attachment: tree_of_org.txt

The snapshot of unpacked SNAPSHOT.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Reopened: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues reopened AXIS2-4650:
-------------------------------------------------


How can i use this revision?

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Issue Comment Edited: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843495#action_12843495 ] 

Vitor Manuel Alves Rodrigues edited comment on AXIS2-4650 at 3/10/10 9:38 AM:
------------------------------------------------------------------------------

Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.







      was (Author: vitor rodrigues):
    Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.




  
> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Issue Comment Edited: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843640#action_12843640 ] 

Vitor Manuel Alves Rodrigues edited comment on AXIS2-4650 at 3/10/10 5:19 PM:
------------------------------------------------------------------------------

Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
    }
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?


      was (Author: vitor rodrigues):
    Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?

  
> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845291#action_12845291 ] 

Andreas Veithen commented on AXIS2-4650:
----------------------------------------

There was indeed a build failure when specifying maven.test.skip=true on the command line. This should be fixed now.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843495#action_12843495 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.





> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Issue Comment Edited: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843640#action_12843640 ] 

Vitor Manuel Alves Rodrigues edited comment on AXIS2-4650 at 3/10/10 5:19 PM:
------------------------------------------------------------------------------

Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
    }
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?


      was (Author: vitor rodrigues):
    Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?

  
> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844806#action_12844806 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4650:
-----------------------------------------------------

you can use a SNAPSHOT build.

please take an update from here and build

use mvn clean install -Dmaven.test.skip=true to skip tests.

[1] https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Resolved: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4650.
-------------------------------------------------

    Resolution: Fixed

fixed in revision 921694

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843640#action_12843640 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Ok. To make it simple is like this :P


public class Outer{
    ....
     class Inner1
    {
    /*Default construtor*/
     public Inner1(){}
    }

     class Inner2
   { 
   private Inner1 callingInner1;

      /*Default construtor*/
     public Inner2(){}
....
}

This maps in the wsdl, incorretly, with :

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true"/>
</xs:sequence>
</xs:complexType>

And correctly should be:

<xs:complexType name="Inner2">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="callingInner1" nillable="true" type="ax2329:Inner1"/>
</xs:sequence>
</xs:complexType>

Yes? Or i'm missing something?


> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843495#action_12843495 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Hey Amila, 

First of all thanks for the reply.

I will show the complete class in an attachment. I "forgot" that the attribute entity is from another inner class of Entity.





> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitor Manuel Alves Rodrigues updated AXIS2-4650:
------------------------------------------------

    Attachment: tree_of_org.txt

The snapshot of unpacked SNAPSHOT.

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt, tree_of_org.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Vitor Manuel Alves Rodrigues (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845274#action_12845274 ] 

Vitor Manuel Alves Rodrigues commented on AXIS2-4650:
-----------------------------------------------------

Hello Amila,


When i build using what you tould me:

[INFO] [clean:clean]
[INFO] [remote-resources:process {execution: default}]
[INFO] [remote-resources:process {execution: legal-files}]
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 9 source files to /root/axis2/modules/java2wsdl/target/classes
[INFO] [resources:testResources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
     [echo] Generating p2n.wsdl
     [java] Exception in thread "main" java.lang.ClassNotFoundException: org.apache.axis2.description.CalculatorService
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
     [java]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:247)
     [java]     at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(DefaultSchemaGenerator.java:140)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLBuilder.resolveSchemaGen(Java2WSDLBuilder.java:368)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilder.java:211)
     [java]     at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:59)
     [java]     at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:32)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: Java returned: 1

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute
[INFO] Finished at: Sun Mar 14 16:55:15 WET 2010
[INFO] Final Memory: 48M/63M
[INFO] ------------------------------------------------------------------------


I'm trying, neitherless calling java2wsdl class to test, like this:

/* In this dir i have my class Entity.class(the class i want to generate wsdl), axis2-SNAPSHOT.jar, the unpacked jar(which creates org dir and sub-folders(i will attach the tree view in this issue)
*/
// this is me trying to generate de wsdl, from the Java Class

/root/java2wsdl$ rm -f abc.wsdl; export JAVA_HOME=/usr/lib/jvm/java-6-sun; export AXIS2_HOME=/opt/wso2wsas; java -cp .:$AXIS2_HOME/lib/commons-logging-1.1.1.jar:$AXIS2_HOME/repository/components/plugins/axiom-1.2.7.wso2v1.jar:$AXIS2_HOME/repository/components/plugins/neethi-2.0.4.wso2v1.jar org.apache.ws.java2wsdl.Java2WSDL -of abc.wsdl -cn Entity

And it gaves me this error:

Exception in thread "main" java.lang.RuntimeException: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.<init>(Java2WSDLBuilder.java:108)
        at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.<init>(Java2WSDLCodegenEngine.java:51)
        at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:31)
Caused by: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender
        at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:711)
        at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:122)
        at org.apache.axis2.context.ConfigurationContextFactory.createBasicConfigurationContext(ConfigurationContextFactory.java:343)
        at org.apache.axis2.context.ConfigurationContextFactory.createDefaultConfigurationContext(ConfigurationContextFactory.java:330)
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.<init>(Java2WSDLBuilder.java:101)
        ... 2 more
Caused by: java.lang.ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
        at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:686)
        ... 6 more


And thoughts, ideas?









> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>         Attachments: entity.txt
>
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4650) BAD WSDL generation from Java class

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843447#action_12843447 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4650:
-----------------------------------------------------

can you attach a complete sample class with shows the issue.

I tried with this but it works fine

public class Entity {

    public class EntityCompanyWithContactType {
        private EntityCompanyType entity;
        private int age;

        public EntityCompanyType getEntity() {
            return entity;
        }

        public void setEntity(EntityCompanyType entity) {
            this.entity = entity;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
    }

    public int test(EntityCompanyWithContactType contactType){
        return 2;
    }
}

> BAD WSDL generation from Java class
> -----------------------------------
>
>                 Key: AXIS2-4650
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4650
>             Project: Axis2
>          Issue Type: Bug
>         Environment: OS: Debian GNU/Linux
> WSO2 WSAS v3.1.3
>            Reporter: Vitor Manuel Alves Rodrigues
>
> Hello everyone,
> I have this snippet from the WSDL:
> ...
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> ...
> The correct would be this:
> <xs:complexType name="EntityCompanyWithCountType">
>                 <xs:sequence>
>                     <xs:element minOccurs="0" name="count" nillable="true" type="xs:int" />
>                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entity" type="ax2329:EntityCompanyType" nillable="true" />
>                 </xs:sequence>
> </xs:complexType>
> I have this in Java:
> public class Entity {
> ...
> /*Inner class*/
>        public class EntityCompanyWithContactType {
>         private EntityCompanyType entity;
>         private DigitalAddress.DigitalAddressType[] digital_address;
>         private PhoneNumber.PhoneNumberType[] phone_number;
>         private PostalAddress.PostalAddressType[] postal_address;
>         private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
>             /**
>          * The default constructor.
>          */
>         public EntityCompanyWithContactType(){}
>         /**
>          * The constructor with all the input for one record.
>          * @param entity value;
>          * @param digital_address list value;
>          * @param phone_number list value;
>          * @param postal_address list value;
>          * @param postal_address__phone_number list value;
>          */
>         public EntityCompanyWithContactType(EntityCompanyType entity, DigitalAddress.DigitalAddressType[] digital_address, PhoneNumber.PhoneNumberType[] phone_number, PostalAddress.PostalAddressType[] postal_address, PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number) { .. }
>  
> .....
> }
> I'm using "ant install" -> <echo> - install: build of AAR and deploy into WSAS. Also generates API documentation.</echo>
> My build.xml  :
> ..
> <target name="install"
>           depends="build-service,doc"
>           description="Installs the service package AAR into the Web service server repository.">
>     <echo message="Copying the created AAR files into the repository..."/>
>     <copy toDir="${repository.dir}/${services.dir}">
>       <fileset dir="${services.dir}">
>         <include name="**/*.aar"/>
>       </fileset>
>     </copy>
>   </target>
> ...
> What am i doing wrong? Help. :(
> For more info, please please contact me :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org