I need to develop with web axis2 a webservice from wsdl. I am able to send Request but my problem is that I want to make the response from the Web service, that is, I will get a request and I need to respond; I have the WSDL like this.
<wsdl>
<wsdl:types>
<s:schema elementFormDefault="qualified">
<s:element name="AsynchRequest">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="IdPet"
type="s:unsignedInt"/>
<s:element minOccurs="0" maxOccurs="1" name="IdRpt"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="tfStart"
type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="AsynchRequestResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1"
name="AsynchRequestResult" type="s:boolean"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Request">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="IdPet"
type="s:unsignedInt"/>
<s:element minOccurs="0" maxOccurs="1" name="IdRpt"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="tfStart"
type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="RequestResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="RequestResult"
type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<wsdl:binding name="WS_DCSoap" type="tns:WS_DCSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
With SoapUi I generate a MockService to automatically answer all the requests that come to you, but I need to make a small listening application for those web services to respond, and not depend on soapUi.
I'm doing the Application with Axis2 with Java. I do not know if I would have to generate the client and then use the functions generated automatically to create my own to do the "response" of the service.