Hello,

I have some probelm with namespaces during wsdl generation by xfire.
I'm using xfire in version 1.2.6 and I'm using it with JAXB 2.0.

I've created webservice using annotation :

Interface file:

@WebService(name="WS", targetNamespace="some.company.com" )
public interface WS {
        @WebMethod
        public DummyObject testDummyObject(); 
}

Implementation file

@WebService(name="WSService", endpointInterface="package.name.WS")
public class WSImpl implements WS{
                
        public DummyObject testDummyObject() {
        //implementation
        }
}

Dummmy object classes:

@XmlRootElement(name="DummyObject", namespace="some.company.com")
public class DummyObject implements Serializable{
       @XMLElementRef(type=SecondObject.class)
        private SecondObject ob;
}


@XmlRootElement(name="SecondObject", namespace="some.company.com")
public class SecondObject implements Serializable{
       //implementation
}

Ok, where is the problem ?
When targetNamespace is not equal to namespace from dummyObejct and
second obejct then everything is ok. On wsdl, in declarations I have
two namespaces :
tns="some.company.com"
ns1="some.company.com1"
and obects are from namespace ns1 (ns1:dummyObject)

But, if namespace from object is equal to targetNamespace, then in
declaration I have only:
tns="some.company.com"

but in types definiions I have :
ns1:secondObject (namespace ns1 is not declared so wsdl is not
correct)

Where did I make something wrong in my definitons ?


  

-- 
Best regards,
  Wojtek                         mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to