- This topic has 7 replies, 4 voices, and was last updated 16 years, 4 months ago by Brian Fernandes.
-
AuthorPosts
-
invantixMemberI created a sample Web Service app following the JAX-WS Tutorial for the Calculator.
http://www.myeclipseide.com/documentation/quickstarts/blueedition/blue_jaxws/Although the example is for WebSphere I figured I could run this on tomcat.
When I start up my tomcat server and then use the Web Services explorer, the explorer can find the service using the platform:/resource… URL.
I can then click on the endpoint (http://localhost:8080/test/CalculatorService) and click on the add operation. I can add parameters. When I click invoke, I get the following:IWAB0135E An unexpected error has occurred.
404
/test/CalculatorService
invantixMemberI should have mentioned that I am using MyEclipse 6.5
Also, I looked at the CalculatorService.wsdl files generated by the wizzard. There is an entry for soap address and wonder if it is corret. Searching the forum I see mention of the need for ?wsdl at the end. I also see cases of the word “services” in the path (i.e. http://localhost:8080/test/services/CalculatorService). I tried to creat a webservice client pointing to those addresses but they did not work.
<service name=”CalculatorService”>
<port binding=”tns:CalculatorPortBinding” name=”CalculatorPort”>
<soap:address location=”http://localhost:8080/test/CalculatorService”/>
</port>
</service>
invantixMemberHmm…
Does the tomcat in MyEclipse 6.5 suport JAX-WS by default? Do I need to use another app server?I was reading on java.net about JAX-WS and see the following:
You can currently deploy and test your new JAXWP web service on any Java-WSDP-2.0-compliant web servers, which according to Sun at the time of writing include:
GlassFish Application Server, the open source application server project led by Sun
Sun Java System Application Server
Tomcat 5.0 for Java WSDP, a modified version of Jakarta Tomcat 5.0.18
invantixMember@invantix wrote:
<service name=”CalculatorService”>
<port binding=”tns:CalculatorPortBinding” name=”CalculatorPort”>
<soap:address location=”http://localhost:8080/test/CalculatorService”/>
</port>
</service>I now see the problem is with the WSDL file that MyEclipse generates. The port binding name should match the soap:address location. If I change the CalculatorService in the <soap:address location to CalculatorPort, it all seems to work.
I guess this is a bug in myEclipse?
Loyal WaterMemberI’ll get this checked by the dev team. Thank you for your patience.
Brian FernandesModeratorInvantix,
Yes, this is a MyEclipse bug,
<soap:address location="http://localhost:8080/test/CalculatorPort"/>
should have been generated as you correctly pointed out.
Sorry for the inconvenience caused, I’m filing a report against it right now.
cgageMemberI have also followed the Calculator tutorial and wanted to deploy the web service to JBoss 4.2.2GA, but got a Jboss deployment exception. (I’m using MyEclipse 6.5) Is this because JBoss 4.2.2 is not WSDP 2.0 compliant? If so, are there any other alternatives in MyEclipse 6.5 besides XFire? We currently have a lot invested in JBoss 4.2.2. It would require a lot of work to go to JBoss 5.x at this time.
Thanks,
Charlie
Brian FernandesModeratorCharlie,
If you generate a JAX-WS web service (possible since MyEclipse 6.5), you should be able to deploy that to JBoss 4.2.2 running JBossWS-3.0.
Some more info here: http://jbws.dyndns.org/mediawiki/index.php?title=WSF -
AuthorPosts