jboss and web service with jax-rpc

Discussion in 'Java' started by Il Solco Vinilico, Apr 27, 2007.

  1. Hello to everybody,

    I have a problem:
    I have create a web server with jboss e jax-rpc.
    the server web is ok, and when I put this address in the browser

    http://localhost:8080/MioWebServer/WebService?WSDL

    I can see the xml page.

    After I created an application client, with the file WSDL
    http://localhost:8080/MioWebServer/WebService?WSDL and I wrote
    this simple class:

    -------------------------------------------------------------------------------
    package javaapplication24;

    import clientService.*;
    import javax.xml.rpc.Stub;
    /**
    *
    * @author admin
    */
    public class Main {


    public static void main(String[] args) {
    try{
    Stub stub = creaProxy();
    stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,"http://localhost:8080/MioWebServer/WebService");
    WebServiceSEI classe = (WebServiceSEI)stub;
    String saluto = classe.saluta("Gino");
    System.out.println(saluto);
    }catch(Exception ex){
    ex.printStackTrace();
    }
    }

    private static Stub creaProxy(){
    return (Stub)(new WebService_Impl().getWebServiceSEIPort());
    }
    }
    ------------------------------------------------------------------------------------

    when I compiling that, is all ok, but if I esecute the program I have this
    error:

    **** errore ****

    run-single:
    java.rmi.ServerException: Endpoint cannot handle requests in state: CREATED
    at
    com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:510)
    at
    com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307)
    at
    clientService.WebServiceSEI_Stub.saluta(WebServiceSEI_Stub.java:69)
    at javaapplication24.Main.main(Main.java:26)
    BUILD SUCCESSFUL (total time: 4 seconds)


    ***************

    I'm working on that since two days, do you have soma idea for solving this
    problem?
    :-(
    Il Solco Vinilico, Apr 27, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Adrian
    Replies:
    0
    Views:
    537
    Adrian
    Dec 13, 2004
  2. Karl Uppiano

    Migrating JAX-RPC to JAX-WS

    Karl Uppiano, Dec 15, 2006, in forum: Java
    Replies:
    1
    Views:
    514
    Karl Uppiano
    Dec 15, 2006
  3. Karl Uppiano
    Replies:
    3
    Views:
    632
    Karl Uppiano
    Dec 19, 2006
  4. Replies:
    0
    Views:
    702
  5. Sascha Roth
    Replies:
    2
    Views:
    800
    Sascha Roth
    Jul 3, 2009
Loading...

Share This Page