Skip to content

Instantly share code, notes, and snippets.

View plq's full-sized avatar

Burak Arslan plq

View GitHub Profile
@plq
plq / README.rst
Created April 17, 2013 19:22
Mandatory Uuid error

example for mandatory uuid error.

@plq
plq / client.py
Last active December 14, 2015 05:49
spyne testcase
import suds
client = suds.client.Client("http://127.0.0.1:8080/?wsdl", cache=None)
result = client.service.test(6000.0)
print result
@plq
plq / client.py
Last active February 23, 2021 23:35
Spyne Example
from suds.client import Client
url = 'http://localhost:7789/?wsdl'
company = '2CA'
store = 1
password = '1234'
client = Client(url)
client.service.GetTicketList( 'company_name', 1, '1234' )
@plq
plq / .gitignore
Last active December 10, 2015 00:39
qooxdoo
demobrowser
source/script
@plq
plq / Client_console.xml
Created November 21, 2012 13:22
[Soap-Python] Problem with simpleContent
Client's consol:
================================================================================
SENT:
<?xml version="1.0" encoding="UTF-8"?>
No handlers could be found for logger "suds.umx.typed"
<SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="spyne.test" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<ns0:Body>
<ns1:testMethod>
<ns1:req>
#!/usr/bin/env python
import datetime
from suds.client import Client
client = Client("http://localhost:9753/?wsdl")
data = client.factory.create("{AAA}PhysicalPersonDataRequest")
data.birthDate = datetime.date(1985,12,11)
print client.service.test(data)
@plq
plq / authn.py
Created August 10, 2012 08:26
Namespace Issue
# This file is one copy from https://github.com/arskom/spyne/blob/master/examples/authentication/server_soap.py
import sys
import random
import logging
from spyne.model.complex import ComplexModel
from spyne.model.fault import Fault
from spyne.decorator import srpc
from spyne.error import ArgumentError
from spyne.protocol.soap import Soap11
@plq
plq / client.py
Created July 13, 2012 11:33
jussi_test
#!/usr/bin/env python
from suds.client import Client
client = Client("http://localhost:9753/?wsdl")
print client.service.TestService("x")
@plq
plq / badcalc.wsdl
Created May 17, 2012 12:58
Using rpclib with wsdl containing namespaced messages
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:calc="http://www.example.com/wsdl/calc/v1.0"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.com/wsdl/calc/v1.0"
name="CalcWebService">
<wsdl:types>
@plq
plq / any_type_test.py
Created April 3, 2012 14:24
Any tag test case.
#!/usr/bin/env python
from lxml import etree
from rpclib.model.primitive import AnyXml
from rpclib.model.complex import ComplexModel
from rpclib.const import xml_ns as ns
from rpclib.util.xml import get_schema_documents
class SomeType(ComplexModel):