Hello all, My requirement is to get the near by cities of client location. I am able to get those from a web service .when I select the above link I can get the response on browser. So to
get it into a variable I used If I want to do the same procedure in xform, iam getting an error asking
for delimiter”;” so I replaced “&” with “&” But browser will give a Bad response message. Can any body tell how we use above url in xform toget the list of
cities? Thanks, Prameela. -- 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
|
Prameela,
On Feb 18, 2009, at 11:34 PM, Prameela R wrote: > My requirement is to get the near by cities of client location. > > I am able to get those from a web service > > http://glrs.geobytes.com/map.htm?GetNearByCities&Radius=100&LocationCode=USNYNYOR&template=%3Cgeobytes%20city%3E,%20&units=miles What is returned by this service is text, not XML, which means that in XForms you'll need to use a submission replace="text". The following is an example from the XForms 1.1 spec: <xforms:submission resource="http://example.com/postalCodeSearch" method="get" ref="address" replace="text" target="address/postalCode"/> You can read more about it on: http://www.w3.org/TR/xforms11/#submit-data-replacement Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
Alex,
Thank you very much. It really works good. Prameela. -----Original Message----- From: Alessandro Vernet [mailto:[hidden email]] Sent: Friday, February 20, 2009 8:47 AM To: [hidden email] Subject: [ops-users] Re: how to get response from a web service url in xform Prameela, On Feb 18, 2009, at 11:34 PM, Prameela R wrote: > My requirement is to get the near by cities of client location. > > I am able to get those from a web service > > http://glrs.geobytes.com/map.htm?GetNearByCities&Radius=100&LocationCode=USN YNYOR&template=%3Cgeobytes%20city%3E,%20&units=miles What is returned by this service is text, not XML, which means that in XForms you'll need to use a submission replace="text". The following is an example from the XForms 1.1 spec: <xforms:submission resource="http://example.com/postalCodeSearch" method="get" ref="address" replace="text" target="address/postalCode"/> You can read more about it on: http://www.w3.org/TR/xforms11/#submit-data-replacement Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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
|
On Feb 19, 2009, at 9:55 PM, Prameela R wrote:
> Thank you very much. It really works good. Perfect. Thank you for the update. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |