How to access input\output of a service from another service without executing first

Hi All,

Could anyone tell me how to access the input\output signature of a service from anotther java service? I dont like to execute the targe service insteda just fetch the i/p o/p signature as IData.

I just wanted to create a java progam to create the stub for unit testing a service. I would like to loop through the returned IData and insert the fields with the corresponding fieldnames.

It is very difficult to generate the sample data if the input signaure is very big.

If sombody have already implemnted it, it would be of great help if you can share the code.

Thanks in advance,

Maybe this snippet will help you:

String strServiceName = "some.folder:service";
NSName nsName = NSName.create(strServiceName);
Namespace ns = Namespace.current();
NSNode nsNode = ns.getNode(nsName);
NSService nsService = (NSService)nsNode;
NSField[] fields = nsService.getSig().getOutput().getFields();
for (int i = 0; i < fields.length; i++)
					doSomething ( fields[i].getName() );