Why is this not calling my web service

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

Why is this not calling my web service

Shaw, Richard A
Why is this not calling my web service

I have a pipeline which calls a web service and add the results to the instance passed in.

Why I run this the web service is not called it simply runs the XSLT processor which is trying to add the resluts to the instance.

Why is this ?

When I change #instance to a fixed file and use the cli-ops.jar for testing it works fine.

<?xml version="1.0" encoding="UTF-8"?>
<!--
    Cycle Plan Results pipe line
    Copyright (C) 2007 Atkins plc
    This fetches the results data from the engine.
-->
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:delegation="http://orbeon.org/oxf/xml/delegation" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <p:param type="input" name="instance" debug="input"/>
    <p:param type="output" name="data" debug="output"/>

    <p:processor name="oxf:xslt">
        <p:input name="data" href="settings.xml"/>
        <p:input name="config">
            <config xmlns="" xsl:version="2.0">
                <xsl:variable name="endpoint">
                    <xsl:choose>
                        <xsl:when test="/settings/traffic-news/endpoint">
                            <xsl:value-of select="/settings/traffic-news/endpoint"/>
                        </xsl:when>
                        <xsl:otherwise>
                            <xsl:text>http://localhost/no.default</xsl:text>
                        </xsl:otherwise>
                    </xsl:choose>
                </xsl:variable>
                <service id="trafficnews" type="webservice" style="document" endpoint="{$endpoint}">
                    <operation name="trafficnews" soap-action=""/>
                </service>
            </config>
        </p:input>
        <p:output name="data" id="trafficnews-interface"/>
    </p:processor>

    <!--
        This processor constructs a request.
    -->
    <p:processor name="oxf:xslt">
        <p:input name="data" href="#instance"/>
        <p:input name="config">
            <delegation:execute service="trafficnews" operation="trafficnews" xsl:version="2.0">
            <q0:findNewsOnRouteRequest xmlns:q0="http://www.atkinsglobal.com/mosaic/trafficnews/types">
                <Settings>
                    <XYSeparator>,</XYSeparator>
                    <PointSeparator> </PointSeparator>
                    <MaxDistance>500</MaxDistance>
                </Settings>
                <RouteSections>
                    <xsl:for-each select="//Section">
                        <RouteSection>
                            <Polylines>
                                <xsl:for-each select="links/ITNLink/polyline">
                                    <Polyline><xsl:value-of select="."/></Polyline>
                                </xsl:for-each>
                            </Polylines>
                        </RouteSection>
                    </xsl:for-each>
                </RouteSections>
            </q0:findNewsOnRouteRequest>
            </delegation:execute>
        </p:input>
        <p:output name="data" id="trafficnews-call" debug="call"/>
    </p:processor>

    <p:processor name="oxf:delegation">
        <p:input name="interface" href="#trafficnews-interface"/>
        <p:input name="call" href="#trafficnews-call"/>
        <p:output name="data" id="trafficnews-result"/>
    </p:processor>

    <!-- add travel news to journey result -->
    <p:processor name="oxf:xslt">
        <p:input name="data" href="#instance"/>
        <p:input name="news" href="#trafficnews-result"/>
        <p:input name="config">
        <xsl:stylesheet version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="">
            <xsl:template match="/">
                <xsl:copy>
                    <xsl:apply-templates />
                </xsl:copy>
            </xsl:template>
            <xsl:template match="Section">
                <xsl:copy>
                    <xsl:apply-templates />
                    <xsl:variable name="section" select="position()"/>
                    <xsl:element name="totalDelay">
                        <xsl:value-of select="sum(doc('input:news')//News[section=$section]/delay)"/>
                    </xsl:element>
                    <xsl:element name="delays">
                        <xsl:apply-templates select="doc('input:news')//News[section=$section]" />
                    </xsl:element>
                </xsl:copy>
            </xsl:template>
            <xsl:template match="News">
                <xsl:element name="news">
                    <xsl:element name="id">
                        <xsl:value-of select="newsId"/>
                    </xsl:element>
                    <xsl:element name="delay">
                        <xsl:value-of select="delay"/>
                    </xsl:element>
                </xsl:element>
            </xsl:template>
            <xsl:template match="*|@*">
                <xsl:copy>
                    <xsl:copy-of select="@*"/>
                    <xsl:apply-templates />
                </xsl:copy>
            </xsl:template>
        </xsl:stylesheet>
      </p:input>
        <p:output name="data" ref="data"/>
    </p:processor>

</p:config>


Richard Shaw

¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤

Richard Shaw  
Technical Design Authority - Information Solutions Consultancy  
Intelligent Transport Systems

Atkins Highways and Transportation
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW

Tel: +44 (0) 1372 756407 
Fax: +44 (0) 1372 740055
Mob: 07740 817586 
E-mail: [hidden email]

www.atkinsglobal.com/its



This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.

The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW.

P Consider the environment. Please don't print this e-mail unless you really need to.



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: [ops-users] Why is this not calling my web service

Alessandro Vernet
Administrator
Richard,

On 10/1/07, Shaw, Richard A <[hidden email]> wrote:

> I have a pipeline which calls a web service and add the results to the
> instance passed in.
>
> Why I run this the web service is not called it simply runs the XSLT
> processor which is trying to add the resluts to the instance.
>
> Why is this ?
>
> When I change #instance to a fixed file and use the cli-ops.jar for testing
> it works fine.
Are you sure the web service isn't called? Or is it just the "call"
debug that you don't see? If the web service is really not called,
then that looks like a bug and we would need a producible test case to
work on it. Maybe you can replace your web service call with a call to
a web service that is publicly available out there.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: [ops-users] Why is this not calling my web service

Shaw, Richard A
I wasn't seeing the 'call' debug and I wasn't seeing any data from the web service in my results. Plus it was running very fast which suggested it wasn't calling the service. I didn't check the logs on the web service to see if it was being called.

I've change my code to handle this in a different way so it isn't causing me any trouble now. I would be happy to try and reproduce it with a public service to 'help the cause' but I'm working to very tight timescales and now that I have worked around the issue I can't aford any more time on it. Sorry.


Richard Shaw

¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤

Richard Shaw  
Technical Design Authority - Information Solutions Consultancy  
Intelligent Transport Systems

Atkins Highways and Transportation
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW

Tel: +44 (0) 1372 756407
Fax: +44 (0) 1372 740055
Mob: 07740 817586
E-mail: [hidden email]

www.atkinsglobal.com/its

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet
Sent: 02 October 2007 02:01
To: [hidden email]
Subject: Re: [ops-users] Why is this not calling my web service

Richard,

On 10/1/07, Shaw, Richard A <[hidden email]> wrote:

> I have a pipeline which calls a web service and add the results to the
> instance passed in.
>
> Why I run this the web service is not called it simply runs the XSLT
> processor which is trying to add the resluts to the instance.
>
> Why is this ?
>
> When I change #instance to a fixed file and use the cli-ops.jar for
> testing it works fine.
Are you sure the web service isn't called? Or is it just the "call"
debug that you don't see? If the web service is really not called, then that looks like a bug and we would need a producible test case to work on it. Maybe you can replace your web service call with a call to a web service that is publicly available out there.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise http://www.orbeon.com/


This message has been scanned for viruses by MailControl - (see http://bluepages.wsatkins.co.uk/?6875772)


This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.

The ultimate parent company of the Atkins Group is WS Atkins plc.  Registered in England No. 1885586.  Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW.

Consider the environment. Please don't print this e-mail unless you really need to.


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: [ops-users] Why is this not calling my web service

Alessandro Vernet
Administrator
Richard,

On 10/2/07, Shaw, Richard A <[hidden email]> wrote:
> I wasn't seeing the 'call' debug and I wasn't seeing any data from the web service in my results. Plus it was running very fast which suggested it wasn't calling the service. I didn't check the logs on the web service to see if it was being called.
>
> I've change my code to handle this in a different way so it isn't causing me any trouble now. I would be happy to try and reproduce it with a public service to 'help the cause' but I'm working to very tight timescales and now that I have worked around the issue I can't aford any more time on it. Sorry.

I understand perfectly. There is no problem, and if there is really a
bug with this, we can be pretty sure that either you or someone else
will hit is again pretty soon.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws