List Info

Thread: Problem with Java web service client




Problem with Java web service client
country flaguser name
United States
2007-02-05 04:04:14

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/"
xmlnssd="http://www.w3.org/2001/XMLSchema"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc=&quot;http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0=&quot;urn://tmpUrl.org&quot;><env:Body>;<ns0:GetNextKey&gt;<AName>myKey&lt;/AName&gt;</ns0:GetNextKey></env:Body>;</env:Envelope>;

ANSWER:
<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetNextKeyResponse
xmlns=";urn://tmpUrl.org&quot;><return>1</return></GetNextKeyResponse>;</soap:Body>&lt;/soap:Envelope>

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )