[Xml-compile] parsing SOAP Faults

Mark Overmeer mark at overmeer.net
Wed Dec 18 16:44:34 GMT 2013


* Gert Doering (gert at space.net) [131218 15:59]:
> > Ah,  of cause... simpleType doesn't work like that.  Did you really
> > found that in the schema (I only added the element)  
> I made that up, because I didn't know better.

A <simpleType> works via a base type, so at least

           <xs:simpleType name="hostname">
               <restriction base="xs:string" />
           </xs:simpleType>

Often more complex

           <xs:simpleType name="hostname">
               <xs:restriction base="xs:string">
                 <xs:pattern value="[a-z-.]{0,63}" />
               </xs:restriction>
           </xs:simpleType>

> This is what I have now (mainly "for the records as conclusion"):
>  - WSDL file which lacks a definition of "hostname"
>  - an "extra.xsd" file which contains just this:
> 
> <?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:element name="hostname" type="xs:string" />
>  </xs:schema>
> 
>  - this is used with $wsdl->importDefinions("extra.xsd")

Yes yes yes!  That's the way how to do it.  I often need such patches,
even for core schema's...  You may try to get Axis to fix it ;-)
-- 
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