Hi, I'm trying to consume with a Java client a web service written in
delphi 7 with Indysoap.
The server works in doc|lit mode (I put {!Encoding: Document} in the
interface file).
The client gets the wsdl without problems, and even the invocation of
procedures works well (the input parameters are correctly passed to
the server). The problems arise when the server tries to pass any
parameter back to the client: from my java application I get the error
unexpected element name: expected=return, actual={urn://tmpUrl.org}return
I include the messages sent to the server and back.
Thanks in advance for your help
Emilio
QUESTION:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns
sd="http://www.w3.org/2001/XMLSchema"
xmlns
si="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="urn://tmpUrl.org"><env:Body><ns0:GetNextKey><AName>myKey</AName></ns0:GetNextKey></env:Body></env:Envelope>
ANSWER:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetNextKeyResponse
xmlns="urn://tmpUrl.org"><return>1</return></GetNextKeyResponse></soap:Body></soap:Envelope>
.