Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > jboss and web service with jax-rpc

Reply
Thread Tools

jboss and web service with jax-rpc

 
 
Il Solco Vinilico
Guest
Posts: n/a
 
      04-27-2007
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_ADDR ESS_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(Strea mingSender.java:307)
at
clientService.WebServiceSEI_Stub.saluta(WebService SEI_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?





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does timer in Web Service Global.asax block my Web Service from processing web-site requests? Leo Violette ASP .Net Web Services 0 04-17-2009 12:39 AM
Internet Application in JBoss Portal on Liferay JBoss LprzemekL Java 0 04-10-2008 12:03 PM
Eclipse/Lomboz/JBoss: Cannot Start JBoss (Debug) Server from Eclipse Using Lomboz Plugin Jubz Java 0 05-30-2006 10:24 PM
jboss 4.0.3 jboss portal 2.2.1 han Java 0 05-08-2006 10:35 AM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57