web service with no input parameter
Posted
by cateof
on Stack Overflow
See other posts from Stack Overflow
or by cateof
Published on 2010-05-29T19:33:45Z
Indexed on
2010/05/29
19:42 UTC
Read the original article
Hit count: 276
I have a WSDL with various portTypes. Some of the contain only output
<operation name="getServerTimeZone">
<output message="s0:getServerTimeZoneSoapOut"/>
</operation>
I would expect that the correct should be:
<operation name="getServerTimeZone">
<input message="s0:getServerTimeZoneSoapIn"/>
<output message="s0:getServerTimeZoneSoapOut"/>
</operation>
The problem is that when I am trying to create stubs from the WSDL using gsoap wsdl2h parser I got the following error:
No wsdl:definitions/portType/operation/input
I haven't tested with other tools (ie WSDL2Java). My question: Is it valid to have a portType with no input? I am using AltovaXML Spy and this WSDL passes the validation.... Is there any meaning having WSDL operation with no input? (I am not talking about One-Way Message Passing, where you can have input but no output - this is valid).
© Stack Overflow or respective owner