Hi,

I'm having problems running generated server-side code in Axis 1-1. Using the WSDL2Java tool I can generate and deploy my endpoint to Axis no problem at all. However, when I access the list of deployed services and attempt to view the WSDL I get the following error:

----------------
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: makeTypeElement() was told to create a type "{http://www.govtalk.gov.uk/pdcs/common/name-v1-2}>name2", with no containing element
faultActor:
faultNode:
faultDetail:
----------------


The cause of this seems to be that name2 is declared as an anonymous type, i.e.:

<element name="name2">
       <complexType>
              <sequence>
                      ....

And if I split the type definition from the element declaration the Axis no longer complains. Unfortuantely this is not a acceptable solution as the schemas will be coming from external sources.

Has anybody had a similar problem and if so, is there a better way around this?

Any help would be much appreciated.

Cheers,

Jared.




Reply via email to