Hi All,

I am having a serious issue when my service is returning objects from different 
namespaces. Let me explain the issue:

1-I created a service and deployed with Axis 2. Every thing works fine except 
parameters  are names as param0 , param1 because my service is implementing 
interface.

2- To avoid the param0 etc, I saved the wsdl in resources\meta-inf and changed 
manually the param0 and param1 to correct parameters names.

3- In services.xml. for a service I added two more following parameters

<parameter name="useOriginalwsdl">
         true
</parameter> 

<parameter locked="false" name="modifyUserWSDLPortAddress">
        false
</parameter>

And every thing works smoothly. So far so good .

4- But if a service is returning an object from different java package (or in 
wsdl term different name space) then I get Runtime exception. "Unexpected 
subelement companyId"

5- If the class of returned object is moved to the same package as service (i-e 
same name space as service) then every thing goes fine. I can't move my classes 
of returned object to same package as services package as it will destroy the 
whole design. 

If I do not customize wsdl and do not save it resources\meta-inf folder then it 
does not matter what is the name space of returned object.

I am wondering if it is a known issue and/or any trick is around to play around 
this issue for now.

Thanks,

Petr V.




       
---------------------------------
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.

Reply via email to