[EMAIL PROTECTED] wrote:
I need to create a web service 
currently WSIF is only client side API - you can not create service with WSIF but you can access them using WSDL for it and WSIF API
that could receive any complex type. And, in axis
users list I was informed that WSIF could solve my problem. For instance, my web
service proposal could receive a complex type for a person (Name, age, ...) for
an address (Street, state, country,...) is it... I mustn't have a predefined
complex type to be received.
  
you should use DOM Element in AXIS1 to process XML directly and avoid databinding.

also as you deal with XML directly you can be just fine to deal with XML directly in servlet - i am not sure if you really needed AXIS unless you need handlers and the SOAP Envelope processing you need you can manually extract using DOM.
Does any one have any idea about how WSIF could solve my problem? Any examples?
  
Unfortunaltely I do not have any examples for AXIS.

We wrote some time ago generic client (browser) - server (tomcat) that could create HTML UI to represent typical messages with complex types as HTML forms and send them - see Xydra.

I have also a simple (and completely unofficial!!!!!)  prototype of server-side APIs for WSIF implemented in XSUL2 - but that requires comping WSDL into databinding classes (using XmlBeans)

http://www.extreme.indiana.edu/xgws/xsul/guide/index.html#impl

and there is a lower level XML processing layer in XSUL2 availabel - get SOAP message and do whatever you like with it - to use it you would need to knwo a bnit about XPP3 Infoset processing (simple) - for example take those two classes and rewrite them to get XML message inside SOAP (processXml/processMessage) and do whatever you like with it:

http://www.extreme.indiana.edu/viewcvs/~checkout~/xsul/java/samples/xsul_sample_hello/EchoServer.java
http://www.extreme.indiana.edu/viewcvs/~checkout~/xsul/java/samples/xsul_sample_hello/EchoServlet.java

HTH,

alek

-- 
The best way to predict the future is to invent it - Alan Kay


Reply via email to