The Artima Developer Community
Sponsored Link

Web Services Forum
Java type extensions in WSDL

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Magdalena Zelenkovska

Posts: 1
Nickname: mzelen
Registered: Jan, 2007

Java type extensions in WSDL Posted: Jan 30, 2007 2:58 PM
Reply to this message Reply
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

Topic: Caching in web service (axis/tomcat) ? Previous Topic   Next Topic Topic: How to save all search engine results urls in a text file

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use