Hi !

Ok thanks, i read it in one thread also. But then the only way
is to
declare a local element in the wsdl which is a specfcific
type.
Or does it even require the specific type to not have any
references.
There are other framework like Xfire, Axis, JBossWS and Metro
for example
does generate it wrapped for this wsdl structure.

Regards,

Daniel F

dkulp wrote:
> 
> 
> If you look at your schema, you are using element refs in the wrapper
> types:
> 
> <xsd:element name="SparaLedigtArbeteUtkast">
>       <xsd:complexType>
>               <xsd:sequence>
>                       <xsd:element 
> ref="sparaledigtarbeteutkastanrop:SparaLedigtArbeteUtkastAnropsmeddelande"
> />
>               </xsd:sequence>
>       </xsd:complexType>
> </xsd:element>
> 
> According to JAX-WS rules (jaxws spec, section 2.3.1.2) for being able to 
> unwrap it into the parameters:
> 
> (v) The wrapper elements only contain child elements, they MUST not
> contain 
> other structures such as wildcards (element or attribute), xsd:choice, 
> substitution groups (element references are not permitted) or attributes; 
> furthermore, they MUST not be nillable.
> 
> Noticed that element references are explicitly mentioned as not allowed.   
> Thus, your wsdl doesn't meet the requirements for wrapped mode and must be 
> generated as BARE.
> 
> Hope that helps.
> 
> 
> Dan
> 
> 
> 
> 
> 
> 
> On Mon April 20 2009 11:09:40 am forda wrote:
>> Hello !
>>
>> According to how doc-literal wrapped is written in the WSDL,
>> it should generate the request and response wrapper for each
>> messages, but it generates Bare instead. Using the maven-codegen-plugin.
>> I also applied a binding enabling this option, it makes no difference.
>> I scanned this forum seem to be a bug before but does it still exist in
>> version 2.2 of CXF ?
>>
>> /Daniel F
>>
>> See this:
>> http://www.nabble.com/file/p23138624/LedigtArbete.wsdl LedigtArbete.wsdl
>> http://www.nabble.com/file/p23138624/LedigtArbete.wsdl LedigtArbete.wsdl
>>
>>                              org.apache.cxf
>>                              cxf-codegen-plugin
>>                              ${cxf-version}
>>
>>
>>                                              generate-sources
>>                                              generate-sources
>>
>>                                                      
>> ${basedir}/target/generated/src/main/java
>>
>>
>>
>> ${basedir}/../../../tjanstegranssnitt/beskrivningar/ledigt_arbete/v0/Ledigt
>>Arbete.wsdl
>>
>>                                                                              
>> ${basedir}/../../Gemensam/src/main/resources/jaxbbinding.xml
>>
>>
>>
>>
>>
>>                                                      wsdl2java
> 
> -- 
> Daniel Kulp
> [email protected]
> http://www.dankulp.com/blog
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wsdl2Java-Generating-BARE-not-WRAPPED-tp23138624p23149854.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to