facebook

JAX-WS error on invoke

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #286288 Reply

    invantix
    Member

    I 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

    #286307 Reply

    invantix
    Member

    I 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”/&gt;
    </port>
    </service>

    #286319 Reply

    invantix
    Member

    Hmm…
    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

    #286334 Reply

    invantix
    Member

    @invantix wrote:

    <service name=”CalculatorService”>
    <port binding=”tns:CalculatorPortBinding” name=”CalculatorPort”>
    <soap:address location=”http://localhost:8080/test/CalculatorService”/&gt;
    </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?

    #286368 Reply

    Loyal Water
    Member

    I’ll get this checked by the dev team. Thank you for your patience.

    #286378 Reply

    Brian Fernandes
    Moderator

    Invantix,

    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.

    #286600 Reply

    cgage
    Member

    I 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

    #286607 Reply

    Brian Fernandes
    Moderator

    Charlie,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: JAX-WS error on invoke

You must be logged in to post in the forum log in