You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by D....@hzd.hessen.de on 2004/10/25 07:46:25 UTC

write an soap result (xml-file) into a file

Hi all,

i have the some problems with cocoon 2.1.5:

after a soap request i get a valid xml file as a result. Now i want transform the result-xml
with an xsl and after this i want save the transformed result-xml to a file on my local HD.

How can i do this, has anyone an idea?
Can i do this with the SoureWriting Transformer?
Has anyone an example for me?


Thanks for your help...

Regards Dirk
 
----------------------------------------
Dirk Skirde
Hessische Zentrale für Datenverarbeitung
Mainzer Strasse 50  Raum 009
65189 Wiesbaden
Tel.:  +49 611 340 1941
Fax:   +49 611 340 5941
EMail: d.skirde@hzd.hessen.de

Re: write an soap result (xml-file) into a file

Posted by Nick Goupinets <ng...@openskysolutions.ca>.
Hey,

Generally speaking your approach is correct. First use SOAP logic sheet 
to get the results you want. Then apply xsl style sheet to them to 
covert them into the format you like (e.g. create input for 
SourceWritingTransformer (SWT)), then use SWT to write it to the HD.

Your sitemap might look like the following:

<map:match pattern="getSoap">
	<map:generate type="serverpages" src="getSoap.xml"/>
	<map:transform type="xsl" src="soap2SWTInput.xsl"/>
	<map:transform type="write-source"/>
	<map:serialize type="xml"/>
</map:match>

For more info about SOAP logicsheet read this:

http://wiki.apache.org/cocoon/SOAPLogicsheet

For the SWT info go here:

http://cocoon.apache.org/2.1/userdocs/transformers/sourcewriting-transformer.html

In case you have more specific problems, please enclose the snippets of 
pipelines, xsl, input, output, etc. that you use.

Sincerely,
Nick Goupinets.


D.Skirde@hzd.hessen.de wrote:
> Hi all,
> 
> i have the some problems with cocoon 2.1.5:
> 
> after a soap request i get a valid xml file as a result. Now i want 
> transform the result-xml
> with an xsl and after this i want save the transformed result-xml to a 
> file on my local HD.
> 
> How can i do this, has anyone an idea?
> Can i do this with the SoureWriting Transformer?
> Has anyone an example for me?
> 
> 
> Thanks for your help...
> 
> Regards Dirk
> 
> ----------------------------------------
> Dirk Skirde
> Hessische Zentrale für Datenverarbeitung
> Mainzer Strasse 50  Raum 009
> 65189 Wiesbaden
> Tel.:  +49 611 340 1941
> Fax:   +49 611 340 5941
> EMail: d.skirde@hzd.hessen.de
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org