[Xml-compile] parsing SOAP Faults

Mark Overmeer mark at overmeer.net
Wed Dec 18 15:00:15 GMT 2013


* Gert Doering (gert at space.net) [131218 14:54]:
> Hi,
> 
> On Wed, Dec 18, 2013 at 03:46:14PM +0100, Mark Overmeer wrote:
> > Ouch, this is totally confused.
> 
> Sorry :-) - this whole namespace thing indeed confuses me (I use 
> XML::Compile because someone said it's the way to do XML without having
> to fight XML... ;-) ).

You do not need to fight schema's and XML, but you need to configure
it correctly.

> It's complaining that "<simpleType>" and "<element>" are not in the
> Scheme namespace.  If I add "xs:" to both:

Was the targetNamespace in the schema (maybe you can send me the
whole thing, in original form)

> <?xml version="1.0" encoding="UTF-8"?>^M
> <xs:schema
>     xmlns:xs="http://www.w3.org/2001/XMLSchema"
>     xmlns:me="http://xml.apache.org/axis/"
>     targetNamespace="http://xml.apache.org/axis/"
>     elementFormDefault="qualified"
>     attributeFormDefault="qualified">
>        <xs:simpleType name="hostname" type="string"/>
>     <xs:element name="hostname" type="me:hostname" />
>  </xs:schema>
> 
> XML::Compile Error:
>     error: decode error: simpleType must have exactly one child at {http://xml.apache.org/axis/}hostname

Ah,  of cause... simpleType doesn't work like that.  Did you really
found that in the schema (I only added the element)  You can replace
both with

      <xs:element name="hostname" type="xs:string" />

> I'm not sure if we're getting close or not?

I do not know yet ;-)
-- 
Regards,
               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                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