#!/usr/bin/env python import wso2.wsf LOG_DIR = '/tmp/' LOG_LEVEL = 4 WSFC_HOME = '/home/milinda/wsfc' END_POINT = 'http://search.yahooapis.com/WebSearchService/V1/webSearch' if __name__ == '__main__': message = """ ApacheRestDemo Sri Lanka <form> </form> """ try: client = wso2.wsf.WSClient({ 'to':END_POINT, 'WSF_LOG_DIR':LOG_DIR, 'WSF_LOG_LEVEL':LOG_LEVEL, 'WSFC_HOME':WSFC_HOME, 'use_soap':'False', 'http_method':'GET' }) print 'Sending: ' + message response = client.request(message) print 'Respose: ' + response + '\n' except wso2.wsf.WSFault, e: print 'Exception occurred:' print e
import wso2.wsf LOG_DIR = '/tmp/' LOG_LEVEL = 4 WSFC_HOME = '/home/milinda/wso2/wsfc/deploy' END_POINT = 'http://localhost:9090/axis2/services/echo/echoString' if __name__ == '__main__': message = """ Hello World! """ try: client = wso2.wsf.WSClient({ 'to':END_POINT, 'WSF_LOG_DIR':LOG_DIR, 'WSF_LOG_LEVEL':LOG_LEVEL, 'WSFC_HOME':WSFC_HOME, }) print 'Sending: ' + message response = client.request(message) if response is not None: print 'Respose: ' + response + '\n' else: print 'Error occurred!' except wso2.wsf.WSFault, e: print 'Exception occurred:' print e
- WSDL support for client side.
- Web Services Security support for client side.
- Web Services in Python.
Related posts brought to you by Yet Another Related Posts Plugin.



0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment