Hello,
Let I have a xform with fields binding to the instance for an xml as below <A> <aname></aname> <doc><collection/><id/></doc> <b></b> <b></b> <b></b> <b></b> </A> I have an xpl which collects the <b> tag related data into a collection as separate xml and putting its name as id in <id> tag and also saving collection in collection tag. How should I run this xpl from the xform.? The following change I made in pageflow and in submit action has the same data as that of path-info in page-flow.xml <page path-info="/ada/" model="xx.xpl" view="form.xhtml"/> But on submit the form is not able to run the xpl. -- 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 winmail.dat (5K) Download Attachment |
I have a pipeline which talks to a third part service using the delegation processor.
When I run this with Tomcat and my Browser on the same machine everything works fine. But when I move the Tomcat server to a remote machine the pipeline no longer works. It gives me three connection timeouts in the catalina log file. I've tried posting data direct to the pipeline and it works fine, it only fails when I call it from an action button on my web page as follows - <xforms:submission id="do-get-via" ref="/model/form/destination" method="post" action="/road-plan/gazetteer-lookup" replace="instance" instance="destination"> <xforms:message ev:event="xforms-submit-error" level="modal">Unable to contact service</xforms:message> </xforms:submission> I'm guessing this has something to do with security settings, with the Ajax request from xforms being different. Do you have any suggestions on what I should look at next ? Note: The third party service I'm calling is on the same external server that I have put Tomcat on. I have configured my delegation call to use http://127.0.0.1/third-part-service Richard Shaw 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. A list of wholly owned Atkins Group companies registered in the United Kingdom can be found at http://www.atkinsglobal.com/terms_and_conditions/index.aspx 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 winmail.dat (7K) Download Attachment |
Administrator
|
Richard,
Are the connection time out messages you get for the URL of the service that runs the XPL or for the web service called by the XPL? Alex On Dec 16, 2008, at 9:31 AM, "Shaw, Richard A" <[hidden email] > wrote: > I have a pipeline which talks to a third part service using the > delegation processor. > > When I run this with Tomcat and my Browser on the same machine > everything works fine. But when I move the Tomcat server to a remote > machine the pipeline no longer works. It gives me three connection > timeouts in the catalina log file. > > I've tried posting data direct to the pipeline and it works fine, it > only fails when I call it from an action button on my web page as > follows - > > <xforms:submission id="do-get-via" ref="/model/form/destination" > method="post" action="/road-plan/gazetteer-lookup" > > replace="instance" instance="destination"> > > <xforms:message ev:event="xforms-submit-error" level="modal">Unable > to contact service</xforms:message> > > </xforms:submission> > > I'm guessing this has something to do with security settings, with > the Ajax request from xforms being different. > > Do you have any suggestions on what I should look at next ? > > Note: The third party service I'm calling is on the same external > server that I have put Tomcat on. I have configured my delegation > call to use http://127.0.0.1/third-part-service > > Richard Shaw > > > > 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. A list of wholly owned > Atkins Group companies registered in the United Kingdom can be found > at http://www.atkinsglobal.com/terms_and_conditions/index.aspx > > Consider the environment. Please don't print this e-mail unless you > really need to. > <winmail.dat> > > -- > 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 -- 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 |
Administrator
|
In reply to this post by Prameela R
Hard to say where the problem is with the call to your XPL without
seeing your code and without any information about the error you are getting. My recommendation is to look at an example that does this (say the instant translation example) and if that doesn't help to followup here with more information, including the error message you are getting. Alex On Dec 16, 2008, at 9:09 AM, "Prameela R" <[hidden email] > wrote: > Hello, > > > > > > Let I have a xform with fields binding to the instance for an xml as > below > > > > <A> > > <aname></aname> > > <doc><collection/><id/></doc> > > <b></b> > > <b></b> > > <b></b> > > <b></b> > > </A> > > > > I have an xpl which collects the <b> tag related data into a > collection as > separate xml and putting its name as id in <id> tag and also saving > collection in collection tag. > > > > How should I run this xpl from the xform.? > > > > The following change I made in pageflow and in submit action has the > same > data as that of path-info in page-flow.xml > > > > <page path-info="/ada/" model="xx.xpl" view="form.xhtml"/> > > > > But on submit the form is not able to run the xpl. > > <winmail.dat> > > -- > 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 -- 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 |
In reply to this post by Alessandro Vernet
I'm assuming the timeout is OPS trying to connect to my other service because I get an error message in my catalina log file and eventually I get an error message on the client.
I've pared everything down to the bare minimum and it still fails. I made my XPL ignore any data posted to it from the web page so that it would always make a call even if the input wasn't working from the client browser. It still fails in the same way. The error message I see is - org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: I/O exception (java.net.ConnectException) caught when processing requestL connectino timed out: connect org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: Retrying request It tries three times before giving up. I've attached my test version. If I call /road-plan/test-gaz I get a result. If I call /road-plan/test-gaz-page and press the test button I get the timeout error on the server. And if I call /road-plan/test-gaz-page from a browser running on the server it works fine. The only thing I haven't tried is moving the service I am calling from my XPL to a different server to the XPL server to see if it is a loopback issue. I was due to deliver this s/w to my client yesterday, and am now pulling my hair out, my manager wants me to re-write the s/w without OPS. 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: Alessandro Vernet [mailto:[hidden email]] Sent: 17 December 2008 00:47 To: [hidden email] Subject: [ops-users] Re: submission fails with replace instance Richard, Are the connection time out messages you get for the URL of the service that runs the XPL or for the web service called by the XPL? Alex On Dec 16, 2008, at 9:31 AM, "Shaw, Richard A" <[hidden email] > wrote: > I have a pipeline which talks to a third part service using the > delegation processor. > > When I run this with Tomcat and my Browser on the same machine > everything works fine. But when I move the Tomcat server to a remote > machine the pipeline no longer works. It gives me three connection > timeouts in the catalina log file. > > I've tried posting data direct to the pipeline and it works fine, it > only fails when I call it from an action button on my web page as > follows - > > <xforms:submission id="do-get-via" ref="/model/form/destination" > method="post" action="/road-plan/gazetteer-lookup" > > replace="instance" instance="destination"> > > <xforms:message ev:event="xforms-submit-error" level="modal">Unable to > contact service</xforms:message> > > </xforms:submission> > > I'm guessing this has something to do with security settings, with the > Ajax request from xforms being different. > > Do you have any suggestions on what I should look at next ? > > Note: The third party service I'm calling is on the same external > server that I have put Tomcat on. I have configured my delegation call > to use http://127.0.0.1/third-part-service > > Richard Shaw > > > > 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. A list of wholly owned Atkins > Group companies registered in the United Kingdom can be found at > http://www.atkinsglobal.com/terms_and_conditions/index.aspx > > Consider the environment. Please don't print this e-mail unless you > really need to. > <winmail.dat> > > -- > 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 This message has been scanned for viruses by MailControl - (see http://axis.eu.atkinsglobal.com/workinghere/itservices/Pages/dataandemailmgt.aspx#mailcontrol) -- 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 test-gaz-page.zip (4K) Download Attachment |
In reply to this post by Alessandro Vernet
I replaced the third party web service call in my test to one on an external machine and I still get the same result.
I've attached the new version of test-gaz.xpl so that you can see what I'm doing. What I'm trying to find out is what makes the security different when calling an XPL direct as opposted to calling it from Ajax - but I can't find anything on the web. 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: Alessandro Vernet [mailto:[hidden email]] Sent: 17 December 2008 00:47 To: [hidden email] Subject: [ops-users] Re: submission fails with replace instance Richard, Are the connection time out messages you get for the URL of the service that runs the XPL or for the web service called by the XPL? Alex On Dec 16, 2008, at 9:31 AM, "Shaw, Richard A" <[hidden email] > wrote: > I have a pipeline which talks to a third part service using the > delegation processor. > > When I run this with Tomcat and my Browser on the same machine > everything works fine. But when I move the Tomcat server to a remote > machine the pipeline no longer works. It gives me three connection > timeouts in the catalina log file. > > I've tried posting data direct to the pipeline and it works fine, it > only fails when I call it from an action button on my web page as > follows - > > <xforms:submission id="do-get-via" ref="/model/form/destination" > method="post" action="/road-plan/gazetteer-lookup" > > replace="instance" instance="destination"> > > <xforms:message ev:event="xforms-submit-error" level="modal">Unable to > contact service</xforms:message> > > </xforms:submission> > > I'm guessing this has something to do with security settings, with the > Ajax request from xforms being different. > > Do you have any suggestions on what I should look at next ? > > Note: The third party service I'm calling is on the same external > server that I have put Tomcat on. I have configured my delegation call > to use http://127.0.0.1/third-part-service > > Richard Shaw > > > > 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. A list of wholly owned Atkins > Group companies registered in the United Kingdom can be found at > http://www.atkinsglobal.com/terms_and_conditions/index.aspx > > Consider the environment. Please don't print this e-mail unless you > really need to. > <winmail.dat> > > -- > 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 This message has been scanned for viruses by MailControl - (see http://axis.eu.atkinsglobal.com/workinghere/itservices/Pages/dataandemailmgt.aspx#mailcontrol) -- 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 test-gaz.xpl (4K) Download Attachment |
In reply to this post by Alessandro Vernet
Another observation -
I tried using tcptrace (http://www.pocketsoap.com/tcpTrace/) between my browser and the server to view the requests to see if I could spot anything different in the requests and to my surprise everything works when using it. There seems to be two options for this - 1 - it isn't passing everything through 2 - the referer is set to localhost:8080 and I assume that when I am not using it the referer is my actual server name:8080 This is the call direct to the pipeline - GET /freight-ops/road-plan/test-gaz HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, (Value Not Set), application/x-silverlight, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */* Accept-Language: en-gb Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022) Host: localhost:8080 Connection: Keep-Alive Cookie: JSESSIONID=F1DF3FE0A66E4C063D1C176C28771B3E This is the call when I press a button to do it - POST /freight-ops//xforms-server HTTP/1.1 Accept: */* Accept-Language: en-gb Referer: http://localhost:8080/freight-ops/road-plan/test-gaz-page Content-Type: application/xml Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022) Host: localhost:8080 Content-Length: 485 Connection: Keep-Alive Cache-Control: no-cache Cookie: JSESSIONID=F1DF3FE0A66E4C063D1C176C28771B3E <!DOCTYPE xxforms:event-request [<!ENTITY nbsp " ">]> <xxforms:event-request xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> <xxforms:static-state>session:EB158AA7-648E-5F64-1901-BFA4FCA2336D</xxforms:static-state> <xxforms:dynamic-state>session:7720B388-A73C-8EFA-D08B-22E84C39E3C5</xxforms:dynamic-state> <xxforms:action> <xxforms:event name="DOMActivate" source-control-id="xforms-element-7"></xxforms:event> </xxforms:action> </xxforms:event-request> 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: Alessandro Vernet [mailto:[hidden email]] Sent: 17 December 2008 00:47 To: [hidden email] Subject: [ops-users] Re: submission fails with replace instance Richard, Are the connection time out messages you get for the URL of the service that runs the XPL or for the web service called by the XPL? Alex On Dec 16, 2008, at 9:31 AM, "Shaw, Richard A" <[hidden email] > wrote: > I have a pipeline which talks to a third part service using the > delegation processor. > > When I run this with Tomcat and my Browser on the same machine > everything works fine. But when I move the Tomcat server to a remote > machine the pipeline no longer works. It gives me three connection > timeouts in the catalina log file. > > I've tried posting data direct to the pipeline and it works fine, it > only fails when I call it from an action button on my web page as > follows - > > <xforms:submission id="do-get-via" ref="/model/form/destination" > method="post" action="/road-plan/gazetteer-lookup" > > replace="instance" instance="destination"> > > <xforms:message ev:event="xforms-submit-error" level="modal">Unable to > contact service</xforms:message> > > </xforms:submission> > > I'm guessing this has something to do with security settings, with the > Ajax request from xforms being different. > > Do you have any suggestions on what I should look at next ? > > Note: The third party service I'm calling is on the same external > server that I have put Tomcat on. I have configured my delegation call > to use http://127.0.0.1/third-part-service > > Richard Shaw > > > > 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. A list of wholly owned Atkins > Group companies registered in the United Kingdom can be found at > http://www.atkinsglobal.com/terms_and_conditions/index.aspx > > Consider the environment. Please don't print this e-mail unless you > really need to. > <winmail.dat> > > -- > 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 This message has been scanned for viruses by MailControl - (see http://axis.eu.atkinsglobal.com/workinghere/itservices/Pages/dataandemailmgt.aspx#mailcontrol) -- 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 |
Free forum by Nabble | Edit this page |