• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis 2 Web Services Eventing - How to call or use at client side

 
Baseet Ahmed
Ranch Hand
Posts: 225
Java Notepad Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Attention Everyone!

I need a help.
I want to know how can we use a web service thru java client to utilise its services.

Details as follows:
-I have wsdl file with me.
-I want to invoke or use ws eventing of a ready web service made by someone else using Web services Eventing Axis 2.
-I know how can we do invoke method/operations from client, but here the need is to call/use events like node notification, subscribtion etc.
-wsdl sample code is here:
<wsdl:definitions targetNamespace='http://abc.com/node-notify'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://abc.com/node-notify' xmlns:wsa='http://www.w3.org/2011/01/addressing' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns:wse='http://schemas.xmlsoap.org/ws/eventing' xmlns:xs='http://www.w3.org/2011/XMLSchema'>
<xs:complexType name='nodeNotification'>
<xs:sequence>
<xs:element minOccurs='0' name='event' type='tns:eventType'/>
<xs:element name='isSnmpSupported' type='xs:boolean'/>
<xs:element name='discoveryAnalysisUpdated' type='xs:boolean'/>
<xs:element minOccurs='0' name='updateTime' type='xs:dateTime'/>
<xs:element minOccurs='0' name='discoveryLastCompleted' type='xs:dateTime'/>
<xs:element maxOccurs='unbounded' minOccurs='0' name='customAttributes' nillable='true' type='tns:customAttribute'/>
</xs:sequence>
</xs:complexType>
<wsdl:message name='NodeNotificationMsg'>
<wsdl:part name='arg0' type='tns:nodeNotification'></wsdl:part>
</wsdl:message>
<wsdl:portType name='NodeNotificationSource' wse:EventSource='true'>
<wsdlperation name='NodeNotification'>
<wsdlutput message='tns:NodeNotificationMsg'></wsdlutput>
</wsdlperation>
</wsdl:portType>
<wsdl:binding name='NodeNotificationSourceBinding' type='tns:NodeNotificationSource'>
<soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
<wsdlperation name='NodeNotification'>
<soapperation soapAction=''/>
<wsdlutput>
<soap:body use='literal'/>
</wsdlutput>
</wsdlperation>
</wsdl:binding>
</wsdl:definitions>
============

Please let me know how we can interact(at client side) with above web service event node notification with some sample code.

Thank you.

Regards
Ahmed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic