Good Afternoon, I have been working with urlfetch all day today and stumbled upon something very interesting, the content attribute value changes when you call it a second time.
Has anyone else found this? Is is something that I am doing? Should this be reported as a bug? Doug (BTW - Anyone wanting a simple soap client...here you go...) Here is an example of my code: from google.appengine.api import urlfetch url = "http://127.0.0.1/Router.asmx" payload = "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd= \"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http:// schemas.xmlsoap.org/soap/envelope/\"><soap:Body><route xmlns=\"http:// integrationuri.org/\"><input>string</input></route></soap:Body></ soap:Envelope>" result = urlfetch.fetch(url, payload, method=urlfetch.POST, headers={'Content-Type': 'text/xml; charset=utf-8', 'SOAPAction':'\"http://integrationuri.org/route\"'}) print result.content print "<p>" print result.headers print "<p>" print result.status_code print "<p>" print result print result.content Here is the output that is created: <p> {'content-length': '708', 'x-aspnet-version': '2.0.50727', 'cache- control': 'private, max-age=0', 'date': 'Tue, 17 Feb 2009 23:07:29 GMT', 'p3p': 'CP="NOI LAW NID BUS CUSo PSAo PSDo TAIo OUR OTR COM DEM NAV PRE"', 'content-type': 'text/xml; charset=utf-8'} <p> 200 <p> <google.appengine.api.urlfetch._URLFetchResult object at 0x015F9A50> <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><routeResponse xmlns="http://integrationuri.org/"><routeResult><?xml version="1.0" encoding="utf-8"?><Envelope version="01.00"><TransactInfo transactType="response" transactId="2b07fbea-4068-4be4-8292-45bafb419e4d" / ><Status><Code>405</ Code><ShortDescription>Failure</ ShortDescription><LongDescription>Input xml is invalid</ LongDescription></Status></Envelope></routeResult></ routeResponse></soap:Body></soap:Envelope> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
