[Xml-compile] XML::Compile::WSDL11

Mark Overmeer solutions at overmeer.net
Fri Mar 12 07:58:19 GMT 2010


* Matt (zeppeh at gmail.com) [100312 01:21]:
> I'm trying to create a reader for "{http://example.net/}TestRequest" but
> am not having any luck.

> use XML::Compile::WSDL11;
> my $w = XML::Compile::WSDL11->new("example.wsdl");
> $w->compile(READER => "{http://example.net/}TestRequest");
> 
> error: cannot find element or attribute `{http://example.net/}TestRequest'

TestRequest is not an element or attribute: it is a ComplexType.  The
translators built by XML::Compile produce an element/attribute.

However, when you need to do simple RPC-literal, you can use the

  my $call = $w->compileClient("Test");

The "type" type of message parts with use the part's name as element
name.
-- 
Regards,
               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
drs Mark A.C.J. Overmeer                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net




More information about the Xml-compile mailing list