NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How to instlal Axis2 plugin for netbeans 7?

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
samwun9988



Joined: 01 Dec 2010
Posts: 36
Location: 32

PostPosted: Sun Jul 31, 2011 3:06 am    Post subject: How to instlal Axis2 plugin for netbeans 7? Reply with quote

Hi,

Can anyone please tell me how to install Axis2 plugin in netbeans 7?

I have navigated to the following link,

Dynamic "Development UC" update center
http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz

But I don't know how to use the updates.xml file for netbeans 7

Thanks for your help.
Sam
Back to top
gros_bidule



Joined: 22 Jun 2010
Posts: 215

PostPosted: Sun Jul 31, 2011 2:36 pm    Post subject: Reply with quote

Hi,
you must register the Update Center, so, go to :
- Tools
- Plugins
- the "Settings" tab
- Add
--- name = Dynamic "Development UC" update center
--- url = http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz

Now you can go to the "Available Plugins" tab and the "Reload Catalog" button Wink
Now, you'll find the "Axis2 Support" plugin in the list, and can install it.
Back to top
samwun9988



Joined: 01 Dec 2010
Posts: 36
Location: 32

PostPosted: Sun Jul 31, 2011 3:03 pm    Post subject: Reply with quote

Very appreciate for the suggestion.
I have Activated Axis2 in Netbeans 7.0.

When I create a New file, select Web Service, I can't find an option "Axis2 from Java Class".

I have deployed Axis2.war to Glassfish 3.1 server and have verified the localhost:8080/axis2 page is display and login fine with "admin"/"axis2". And then I have restarted Netbeans and Glassfish server. Note,

What is happened why I can't see the option "Axis2 from java class"??

Thanks a lot
Sam
Back to top
gros_bidule



Joined: 22 Jun 2010
Posts: 215

PostPosted: Sun Jul 31, 2011 3:48 pm    Post subject: Reply with quote

What is the nature of your Java project ?
Axis2 Support works fine with Ant "Java Application" and "Java Class Library" projects. I've never tried it with "Web Application" projects or others.
Back to top
samwun9988



Joined: 01 Dec 2010
Posts: 36
Location: 32

PostPosted: Sun Jul 31, 2011 11:23 pm    Post subject: Reply with quote

Hi, thanks a lot for the the answer.
After I created Java Application project, the option "Axis2 from java class" is shown up in the list.

But it doesn't generate wsdl file for me as expected.

After selected the option Axis2 from Java Class, and checked the checkbox of "Generate WSDL from Java Source Code", I looked for *.wsdl file in my project folder, I couldn't found it.

eg. here is the commandline I used to find my *wsdl* file in my projectd directory:
Quote:
sam@sam-PC /cygdrive/c/work/NetBeansProjects/CAR2ServiceApp
$ find . -name *wsdl*

sam@sam-PC /cygdrive/c/work/NetBeansProjects/CAR2ServiceApp
$


Thanks again
Sam
Back to top
gros_bidule



Joined: 22 Jun 2010
Posts: 215

PostPosted: Mon Aug 01, 2011 12:13 am    Post subject: Reply with quote

After you Clean & Build the project, you can find the WSDL file into the "xml-resources/axis2/META-INF/" subfolder.

Back to top
samwun9988



Joined: 01 Dec 2010
Posts: 36
Location: 32

PostPosted: Tue Aug 02, 2011 7:31 am    Post subject: Reply with quote

Hi, I used Axis2 plugin in Netbeans generated a wsdl file base on few java bean classes and a service class.

The mapping types are custom written using Enum, eg. CancelReasonEnum, rather than default java type.

here is an example from my generated wsdl file:

Code:
<xs:schema xmlns:ax21="http://car2enum/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://car2enum/xsd">
            <xs:complexType name="CAR2DialogueCancelReasonEnum">
                <xs:complexContent>
                    <xs:extension base="xs:Enum">
                        <xs:sequence>
                            <xs:element minOccurs="0" name="code" nillable="true" type="xs:string"/>
                            <xs:element minOccurs="0" name="description" nillable="true" type="xs:string"/>
                            <xs:element minOccurs="0" name="CustomerRequest" nillable="true" type="ax21:CAR2DialogueCancelReasonEnum"/>
                            <xs:element minOccurs="0" name="SYSERR" nillable="true" type="ax21:CAR2DialogueCancelReasonEnum"/>
                            <xs:element minOccurs="0" name="TIMEOUT" nillable="true" type="ax21:CAR2DialogueCancelReasonEnum"/>
                            <xs:element minOccurs="0" name="TMERR" nillable="true" type="ax21:CAR2DialogueCancelReasonEnum"/>
                        </xs:sequence>
                    </xs:extension>
                </xs:complexContent>
            </xs:complexType>


I also have written some bean classes are also included in the wsdl file.

eg:

Code:
 <xs:element name="continueDialogue">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="interactionId" type="xs:int"/>
                        <xs:element minOccurs="0" name="agencyContext" nillable="true" type="xs:string"/>
                        <xs:element minOccurs="0" name="dialogueType" nillable="true" type="ns2:CAR2DialogueTypeEnum"/>
                        <xs:element minOccurs="0" name="qs" nillable="true" type="ns1:QuestionSetBean"/>
                        <xs:element minOccurs="0" name="qsName" nillable="true" type="xs:string"/>
                        <xs:element minOccurs="0" name="qaVerison" type="xs:int"/>
                        <xs:element minOccurs="0" name="qa" nillable="true" type="ns1:QuestionAnswerBean"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>


I am not sure whether there is any issue with my wsdl file include these Enum and custom written Bean classes.

Thanks
Sam[/quote]
Back to top
Naty



Joined: 07 Mar 2013
Posts: 1

PostPosted: Thu Mar 07, 2013 6:01 pm    Post subject: do not detect me the axis2.war file path Reply with quote

When I deploy on the server I get a window avizando that specify the Axis2.war file or axis2 deployment directory location in
Tools - Options - Axis2 - Deployment panel...
But that what I have already several times, although sometimes it seems that I have not saved, and other si...
In conclusion, which I can not deploy on the server because it seems that did not have the path of the file designated Axis2.war, What can I do?

Note: catalina_home = catalina_base and Axis2.war file is catalina_home wepapps.

Thanks you for help! Very Happy
Back to top
Alex0012



Joined: 29 Aug 2012
Posts: 2

PostPosted: Fri Mar 08, 2013 12:55 pm    Post subject: Re: Reply with quote

you should now have the 'Axis2 Support' plugin there ready to install.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo