|
|
Java type extensions in WSDL
|
Posted: Jan 30, 2007 2:58 PM
|
|
|
Advertisement
|
Java type extensions in WSDL
Hi,
I would really appreciate if someone could share an example of how java types can be used in WSDL.
I am trying to define messages of type java.sql.Connection. The WSDL should look something like:
But of course I cannot reference java.sql.Connection from the WSDL
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tst="http://test.org/test/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TestService" targetNamespace="http://test.org/TestService/"> <wsdl:types> <xsd:schema targetNamespace="http://test.org/Test/"> <?xml version="1.0" encoding="UTF-8"?> <element name="testType"> <complexType> <sequence> <element name="connection" type="java:java.sql.Connection"/> </sequence> </complexType> </element> </xsd:schema> </wsdl:types>
<wsdl:message name="testMessage"> <wsdl:part name="RequestParameter" element="tst:testType"/> </wsdl:message>
<wsdl:message name="testMessage"> <wsdl:part name="ResponseParameter" element="tst:testType"/> </wsdl:message>
<wsdl:portType name="testInterface"> <wsdl:operation name="TestOper"> <wsdl:input message="tst:testRequestMessage"/> <wsdl:output message="tst:testResponseMessage"/> </wsdl:operation> </wsdl:portType>
<wsdl:binding name="testServiceSOAP" type="tst:testInterface"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="test"> <soap:operation soapAction="http://test.org/test/ "/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding>
<wsdl:service name="testService"> <wsdl:port binding="conn:testServiceSOAP" name="testServicePort"> <soap:address location="http://localhost:8080/Axis/services/testServiceSOAP" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
Is there a workaround?
Thanks.
M
|
|