python-zeep icon indicating copy to clipboard operation
python-zeep copied to clipboard

Configuration for WS-ReliableMessaging WSDL Policy

Open iamliamc opened this issue 7 years ago • 5 comments

Hello Zeep team!

The error I am stuck on: "The action {my_wsdl/ConnectionPointDataRequest} is not supported by this endpoint. Only WS-ReliableMessaging February 2005 messages are processed by this endpoint."

I am currently receiving this error when I make a request on the WSDL I am using (wish I could share api-keys etc. to make this more useful)

from zeep import Client
from tornado.httpclient import HTTPClient
import json

client = Client('private_wsdl')
print('Client', client)
print(client.wsdl.dump())

http_client = HTTPClient()
token = None

res = http_client.fetch('request_for_access_token')
# print('Auth res:', res.body)
token = json.loads(res.body).get('access_token')
print('Token:', token)

cpr = client.get_type('ns4:ConnectionPointDataRequest')
my_r = cpr(
    ID="1234312314123",
    StartDate=datetime.date(2016, 9, 1),
    EndDate=datetime.date(2018, 10, 1)
)

with client.settings(extra_http_headers={'Authentication': token}, force_https=True):
    client.service.GetConnectionPointData(my_r)

Is there any configuration or support for Zeep regarding WS-ReliableMessaging?

Thanks for the quick review! -liam

iamliamc avatar Oct 03 '18 13:10 iamliamc