All,
Looking for a good XForms example that will allow me to access a REST web service from an eXist db from an Orbeon XForms instance and then store the result data or document into a different eXist db. I assume you would use the xml pipeline in Orbeon to get the data back and also to store it? The REST web service is of the form below with the input being "source.xml" or an xQuery like "source.xq". "http://machine:7777/sourceservice/service.svc/sources/xxxxxxxxxx/source.xml" which returns an xml stream like it would to a browser. Thanks, Randy -- 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
|
Randy,
You shouldn't even need to write pipelines for this (unless of course you want to). Just using the <xforms:submission> from your XForms should be enough. There are some examples of this in the XForms tutorial: http://www.orbeon.com/ops/doc/intro-tutorial Alex |
Hello,
I would like to connect to a Java web service. I have created a basic one using JAX-WS. I have then deployed this to a GlassFish 2.1 application server. I know it is working, as the admin of GlassFish allows you to test web services. Here is the output: ************************************************************** http://plweb01:8080/Test2/TestWebServiceService?Tester ************************************************************** Method returned java.lang.String : "it Works!!" SOAP Request <?xml version="1.0" encoding="UTF-8"?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Header/> <S:Body> <ns2:getListofNames xmlns:ns2="http://webservices.packer.com/"/> </S:Body> </S:Envelope> SOAP Response <?xml version="1.0" encoding="UTF-8"?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:getListofNamesResponse xmlns:ns2="http://webservices.packer.com/"> <return>it Works!!</return> </ns2:getListofNamesResponse> </S:Body> </S:Envelope> ************************************************************** I have tried to connect to this following the example, but I can't seem to get it to work. Below is the current code from my .xpl pipeline. Could someone tell me what is wrong with it? Also, I would like to know where I can find more documentation on the Delegation Processor. Btw, orbeon is running on the same application server as the web service. Cheers Steve ************************************************************** names.xpl ************************************************************** <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:delegation="http://www.orbeon.com/oxf/xml/delegation"> <p:param name="data" type="output"/> <p:processor name="oxf:delegation"> <p:input name="interface"> <config> <service id="TestWebServiceService" type="webservice" style="document" endpoint="http://plweb01:8080/Test2/TestWebServiceService"> <operation name="getListofNames"/> </service> </config> </p:input> <p:input name="call"> <delegation:execute service="TestWebServiceService" operation="getListofNames"> </delegation:execute> </p:input> <p:output name="data" ref="data"/> </p:processor> </p:config> ************************************************************** Here is the output I get: <?xml version="1.0" encoding="utf-8"?><delegation:execute xmlns:delegation="http://www.orbeon.com/oxf/xml/delegation" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:p="http://www.orbeon.com/oxf/pipeline" service="TestWebServiceService" operation="getListofNames"> </delegation:execute> -- 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
|
Steven,
Instead of using the Delegation processor, I'd recommend you use an <xforms:submission> to call your web service. You can do so either from XForms (you'll an example in web-service-weather.xhtml, in the XForms sandbox), or from XPL use the oxf:xforms-submission processors (see: http://www.orbeon.com/ops/doc/processors-submission). Alex |
Free forum by Nabble | Edit this page |