[jboss-user] [JBossWS] - Re: error RuntimeModelerException: runtime modeler error: Wr
Fantagir
do-not-reply at jboss.com
Wed Oct 3 07:20:31 EDT 2007
Thanks for replay so quickly.
My environment is:
Eclipse and JbossIDE for Eclipse
Jboss 4.0.5 GA
JDK 1.5
JWSDP 2.0
And the code of my client is this:
package webservice;
|
| import java.net.URL;
|
| import javax.xml.namespace.QName;
| import javax.xml.ws.Service;
|
| import util.DatePalabra;
|
| import com.lasalle.util.resources.CollectionProperties;
|
|
| public class MainDevPalabra {
|
| public static void main( String[] args ) throws Exception {
| if( args.length < 1 )
| {
| System.out.println( "Usage: Palabra name" );
| System.exit( 0 );
| }
|
| String argument = args[ 0 ];
|
| DatePalabra dp = new DatePalabra();
|
| //CollectionProperties propietats = new CollectionProperties();
| String urlstr = CollectionProperties.getPropiedad("serviceD.url");
| String nameServiceStr = CollectionProperties.getPropiedad("serviceD.name");
| String namespaceServiceStr = CollectionProperties.getPropiedad("serviceD.namespace");
|
| System.out.println( "Contacting webservice at " + urlstr );
|
| URL url = new URL(urlstr);
|
| //se indican el namespace en el que se encuentra el servicio y su nombre
| //(esto se puede ver en el WSDL)
| QName qname = new QName(namespaceServiceStr,
| nameServiceStr);
|
| Service service = Service.create(url, qname);
|
|
| IContar age = ( IContar) service.getPort( IContar.class );
|
| System.out.println( "age.age(" + argument + ")" );
| dp = (DatePalabra) age.darCuenta(argument);
| System.out.println( "output longitud:" + dp.getLongitud() );
| System.out.println( "output palabra:" + dp.getPalabra() );
| }
|
|
| }
Well, I use the interface that I write in the before.
I'll take a look at the page you tell me.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090968#4090968
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090968
More information about the jboss-user
mailing list