You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by johnson <jo...@erp.tw> on 2006/05/23 08:37:33 UTC
CFrom & Web Service Binding
Hi!
Is it possible to binding Web Service for Cform, I think it will
convinent to develop closs web app.
Best Regards
johnson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: AW: AW: CFrom & Web Service Binding
Posted by johnson <jo...@erp.tw>.
The Code is the data control, Like add delete update.
Best regards
johnson
Christofer Dutz 提到:
>Hi Johnson,
>
>Don't quite understand what code you are exactly refering to.
>Immagine these pipelines:
>
><map:match pattern="read-pipeline">
> <map:generate type="some-cool-webservice"/>
> <map:transform src="ws-to-internal.xsl"/>
> <map:serialize type="xml"/>
></map:match>
><map:match pattern="read-pipeline">
> <map:generate src="module:flow-attr:write-doc" />
> <map:transform src="internal-to-ws.xsl"/>
> <map:serialize type="some-even-cooler-webservice"/>
></map:match>
>
>Ok ... you could use or write a serializer writing to the webservice or
>serialize as xml and deal with writing to the WS in flowscript.
>
>By using an internal format you could use the simplest binding.
>
>Chris
>
>[ c h r i s t o f e r d u t z ]
>
>IT-Berater
>univativ GmbH & Co. KG
>Robert-Bosch-Str. 7, 64293 Darmstadt
>
>fon: 0 61 51 / 66 717 -0
>fax: 0 61 51 / 66 717 -29
>email: christofer.dutz@univativ.de
>http://www.univativ.de
>
>Darmstadt, Stuttgart, Karlsruhe, Düsseldorf
>
>-----Ursprüngliche Nachricht-----
>Von: johnson [mailto:johnson@erp.tw]
>Gesendet: Dienstag, 23. Mai 2006 15:48
>An: users@cocoon.apache.org
>Betreff: Re: AW: CFrom & Web Service Binding
>
>Hi Chris
>
>I've used this method before, But the code is different from the binding
>method, So If you have two data source, one is database, the other is
>web service, you must change your code.
>
>If use binding, you just need to change the binding, don't need any
>other code.
>
>Best Regards
>
>johnson
>
>Christofer Dutz ??:
>
>
>
>>Hi Johnson
>>
>>I use to bind my CForms forms to Xml documents and use cocoons pipelines to
>>provide them. So for the reading direction I think all you would have to do
>>is create an (internal) pipeline accessing the Webservice of choice and
>>
>>
>feed
>
>
>>the result in the CForm. On the writing side I think a similar way should
>>work.
>>
>>Chris
>>
>>-----Ursprüngliche Nachricht-----
>>Von: johnson [mailto:johnson@erp.tw]
>>Gesendet: Dienstag, 23. Mai 2006 08:38
>>An: users@cocoon.apache.org
>>Betreff: CFrom & Web Service Binding
>>
>>Hi!
>>
>>Is it possible to binding Web Service for Cform, I think it will
>>convinent to develop closs web app.
>>
>>Best Regards
>>
>>johnson
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
AW: AW: CFrom & Web Service Binding
Posted by Christofer Dutz <du...@c-ware.de>.
Hi Johnson,
Don't quite understand what code you are exactly refering to.
Immagine these pipelines:
<map:match pattern="read-pipeline">
<map:generate type="some-cool-webservice"/>
<map:transform src="ws-to-internal.xsl"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="read-pipeline">
<map:generate src="module:flow-attr:write-doc" />
<map:transform src="internal-to-ws.xsl"/>
<map:serialize type="some-even-cooler-webservice"/>
</map:match>
Ok ... you could use or write a serializer writing to the webservice or
serialize as xml and deal with writing to the WS in flowscript.
By using an internal format you could use the simplest binding.
Chris
[ c h r i s t o f e r d u t z ]
IT-Berater
univativ GmbH & Co. KG
Robert-Bosch-Str. 7, 64293 Darmstadt
fon: 0 61 51 / 66 717 -0
fax: 0 61 51 / 66 717 -29
email: christofer.dutz@univativ.de
http://www.univativ.de
Darmstadt, Stuttgart, Karlsruhe, Düsseldorf
-----Ursprüngliche Nachricht-----
Von: johnson [mailto:johnson@erp.tw]
Gesendet: Dienstag, 23. Mai 2006 15:48
An: users@cocoon.apache.org
Betreff: Re: AW: CFrom & Web Service Binding
Hi Chris
I've used this method before, But the code is different from the binding
method, So If you have two data source, one is database, the other is
web service, you must change your code.
If use binding, you just need to change the binding, don't need any
other code.
Best Regards
johnson
Christofer Dutz ??:
>Hi Johnson
>
>I use to bind my CForms forms to Xml documents and use cocoons pipelines to
>provide them. So for the reading direction I think all you would have to do
>is create an (internal) pipeline accessing the Webservice of choice and
feed
>the result in the CForm. On the writing side I think a similar way should
>work.
>
>Chris
>
>-----Ursprüngliche Nachricht-----
>Von: johnson [mailto:johnson@erp.tw]
>Gesendet: Dienstag, 23. Mai 2006 08:38
>An: users@cocoon.apache.org
>Betreff: CFrom & Web Service Binding
>
>Hi!
>
>Is it possible to binding Web Service for Cform, I think it will
>convinent to develop closs web app.
>
>Best Regards
>
>johnson
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: AW: CFrom & Web Service Binding
Posted by johnson <jo...@erp.tw>.
Hi Chris
I've used this method before, But the code is different from the binding
method, So If you have two data source, one is database, the other is
web service, you must change your code.
If use binding, you just need to change the binding, don't need any
other code.
Best Regards
johnson
Christofer Dutz 提到:
>Hi Johnson
>
>I use to bind my CForms forms to Xml documents and use cocoons pipelines to
>provide them. So for the reading direction I think all you would have to do
>is create an (internal) pipeline accessing the Webservice of choice and feed
>the result in the CForm. On the writing side I think a similar way should
>work.
>
>Chris
>
>-----Ursprüngliche Nachricht-----
>Von: johnson [mailto:johnson@erp.tw]
>Gesendet: Dienstag, 23. Mai 2006 08:38
>An: users@cocoon.apache.org
>Betreff: CFrom & Web Service Binding
>
>Hi!
>
>Is it possible to binding Web Service for Cform, I think it will
>convinent to develop closs web app.
>
>Best Regards
>
>johnson
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
AW: CFrom & Web Service Binding
Posted by Christofer Dutz <du...@c-ware.de>.
Hi Johnson
I use to bind my CForms forms to Xml documents and use cocoons pipelines to
provide them. So for the reading direction I think all you would have to do
is create an (internal) pipeline accessing the Webservice of choice and feed
the result in the CForm. On the writing side I think a similar way should
work.
Chris
-----Ursprüngliche Nachricht-----
Von: johnson [mailto:johnson@erp.tw]
Gesendet: Dienstag, 23. Mai 2006 08:38
An: users@cocoon.apache.org
Betreff: CFrom & Web Service Binding
Hi!
Is it possible to binding Web Service for Cform, I think it will
convinent to develop closs web app.
Best Regards
johnson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org