Can you show us the wsdl generated by xfire? I suspect you're seeing the same problems I was having earlier, where xfire decided to start using the class namespace, and making up it's own elements in the wsdl schema, rather than using what I told it to. This is partially captured in XFIRE-509. (if you work around the missing setters, you end up with what you have)
Cheers, Karl P > -----Original Message----- > From: João Nuno Silva [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 02, 2007 3:25 PM > To: [email protected] > Subject: [xfire-user] Help removing namespaces > > Hello, > > Can you please help me remove the xmlns="Person" from the > name and age attributes in the following SOAP Response? > Thanks in advance! Joao Silva > > <soap:Envelope [...]> <soap:Envelope> > <soap:Body> <soap:Body> > <listResponse xmlns="MyTest"> > <Persons> > <ns1:Person xmlns:ns1="Person"> > <age xmlns="Person">32</age> > <name xmlns="Person">Peter</name> > </ns1:Person> > <ns1:Person xmlns:ns1="Person"> > <age xmlns="Person">24</age> > <name xmlns="Person">Alex</name> > </ns1:Person> > </Persons> > </listResponse> > </soap:Body> > </soap:Envelope> > > ...and this is my code: > > ############# > # Interface # > ############# > > @WebService(name = "MyTest", targetNamespace = "MyTest") > public interface MyTest { > @WebMethod > @WebResult(name = "Persons") > public Collection<Person> list(); > } > > ################## > # Implementation # > ################## > > @WebService(endpointInterface = "test.service.MyTest") public > class MyTestImpl implements MyTest { > > public Collection<Person> list() { > Collection<Person> persons = new ArrayList<Person>(); > > persons.add(new Person("Peter", 32)); > persons.add(new Person("Alex", 24)); > > return persons; > } > } > > ########## > # Entity # > ########## > > @XmlType(namespace = "Person") > public class Person { > private String name; > private Integer age; > > public Person(String name, Integer age) { > this.name = name; > this.age = age; > } > > public Integer getAge() { > return age; > } > public void setAge(Integer age) { > this.age = age; > } > public String getName() { > return name; > } > public void setName(String name) { > this.name = name; > } > } > > > > > DISCLAIMER: This message may contain confidential information > or privileged material and is intended only for the > individual(s) named. If you are not a named addressee and > mistakenly received this message you should not copy or > otherwise disseminate it: please delete this e-mail from your > system and notify the sender immediately. E-mail > transmissions are not guaranteed to be secure or without > errors as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete or contain viruses. > Therefore, the sender does not accept liability for any > errors or omissions in the contents of this message that > arise as a result of e-mail transmissions. Please request a > hard copy version if verification is required. Critical Software, SA. > > > > -------------------------------------------------------------- > ------- To unsubscribe from this list please visit: > http://xircles.codehaus.org/manage_email > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
