|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Create webservice at NB 6.7.1Hi all.
It is a long time since I have developed a web service running at either Apache Tomcat or GlassFish(I think it was with NB 6.1 last time). Yesterday, I tried to create a web service from Java class. At the begging, the web service run properly because I did not select to "generate wsdl from Java source class" . By the way, where is located this WSDL? Then, I select to generate WSDL. I noticed that when I changed the name of one of my methods in Java class, or I tried to update my Java class by adding new methods, the web service (after deployement) could not run succesfully. I realise that the problem is at .wsdl file, when it is generated. More specifically, I found that when I select to "Generate WSDL", the following lines are written in the .wsdl file: Code: <wsdl:service name="NewAxisFromJavaV5"> <wsdl:port name="NewAxisFromJavaV5SOAP11port_http" binding="axis2:NewAxisFromJavaV5SOAP11Binding"> <soap:address location="http://localhost:8084/axis2/services/NewAxisFromJavaV5.NewAxisFromJavaV5SOAP11port_http/" /> </wsdl:port> <wsdl:port name="NewAxisFromJavaV5SOAP12port_http" binding="axis2:NewAxisFromJavaV5SOAP12Binding"> <soap12:address location="http://localhost:8084/axis2/services/NewAxisFromJavaV5.NewAxisFromJavaV5SOAP12port_http/" /> </wsdl:port> <wsdl:port name="NewAxisFromJavaV5Httpport" binding="axis2:NewAxisFromJavaV5HttpBinding"> <http:address location="http://localhost:8084/axis2/services/NewAxisFromJavaV5.NewAxisFromJavaV5Httpport/" /> </wsdl:port> </wsdl:service> But, it is supposed that the following lines should have been generated instead of the above code(With HttpSoap11Endpoint): Code: <wsdl:service name="NewAxisFromJavaV6"> <wsdl:port name="NewAxisFromJavaV6HttpSoap11Endpoint" binding="ns:NewAxisFromJavaV6Soap11Binding"> <soap:address location="http://localhost:8084/axis2/services/NewAxisFromJavaV6.NewAxisFromJavaV6HttpSoap11Endpoint/" /> </wsdl:port> <wsdl:port name="NewAxisFromJavaV6HttpSoap12Endpoint" binding="ns:NewAxisFromJavaV6Soap12Binding"> <soap12:address location="http://localhost:8084/axis2/services/NewAxisFromJavaV6.NewAxisFromJavaV6HttpSoap12Endpoint/" /> </wsdl:port> <wsdl:port name="NewAxisFromJavaV6HttpEndpoint" binding="ns:NewAxisFromJavaV6HttpBinding"> <http:address location="http://localhost:8084/axis2/services/NewAxisFromJavaV6.NewAxisFromJavaV6HttpEndpoint/" /> </wsdl:port> </wsdl:service> So, I changed the wsdl manually. I was wondering if this is the right way or NB should generate and update the wsdl file automatically, as it is used to happen in NB 6.1 as I remember well. Does anybody have met the same sistuation?Is any suggestion for automatic generation of wsdl, while the Java class is updating? Regards, kalgik |
| Free embeddable forum powered by Nabble | Forum Help |