Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Beans > Jboss - web ser...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1309 of 1363
Post > Topic >>

Jboss - web service

by "Il Solco Vinilico" <scura@[EMAIL PROTECTED] > Apr 27, 2007 at 08:56 AM

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;

im****t clientService.*;
im****t javax.xml.rpc.Stub;
/**
 *
 * @[EMAIL PROTECTED]
 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().getWebServiceSEI****t());
    }
}
------------------------------------------------------------------------------------

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?
:-(
 




 1 Posts in Topic:
Jboss - web service
"Il Solco Vinilico&q  2007-04-27 08:56:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 6:20:48 CDT 2008.