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

Joshua Keroes joshua at keroes.com
Fri Nov 16 01:40:28 GMT 2012


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?

Thanks,
Joshua

Request:

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelo=
pe/
">
    <SOAP-ENV:Body>
        <tns:Authenticate xmlns:tns=3D"
http://soapserver.example.com/API/SOAP/Auth">
            <tns:uname>[redacted]</tns:uname>
            <tns:pword>[redacted]</tns:pword>
        </tns:Authenticate>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response:

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<soap:Envelope xmlns:namesp1=3D"http://soapserver.example.com/API/SOAP/Auth=
/"
    soap:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap=3D"http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:soapenc=3D"http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"
    xmlns:brix=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>
        </brix:AuthenticateResponse>
    </soap:Body>
</soap:Envelope>

WSDL:

<wsdl:definitions name=3D"Auth"
  targetNamespace=3D"http://soapserver.example.com/API/SOAP/Auth"
  xmlns:tns=3D"http://soapserver.example.com/API/SOAP/Auth"
  xmlns:soap=3D"http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/"
  xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"
  xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance">
<wsdl:types>
      <xsd:schema elementFormDefault=3D"qualified" targetNamespace=3D"
http://soapserver.example.com/API/SOAP/Auth">
      <xsd:element name=3D"Authenticate">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name=3D"uname" minOccurs=3D"1" maxOccurs=3D"1">
              <xsd:simpleType>
                <xsd:restriction base=3D"xsd:string">
                  <xsd:minLength value=3D"1"/>
                  <xsd:maxLength value=3D"128"/>
                </xsd:restriction>
              </xsd:simpleType>
            </xsd:element>
            <xsd:element name=3D"pword" minOccurs=3D"1" maxOccurs=3D"1">
              <xsd:simpleType>
                <xsd:restriction base=3D"xsd:string">
                  <xsd:minLength value=3D"1"/>
                  <xsd:maxLength value=3D"128"/>
                </xsd:restriction>
              </xsd:simpleType>
            </xsd:element>
            <xsd:element name=3D"authority" minOccurs=3D"0" type=3D"xsd:str=
ing" />
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <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" />
                </xsd:restriction>
              </xsd:simpleType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:simpleType name=3D"netAPIResult">
        <xsd:restriction base=3D"xsd:integer">
          <xsd:minInclusive value=3D"0" />
          <xsd:maxInclusive value=3D"3" />
        </xsd:restriction>
      </xsd:simpleType>
     </xsd:schema>
  </wsdl:types>
  <wsdl:message name=3D"AuthenticateRequest">
    <wsdl:part name=3D"parameters" element=3D"tns:Authenticate" />
  </wsdl:message>
  <wsdl:message name=3D"AuthenticateResponse">
    <wsdl:part element=3D"tns:AuthenticateResponse" name=3D"parameters" />
  </wsdl:message>
  <wsdl:portType name=3D"Auth">
    <wsdl:operation name=3D"Authenticate">
      <wsdl:input message=3D"tns:AuthenticateRequest" />
      <wsdl:output message=3D"tns:AuthenticateResponse" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name=3D"AuthBinding" type=3D"tns:Auth">
    <soap:binding style=3D"document" transport=3D"
http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name=3D"Authenticate">
      <soap:operation soapAction=3D"
http://soapserver.example.com/API/SOAP/Auth/Authenticate" />
      <wsdl:input>
        <soap:body use=3D"literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use=3D"literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name=3D"Auth">
    <wsdl:port binding=3D"tns:AuthBinding" name=3D"AuthPort">
    <soap:address location=3D"http://soapserver.example.com/API/SOAP/Auth" =
/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20121115/94=
6ae5ee/attachment.htm


More information about the Xml-compile mailing list