Note that there are some explanatory texts on larger screens.

plurals
  1. POAxis2 WSDL2Java : missing no-arg operation in generated stub
    primarykey
    data
    text
    <p>I've got in my webservice a simple <code>public boolean isAlive()</code> service. I defined it in my WSDL :</p> <pre><code>&lt;wsdl:types&gt; &lt;xsd:element name="isAliveResponse" type="xsd:boolean"&gt; &lt;/xsd:element&gt; &lt;/wsdl:types&gt; &lt;wsdl:message name="isAliveResponse"&gt; &lt;wsdl:part element="ns:isAliveResponse" name="parameters"/&gt; &lt;/wsdl:message&gt; &lt;wsdl:portType name="myService"&gt; &lt;wsdl:operation name="isAlive"&gt; &lt;wsdl:output message="ns:isAliveResponse"/&gt; &lt;/wsdl:operation&gt; &lt;/wsdl:portType&gt; &lt;wsdl:binding name="myServiceSOAP" type="ns:myService"&gt; &lt;soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /&gt; &lt;wsdl:operation name="isAlive"&gt; &lt;soap:operation soapAction="http://myServiceURL/isAlive" /&gt; &lt;wsdl:input&gt; &lt;soap:body use="literal" /&gt; &lt;/wsdl:input&gt; &lt;wsdl:output&gt; &lt;soap:body use="literal" /&gt; &lt;/wsdl:output&gt; &lt;/wsdl:operation&gt; &lt;/wsdl:binding&gt; </code></pre> <p>When I generate the Service skeleton the method is generated but not in the client stub. Is there a problem in the WSDL ? Should I put a wsdl:input even if the method don't have arguments (I didn't put the whole WSDL but all the other method with a "request" arg are well generated) ? And if I have to put a wsdl:input what would be it's message ?</p> <p><strong>Edit</strong> : After validating the WSDL under Eclipse I have the warning <code>WS-I: (BP2208) wsdl:operation was not a request/response or one-way operation</code> after searching I found a description here : <a href="http://www.ws-i.org/Testing/Tools/2005/01/BP11_TAD_1-1.htm#BP2208" rel="nofollow noreferrer">http://www.ws-i.org/Testing/Tools/2005/01/BP11_TAD_1-1.htm#BP2208</a> (it seems the anchor doesn't work) so I guess the error is probably the missing wsdl:input.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload