Hi.
On 12.6.2013. 15:18, Mathieu Dupuy wrote:
I tried anew with the suds' trunk version, 0.4.1-5-soon-to-be and
the
problem reproduces.
Of course I don't have the ability to give you access or account to
the server, so here is joined to this mail the schema files of EWS,
including the WSDL file. Ask if you need anything else.
[Mathieu, I'm sending this reply back to the mailing list even though
you directed the original question directly to me so you could possibly
get more useful feedback from others.]
Ok, I took a look at this now.
FYI, you can reproduce the behaviour you saw without using an
external service and without having to provide anyone with any usernames
& passwords by using the following code with the suds-jurko fork:
import suds
import suds.client
import suds.store
wsdl_xml = suds.byte_str("""...XML from
http://www.w3.org/2001/xml.xsd...""")
wsdl_messages = suds.byte_str("""...XML from
Messages.xsd...""")
wsdl_types = suds.byte_str("""...XML from Types.xsd...""")
wsdl_services = suds.byte_str("""...XML from
Services.wsdl...""")
store = suds.store.DocumentStore({'messages.xsd':wsdl_messages,
'services.wsdl':wsdl, 'types.xsd':wsdl_types,
'www.w3.org/2001/xml.xsd':wsdl_xml})
client = suds.client.Client("suds://services.wsdl", cache=None,
documentStore=store, nosend=True)
All WSDL/XSD schema files are stored in the DocumentStore object and
suds Client just fetches them from there instead of attempting to fetch
them over the net. It does not matter if you hardcode the file content
or read it from an external file or whatever. It only matters that the
content seen by the suds Client is a byte string and its content encoded
using utf-8 encoding.
I did this and truely, suds does not recognize any services from the
WSDL you sent me.
I took a look at the WSDL itself and there really are no
<wsdl:service> elements defined there.
I am not versed enough in the standard to know if this is even legal
or how this WSDL should be interpreted. I'll take a look at what that
other fork you mentioned does in this case when I find some more free
time - most likely not before the the weekend.
Any further research you or someone else can do or feedback you can
provide on this would help though. ;-)
Best regards,
Jurko Gospodnetić