Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

fromXMLname too restrictive #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sauzher
Copy link

@sauzher sauzher commented May 16, 2012

Hi.
I've found that the regexp used to find and replace some unicode in tagname yield wstools strictly bound to soap 1.2 specification.

A response from any soap service (< 1.2) could include tags like
<fn_retrieve_xml_pReturn> where the substring "xml" brings wstools to an unicodedecode error.

Any unicode should be addressed by specific 4 hexdigits: nothing more nothing less.
So a replaced regexp to somewat that allows xSOMETHING avoiding to try failing unicode substitutions.

hth.
alessandro.

… cause of tag like <my_xml_response>. Instead is better to search for a pattern were _x is specific followed by 4 hexdigits. All other _x matches should be ignored
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant