Is there a way to configure how WSDL is genreated by
JBOss?
JBoss + EJB3.
Web service with simple: @WebService()
WSDL auto generated on JBOSS startup.
Using it in
JAVA clients works fine (@WebServiceRef).
But issue is with .NET - Visual Studion generates number of unnecessary classes wrapping simple types.
Cause: generated WSDL has schema defining new type for each element.
...
<xs:element name="submitApplication" type="tns:submitApplication"/>
...
<xs:complexType name="submitApplication">
<xs:sequence>
<xs:element minOccurs="0" name="applicationXMLAsString" type="xs:string"/>
</xs:sequence>
</xs:complexType>
...
Another WSDL generated by some Apache tools (another project) produces WSDL having:
<s:element name="createApplication">
<s:complexType>
<s:sequence>
<s:element name="applicationForDocument" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
And .NET studio generates expected classes form latter one.
Regardless of is this a .NET issue and could it be solved on that side, can I produce WSDL that will produce format .NET expects?
I see that both approach describe the same thing, but can I force JBOSS somehow to avoid generating new types when they are not necessary?