I have a web service that includes a type something like this
| <schema xmlns="http://www.w3.org/2001/XMLSchema">
| ...
| <complexType name="ItemSummary">
| <sequence>
| <element name="item" type="types:DefinedItem" />
| </sequence>
| <attribute name="itemType" type="QName" />
| </complexType>
| ...
| </schema>
|
This type is the return type for a web service operation. When the
corresponding ItemSummary java object is serialized to a soap
message, the itemType attribute comes out like this:
| ...
| <itemSummary itemType="{urn:type-ns}ItemSubType">
| ...
|
instead of something like
| ...
| <itemSummary xmlns:ns1="urn:type-ns"
| itemType="ns1:ItemSubType">
| ...
|
Obviously, the javax.xml.namespace.QName.toString() method is being
used here. If I use an element of type QName instead of an attribute, I get
the correct behavior.
Is there any way to make the attribute work?
Thanks.
Robert
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945086#3945086
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945086
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user