Zeep Operations argument
up vote
1
down vote
favorite
I am trying to interact with a WSDL XML Resource. I run "python -mzeep wsdl" from the command line and get a list of Operations with respect to this resource.
Operations
Login(Username: xsd:string, Password: xsd:string, TenantID: xsd:string) -> xsd:string
Logout(SessionID: xsd:string)
Query(body: ns0:_____Query, header:ns0:Auth, _soapheaders={header:ns0:Auth}) -> Code: xsd:String, Records: ns0: ___Records, Slice: ns0: ___SliceResult
Using Python 2.7, I am having trouble invoking the Query Operation. The following code runs successfully invoking the Login operation.
from zeep import Client, Settings
wsdl = 'wsdl_resource'
settings = Settings(strict=False)
client = Client(wsdl=wsdl, settings=settings)
client.service.Login(Username='user_name', Password='pass_word)
The following works providing the following output a unique 'session_id'. In a string format.
However, when trying to use the query opertation:
client.service.Query( , , ,)
I am having trouble getting passing the expected arguments, and retrieve the following Records.
If I try the following:
client.service.Query(body=' __Query', header='Auth')
I get the following response:
{
'Code': None,
'Records': None,
'Slice': None,
'_raw_elements': deque()
}
Clearly the resource is there, however having trouble obtaining records I assume this is due to not passing the right arguments to client.service.Query( , , ).
Anyone have experience with zeep? Can someone shed some light to understanding the paramaters to be passed to the Query Operation?
python python-2.7 wsdl arguments zeep
add a comment |
up vote
1
down vote
favorite
I am trying to interact with a WSDL XML Resource. I run "python -mzeep wsdl" from the command line and get a list of Operations with respect to this resource.
Operations
Login(Username: xsd:string, Password: xsd:string, TenantID: xsd:string) -> xsd:string
Logout(SessionID: xsd:string)
Query(body: ns0:_____Query, header:ns0:Auth, _soapheaders={header:ns0:Auth}) -> Code: xsd:String, Records: ns0: ___Records, Slice: ns0: ___SliceResult
Using Python 2.7, I am having trouble invoking the Query Operation. The following code runs successfully invoking the Login operation.
from zeep import Client, Settings
wsdl = 'wsdl_resource'
settings = Settings(strict=False)
client = Client(wsdl=wsdl, settings=settings)
client.service.Login(Username='user_name', Password='pass_word)
The following works providing the following output a unique 'session_id'. In a string format.
However, when trying to use the query opertation:
client.service.Query( , , ,)
I am having trouble getting passing the expected arguments, and retrieve the following Records.
If I try the following:
client.service.Query(body=' __Query', header='Auth')
I get the following response:
{
'Code': None,
'Records': None,
'Slice': None,
'_raw_elements': deque()
}
Clearly the resource is there, however having trouble obtaining records I assume this is due to not passing the right arguments to client.service.Query( , , ).
Anyone have experience with zeep? Can someone shed some light to understanding the paramaters to be passed to the Query Operation?
python python-2.7 wsdl arguments zeep
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am trying to interact with a WSDL XML Resource. I run "python -mzeep wsdl" from the command line and get a list of Operations with respect to this resource.
Operations
Login(Username: xsd:string, Password: xsd:string, TenantID: xsd:string) -> xsd:string
Logout(SessionID: xsd:string)
Query(body: ns0:_____Query, header:ns0:Auth, _soapheaders={header:ns0:Auth}) -> Code: xsd:String, Records: ns0: ___Records, Slice: ns0: ___SliceResult
Using Python 2.7, I am having trouble invoking the Query Operation. The following code runs successfully invoking the Login operation.
from zeep import Client, Settings
wsdl = 'wsdl_resource'
settings = Settings(strict=False)
client = Client(wsdl=wsdl, settings=settings)
client.service.Login(Username='user_name', Password='pass_word)
The following works providing the following output a unique 'session_id'. In a string format.
However, when trying to use the query opertation:
client.service.Query( , , ,)
I am having trouble getting passing the expected arguments, and retrieve the following Records.
If I try the following:
client.service.Query(body=' __Query', header='Auth')
I get the following response:
{
'Code': None,
'Records': None,
'Slice': None,
'_raw_elements': deque()
}
Clearly the resource is there, however having trouble obtaining records I assume this is due to not passing the right arguments to client.service.Query( , , ).
Anyone have experience with zeep? Can someone shed some light to understanding the paramaters to be passed to the Query Operation?
python python-2.7 wsdl arguments zeep
I am trying to interact with a WSDL XML Resource. I run "python -mzeep wsdl" from the command line and get a list of Operations with respect to this resource.
Operations
Login(Username: xsd:string, Password: xsd:string, TenantID: xsd:string) -> xsd:string
Logout(SessionID: xsd:string)
Query(body: ns0:_____Query, header:ns0:Auth, _soapheaders={header:ns0:Auth}) -> Code: xsd:String, Records: ns0: ___Records, Slice: ns0: ___SliceResult
Using Python 2.7, I am having trouble invoking the Query Operation. The following code runs successfully invoking the Login operation.
from zeep import Client, Settings
wsdl = 'wsdl_resource'
settings = Settings(strict=False)
client = Client(wsdl=wsdl, settings=settings)
client.service.Login(Username='user_name', Password='pass_word)
The following works providing the following output a unique 'session_id'. In a string format.
However, when trying to use the query opertation:
client.service.Query( , , ,)
I am having trouble getting passing the expected arguments, and retrieve the following Records.
If I try the following:
client.service.Query(body=' __Query', header='Auth')
I get the following response:
{
'Code': None,
'Records': None,
'Slice': None,
'_raw_elements': deque()
}
Clearly the resource is there, however having trouble obtaining records I assume this is due to not passing the right arguments to client.service.Query( , , ).
Anyone have experience with zeep? Can someone shed some light to understanding the paramaters to be passed to the Query Operation?
python python-2.7 wsdl arguments zeep
python python-2.7 wsdl arguments zeep
edited Nov 11 at 19:14
Torxed
13.1k105386
13.1k105386
asked Nov 11 at 19:07
jmo
62
62
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53252195%2fzeep-operations-argument%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown