Hi everybody. I'm trying to define a REST web service with ODE WSDL REST extension in order to invoke it on a BPEL process. This is the REST WSDL for my WS
<?xml version="1.0" encoding="UTF-8"?> > > <wsdl:definitions > xmlns="http://schemas.xmlsoap.org/wsdl/" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" > xmlns:tns="http://cliente.tiendaonline.restws" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:odex="http://www.apache.org/ode/type/extension/http" > targetNamespace="http://cliente.tiendaonline.restws"> > > <wsdl:types> > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" > targetNamespace="http://cliente.tiendaonline.restws"> > <xsd:element name="cid" type="xsd:string"/> > <xsd:element name="clienteREP" type="xsd:string"/> > </xsd:schema> > </wsdl:types> > > <wsdl:message name="infoCliente"> > <wsdl:part name="cid" element="tns:cid"/> > </wsdl:message> > <wsdl:message name="infoClienteResponse"> > <wsdl:part name="clienteREP" element="tns:clienteREP"/> > </wsdl:message> > > > <wsdl:portType name="RWSCliente_portType"> > <wsdl:operation name="doGET"> > <wsdl:input message="tns:infoCliente"/> > <wsdl:output message="tns:infoClienteResponse"/> > </wsdl:operation> > </wsdl:portType> > > <wsdl:binding name="RWSCliente_Binding" type="tns:RWSCliente_portType"> > <wsdl:operation name="doGET"> > <http:operation location=""/> > <odex:binding verb="GET"/> > <wsdl:input> > <http:urlReplacement/> > </wsdl:input> > <wsdl:output> > <mime:content type="text/xml" part="article"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > > <service name="RWSCliente_Service"> > <wsdl:port name="RWSCliente_Port" binding="tns:RWSCliente_Binding"> > <http:address location=" > http://localhost:8182/TiendaOnline/clientes/{cid}"/> > </wsdl:port> > </service> > > </wsdl:definitions> > It's a quite simple WS that support just GET operation. I based this WSDL from the imaginary Blog WS ( http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/resources/TestHttpBindingExt_POST/) used to illustrate WSDL REST extension. My problem is that I get several errors on binding and service section related to HTTP operations and address. Specifically: Binding ---> <http:operation location=""/> * The 'RWSCliente_Binding' binding that the HTTP operation is specified for does not have an HTTP binding defined. An HTTP binding must be defined in order to define an HTTP operation here. * The location URI is invalid for the HTTP operation. You must specify a valid location URI for every HTTP Operation. Service ---> <http:address location=" http://localhost:8182/TiendaOnline/clientes/{cid}"/> * An HTTP address cannot be specified here as the 'RWSCliente_Binding' binding that the 'RWSCliente_Port' port refers to does not have an HTTP binding element defined. There must be an HTTP binding element defined in order to specify an HTTP address for a binding. I also imported the Imaginary Blog WS files to try it out, and I get the exact same error messages. I'm using Eclipse IDE Indigo Service Release 2. Hope somebody can help me figure out what I'm doing wrong. Thanks!
