axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MailList Ryan" <>
Subject Error : org.apache.axis2.databinding.ADBExcepion:Unexpected subelement AuthInfo
Date Thu, 13 Mar 2008 10:02:35 GMT
Dear all :
I user Aixs2 1.3 .First i user axis2java command  build a webservice from a
wsdl, then I delploy it on axis2 under tomcat 5.5.12. Every thing goes well,
but when i call this web service use delphi 2007 , error occured . When call
the web service in delphi, here raise a "
subelement AuthInfo " exception. I had searched achieved mails, some one
said that this error mostly caused by wrong name spaces of wsdl file. I had
checked my wsdl file again and again and valid it wiht netbean and cxf
validate tools, but all those tools said that the wsdl file is correct. I am
fighting with this problem for nearly one week, but do not have any
progress. Can anyone help ? Any idea or suggest will be highly appreciated.

WSDL file and soap message for request and response can be found in the


WSDL file
<?xml version ="1.0" encoding ="utf-8"?>
    targetNamespace = ""
    xmlns:tns =""
    xmlns:wsoap12 =""
    xmlns:xs ="">
            <xs:complexType name="AuthInfo">
                    <xs:element name="UserName" minOccurs="0"
nillable="true" type="xs:string"/>
                    <xs:element name="AuthPass" minOccurs="0"
nillable="true" type="xs:string"/>
                    <xs:element name="Timestamp" minOccurs="0"
nillable="true" type="xs:string"/>
            <xs:element name="HelloResponse" >
                        <xs:element minOccurs="0" name="return"
nillable="true" type="xs:string"/>
            <xs:element name="Hello" >
                        <xs:element minOccurs="0" name="AuthInfo"
nillable="true" type="tns:AuthInfo"/>

    <wsdl:message name="HelloWorldMessageOut">
        <wsdl:part name="return" element="tns:HelloResponse"/>
    <wsdl:message name="HelloWorldMessageIn">
        <wsdl:part name="AuthInfo" element="tns:Hello"/>
    <wsdl:portType name="Test">
        <wsdl:operation name="HelloWorld">
            <wsdl:input message="tns:HelloWorldMessageIn"/>
            <wsdl:output message="tns:HelloWorldMessageOut"/>
    <wsdl:binding name="TestSoap12Binding" type="tns:Test">
        <wsoap12:binding transport=""
        <wsdl:operation name="HelloWorld">
                soapActionRequired="true" style="document"/>
            <wsdl:input >
                <wsoap12:body use="literal"/>
                <wsoap12:body use="literal"/>
    <wsdl:service name="HelloWorld">
        <wsdl:port name="HellowWordSoap12" binding="tns:TestSoap12Binding">
            <wsoap12:address location="http://localhost/helloword"/>

SOAP for request
<?xml version='1.0' encoding='utf-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:SOAP-ENC="" xmlns:xsi="" xmlns:xsd="">
  <SOAP-ENV:Body xmlns:NS2="" SOAP-ENV:encodingStyle="">
    <NS1:HelloWorld xmlns:NS1="">
      <AuthInfo href="#1" />
    <NS2:Hello id="1" xsi:type="NS2:Hello">
      <AuthInfo href="#2" />
    <NS2:AuthInfo id="2" xsi:type="NS2:AuthInfo">
      <UserName xsi:type="xsd:string">test username</UserName>
      <AuthPass xsi:type="xsd:string">authpass</AuthPass>
      <Timestamp xsi:type="xsd:string">timestamp</Timestamp>

SOAP for response

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="
      <faultstring>org.apache.axis2.databinding.ADBException: Unexpected
subelement AuthInfo</faultstring>
      <detail />

View raw message