← 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:

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)
		inpsrc = InputSource()
		return ch.req_dict

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