I'm finding it difficult to respond usefully without giving out proprietary information. Perhaps your group should take a look at my company's product (write off-list for contact info).

A single java class is used for all complex types. It holds a piece of XML (a DOM subtree) and the type name. For each use of one of these as an input or output to a a web service, create a type mapping between this java class and corresponding the xml type, for serialization and deserialization.

As I said earlier, I can't provide code samples. But I evolved the WSIF-related parts from the WSIF DynamicInvoker sample. What I've suggested in principle can be done without crawling around in the WSIF source code, but in practice I did have to read some of it as the documentation is so thin. Installing the serializer/deserializers and defeating the built-in ones (e.g. from the Axis provider) where necessary required some prowling in the source, particularly since some aspects of this had to be done in different ways for different providers. I did not need to modify the WSIF source code except to fix a few small bugs (mainly in earlier versions). I made my own version of the org.apache.wsif.schema to suit some other requirements of my project, but the changes were not major.

The program you've outlined  is feasible (we've done it) but non-trivial.

Jeff

james hu wrote:

Thanks Jeff.
Based on your suggestion, the way to invoke wsif takes the following steps:
1. Interpret the request/response message schema ( how to get the schema objects? )
2. data is populated in an XML string structured based on the schema. ( e.g. using a form page to present the structure to user and then construct the XML )
3. need to pass this XML to wsif as complex type input parameter to invoke. Not sure how to do it. Also not sure if deserializer is needed. It looks like it is not straightforward for getting to the above without going through the source code. Do you know any sample code for this available somewhere?
Very appreciated,
James


*/Jeff Greif <[EMAIL PROTECTED]>/* wrote:

    Archives: http://marc.theaimsgroup.com/?l=wsif-user&r=1&w=2

    Yes, org.apache.wsif.schema classes are used to collect the various
    types and declared elements from the wsdl and all the imported
    schemas.
    We also then get all the schema definitions loaded into the
    grammar pool
    of a Xerces parser, and use the org.apache.xerces.xs (Xerces'
    implementation of the XML Schema API) classes to analyze the types
    etc.

    Jeff

    james hu wrote:

    > Jeff,
    >
    > Thanks for the information. Can you point me to those archives? We
    > don't like statical binding the XML to bean but processing XML
    tree at
    > run-time is kind of approach we prefer. Does it use WSIF API to
    > process XML since all the schema information is defined in wsdl
    which
    > can be accessed via WSIF?
    >
    > Thanks a lot,
    >
    > James
    >
    > */Jeff Greif /* wrote:
    >
    > Lack of support for complex parameters for dynamic invocation in
    > WSIF is
    > a myth! My company's product consumes arbitrary web services
    > dynamically using WSIF and deals with complex parameters most of the
    > time. The product has some limitations in what it can handle, but
    > these are not usually limitations of WSIF.
    >
    > Whle I can't provide code samples, I've given info on this mailing
    > list
    > several times about approaches. Please check the archives or
    write me
    > privately. Essentaily, we do it by processing the XML trees as
    is, in
    > the context of the XML Schema data types describing it, rather than
    > trying to bind the contents to Beans or other objects.
    >
    > Jeff
    >
    > james hu wrote:
    >
    > > We ( one of HP's software division ) start actively looking into
    > > possibility of utilizing wsif as a dynamic web service invoker.
    > > Problem we have so far is the lack of complex input/output
    > parameter
    > > support. besides JROM ( which we don't know if we can use it or
    > not )
    > > is there any plan to support complex parameters for dynamic
    > > invocation in near future? Or, do you have any suggestions for the
    > > best ( simple but effective ) approach to resolve this issue?
    > >
    > > Thanks,
    > > James
    > > */Aleksander Slominski /* wrote:
    > >
    > > Xu, Peng (GE Healthcare) wrote:
    > >
    > > > Hi, I'm new to WSIF and plan to use it. I noticed that there has
    > > been
    > > > no new release since Sept. 2003. Could someone tell me why?
    > > >
    > > there were no significant changes in WSIF CVS except for bug
    fixes.
    > > nonethless with final Axis i plan to propose a release of updated
    > > WSIF.
    > >
    > > is it anything particular that you want WSIF to do that it is not
    > > doing now?
    > >
    > > thanks,
    > >
    > > alek
    > >
    > > --
    > > The best way to predict the future is to invent it - Alan Kay
    > >
    > > __________________________________________________
    > > Do You Yahoo!?
    > > Tired of spam? Yahoo! Mail has the best spam protection around
    > > http://mail.yahoo.com
    > >
    >
    > __________________________________________________
    > Do You Yahoo!?
    > Tired of spam? Yahoo! Mail has the best spam protection around
    > http://mail.yahoo.com
    >

------------------------------------------------------------------------
Discover Yahoo!
Use Yahoo! to plan a weekend, have fun online & more. Check it out! <http://us.rd.yahoo.com/evt=32657/*http://discover.yahoo.com/>




Reply via email to