File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes error while validate xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "error while validate xml" Watch "error while validate xml" New topic
Author

error while validate xml

p ptyr
Greenhorn

Joined: Apr 04, 2008
Posts: 2
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: error while validate xml
 
Similar Threads
SOAP Validation Help Requested
Axis rejects int parameter
WSAD 5.1.1 SOAP RPC return type of Object[]
digest value mismatch and disabling pretty printing/formatting of soap message
AXIS XML calling .Net Web Service