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
pgpQkN8nGwlWs.pgp
Description: PGP signature
