1) I want to pass a complex datatype (of type apachesoap:Map called features) as input to a webservice. Code fragment is of the kind:
<delegation:execute service="ca-traffic" operation="getTraffic" xmlns:delegation="http://orbeon.org/oxf/xml/delegation">
<features>
<item> <key> <xsl:value-of select="/key1"/> </key>
<value> <xsl:value-of select="/key1"/> </value>
</item> <item>
<key> <xsl:value-of select="/key2"/> </key>
<value> <xsl:value-of select="/key2"/> </value>
</item>
<features>
Hi Mohan,
So your XPL is similar to the ca-traffic/model.xpl in the examples, where the XML above goes to XSLT, and the XSLT output is connected to the delegation processor, right?
It gives me a ClassException
I am sorry; I don't have an answer to this one right out of the box. Could you send the complete stack trace you're getting?
2) This is probably an XForms question, but I would like to use a xforms:input text box as both a control to an Xforms instance, as well as displaying return value of executing webservice ie. /root/return. If not possible directly, is there a workaround?
XForms controls are bound to the XForms instance. They will only display data that comes from the XForms instance. So you need to put the return value of your Web service in the XForms instance. You can do this in your model.xpl: add an "instance" input and an "instance" output to the model.xpl, and insert an XSLT processor to update the instance, setting the content of an element to the return value of your Web service.
3) I'd like to know how to debug OXF applications. Is there a way to get the output of a pipeline into a file or in Tomcat console. If you can give me some sketch code,that'll be really helpful.
Just like Damon said, we find that using Chainsaw is the most convenient way to trace what is going on your application during development. When the application is deployed, of course, you don't want to be running Chainsaw. So then, logging to a file makes sense. This is also something that you can setup in your log4j.xml (you will find a commented entry for the FileAppender in that file).
Alex _______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
