Difference between revisions of "Echo ws bottom-up method"
F.albanese (talk | contribs) |
F.albanese (talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
Following the [[bottom-up development method]] wizard we can create a new [http://en.wikipedia.org/wiki/Web_service Web Service] in a few moments. | Following the [[bottom-up development method]] wizard we can create a new [http://en.wikipedia.org/wiki/Web_service Web Service] in a few moments. | ||
Line 8: | Line 7: | ||
This is the "echo_ws.wsdl" generated: | This is the "echo_ws.wsdl" generated: | ||
+ | <toggledisplay> | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
Line 54: | Line 54: | ||
</wsdl:definitions> | </wsdl:definitions> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | </toggledisplay> |
Revision as of 11:22, 5 February 2012
Following the bottom-up development method wizard we can create a new Web Service in a few moments.
We start from a GreenVulcano® ESB service "echo" that simply returns the user input as well as is.
Once launched wizard and inserted all parameters, VulCon® creates the WSDL file that describe our service.
This is the "echo_ws.wsdl" generated:
<toggledisplay>
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.greenvulcano.it/greenvulcano"
xmlns:gv="http://www.greenvulcano.it/greenvulcano"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soapjms="http://www.w3.org/2010/soapjms/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wsdl:types>
<xsd:schema elementFormDefault="qualified"
targetNamespace="http://www.greenvulcano.it/greenvulcano"/>
</wsdl:types>
<wsdl:message name="echoResponse">
<wsdl:part element="gv:echoResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="echoRequest">
<wsdl:part element="gv:echo" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:portType name="echo_wsPortType">
<wsdl:operation name="echo">
<wsdl:input message="gv:echoRequest" name="echoRequest"></wsdl:input>
<wsdl:output message="gv:echoResponse" name="echoResponse"></wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="echo_ws_Soap" type="gv:echo_wsPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="echo">
<soap:operation soapAction="echo_ws/echo" style="document"/>
<wsdl:input name="echoRequest">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="echoResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="echo_ws">
<wsdl:port binding="gv:echo_ws_Soap" name="echo_ws_Soap">
<soap:address location="http://localhost:8080/gvaxis2/services/echo_ws"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
</toggledisplay>