W3C home > Mailing lists > Public > xproc-dev@w3.org > February 2009

Having trouble with Calabash 0.9.4 and http-request

From: Philip Fennell <Philip.Fennell@bbc.co.uk>
Date: Fri, 27 Feb 2009 10:22:45 -0000
Message-ID: <FBFAE0E0B37B4148AF77509764D4BC2007B1E7FE@bbcxues11.national.core.bbc.co.uk>
To: <xproc-dev@w3.org>
I got a hold of Calabash 0.9.4, and took note of the changed
prerequists. I got hold of

* commons-httpclient-3.1
* commons-logging-1.1.1
* commons-codec-1.3

and added the following JARs to my classpath:

D:\lib\commons-httpclient-3.1\commons-httpclient-3.1.jar
D:\lib\commons-logging-1.1.1\commons-logging-1.1.1.jar
D:\lib\commons-codec-1.3\commons-codec-1.3.jar

but all I get for my troubles is:

Error  : Pipeline failed: java.lang.UnsupportedOperationException

when I apply this step:

<p:declare-step name="submit-requests" type="test:create-entries">
	<p:input port="source" sequence="true"/>
	<p:output port="result"/>
	
	<p:for-each>
		<p:iteration-source select="/c:request"/>
		
		<p:http-request indent="true" method="xml"
media-type="application/xml"/>
		
		<cx:message>
			<p:with-option name="message"
select="concat('[test:create-entries] ', name(/*))"/>
		</cx:message>
	</p:for-each>

	<p:wrap-sequence wrapper="c:responses"/>
</p:declare-step>

to this example request:

<c:request xmlns:c="http://www.w3.org/ns/xproc-step" method="PUT"
	
href="http://192.168.192.10:8080/atomserver/v1/test/atom-6/c72d2e94-c776
-4c2c-8040-7ab9bcd380e0">
	<c:body content-type="application/xml">
		<atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
	
<atom:id>urn:uuid:c72d2e94-c776-4c2c-8040-7ab9bcd380e0</atom:id>
			<atom:content type="application/xml">
				<Programme
xmlns="http://infax.bbc.co.uk/ns/0.1/" id="00 CF07" magazinePrefix=""
	
uuid="c72d2e94-c776-4c2c-8040-7ab9bcd380e0"/>
			</atom:content>
		</atom:entry>
	</c:body>
</c:request>


Is there anything I've missed?


Regards

Philip Fennell

>XML Developer (The Forge)
>
>BBC Future Media & Technology
>Media Village, 201 Wood Lane London W12 7TP
>BC4 C4, Broadcast Centre
>
>T:	0208 0085318

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
					
Received on Friday, 27 February 2009 10:23:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 February 2009 10:23:21 GMT