Hi,

here's the example as mentioned. It calls a basic hello world service, which 
returns a Person object with their name and age.

First, use wsdl.exe, which I call from a bat file, and which generates the 
appropriate cs file for me, which I then use in the client.

anonymous wrote : \..\..\Progra~1\Microsoft.NET\SDK\v1.1\Bin\wsdl 
/out:ws4eeProxy.cs http://localhost:8080/simple-ws4ee/exactpath/jse?wsdl

Second,  the client cs file, which you can see makes use of the generated 
objects.
anonymous wrote : using System;
  | 
  | namespace ws4ee
  | {
  |     class MainClass
  |     {
  |             public static void Main(string[] args)
  |             {
  |                     Console.WriteLine("ws4ee doc lit from jboss!");
  |                     HelloService ap = new ws4ee.HelloService();
  |                     
  |                     Person p = new Person();
  |                 string s = "bill";
  |                 getHelloWorld ghw = new getHelloWorld();
  |                 ghw.String_1 = s;
  |                 getHelloWorldResponse ghwr = new getHelloWorldResponse();
  |                 ghwr = (getHelloWorldResponse)ap.getHelloWorld(ghw);
  |                 p = ghwr.result;
  |                     Console.WriteLine(p.age + " " + p.name);    
  |             }
  |     }
  | }
  | 


That's all there is to it, and you then have your returned object to do with as 
you please.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877459#3877459

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877459


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to