Hi On Thu, Jan 20, 2011 at 2:56 PM, myerscb <[email protected]> wrote:
> > hi, > > I am more than willing to migrate to jax-rs. In our requests to the web > services we will be passing multiple parameters (at least as of now we > will). Things like a data source, userid, request, request parameters, and > possibly a password. We are still architecting the project so nothing is > set in stone yet. (except for the high level requirements like SOAP and > REST > with JSON). > > Does the request parameters make me fall into the Http Binding category? > > Personally I do prefer to have a single input parameter representing the request body in the method, in case of XML/JSON-based services at least. Ex, Customer - it will have may individual fields, etc. The method can have more parameters but they can be mapped to queries, headers, matrix parameters, path fragments. JAX-RS provider such as JSON Jettison or Jackson will ensure the sequence containing multiple values is properly read into Customer, etc > the wsdl is included at the end of this message. > > thanks, I see there's no any specific information about the REST binding there. I thought there was some limited support for it in WSDL 1.1 - I'll need to recheck. thanks, Sergey > Thanks for your help. > > Chris > > <wsdl:definitions name="CustomerServiceService" > targetNamespace="http://demo.restful.server"> > - > <wsdl:types> > - > <xs:schema attributeFormDefault="unqualified" > elementFormDefault="qualified" > targetNamespace="http://demo.restful.server"> > <xs:element type="tns:getCustomer"/> > <xs:element name="Customer" type="tns:customer"/> > <xs:element name="customerNotFoundDetails" > type="tns:customerNotFoundDetails"/> > <xs:element name="customers" type="tns:customers"/> > - > <xs:complexType name="customerNotFoundDetails"> > - > <xs:sequence> > <xs:element name="id" type="xs:long"/> > </xs:sequence> > </xs:complexType> > - > <xs:complexType name="customer"> > - > <xs:sequence> > <xs:element name="id" type="xs:long"/> > <xs:element minOccurs="0" name="name" type="xs:string"/> > </xs:sequence> > </xs:complexType> > - > <xs:complexType name="getCustomer"> > - > <xs:sequence> > <xs:element name="id" type="xs:long"/> > </xs:sequence> > </xs:complexType> > - > <xs:complexType name="customers"> > - > <xs:sequence> > <xs:element maxOccurs="unbounded" minOccurs="0" name="customer" > nillable="true" type="tns:customer"/> > </xs:sequence> > </xs:complexType> > <xs:element name="CustomerNotFoundFault" nillable="true" > type="tns:customerNotFoundDetails"/> > <xs:element name="id" nillable="true" type="xs:long"/> > <xs:element name="addCustomerResponse" nillable="true" type="xs:long"/> > <xs:element name="GetCustomer" nillable="true" type="tns:getCustomer"/> > <xs:element name="getCustomerResponse" nillable="true" > type="tns:customer"/> > <xs:element name="Customers" nillable="true" type="tns:customers"/> > </xs:schema> > </wsdl:types> > - > <wsdl:message name="getCustomerResponse"> > <wsdl:part element="tns:getCustomerResponse" name="getCustomerResponse"> > </wsdl:part> > </wsdl:message> > - > <wsdl:message name="addCustomerResponse"> > <wsdl:part element="tns:addCustomerResponse" name="addCustomerResponse"> > </wsdl:part> > </wsdl:message> > - > <wsdl:message name="getCustomersResponse"> > <wsdl:part element="tns:Customers" name="Customers"> > </wsdl:part> > </wsdl:message> > <wsdl:message name="updateCustomerResponse"> > </wsdl:message> > <wsdl:message name="getCustomers"> > </wsdl:message> > - > <wsdl:message name="getCustomer"> > <wsdl:part element="tns:GetCustomer" name="GetCustomer"> > </wsdl:part> > </wsdl:message> > <wsdl:message name="deleteCustomerResponse"> > </wsdl:message> > - > <wsdl:message name="addCustomer"> > <wsdl:part element="tns:Customer" name="Customer"> > </wsdl:part> > </wsdl:message> > - > <wsdl:message name="updateCustomer"> > <wsdl:part element="tns:Customer" name="Customer"> > </wsdl:part> > </wsdl:message> > - > <wsdl:message name="deleteCustomer"> > <wsdl:part element="tns:id" name="id"> > </wsdl:part> > </wsdl:message> > - > <wsdl:message name="CustomerNotFoundFault"> > <wsdl:part element="tns:CustomerNotFoundFault" > name="CustomerNotFoundFault"> > </wsdl:part> > </wsdl:message> > - > <wsdl:portType name="CustomerService"> > - > <wsdl:operation name="deleteCustomer"> > <wsdl:input message="tns:deleteCustomer" name="deleteCustomer"> > </wsdl:input> > <wsdl:output message="tns:deleteCustomerResponse" > name="deleteCustomerResponse"> > </wsdl:output> > <wsdl:fault message="tns:CustomerNotFoundFault" > name="CustomerNotFoundFault"> > </wsdl:fault> > </wsdl:operation> > - > <wsdl:operation name="updateCustomer"> > <wsdl:input message="tns:updateCustomer" name="updateCustomer"> > </wsdl:input> > <wsdl:output message="tns:updateCustomerResponse" > name="updateCustomerResponse"> > </wsdl:output> > </wsdl:operation> > - > <wsdl:operation name="addCustomer"> > <wsdl:input message="tns:addCustomer" name="addCustomer"> > </wsdl:input> > <wsdl:output message="tns:addCustomerResponse" name="addCustomerResponse"> > </wsdl:output> > </wsdl:operation> > - > <wsdl:operation name="getCustomer"> > <wsdl:input message="tns:getCustomer" name="getCustomer"> > </wsdl:input> > <wsdl:output message="tns:getCustomerResponse" name="getCustomerResponse"> > </wsdl:output> > <wsdl:fault message="tns:CustomerNotFoundFault" > name="CustomerNotFoundFault"> > </wsdl:fault> > </wsdl:operation> > - > <wsdl:operation name="getCustomers"> > <wsdl:input message="tns:getCustomers" name="getCustomers"> > </wsdl:input> > <wsdl:output message="tns:getCustomersResponse" > name="getCustomersResponse"> > </wsdl:output> > </wsdl:operation> > </wsdl:portType> > - > <wsdl:binding name="CustomerServiceServiceSoapBinding" > type="tns:CustomerService"> > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > - > <wsdl:operation name="deleteCustomer"> > <soap:operation soapAction="" style="document"/> > - > <wsdl:input name="deleteCustomer"> > <soap:body use="literal"/> > </wsdl:input> > - > <wsdl:output name="deleteCustomerResponse"> > <soap:body use="literal"/> > </wsdl:output> > - > <wsdl:fault name="CustomerNotFoundFault"> > <soap:fault name="CustomerNotFoundFault" use="literal"/> > </wsdl:fault> > </wsdl:operation> > - > <wsdl:operation name="updateCustomer"> > <soap:operation soapAction="" style="document"/> > - > <wsdl:input name="updateCustomer"> > <soap:body use="literal"/> > </wsdl:input> > - > <wsdl:output name="updateCustomerResponse"> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > - > <wsdl:operation name="addCustomer"> > <soap:operation soapAction="" style="document"/> > - > <wsdl:input name="addCustomer"> > <soap:body use="literal"/> > </wsdl:input> > - > <wsdl:output name="addCustomerResponse"> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > - > <wsdl:operation name="getCustomer"> > <soap:operation soapAction="" style="document"/> > - > <wsdl:input name="getCustomer"> > <soap:body use="literal"/> > </wsdl:input> > - > <wsdl:output name="getCustomerResponse"> > <soap:body use="literal"/> > </wsdl:output> > - > <wsdl:fault name="CustomerNotFoundFault"> > <soap:fault name="CustomerNotFoundFault" use="literal"/> > </wsdl:fault> > </wsdl:operation> > - > <wsdl:operation name="getCustomers"> > <soap:operation soapAction="" style="document"/> > - > <wsdl:input name="getCustomers"> > <soap:body use="literal"/> > </wsdl:input> > - > <wsdl:output name="getCustomersResponse"> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > - > <wsdl:service name="CustomerServiceService"> > - > <wsdl:port binding="tns:CustomerServiceServiceSoapBinding" > name="CustomerServicePort"> > <soap:address location="http://localhost:8080/soap"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > -- > View this message in context: > http://cxf.547215.n5.nabble.com/IllegalAnnotationExceptions-when-running-Restful-Http-Binding-Demo-tp3349642p3349717.html > Sent from the cxf-user mailing list archive at Nabble.com. >
