You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Poseidon <po...@gmail.com> on 2008/04/10 08:09:12 UTC

xml validation failed

hi
my server has server-config.wsdd and i'm using axis to geberate wsdl.
i'm trying send request using SoapUI and i got response.
but whan i'm trying validate my response i got the below errors
"line 6: Expected element 'sessionId@http://responses.obj.imapi.telmap.com'
instead of 'sessionId@http://ws.middleware.telmap.com' here in element
loginReturn@http://ws.middleware.telmap.com"
the original line 6 is 
   <sessionId>2143789785</sessionId>

after i fixed it manually my xml is valid.
    <sessionId
xmlns="http://responses.obj.imapi.telmap.com">2143789785</sessionId>

the xsd i got (accoriding to SoapUi ) is

<complexType name="TMLoginResponse" xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://ws.middleware.telmap.com"
xmlns:intf="http://ws.middleware.telmap.com"
xmlns:tns1="http://requests.obj.imapi.telmap.com"
xmlns:tns2="http://obj.imapi.telmap.com" xmlns:tns3="http://lang.java"
xmlns:tns4="http://responses.obj.imapi.telmap.com"
xmlns:tns5="http://records.audit.services.middleware.telmap.com"
xmlns:tns6="http://impl.ws.middleware.telmap.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <complexContent>
    <extension base="tns4:TMResponse">
      <sequence>
        <element name="sessionId" nillable="true" type="xsd:string"/>
      </sequence>
    </extension>
  </complexContent>
</complexType>



what should i do in my server-config.wsdd in order to fix this error ?
Thanks ss

-- 
View this message in context: http://www.nabble.com/xml-validation-failed-tp16602639p16602639.html
Sent from the Axis - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org