Giter Site home page Giter Site logo

pysimplesoap's Introduction

#PySimpleSOAP introduction

The PySimpleSoap Library is transplanted from http://code.google.com/p/pysimplesoap/.And just changed interface base on it. Main function : Have four main modules: client, server, soap msg decode, soap msg encode; Parse the WSDL file.

##PySimpleSOAP structure specificaiton

Main file in PySimpleSOAP

File name Main function
api.py Soap message decode
client.py Simulate a client,send request and get response
mime.py Structure MIME part of msg
server.py Pythonic simple SOAP Server implementation,used dispatcher module
simplexml.py Simple XML manipulation,structure xml msg
wsdl.py wsdl parsing module

api.py: Decode soap message to a dict

  • Get content_type from headers
  • Get boundary from content_type
  • Get body content by splitting body
  • Get the xml content
  • Sending the xml content to simplexml. SimpleXMLElement, return the dict

client.py: Startup a client and interactive with server

  • Handler the arguments
  • Structure soap message’s body and header
  • Start a client and post the request to server(IMP)
  • Get the response from server
  • Call api.decode to decode response

mime.py: structure soap message body

  • Import uuid module and create boundary base on timestamp
  • Write in Content-Type and soap body
  • Write in the attachment file

server.py: only introduce SoapDispatcher class

  • Simple Dispatcher for SOAP Server
  • Corresponding server dispatch by url,soap_action
  • Get response operation by dispatch
  • Encode Response to xml form and return data.

simplexml.py: structure xml msg according to arguments

wsdl.py: Parse WSDL file

  • Parse wsdl file to five variable value (elements, messages, port_types, bindings, services)

pysimplesoap's People

Contributors

reingart avatar oczkers avatar dotnetdan avatar fuzeman avatar rcarmo avatar anton-ryzhov avatar liuyjnono avatar tamasbogi avatar matee911 avatar feiyuw avatar the-allanc avatar gaetano-guerriero avatar tanderson3 avatar n1k9 avatar lawrenceakka avatar akramparvez avatar john5223 avatar gerardoallende avatar fouladi avatar dbarbeau avatar uxio0 avatar siglud avatar seanmil avatar nickrw avatar mgrant-hcn avatar syntaxcoloring avatar mbi avatar secretions avatar jc2k avatar jtatum avatar

Watchers

James Cloos avatar bingo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.