Artifact [041a120b91]
Not logged in

Artifact 041a120b9138df66e60cdf0206481f7c39e77b596e5cd604266517a575d0b38b:

Ticket change [041a120b91] - Ticket [584bfb7727] WS::Client returns nonsense for abstract types status still New with 1 other change by oehhar 2018-05-12 13:00:01.
D 2018-05-12T13:00:01.730
J +comment \n\n<hr\s/><i>oehhar\sadded\son\s2018-05-12\s13:00:01\sUTC:</i><br\s/>\nOne\sday\sfurther...\r\n\r\nI\sthink,\sthe\spoint\sis\sjust\snot\simplemented.\r\n\r\nAs\sthe\snamespace\sprefix\sis\sgiven\sas\sattribute\sin\sthe\sresponse\s(see\sxsi::type="tns:EnvelopeN"):\r\n\r\n<verbatim>\r\n<soap:Envelope\sxmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"\r\n\txmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r\n\txmlns:xsd="http://www.w3.org/2001/XMLSchema"\r\n\txmlns:tns="http://www.esri.com/schemas/ArcGIS/10.3">\r\n\s\s<soap:Body>\r\n\s\s\s\s<tns:GetServerInfoResponse>\r\n\s\s\s\s\s\s<Result\sxsi:type="tns:MapServerInfo">\r\n\s\s\s\s\s\s\s\s<Name>Layers</Name>\r\n\s\s\s\s\s\s\s\s<Description></Description>\r\n\s\s\s\s\s\s\s\s<FullExtent\sxsi:type="tns:EnvelopeN">\r\n\s\s\s\s\s\s\s\s\s\s<XMin>-8883833.3022622615</XMin>\r\n</verbatim>\r\n\r\nit\sis\snot\stranslated\sby\stdom.\sHow\sshould\stdom\sknow,\sthat\sthere\sis\sa\sprefix\sto\stranslate\swithin\san\sattribute?\r\n\r\nSo,\sI\ssuppose\sthe\sfunctionality\sis\sjust\smissing.\r\n\r\nI\ssuppose,\sthe\sissue\sis\shere:\r\n\r\n<verbatim>\r\nproc\s::WS::Utils::convertTypeToDict\s{mode\sserviceName\snode\stype\sroot\s{isArray\s0}}\s{\r\n\s\s\s\s...\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s{$isAbstract\s&&\s[$item\shasAttributeNS\s{http://www.w3.org/2001/XMLSchema-instance}\stype]}\s{\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s#\spartType\sis\snow\stns::EnvelopeN\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sset\spartType\s[$item\sgetAttributeNS\s{http://www.w3.org/2001/XMLSchema-instance}\stype]\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s#\sThe\stype\sattribute\sis\sremoved\sfrom\sthe\ssnippet.\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s#\sSo,\sit\sis\snot\shandled\sin\sthe\sloop\sbelow.\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s$item\sremoveAttributeNS\s{http://www.w3.org/2001/XMLSchema-instance}\stype\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s...\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s...\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sdict\sset\sresults\s$partName\s$valueAttr\s[convertTypeToDict\s$mode\s$serviceName\s$item\s$partType\s$root]\r\n</verbatim>\r\n\r\nAfter\sthe\sabstract\stype\sis\sresolved,\san\seventual\snamespace\sprefix\sshould\sbe\sdetected\sin\spartType\sand\sreplaced\sby\sthe\stclws\sprefix.\r\n\r\nFor\sthat,\sthe\sEnvelope\selement\sshould\sbe\sanalysed\sand\sa\stable\sshould\sbe\sbuild:\r\n\r\n<verbatim>\r\n<soap:Envelope\sxmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"\r\n\txmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r\n\txmlns:xsd="http://www.w3.org/2001/XMLSchema"\r\n\txmlns:tns="http://www.esri.com/schemas/ArcGIS/10.3">\r\n\r\n</verbatim>\r\n\r\nThis\sshould\sbe\sdone\ssomewhere\shere:\r\n\r\n<verbatim>\r\nproc\s::WS::Client::parseResults\s{serviceName\soperationName\sinXML}\s{\r\n\s\s\s\s...\r\n\s\s\s\s$doc\sselectNodesNamespaces\s$xns\r\n</verbatim>\r\n\r\nThere,\swe\shave\sthe\slist\sof\snamespaces\sfrom\sthe\sWSDL\sparse.\r\n\r\nI\sdon't\sknow\snow\show\sto\stransport\sthis\stable\sto\srecursive\sfunction\s"::WS::Utils::convertTypeToDict",\sbut\sthis\swill\scome\swith\simplementation\stry.\r\n\r\nAny\sthoughts\swelcome.\sI\swill\shopefully\ssoon\stry\sto\simplement\sthis\sidea.\r\n\r\nThank\syou,\r\nHarald
K 584bfb772724c1a938f671b8a9ac1d57b2d70f58
U oehhar
Z 02265edd830bd076eb171056346a2238