Newbie question

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Newbie question

Artti
Hi,

Can someone point out, what's the problem with following XPL:

<?xml version="1.0" encoding="UTF-8"?>
<p:config
    xmlns:p="http://www.orbeon.com/oxf/pipeline"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:saxon="http://saxon.sf.net/"
    xmlns:oxf="http://www.orbeon.com/oxf/processors"
    xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <p:param type="input" name="login-input"/>
    <p:param type="output" name="login-output"/>

    <p:processor name="oxf:xslt">
        <p:input name="data" href="#login-input"/>
        <p:input name="config">
            <xsl:stylesheet version="2.0">
                <xsl:import href="login-soap-request.xsl"/>
            </xsl:stylesheet>
        </p:input>
        <p:output name="data" id="soap-request"/>
    </p:processor>

    <p:processor name="oxf:debug">
        <p:input name="config">
            <config>Login SOAP</config>
        </p:input>
        <p:input name="data" href="#soap-request"/>
        <p:output name="data" id="debug-result"/>
    </p:processor>

    <p:processor name="oxf:xforms-submission">
        <p:input name="request" href="#soap-request"/>
        <p:input name="submission">
            <xforms:submission method="post" action="..."/>
        </p:input>
        <p:output name="response" id="soap-result"/>
    </p:processor>

    <p:processor name="oxf:scope-serializer">
        <p:input name="data" href="#soap-result#xpointer(//UUID)"/>
        <p:input name="config">
            <config>
                <key>UUID</key>
                <scope>session</scope>
                <session-scope>application</session-scope>
            </config>
        </p:input>
    </p:processor>

    <p:processor name="oxf:identity">
        <p:input name="data"><success>true</success></p:input>
        <p:output name="data" ref="login-output"/>
    </p:processor>
   
</p:config>

The error I'm seeing after including oxf:scope-serializer is:

"Pipeline input "login-input" is not connected"

Thanks in advance!



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Newbie question

Artti
Solved. Input name was wrong. "instance" worked.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Newbie question

Ryan Puddephatt
In reply to this post by Artti
How are you calling this? The error means that the login-input has not been
passed any data. If you are calling this from an oxf:pipeline processor, you
need to change the @name of the p:input to login-input. If this is used via
the page-flow then the inputs passed are instance and data so you'll need to
rename it

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: [hidden email] [mailto:[hidden email]]
>Sent: 14 February 2007 12:52
>To: [hidden email]
>Subject: [ops-users] Newbie question
>
>Hi,
>
>Can someone point out, what's the problem with following XPL:
>
><?xml version="1.0" encoding="UTF-8"?>
><p:config
>    xmlns:p="http://www.orbeon.com/oxf/pipeline"
>    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>    xmlns:saxon="http://saxon.sf.net/"
>    xmlns:oxf="http://www.orbeon.com/oxf/processors"
>    xmlns:xforms="http://www.w3.org/2002/xforms"
>    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
>    <p:param type="input" name="login-input"/>
>    <p:param type="output" name="login-output"/>
>
>    <p:processor name="oxf:xslt">
>        <p:input name="data" href="#login-input"/>
>        <p:input name="config">
>            <xsl:stylesheet version="2.0">
>                <xsl:import href="login-soap-request.xsl"/>
>            </xsl:stylesheet>
>        </p:input>
>        <p:output name="data" id="soap-request"/>
>    </p:processor>
>
>    <p:processor name="oxf:debug">
>        <p:input name="config">
>            <config>Login SOAP</config>
>        </p:input>
>        <p:input name="data" href="#soap-request"/>
>        <p:output name="data" id="debug-result"/>
>    </p:processor>
>
>    <p:processor name="oxf:xforms-submission">
>        <p:input name="request" href="#soap-request"/>
>        <p:input name="submission">
>            <xforms:submission method="post" action="..."/>
>        </p:input>
>        <p:output name="response" id="soap-result"/>
>    </p:processor>
>
>    <p:processor name="oxf:scope-serializer">
>        <p:input name="data" href="#soap-result#xpointer(//UUID)"/>
>        <p:input name="config">
>            <config>
>                <key>UUID</key>
>                <scope>session</scope>
>                <session-scope>application</session-scope>
>            </config>
>        </p:input>
>    </p:processor>
>
>    <p:processor name="oxf:identity">
>        <p:input name="data"><success>true</success></p:input>
>        <p:output name="data" ref="login-output"/>
>    </p:processor>
>    
></p:config>
>
>The error I'm seeing after including oxf:scope-serializer is:
>
>"Pipeline input "login-input" is not connected"
>
>Thanks in advance!
>
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws