By default, it's probably assuming "wrapped" doc/lit. Thus, the
getOperation() that is returning is for the wrapper. With the simple
frontend (or with jax-ws frontend without asm), that is likely to be null as
there normally isn't a type for that. You probably want
getOperation(..).getUnwrappedOperation() to get it in it's unwrapped form to
iterat the parts that would then have the individual params.
Dan
On Fri September 18 2009 11:15:48 am chengy wrote:
> Suppose the server publish a service just like this:
> HelloWorldImpl helloworldImpl = new HelloWorldImpl();
> ServerFactoryBean svrFactory = new ServerFactoryBean();
> svrFactory.setServiceClass(HelloWorld.class);
> svrFactory.setAddress("http://localhost:9000/Hello");
> svrFactory.setServiceBean(helloworldImpl);
> svrFactory.create();
>
> How to get the list of the parameter class type of a special operation?? I
> try to walk through like this:
>
> OperationInfo of =
> endpoint.getEndpointInfo().getInterface().getOperation(new
> QName("http://server/", "sayHi"));
> of.getInput().getMessageParts().get(0).getTypeClass();
>
> it always return null! !
> Is there any thing that I miss ?
> Thanks,
>
--
Daniel Kulp
[email protected]
http://www.dankulp.com/blog