Skip Menu |
 

This queue is for tickets about the XML-Compile-SOAP CPAN distribution.

Report information
The Basics
Id: 105161
Status: resolved
Priority: 0/
Queue: XML-Compile-SOAP

People
Owner: Nobody in particular
Requestors: NWELLNHOF [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 3.08
Fixed in: (no value)



Subject: Extensions that add headers break when SOAP11::Encoding is used
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-7807-1433967174-389.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 543
Download (untitled) / with headers
text/plain 543b
This might be related to RT #99735. I have a XML::Compile::SOAP::Extension that adds a header. As soon as I use XML::Compile::SOAP11::Encoding, I get the error: error: cannot find unnamed complex as simpleType or complexType A simple way to reproduce is to add 'use XML::Compile::SOAP11::Encoding' to t/30wsdl11.t from XML::Compile::SOAP::WSA. Then I get: $ perl 30wsdl11.t 1..9 ok 1 - existing operation ok 2 - no errors ok 3 ok 4 error: cannot find unnamed complex as simpleType or complexType # Looks like you planned 9 tests but ran 4.
MIME-Version: 1.0
X-Spam-Status: No, score=-5.9 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, FROM_OUR_RT=-4, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
In-Reply-To: <rt-4.0.18-7807-1433967175-1425.105161-4-0 [...] rt.cpan.org>
Content-Disposition: inline
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-105161 [...] rt.cpan.org> <rt-4.0.18-7807-1433967175-1425.105161-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <20150611080054.GS15227 [...] moon.overmeer.net>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.9
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id D98AD240585 for <cpan-bug+xml-compile-soap [...] hipster.bestpractical.com>; Thu, 11 Jun 2015 04:01:14 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ooH4d3D64QOP for <cpan-bug+xml-compile-soap [...] hipster.bestpractical.com>; Thu, 11 Jun 2015 04:01:13 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id C516E24055B for <bug-xml-compile-soap [...] rt.cpan.org>; Thu, 11 Jun 2015 04:01:12 -0400 (EDT)
Received: (qmail 14818 invoked by alias); 11 Jun 2015 08:01:11 -0000
Received: from fep22.mx.upcmail.net (HELO fep22.mx.upcmail.net) (62.179.121.42) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 11 Jun 2015 01:01:05 -0700
Received: from edge04.upcmail.net ([192.168.13.239]) by viefep22-int.chello.at (InterMail vM.8.01.05.18 201-2260-151-151-20140610) with ESMTP id <20150611080056.GDBV16233.viefep22-int.chello.at [...] edge04.upcmail.net> for <bug-xml-compile-soap [...] rt.cpan.org>; Thu, 11 Jun 2015 10:00:56 +0200
Received: from moon.overmeer.net ([89.99.148.229]) by edge04.upcmail.net with edge id ew0u1q00n4xBygR01w0udf; Thu, 11 Jun 2015 10:00:56 +0200
Received: by moon.overmeer.net (Postfix, from userid 1000) id BCDC3161328; Thu, 11 Jun 2015 10:00:54 +0200 (CEST)
Delivered-To: cpan-bug+xml-compile-soap [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #105161] Extensions that add headers break when SOAP11::Encoding is used
User-Agent: Mutt/1.5.21 (2010-09-15)
Return-Path: <markov [...] overmeer.net>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+xml-compile-soap [...] hipster.bestpractical.com
X-RT-Mail-Extension: xml-compile-soap
Date: Thu, 11 Jun 2015 10:00:54 +0200
X-Sourceip: 89.99.148.229
X-Spam-Level:
To: Nick Wellnhofer via RT <bug-XML-Compile-SOAP [...] rt.cpan.org>
From: Mark Overmeer <mark [...] overmeer.net>
RT-Message-ID: <rt-4.0.18-21202-1434009675-328.105161-0-0 [...] rt.cpan.org>
Content-Length: 1621
Download (untitled) / with headers
text/plain 1.5k
* Nick Wellnhofer via RT (bug-XML-Compile-SOAP@rt.cpan.org) [150610 20:13]: Show quoted text
> Wed Jun 10 16:12:54 2015: Request 105161 was acted upon. > Transaction: Ticket created by NWELLNHOF > Queue: XML-Compile-SOAP > Subject: Extensions that add headers break when SOAP11::Encoding is used > > This might be related to RT #99735. I have a > XML::Compile::SOAP::Extension that adds a header.
Unrelated: that issue showed-up because there were to separate $wsdl objects in the code. Show quoted text
> error: cannot find unnamed complex as simpleType or complexType > A simple way to reproduce is to add 'use XML::Compile::SOAP11::Encoding' > to t/30wsdl11.t from XML::Compile::SOAP::WSA. Then I get:
Very helpful. The patch is very simple. In XML::Compile::Schema::Namespaces sub doesExtend($$) { my ($self, $ext, $base) = @_; return 1 if $ext eq $base; + return 0 if $ext =~ m/^unnamed /; my ($node, $super, $subnode); The ::Encoding uses a hook which uses the 'extends' feature, to apply some sub on all elements of a type extending some base type. But not all types have a name, so not all elements have information in the schema. I have released XML::Compile version 1.49 to CPAN which contains this fix. It may take Pause some time to distribute it. -- thanks for the report, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-21202-1434009675-328.105161-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <RT-Ticket-105161 [...] rt.cpan.org> <rt-4.0.18-7807-1433967175-1425.105161-4-0 [...] rt.cpan.org> <20150611080054.GS15227 [...] moon.overmeer.net> <rt-4.0.18-21202-1434009675-328.105161-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-24049-1434019951-1605.105161-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 52
Thanks for the quick response. The fix works for me.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-7807-1433967174-389.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-7807-1433967174-389.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-27871-1434525961-76.105161-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 41
Fixed in 3.09, to be released later today


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.