Hi,
The question is on using java2wsdl for generating WSDL when interface
signature is changed from OMElement to Document. In case OMElement is
used the generated WSDL defines message correctly:
public interface Test2Service
{
public org.apache.axiom.om.OMElement
serviceMethod(org.apache.axiom.om.OMElement batch);
}
WSDL:
<xs:element name="serviceMethod">
<xs:complexType>
<xs:sequence>
<xs:element
name="param0" nillable="true" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
But if method signature is defined as org.w3c.dom.Document then message
generated in WSDL seems incorrect:
public interface Test3Service
{
public org.w3c.dom.Document serviceMethod(org.w3c.dom.Document batch);
}
WSDL:
<xs:element name="serviceMethod">
<xs:complexType>
<xs:sequence>
<xs:element
name="param0" nillable="true" type="ns0:Document"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="Document">
<xs:sequence>
<xs:element name="doctype"
nillable="true" type="ax21:DocumentType"/>
<xs:element
name="documentElement" nillable="true" type="ax21:Element"/>
<xs:element name="documentURI"
nillable="true" type="xs:string"/>
<xs:element name="domConfig"
nillable="true" type="ax21:DOMConfiguration"/>
<xs:element
name="implementation" nillable="true" type="ax21:DOMImplementation"/>
<xs:element name="inputEncoding"
nillable="true" type="xs:string"/>
<xs:element
name="strictErrorChecking" type="xs:boolean"/>
<xs:element name="xmlEncoding"
nillable="true" type="xs:string"/>
<xs:element name="xmlStandalone"
type="xs:boolean"/>
<xs:element name="xmlVersion"
nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
Is this correct behaviour ? Am I supposed to use OMElement can't use
Document ?
-yogen
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not
intend to waive confidentiality or privilege. Use of this email is prohibited
when received in error.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]