Dear Wiki user, You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.
The following page has been changed by Deepal: http://wiki.apache.org/ws/FrontPage/Axis2/hackathon_13_06 ------------------------------------------------------------------------------ [13:09] Chinthaka has disconnected: Read error: 104 (Connection reset by peer) + Deepal: having the lucnh time discussion on wsdl nampspaces + + [13:44] Deepal: handling and relationships + + [13:52] Deepal: is that ok to store broken wsdl model in wsdl4j + + [13:52] Deepal: though API allows to do that + + [13:52] chathura: not clear + + [13:52] chathura: say tht again + + [13:53] gdaniels: There's a WSDL which just contains <service> in namespace A + + [13:53] gdaniels: It imports WSDL from namespace B, which contains bindings, portTypes, etc + + [13:53] gdaniels: So when that gets parsed by WSDL4J we get *two* WSDLDescription objects + + [13:54] gdaniels: (or whatever they're called :)) + + [13:54] gdaniels: and one has a link to the other + + [13:54] gdaniels: because each description has only one target namespace + + [13:54] chathura: got it + + [13:54] gdaniels: when we're doing codegen, we merge the two into a single WSDL4J structure + + [13:54] gdaniels: which the API really should not allow us to do + + [13:54] gdaniels: but it does, apparently + + [13:55] chathura: now this is why you should have comeup with the componenet model when you proposed wsdl 1.1 + + [13:56] chathura: :-) + + [13:56] gdaniels: lol + + [13:56] gdaniels: blame Sanjiva + + [13:57] chathura: :-) + + [14:05] ajith: ok here is my 2 cents + + [14:05] ajith: WSDL4J is supposed to be only the object model + + [14:05] ajith: its just another representation of the WSDL file you have + + [14:06] ajith: if your WSDL is wrong then obviously the object model is wrong ! + + [14:06] ajith: I beleive this is same in Woden + + [14:06] ajith: none of them try to validate the structure + + [14:06] gdaniels: but WSDL has rules + + [14:07] gdaniels: if my WSDL is targetNamespace="foo", I should not be able to add a portType in namespace "bar" to that description hierarchy + + [14:07] chathura: think the point is wsdl4j has dropped some of the semantic rules that it need to enforce + + [14:07] gdaniels: yes exactly + + [14:07] gdaniels: it shouldn't even be possible to do + + [14:07] ajith: WSDL4J IMHO should be looked at as a convenient representation of the WSDL XML file you have + + [14:07] chathura: and the question is should we enforce them + + [14:07] gdaniels: i.e. I should not be able to add a portType by QName + + [14:07] gdaniels: I should only be able to add it by NCName + + [14:07] ajith: yes - exactly + + [14:08] gdaniels: and the NS should be inferred from the Description I add it to + + [14:08] ajith: I guess the view taken by both WSDL4J and Woden is that they are mere object represenations of what you have as XML + + [14:09] ajith: and validations come seperately + + [14:09] gdaniels: I haven't looked at the APIs recently + + [14:09] gdaniels: but if you can really break things that easily that seeems not so good + + [14:09] ajith: so you can write a validator on top of Woden/WSDL4J but they themselves would not validate the WSDL + + [14:09] chathura: well woden does validation during parsing + + [14:10] ajith: it does ? + + [14:10] chathura: yup + + [14:10] ajith: so if you have a ns missing it complains ? + + [14:10] chathura: well i think it runs in two modes + + [14:10] chathura: one with assertion ON mode + + [14:10] ajith: oh yes - now I remember + + [14:11] chathura: in that it checks for wsdl 2.0 assertions + + [14:11] ajith: yes right - but that mode is very slow to operate IIRC + + [14:12] ajith: in anycase the argument is that what is the scope WSDL object models should cover + + [14:12] ajith: I mean should they validate or not + + [14:12] chathura: yup thats where i was heading + + [14:14] ajith: BTW is this related to the hackathon by any chance ? + + [14:14] ajith: I mean what we are discussing here + + [14:31] chathura has disconnected + + [14:36] chathura has joined + + [15:09] chamikara has disconnected: "ChatZilla 0.9.78.1 [Firefox 2.0.0.1/2006120814]" + + [15:49] chathura: OT: I have a JSON question if someone is willing to give a hand + + [15:49] chathura: <?xml version='1.0' encoding='UTF-8'?> + + [15:49] chathura: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> + + [15:49] chathura: <soapenv:Body> + + [15:49] chathura: <ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/xsd"> + + [15:49] chathura: <ns1:str>Hello</ns1:str> + + [15:49] chathura: </ns1:echoString> + + [15:49] chathura: </soapenv:Body> + + [15:49] chathura: </soapenv:Envelope> + + [15:49] chathura: THats the SOAP + + [15:50] chathura: Here is the JSON + + [15:50] chathura: {"ns1:echoString":{"@xmlns":{"ns1":"http:\/\/ws.apache.org\/axis2\/xsd"},"str":{"$":"Hello"}}} + + [15:50] chathura: you might notice some namespaces are missing + + [15:51] chathura: eg str should be ns1:str + --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]