also please post *any* xsds e.g. <xsd:include schemaLocation="something.xsd" />
your wsdl includes

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 



Date: Thu, 20 May 2010 14:28:42 -0400
Subject: Re: WSDL2Java Problem: Cannot generate single element complex type
From: [email protected]
To: [email protected]

Post the relevant segment of your WSDL and the parameters used to call 
wsdl2java.

I use Axis2 to generate a lot of complex types with a single element without 
problems


On Thu, May 20, 2010 at 2:05 PM, McBride, Devin (TS) <[email protected]> 
wrote:




I have a complex class that, for the time, only holds a single element.  While 
WSDL2Java runs successfully (without errors) no stub is created for this 
complex type.  Further, a call to this operation returns a type of the element 
being held by the complex type, rather than the complex type itself.
 
While troubleshooting, I was able to ‘fix’ this by adding any second element.  
Running WSDL2Java then creates the class for the complex type.  Obviously since 
is not the fix I want, I’m wondering if there is a way around this – 
specifically: I want a complex type to be created that holds a single element.
The odd thing about this is I was able to generate a complex Request Type with 
a single element just fine – the Response Type is the only one having an issue. 
 By design?
Please advise.
Thank you,
Devin
 
                                          
_________________________________________________________________
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5

Reply via email to