Artifact [058a9b60fa]
Not logged in

Artifact 058a9b60fa58d91f153c4eeb31e68f1e6437b0cc:

Ticket change [058a9b60fa] - New ticket [e8414f9524] WS Client does not capture right xml namespace for single return value. by oehhar 2015-06-03 10:21:29.
D 2015-06-03T10:21:29.451
J assigned_to unassigned
J comment I\shave\sa\sweb\sserver\sand\sclient,\sboth\sTCLWS.\r\n\r\nThe\sissue\sis,\sthat\sthe\sresult\sis\snot\sreturned\sby\sthe\sclient.\r\nIt\sis\sone\stext\selement.\r\n\r\nTrace:\r\n\r\n"::WS::Utils::convertTypeToDict"\sis\scalled\swith\sthe\sfollowing\slog:\r\n\r\n<verbatim>\r\n::WS::Utils::convertTypeToDict\sClient\s1\sdomNode023D75F0\stns1:processResults\sdomNode023D75C4\s0\r\n\s\t\stype\sdef\s=\s{definition\s{processResult\s{type\sxs:string\scomment\s{}}}\sxns\stns1\sabstract\sfalse}\s\r\n\s\t\sXML\sof\snode\sis\s<pwsserverincmd:processResults>\r\n\s\s\s\s\s<pwsserverincmd:processResult>A</pwsserverincmd:processResult>\r\n</pwsserverincmd:processResults>\r\n\r\n\t\spartsList\sis\s{processResult}\r\nType\s=\s{string}\stypeInfoList\s=\s{0\s0}\r\n@3\r\n\tpartName\sprocessResult\spartType\sxs:string\sxns\stns1\stypeInfoList\s0\s0\r\nTrying\s#1\sdomNode023D75F0\sselectNodes\stns1:processResult\r\nTrying\s#2\sdomNode023D75F0\sselectNodes\stns1:processResult\r\nTrying\s#3\sdomNode023D75F0\sselectNodes\sprocessResult\r\nTrying\s#4\s--\ssearch\sof\schildren\r\n\t\t\sLooking\sat\s{processResult,pwsserverincmd:processResult}\s(0,0,ELEMENT_NODE,processResult)\r\n\tSkipping\r\nLeaving\s::WS::Utils::convertTypeToDict\swith\s{}\r\n</verbatim>\r\n\r\nSo\sthe\sright\snamespace\sfor\sthe\sresult\swould\sbe\s'pwsserverincmd'.\r\n\r\nIn\sTry\s1,\sthe\stried\snamespace\sis\sthe\s'xns'\sproperty\sof\sthe\stype\sdefinition,\sthus\s'tns1'.\r\n\r\nI\sam\snot\ssure\swhat\sto\sdo\sor\swere\sthe\serror\sis.\r\n\r\nHere\sis\sthe\swsdl\sfile:\r\n<verbatim>\r\n<?xml\sversion="1.0"\s\sencoding="utf-8"?>\r\n<wsdl:definitions\r\n\s\sxmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"\r\n\s\sxmlns:http="http://schemas.xmlsoap.org/wsdl/http/"\r\n\s\sxmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"\r\n\s\sxmlns:xs="http://www.w3.org/2001/XMLSchema"\r\n\s\sxmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"\r\n\s\sxmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"\r\n\s\sxmlns:pwsserverincmd="http://168.200.0.164:8026/pws"\r\n\s\stargetNamespace="http://168.200.0.164:8026/pws">\r\n\s\s\s\s<wsdl:types>\r\n\s\s\s\s\s\s\s\s<xs:schema\selementFormDefault="qualified"\stargetNamespace="http://168.200.0.164:8026/pws">\r\n\s\s\s\s\s\s\s\s\s\s\s\s<xs:element\sname="processRequest"\stype="pwsserverincmd:processRequest"/>\r\n\s\s\s\s\s\s\s\s\s\s\s\s<xs:complexType\sname="processRequest">\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s<xs:sequence>\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s<xs:element\smaxOccurs="1"\sminOccurs="1"\sname="p1"\stype="xs:string"/>\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s</xs:sequence>\r\n\s\s\s\s\s\s\s\s\s\s\s\s</xs:complexType>\r\n\s\s\s\s\s\s\s\s\s\s\s\s<xs:element\sname="processResults"\stype="pwsserverincmd:processResults"/>\r\n\s\s\s\s\s\s\s\s\s\s\s\s<xs:complexType\sname="processResults">\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s<xs:sequence>\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s<xs:element\smaxOccurs="1"\sminOccurs="1"\sname="processResult"\stype="xs:string"/>\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s</xs:sequence>\r\n\s\s\s\s\s\s\s\s\s\s\s\s</xs:complexType>\r\n\s\s\s\s\s\s\s\s</xs:schema>\r\n\s\s\s\s</wsdl:types>\r\n\s\s\s\s<wsdl:message\sname="processIn">\r\n\s\s\s\s\s\s\s\s<wsdl:part\sname="parameters"\selement="pwsserverincmd:processRequest"/>\r\n\s\s\s\s</wsdl:message>\r\n\s\s\s\s<wsdl:message\sname="processOut">\r\n\s\s\s\s\s\s\s\s<wsdl:part\sname="parameters"\selement="pwsserverincmd:processResults"/>\r\n\s\s\s\s</wsdl:message>\r\n\s\s\s\s<wsdl:portType\sname="pwsserverincmdSoap">\r\n\s\s\s\s\s\s\s\s<wsdl:operation\sname="process">\r\n\s\s\s\s\s\s\s\s\s\s\s\s<wsdl:input\smessage="pwsserverincmd:processIn"/>\r\n\s\s\s\s\s\s\s\s\s\s\s\s<wsdl:output\smessage="pwsserverincmd:processOut"/>\r\n\s\s\s\s\s\s\s\s</wsdl:operation>\r\n\s\s\s\s</wsdl:portType>\r\n\s\s\s\s<wsdl:binding\sname="pwsserverincmdSoap"\stype="pwsserverincmd:pwsserverincmdSoap">\r\n\s\s\s\s\s\s\s\s<soap:binding\sstyle="document"\stransport="http://schemas.xmlsoap.org/soap/http"/>\r\n\s\s\s\s\s\s\s\s<wsdl:operation\sname="process">\r\n\s\s\s\s\s\s\s\s\s\s\s\s<soap:operation\ssoapAction="pwsserverincmd:process"\sstyle="document"/>\r\n\s\s\s\s\s\s\s\s\s\s\s\s<wsdl:input>\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s<soap:body\suse="literal"/>\r\n\s\s\s\s\s\s\s\s\s\s\s\s</wsdl:input>\r\n\s\s\s\s\s\s\s\s\s\s\s\s<wsdl:output>\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s<soap:body\suse="literal"/>\r\n\s\s\s\s\s\s\s\s\s\s\s\s</wsdl:output>\r\n\s\s\s\s\s\s\s\s</wsdl:operation>\r\n\s\s\s\s</wsdl:binding>\r\n\s\s\s\s<wsdl:service\sname="pwsserverincmd">\r\n\s\s\s\s\s\s\s\s<wsdl:documentation>Link3\sWeb\sService</wsdl:documentation>\r\n\s\s\s\s\s\s\s\s<wsdl:port\sname="pwsserverincmdSoap"\sbinding="pwsserverincmd:pwsserverincmdSoap">\r\n\s\s\s\s\s\s\s\s\s\s\s\s<soap:address\slocation="http://168.200.0.164:8026/pws/op"/>\r\n\s\s\s\s\s\s\s\s</wsdl:port>\r\n\s\s\s\s</wsdl:service>\r\n</wsdl:definitions>\r\n</verbatim>\r\n\r\nHere\sis\sthe\spreparsed\sdict:\r\n<verbatim>\r\ntypes\s{\r\n\s\stns1:processRequest\s{\r\n\s\s\s\sdefinition\s{\r\n\s\s\s\s\s\sp1\s{type\sxs:string\scomment\s{}}\r\n\s\s\s\s}\r\n\s\s\s\sxns\stns1\r\n\s\s\s\sabstract\sfalse}\r\n\s\stns1:processResults\s{\r\n\s\s\s\sdefinition\s{\r\n\s\s\s\s\s\sprocessResult\s{type\sxs:string\scomment\s{}}\r\n\s\s\s\s}\r\n\s\s\s\sxns\stns1\r\n\s\s\s\sabstract\sfalse}\r\n}\r\noperList\sprocess\r\nobjList\s{}\r\nheaders\s{}\r\ntargetNamespace\s{\r\n\s\stns1\shttps://168.200.0.164:8026/pws\r\n\s\sw\shttp://schemas.xmlsoap.org/wsdl/\r\n\s\stns2\shttp://schemas.xmlsoap.org/wsdl/http/\r\n\s\stns3\shttp://schemas.xmlsoap.org/wsdl/mime/\r\n\s\sxs\shttp://www.w3.org/2001/XMLSchema\sd\shttp://schemas.xmlsoap.org/wsdl/soap/\s\r\n\s\stns4\shttp://schemas.xmlsoap.org/soap/encoding/\r\n}\r\nname\s1\r\nlocation\shttps://168.200.0.164:8026/pws/op\r\nstyle\sWSDL\r\nimports\s{}\r\ninTransform\s{}\r\noutTransform\s{}\r\nskipLevelOnReply\s0\r\nsuppressTargetNS\s0\r\ncontentType\s{text/xml;charset=utf-8}\r\ngenOutAttr\s{}\sUseNS\s{}\ssuppressNS\s{}\r\nallowOperOverloading\s1\r\nskipLevelWhenActionPresent\s0\r\nskipHeaderLevel\s0\r\nuseTypeNs\s{}\r\nerrorOnRedefine\s0\r\nnoTargetNs\s0\r\nparseInAttr\s{}\r\nnsOnChangeOnly\s{}\r\nvalueAttrCompatiblityMode\s1\r\nxns\s{\r\n\s\s{tns1\shttps://168.200.0.164:8026/pws}\r\n\s\s{w\shttp://schemas.xmlsoap.org/wsdl/}\r\n\s\s{tns2\shttp://schemas.xmlsoap.org/wsdl/http/}\r\n\s\s{tns3\shttp://schemas.xmlsoap.org/wsdl/mime/}\r\n\s\s{xs\shttp://www.w3.org/2001/XMLSchema}\r\n\s\s{d\shttp://schemas.xmlsoap.org/wsdl/soap/}\r\n\s\s{tns4\shttp://schemas.xmlsoap.org/soap/encoding/}\r\n}\r\ntnsList\s{\r\n\s\surl\s{\r\n\s\s\s\shttps://168.200.0.164:8026/pws\stns1\r\n\s\s\s\shttp://schemas.xmlsoap.org/wsdl/\sw\r\n\s\s\s\shttp://schemas.xmlsoap.org/wsdl/http/\stns2\r\n\s\s\s\shttp://schemas.xmlsoap.org/wsdl/mime/\stns3\r\n\s\s\s\shttp://www.w3.org/2001/XMLSchema\sxs\r\n\s\s\s\shttp://schemas.xmlsoap.org/wsdl/soap/\sd\r\n\s\s\s\shttp://schemas.xmlsoap.org/soap/encoding/\stns4\r\n\s\s}\r\n\s\stns\s{\r\n\s\s\s\swsdl\sw\r\n\s\s\s\shttp\stns2\r\n\s\s\s\smime\stns3\r\n\s\s\s\sxs\sxs\r\n\s\s\s\ssoap\sd\r\n\s\s\s\ssoapenc\stns4\r\n\s\s\s\spwsserverincmd\stns1\r\n\s\s}\r\n}\r\ntns\s{}\r\nelements\s{\r\n\s\stns1:processRequest\s1\r\n\s\stns1:processResults\s1\r\n}\r\noperation\s{\r\n\s\sprocess\s{\r\n\s\s\s\sisClone\s0\r\n\s\s\s\scloneList\s{}\r\n\s\s\s\scloned\s0\r\n\s\s\s\sname\sprocess\r\n\s\s\s\sstyle\sdocument/literal\r\n\s\s\s\saction\spwsserverincmd:process\r\n\s\s\s\ssoapRequestHeader\s{{}}\r\n\s\s\s\ssoapReplyHeader\s{{}}\r\n\s\s\s\sinputs\stns1:processRequest\r\n\s\s\s\soutputs\stns1:processResults\r\n\s\s\s\sxns\stns1\r\n\s\s}\r\n}\r\nsoapActions\s{pwsserverincmd:process\sprocess}\r\ninputMessages\s{tns1:processRequest\sprocess}\r\nsimpletypes\s{}\r\n</verbatim>\r\n\r\nThe\scall\sto\sthe\sweb\sservice\s(argument\sp1\swas\sreceived\sby\sserver):\r\n<verbatim>\r\n<?xml\sversion="1.0"\s\sencoding="utf-8"?>\r\n<SOAP-ENV:Envelope\r\n\s\sxmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"\r\n\s\sxmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"\r\n\s\sxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r\n\s\sxmlns:xs="http://www.w3.org/2001/XMLSchema"\r\n\s\sxmlns="https://168.200.0.164:8026/pws"\r\n\s\sxmlns:tns1="https://168.200.0.164:8026/pws"\r\n\s\sxmlns:w="http://schemas.xmlsoap.org/wsdl/"\r\n\s\sxmlns:tns2="http://schemas.xmlsoap.org/wsdl/http/"\r\n\s\sxmlns:tns3="http://schemas.xmlsoap.org/wsdl/mime/"\r\n\s\sxmlns:d="http://schemas.xmlsoap.org/wsdl/soap/"\r\n\s\sxmlns:tns4="http://schemas.xmlsoap.org/soap/encoding/">\r\n\s\s<SOAP-ENV:Body>\r\n\s\s\s\s<tns1:processRequest>\r\n\s\s\s\s\s\s<tns1:p1>\r\n\s\s\s\s\s\s\s\sABC\r\n\s\s\s\s\s\s</tns1:p1>\r\n\s\s\s\s</tns1:processRequest>\r\n\s\s</SOAP-ENV:Body>\r\n</SOAP-ENV:Envelope>\r\n</verbatim>\r\n\r\nAnd\shere\sis\sthe\sresponse\sof\sthe\sweb\sserver:\r\n<verbatim>\r\n<?xml\sversion="1.0"\s\sencoding="utf-8"?>\r\n<SOAP-ENV:Envelope\r\n\s\sxmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"\r\n\s\sxmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"\s\r\n\s\sxmlns:xsd="http://www.w3.org/1999/XMLSchema"\r\n\s\sxmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"\r\n\s\sxmlns:pwsserverincmd="http://168.200.0.164:8026/pws">\r\n\s\s<SOAP-ENV:Body>\r\n\s\s\s\s<pwsserverincmd:processResults>\r\n\s\s\s\s\s\s<pwsserverincmd:processResult>\r\n\s\s\s\s\s\s\s\sA\r\n\s\s\s\s\s\s</pwsserverincmd:processResult>\r\n\s\s\s\s</pwsserverincmd:processResults>\r\n\s\s</SOAP-ENV:Body>\r\n</SOAP-ENV:Envelope>\r\n</verbatim>\r\n\r\nSo\smy\squestion:\swhat\sis\sgoing\swrong\s?\r\nWhere\sis\sthe\sissue,\sserver\sor\sclient\s?\r\n\r\nThis\sis\salso\sa\smarker\sfor\smyself\sto\sinvestigate\sfurther...\r\n\r\nThank\syou\sall,\r\nHarald
J foundin trunk
J private_contact 0f366eb3e9e2fcab52b8ebacd197db9047186a5f
J severity Important
J status Open
J subsystem Client_Side
J title WS\sClient\sdoes\snot\scapture\sright\sxml\snamespace\sfor\ssingle\sreturn\svalue
J type Code_Defect
K e8414f952499ac244c291e587281d80f94c40a17
U oehhar
Z 85024f280c35b501c5bc5e3144b9f9eb