Hi,
I did a similar project using WSIF. Mine involved consming several web
services that are exposed through thier WSDL.
However as you know there are simple types and custom types in WSDL files.
Total dynamic invocation will work fine for simple types where parameter
types will be recognised on the fly.
You will have to generate stubs if your WSDL has complex/custom types. The
process is thus not totally automated.
If you have downloaded WSIF you will see and example of dii in the
simpletype example and also one on complex types using stubs.
Otherwise it is very easy to create a wrapper object and call appropriate
methods and build that into a standalone library which you can use
anywhere.
Hope that helps!
Murvin
> Hello!
>
> We have to develop an application which need to parse WSDL file, extract
> list
> of available methods from it and expose to upper layer as a list of
> interfaces
> like below:
>
> public interface FunctionInterface {
> public ObjectParam exec(ObjectParam param);
> };
>
> ObjectParam offers methods like
> String getItem(String name);
> byte[] getItem(String name);
> ...
>
> setItem(String name, String value);
> setItem(String name, byte[] value);
> ...
>
> So in general it seems to be possible to map fields in ObjectParam to
> create
> some form of SOAP request to given method with given attributes and types.
>
> We need to implement one or several implementations of FunctionInterface,
> which could create SOAP call to given service, knowing the parameters
> which
> are needed to call the service, and obviously convert the data from
> ObjectParam properties into some form expected by the method.
>
> One of key feature is there should be no generated source, needed to be
> shipped together with software package, so every parsing and call needs to
> be
> invoked dynamically.
>
> For now I have several questions:
>
> - is it possible using WSIF get list of functions exposed by some service
> as a
> WSDL descriptor?
>
> - is it possible to recognize parameter types, and dynamically bind some
> marshallers/unmarshallers to them?
>
> Thank you in advance!
>
> --
> Eugene N Dzhurinsky
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]