[Xml-compile] Error: data for element or block starting with `result' missing

Joshua Keroes joshua at keroes.com
Fri Nov 16 22:32:52 GMT 2012


That was it exactly. In the SOAP server, it came down to this change:

> cvs diff -u Modules/API/SOAP/Handler.pm

Index: Modules/API/SOAP/Handler.pm

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

RCS file: /export/home/cvsroot/gui/Modules/API/SOAP/Handler.pm,v

retrieving revision 1.2.18.1

diff -u -r1.2.18.1 Handler.pm

--- Modules/API/SOAP/Handler.pm 12 Apr 2012 14:32:14 -0000      1.2.18.1

+++ Modules/API/SOAP/Handler.pm 16 Nov 2012 19:17:20 -0000

@@ -67,7 +67,7 @@

     }



     $server->configure(@_);

-    $server->serializer->ns($ns, 'brix');   # Unify the response namespace
and suggest it's from us, coz, ya know

+    $server->serializer->default_ns($ns);

     $server->SUPER::handler(@_);

 }


Thanks for the help!

Joshua


On Fri, Nov 16, 2012 at 12:13 AM, Mark Overmeer <mark at overmeer.net> wrote:

> * Joshua Keroes (joshua at keroes.com) [121116 01:41]:
> > I'm getting the error message:
> > "data for element or block starting with `result' missing at {
> > http://soapserver.example.com/API/SOAP/Auth}AuthenticateResponse".
> >
> > The request and response look fine to me. What am I missing?
>
> The curcial lines:
>
> > <soap:Envelope xmlns:namesp1=3D"
> http://soapserver.example.com/API/SOAP/Auth/"
> >     <soap:Body>
> >         <brix:AuthenticateResponse>
> >             <result xsi:type=3D"xsd:int">0</result>
> >             <token xsi:type=3D"xsd:string">[redacted]</token>
> >
> > WSDL:
> >
> > <wsdl:definitions name=3D"Auth"
> > <wsdl:types>
> >    <xsd:schema elementFormDefault=3D"qualified" targetNamespace=3D"
> > http://soapserver.example.com/API/SOAP/Auth">
>    ...
> >       <xsd:element name=3D"AuthenticateResponse">
> >         <xsd:complexType>
> >           <xsd:sequence minOccurs=3D"1" maxOccurs=3D"1">
> >             <xsd:element name=3D"result" type=3D"tns:netAPIResult" />
> >             <xsd:element name=3D"token">
> >               <xsd:simpleType>
> >                 <xsd:restriction base=3D"xsd:string">
> >                     <xsd:minLength value=3D"1" />
> >                     <xsd:maxLength value=3D"1024" />
>
> result and token are expected to be namespace qualified, but in the
> response they are not.
> --
> Regards,
>                MarkOv
>
> ------------------------------------------------------------------------
>        Mark Overmeer MSc                                MARKOV Solutions
>        Mark at Overmeer.net                          solutions at overmeer.net
> http://Mark.Overmeer.net                   http://solutions.overmeer.net
>
>
> _______________________________________________
> Xml-compile mailing list
> Xml-compile at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20121116/9f=
1223e0/attachment.htm


More information about the Xml-compile mailing list