Subject: | Use of uninitialized value $num in concatenation ... t/PostApp/lib/PostApp/Controller/WithWSDL.pm line 19 |
Hi,
I've tried to install Catalyst-Controller-SOAP-1.10 but the test failed
(see Catalyst-Controller-SOAP-1.10-testfail.txt). When I've added the
namespaces to the SOAP requests (see namespaces.patch) then the tests
started to pass (see Catalyst-Controller-SOAP-1.10-testok.txt). I'm
still new to the SOAP so I'm not sure if this is a problem of the tests
or Catalyst::Controller::SOAP or XML::Compile or ???.
Here are the version of all XML or SOAP Perl modules that I have on my
system:
libpoe-filter-xml-perl/lenny uptodate 0.33-1
librpc-xml-perl/lenny uptodate 0.60-3
libsoap-lite-perl/lenny uptodate 0.710.08-1
libsoap-wsdl-perl 2.00.06-1 installed: No available version in archive
libxml-compile-perl 1.00-1 installed: No available version in archive
libxml-compile-soap-perl 0.78-1 installed: No available version in archive
libxml-compile-tester-perl 0.04-1 installed: No available version in archive
libxml-generator-perldata-perl/sid uptodate 0.91-2
libxml-libxml-common-perl/lenny uptodate 0.13-6+b1
libxml-libxml-perl/lenny uptodate 1.66-1+b1
libxml-namespacesupport-perl/etch uptodate 1.09-3
libxml-parser-perl/lenny uptodate 2.36-1.1+b1
libxml-regexp-perl/etch uptodate 0.03-7
libxml-sax-expat-incremental-perl/lenny uptodate 0.05-1
libxml-sax-expat-perl/lenny uptodate 0.40-1
libxml-sax-perl/lenny uptodate 0.16+dfsg-3
libxml-simple-perl/lenny uptodate 2.18-1
libxml-stream-perl/lenny uptodate 1.22-3
libxml-twig-perl/lenny uptodate 1:3.32-1
libxml-writer-perl/lenny uptodate 0.604-1
libxml-xpath-perl/etch uptodate 1.13-6
Cheers,
Jozef
Subject: | Catalyst-Controller-SOAP-1.10-testok.txt |
Message body is not shown because it is too large.
Subject: | namespaces.patch |
From 3f93abd69215b3666439b99b35898a73ab4f314a Mon Sep 17 00:00:00 2001
From: Jozef Kutej <jozef@kutej.net>
Date: Wed, 4 Feb 2009 12:26:14 +0100
Subject: [PATCH] added namespaces to soap requests
---
t/PostApp.t | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/t/PostApp.t b/t/PostApp.t
index 30553ec..623692c 100644
--- a/t/PostApp.t
+++ b/t/PostApp.t
@@ -32,7 +32,7 @@ $response = soap_xml_post
('/withwsdl/Greet',
'<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body>
- <GreetingSpecifier>
+ <GreetingSpecifier xmlns="http://example.com/hello">
<who>World</who>
<greeting>Hello</greeting>
<count>1</count>
@@ -46,14 +46,14 @@ like($response->content, qr/greeting\>1 Hello World\!\<\//, 'Literal response: '
$response = soap_xml_post
('/withwsdl/doclw',
- '<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><GreetingSpecifier><who>World</who><greeting>Hello</greeting><count>2</count></GreetingSpecifier></Body></Envelope>'
+ '<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><GreetingSpecifier xmlns="http://example.com/hello"><who>World</who><greeting>Hello</greeting><count>2</count></GreetingSpecifier></Body></Envelope>'
);
like($response->content, qr/greeting\>2 Hello World\!\<\//, ' Document/Literal Wrapped response: '.$response->content);
# diag("/withwsdl/doclw: ".$response->content);
$response = soap_xml_post
('/withwsdl2/Greet','
- <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Greet><who>World</who><greeting>Hello</greeting><count>3</count></Greet></Body></Envelope>
+ <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Greet xmlns="http://example.com/hello"><who>World</who><greeting>Hello</greeting><count>3</count></Greet></Body></Envelope>
');
like($response->content, qr/greeting[^>]+\>3 Hello World\!Math::BigInt\<\//, 'RPC Literal response: '.$response->content);
# diag("/withwsdl2/Greet: ".$response->content);
@@ -62,7 +62,7 @@ $response = soap_xml_post
('/withwsdl2/Greet','
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body>
- <Greet>
+ <Greet xmlns="http://example.com/hello">
<who>World</who>
<greeting>Hello</greeting>
<count>4</count>
@@ -75,7 +75,7 @@ ok($response->content =~ /greeting[^>]+\>4 Hello World\!Math::BigInt\<\//, 'RPC
$response = soap_xml_post
('/withwsdl/Greet',
- '<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><GreetingSpecifier><name>World</name><greeting>Hello</greeting></GreetingSpecifier></Body></Envelope>'
+ '<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><GreetingSpecifier xmlns="http://example.com/hello"><name>World</name><greeting>Hello</greeting></GreetingSpecifier></Body></Envelope>'
);
like($response->content, qr/Fault/, 'Fault on malformed body for Document-Literal: '.$response->content);
# diag("/withwsdl/Greet: ".$response->content);
@@ -91,7 +91,7 @@ $response = soap_xml_post
('/hello/Greet',
'<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body>
- <GreetingSpecifier>
+ <GreetingSpecifier xmlns="http://example.com/hello">
<who>World</who>
<greeting>Hello</greeting>
</GreetingSpecifier>
@@ -105,7 +105,7 @@ $response = soap_xml_post
('/hello/Shout',
'<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body>
- <GreetingSpecifier>
+ <GreetingSpecifier xmlns="http://example.com/hello">
<who>World</who>
<greeting>Hello</greeting>
</GreetingSpecifier>
@@ -118,14 +118,14 @@ like($response->content, qr/greeting\>HELLO WORLD\!\!\<\//, ' using WSDLPort res
$response = soap_xml_post
('/rpcliteral','
- <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Greet><who>World</who><greeting>Hello</greeting></Greet></Body></Envelope>
+ <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Greet xmlns="http://example.com/hello"><who>World</who><greeting>Hello</greeting></Greet></Body></Envelope>
');
like($response->content, qr/greeting[^>]+\>Hello World\!\<\//, ' WSDLPort RPC Literal response: '.$response->content);
# diag("/withwsdl2/Greet: ".$response->content);
$response = soap_xml_post
('/rpcliteral','
- <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Shout><who>World</who><greeting>Hello</greeting></Shout></Body></Envelope>
+ <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Shout xmlns="http://example.com/hello"><who>World</who><greeting>Hello</greeting></Shout></Body></Envelope>
');
like($response->content, qr/greeting[^>]+\>HELLO WORLD\!\<\//, ' WSDLPort RPC Literal response: '.$response->content);
# diag("/withwsdl2/Greet: ".$response->content);
--
1.5.6.5
Subject: | Catalyst-Controller-SOAP-1.10-testfail.txt |
Message body is not shown because it is too large.