Eugene

I think really what you need to do is to walk the WSDL/schema of the service
and build up an OMElement request and then use the Axis2 ServiceClient API
to invoke that service. Another option would be to dynamically run
WSDL2Java, compile the stub and then classload the resulting object. You
could then use reflection to walk the data objects.

While Synapse can invoke any service without WSDL, it doesn't help you in
the task of getting the right request XML dynamically. You still have to
figure out what the XML request should be.

Paul

On 10/22/07, Eugeny N Dzhurinsky <[EMAIL PROTECTED]> wrote:
>
> On Mon, Oct 22, 2007 at 06:16:14PM +0530, Asankha C. Perera wrote:
> > Hi Eugeny
> >> I need to develop an application, which should be able to call ANY
> >> service,
> >> described in WSDL, without run-time compilation or code generation.
> > This is possible with Synapse.. please see samples from the Synapse main
> > page..
>
> Great, thank you. However after looking at sample it's still unclear for
> me
> how can I invoke any service? I already have a test service to create
> "dynamic
> bindings" for and I would like to start from scratch (or some stub?) with
> Synapse, create a caller class, send a request and get a response? Could
> you
> please guide me or point to which classes I need to take a look at?
>
> > I do not quite understand what you mean here.. it seems like you always
> > pass in a bunch of name-value pairs to all of your services and get back
> > another set of name-value pairs as the reply? So does this mean all the
> > services are like this - i.e. without any use of complex types etc?
>
> Well, not really. In fact, I need to resolve the structure of request, and
> find which objects of some type needs to be passed. So if there is some
> object
> of complex type, which has another object as a complex type, I will need
> to
> create some dynamic binding (create the XML or whatever structure) which
> will
> be understood by the remote service.
>
> So I need to be able to prepare completely dynamic requests having list of
> name/value pairs, where each request field will be filled from the "data
> capsule" object.
>
> --
> Eugene N Dzhurinsky
>
>


-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

Reply via email to