A speculation (I'm not an expert): If you have <wrapper someatt="somevalue"> <part1>...</part1> <part2>...</part2> </wrapper> being converted to a method call on the server: ServiceClass.someMethod(part1, part2) the attributes are lost. There is no way in wsdl to specify "parts" which correspond to attributes in wsdl.
As for using attributes in the non-wrapped implementation, in the wsdl, you cannot tell whether a document style service will be implemented as the wrapped form or the someMethod(wrapper) form, so the client would not be able to tell whether the attributes would be lost in the server or not. The implementation should be able to change transparently between the two forms without affecting the abstract description or the client. Jeff ----- Original Message ----- From: "Liu, Scott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 10, 2004 4:31 PM Subject: The Attributes and the UN-"wrapper" style Hi, All, There has been discussion about the "wrapper" style and the attributes in the past. And Axis does not support wrapper element attributes since JAX-RPC spec says that the wrapper element should not have attributes. I have no problem with it. But I do like people to clarify the following questions. 1. I know that it might be against the spec to have attributes for the wrapper element. But it is such a simple change on Axis to support attributes (I made minor change on client code generated with Axis tool and it worked) I am wondering why the JAX-RPC insists that there is no attributes for the wrapper element (.NET supports the attributes anyway)? Does anyone know the story behind this? 2. I did not read the whole JAX-RPC spec and so what I said might be wrong. Correct me if it is the case. Since attributes are such a big part of xml schema and if I use the attributes to go with the UN-wrapped style does Axis support it? My test revealed that it did not with v1.1. Is there a patch or will it be supported in Axis 1.2 for un-wrapped style? Your explanation is highly appreciated, Thanks, Scott