Hi all, I'm trying to access a webservice running on my machine, I have searched in the mailing list archive, read the documentation but I don't see a clear example about how to do it. I get confused because I see pieces of code but I don't know where to put them.... in a separate file? in the model section of my view.xhtml file? in the body.... ?
Is there any example you can show me please? Thanks in advance |
Do you mean a SOAP style service? That is covered here: http://www.orbeon.com/ops/doc/processors-delegation#web-service One pointer I would add is that the select="" attribute is very helpful to "open" the data out of the SOAP envelope. You enter an XPath statement like select="//multiRef". It defaults to "/" which includes the envelope and so is a little more cumbersome to work with. Cheers, Hank On Mar 5, 2008, at 3:59 AM, xzdead wrote: > > Hi all, I'm trying to access a webservice running on my machine, I > have > searched in the mailing list archive, read the documentation but I > don't see > a clear example about how to do it. I get confused because I see > pieces of > code but I don't know where to put them.... in a separate file? in > the model > section of my view.xhtml file? in the body.... ? > > Is there any example you can show me please? > > > Thanks in advance > -- > View this message in context: http://www.nabble.com/connecting-to- > webservice-tp15848432p15848432.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.com. > > NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- 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 |
There is a good example of how to post to a Soap Service in the web-service-quote.xhtml which is found in the WEB-INF/resources/apps/xforms-sandbox/samples folder when you extract the war...
Thats the one I used as I could not get the below link's example working. Regards Mark On Wed, Mar 5, 2008 at 5:12 PM, Hank Ratzesberger <[hidden email]> wrote:
-- 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 Hank Ratzesberger
Hi Hank thanks for your answer
I already read the page you sent me, but I can't get it to work. Where do i have to place the code? Let's say I want to use the document-style one. Do i place it in a separate xpl file? As you can see I'm quite lost.... Thanks again
|
In reply to this post by Mark.El
Hello Mark, I have searched for the file you tell me but I can't find it, could you send it to me please?
thanks
|
Here it is...
you can see they connect to the webservice directly from the xform... which I have read is the preferred approach! I hope this helps... it took me some trial and error to get it working... so if you have the webservice on your local machine...try and run it in debug mode...so you can see when you actually hit your web service! Regards Mark On Thu, Mar 6, 2008 at 10:17 AM, xzdead <[hidden email]> wrote:
-- 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 web-service-quote.xhtml (3K) Download Attachment |
This post was updated on .
Hi again
I've tried... but nothing happens.... I get no error messages, I guess if I select ws-response in the "instance" dropdown i should see the result returned by the web service. Also I started the ws and put a breakponit in the function I'm calling but no thing happens. I have attached my code, the web service function i'm trying to call doesn't need any parameters, it only checks a connection and returns an string saying ok or wrong . I'd thank you if you can have a look Many thanks Victor wsquote.xhtml
|
Hi,
I would go into your config folder and edit the log4j.xml to make sure its either logging to ConsoleOut or to a file, and also make sure its logging to "debug" level... that way you should be able to see what is happening in the orbeon forms server... It might be that your envelope is not well formed... so it would not hit your web service code and IIS is rejecting it... I found it helps alot... Another thing I would do is inside of the submission add the below xml... <xforms:action ev:event="xforms-submit"> <xforms:message level="modal">Submit Triggered</xforms:message> </xforms:action> <xforms:action ev:event="xforms-submit-done"> <xforms:message level="modal">An submit to server has been done</xforms:message> </xforms:action> <xforms:action ev:event="xforms-submit-error"> <xforms:message level="modal">An error occurred while contacting server</xforms:message> </xforms:action> This should help you understand at least in the browser what is happening on the server while you are building your application. I hope this helps Regards Mark On Thu, Mar 6, 2008 at 6:10 PM, xzdead <[hidden email]> wrote:
-- 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 |
Hi I did what you told me and looking at the log I always get error 500. I paste a piece of log: 2008-03-10 09:43:20,265 INFO ProcessorService - /xforms-server - Received request 2008-03-10 09:43:20,281 ERROR XFormsServer - XForms - submission - xforms-submit-error throwable: org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException: line 27 of oxf:/config/xforms-widgets.xsl (processing submission response): xforms:submission for submission id: stock-submission, error code received when submitting instance: 500 oxf:/config/xforms-widgets.xsl, line 27, column -1: xforms:submission for submission id: stock-submission, error code received when submitting instance: 500 also I placed the code you sent me and I always get the "An error occurred while contacting server" message Thanks Victor Mark.El wrote: > > Hi, > > I would go into your config folder and edit the log4j.xml to make sure its > either logging to ConsoleOut or to a file, and also make sure its logging > to > "debug" level... that way you should be able to see what is happening in > the > orbeon forms server... It might be that your envelope is not well > formed... > so it would not hit your web service code and IIS is rejecting it... > > I found it helps alot... > > Another thing I would do is inside of the submission add the below xml... > > <xforms:action ev:event="xforms-submit"> > > <xforms:message > level="modal">Submit Triggered</xforms:message> > > </xforms:action> > <xforms:action ev:event="xforms-submit-done"> > <xforms:message level="modal">An submit to server has > been done</xforms:message> > </xforms:action> > <xforms:action ev:event="xforms-submit-error"> > <xforms:message level="modal">An error occurred while > contacting server</xforms:message> > </xforms:action> > > > This should help you understand at least in the browser what is happening > on > the server while you are building your application. > > I hope this helps > > Regards > > Mark > > > > View this message in context: http://www.nabble.com/connecting-to-webservice-tp15848432p15950611.html Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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 |
In reply to this post by Mark.El
Hi Victor,
Can you make sure you are logging all the instances in the Log4j.xml at debug level? The other thing is to see if the request is making it to IIS by checking the IIS logs... For example it might be rejecting the request based on your envelope... I am not using .Net web services, so I don't have an example SOAP envelope to share... I am using a AXIS web services and I am hitting issues about datatypes of inputs... though I doubt that is your issue as you are not passing inputs in, is that correct? Regards Mark On Mon, Mar 10, 2008 at 9:53 AM, xzdead <[hidden email]> wrote:
-- 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 Mark.El
Victor,
On Mon, Mar 10, 2008 at 1:53 AM, xzdead <[hidden email]> wrote: > also I placed the code you sent me and I always get the "An error occurred > while contacting server" message In addition to the advice given by Mark, you might want to try to put a tcpmon (http://ws.apache.org/commons/tcpmon/) between Orbeon Forms and your web service. This way you will be able to see exactly what is sent and received by the service. In general, I find tcpmon to be a simple but extremly useful tool. 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/ -- 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 |
Hi again, I (or better WE) got it to work.
Thanks very much, I'll keep tcpmon for further issues. I'm sure it will be useful I post my code here just In case it can help someone else. wsquote.xhtml
|
How can i pass URL Parameter value from one portlet to another portlet,Here In one portlet iam showing the URL onclick of the URL new window is displayed in different Portlet i want to pass parameter of the url to second portlet can anyone suggests Urgent
Thanks in advance Gopi This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person. -- 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 (4K) Download Attachment |
How can i pass URL Parameter value from one portlet to
another portlet,Here In one portlet iam showing the URL
onclick of the URL new window is displayed in different
Portlet i want to pass parameter of the url to
second portlet can anyone suggests Urgent
Thanks in advance
Gopi This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person. |
Administrator
|
In reply to this post by Reddy, Gopikrishna
Mmhh, this falls into the realm of inter-portlet communication. We
don't have any particular support here, but we know of users who have used JavaScript to dispatch events from one portlet to the other. -Erik On Mar 14, 2008, at 6:36 AM, Reddy, Gopikrishna wrote: > How can i pass URL Parameter value from one portlet to another > portlet,Here In one portlet iam showing the URL onclick of the URL > new window is displayed in different Portlet i want to pass > parameter of the url to second portlet can anyone suggests Urgent > > Thanks in advance > > Gopi > > This e-mail (and any attachments), is confidential and may be > privileged. It may be read, copied and used only > by intended recipients. Unauthorized access to this e-mail (or > attachments) and disclosure or copying of its > contents or any action taken in reliance on it is unlawful. > Unintended recipients must notify the sender immediately > by e-mail/phone & delete it from their system without making any > copies or disclosing it to a third person. > > <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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 |
Free forum by Nabble | Edit this page |