| View previous topic :: View next topic |
| Author |
Message |
samwun9988
Joined: 01 Dec 2010 Posts: 36 Location: 32
|
|
| Back to top |
|
 |
gros_bidule
Joined: 22 Jun 2010 Posts: 215
|
|
| Back to top |
|
 |
samwun9988
Joined: 01 Dec 2010 Posts: 36 Location: 32
|
Posted: Sun Jul 31, 2011 3:03 pm Post subject: |
|
|
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
|
Posted: Sun Jul 31, 2011 3:48 pm Post subject: |
|
|
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
|
Posted: Sun Jul 31, 2011 11:23 pm Post subject: |
|
|
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
|
Posted: Mon Aug 01, 2011 12:13 am Post subject: |
|
|
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
|
Posted: Tue Aug 02, 2011 7:31 am Post subject: |
|
|
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
|
Posted: Thu Mar 07, 2013 6:01 pm Post subject: do not detect me the axis2.war file path |
|
|
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! |
|
| Back to top |
|
 |
Alex0012
Joined: 29 Aug 2012 Posts: 2
|
Posted: Fri Mar 08, 2013 12:55 pm Post subject: Re: |
|
|
| you should now have the 'Axis2 Support' plugin there ready to install. |
|
| Back to top |
|
 |
|