Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

error while validate xml  RSS feed

 
p ptyr
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have web services on my server and while using SoapUI the xml response i got isn't valid.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<loginResponse xmlns="http://ws.middleware.telmap.com">
<loginReturn>
<serverId>01</serverId>
<sessionId>254041767</sessionId>
</loginReturn>
</loginResponse>
</soapenv:Body>
</soapenv:Envelope>


the error i got is "line 5: Expected element 'serverId@http://responses.obj.imapi.telmap.com' instead of 'serverId@http://ws.middleware.telmap.com' here in element loginReturn@http://ws.middleware.telmap.com"

i'm using waxis so i have wsdd file.
what should i configure in my wsdd file in order to remove this error.
the wsdl contains this line
"<element name="serverId" nillable="true" type="xsd:string"/>"

which is not true sessionId is Java String not xsd:String
Thanks pp
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!