I wonder if there is a way to reference the wsdl as a local file (not with an absolute url starting at filesystem root)?
I'm working with Salesforce.com, and they don't make their wsdls easy to fetch programmatically (because it exposes schema customizations, so publishing would undermine organization privacy).
Bo
On Jun 9, 2009, at 11:54 PM, Bo Laurent wrote:
I wonder if there is a way to reference the wsdl as a local file (not with an absolute url starting at filesystem root)?
You can just pass a file:/// URL when you instantiate the Client. That does require an absolute path, but it shouldn't be hard to get the absolute path of the current working directory using the Python stdlib (sorry, don't remember how off-hand) if you need to convert a relative path.
David Glick Web Developer ONE/Northwest
New tools and strategies for engaging people in protecting the environment
http://www.onenw.org davidglick@onenw.org work: (206) 286-1235 x32 mobile: (206) 679-3833
Subscribe to ONEList, our email newsletter! Practical advice for effective online engagement http://www.onenw.org/full_signup