I'm not sure, perhaps you should try your WSDL with GlassFish Metro aka the JAX-WS RI and see what it says.
The WS-I BP provides design rules (suggestions) for web services that wish to be compliant with it, but it is not the WSDL specification itself. My read of 2203 and 2204 is that says how you should identify messages if you are using doc/lit vs. rpc/lit, but that is not the determinant of whether you are using doc/lit or rpc/lit--that is still defined in the binding section. Stated another way, while it's true that in Canada you need to buy things with Canadian dollars, attempting to buy things with Canadian money does not automatically mean you're in Canada, nor does such an attempt automatically transport you to Canada. I believe CXF's wsdl2java has a validation option that checks several of the WS-I BP rules (not by any means all though). If we're missing this particular test in the validation processing you might want to submit a JIRA enhancement request for us to include it. But I don't think we can reject outright a legal (i.e., WSDL-spec compliant) WSDL that does not follow a particular WS-I BP design recommendation, because WSDLs are not required to follow the WS-I BP. Glen jackdawson wrote: > > Thanks for the reply, Glen. > > I don't want to start a war here but this is what I received from Axis2 > mailing list: > > "This WSDL looks invalid. As you have said when a message part refers to > a type directly it is RPC whereas when it refers to an element its known > as document. Now the messages parts of your WSDL is RPC but your binsind > says that its document. I feel that the WSDL is incorrect and hence Axis2 > is right in saying that the element is missing." > > I wanted to find a base for this statement and here it is. > Reference: > Initially, I thought the same way as you did. But when I looked at the > WS-I basic profile at > http://www.ws-i.org/Profiles/BasicProfile-1.1.html#WSDLMSGS > http://www.ws-i.org/Profiles/BasicProfile-1.1.html#WSDLMSGS and read the > > a) R2203 > b) R2204 > > I had to update my knowledge on the styles and usages. > > Please let me know your comments on this. We can talk more on this if > needed. > I really appreciate it. > > Thanks. > -- View this message in context: http://www.nabble.com/Axis2-and-CXF---Handling-WSDLs-differently-tp19696717p19717752.html Sent from the cxf-user mailing list archive at Nabble.com.
