← Back to team overview

ladon-dev-team team mailing list archive

Re: [Question #233250]: problem with Strings Array as input. I get the value "[u'string']"

 

Question #233250 on ladon changed:
https://answers.launchpad.net/ladon/+question/233250

Mr T gave more information on the question:
I found a solution for this, 
modifying the soap11.py file. 
to pre-edit the soap message received in order to be compliant with the parser: 
Something like (new lines with "+"):

class SOAP11RequestHandler(BaseRequestHandler):
	
	def parse_request(self,soap_body,sinfo,encoding):
+		# This lines are for fixing bug when parsing Tavernas SOAP messages:
+		soap_body=soap_body.replace('<string>','<item xsi:type="ns3:string">')
+		soap_body=soap_body.replace('</string>','</item>')
		
		parser = make_parser()
		ch = SOAP11ContentHandler(parser)
		parser.setContentHandler(ch)
		inpsrc = InputSource()
		inpsrc.setByteStream(BytesIO(soap_body))
		parser.parse(inpsrc)
		return ch.req_dict

-- 
You received this question notification because you are a member of
Ladon Developer, which is an answer contact for ladon.