Hi, We have deployed as a test the jpetstore (part of spring distribution) samples webservice using XFire. Everything just went fine and wsdl is given below. Now some of the clients are trying to consume this webservice. This is what they did: 1. Using wsdl2java, generate the stub classes, interfaces. 2. Using wsdl2java, generate domain classes with the same package names as in wsdl (org.springframework.samples.jpetstore.domain 3. Use XFireClientFactoryBean at the client to call the webservice.
Everything works fine both at the client and the server. The problem is when our clients try to change the package name of the domain classes other than what is in the wsdl and try to call the webservice, they don't get correct values in the domian classes back from the webservice. Can someone suggest how to map the domian classess in the wsdl to the one at the client with some example. We looked almost everywhere without success. --Irshad. wsdl: ====================================== <?xml version="1.0" encoding="UTF-8" ?> - <wsdl:definitions targetNamespace="http://codehaus.xfire.org/services" xmlns:tns="http://codehaus.xfire.org/services" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://domain.jpetstore.samples.springframework.org" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> - <wsdl:types> - <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://codehaus.xfire.org/services"> - <xsd:element name="getItem"> - <xsd:complexType> - <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> - <xsd:element name="getItemResponse"> - <xsd:complexType> - <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="ns1:Item" /> </xsd:sequence> </xsd:complexType> </xsd:element> - <xsd:element name="getOrder"> - <xsd:complexType> - <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="in0" type="xsd:int" /> </xsd:sequence> </xsd:complexType> </xsd:element> - <xsd:element name="getOrderResponse"> - <xsd:complexType> - <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="ns1:Order" /> </xsd:sequence> </xsd:complexType> </xsd:element> - <xsd:element name="getMessage"> - <xsd:complexType> - <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> - <xsd:element name="getMessageResponse"> - <xsd:complexType> - <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> - <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://domain.jpetstore.samples.springframework.org"> - <xsd:complexType name="Item"> - <xsd:sequence> <xsd:element minOccurs="0" name="attribute1" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="attribute2" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="attribute3" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="attribute4" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="attribute5" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="itemId" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="listPrice" type="xsd:double" /> <xsd:element minOccurs="0" name="product" nillable="true" type="ns1:Product" /> <xsd:element minOccurs="0" name="productId" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="quantity" type="xsd:int" /> <xsd:element minOccurs="0" name="status" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="supplierId" type="xsd:int" /> <xsd:element minOccurs="0" name="unitCost" type="xsd:double" /> </xsd:sequence> </xsd:complexType> - <xsd:complexType name="Product"> - <xsd:sequence> <xsd:element minOccurs="0" name="categoryId" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="description" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="name" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="productId" nillable="true" type="xsd:string" /> </xsd:sequence> </xsd:complexType> - <xsd:complexType name="Order"> - <xsd:sequence> <xsd:element minOccurs="0" name="billAddress1" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="billAddress2" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="billCity" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="billCountry" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="billState" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="billToFirstName" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="billToLastName" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="billZip" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="cardType" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="courier" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="creditCard" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="expiryDate" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="lineItems" nillable="true" type="ns1:ArrayOfLineItem" /> <xsd:element minOccurs="0" name="locale" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="orderDate" type="xsd:dateTime" /> <xsd:element minOccurs="0" name="orderId" type="xsd:int" /> <xsd:element minOccurs="0" name="shipAddress1" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="shipAddress2" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="shipCity" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="shipCountry" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="shipState" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="shipToFirstName" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="shipToLastName" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="shipZip" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="status" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="totalPrice" type="xsd:double" /> <xsd:element minOccurs="0" name="username" nillable="true" type="xsd:string" /> </xsd:sequence> </xsd:complexType> - <xsd:complexType name="ArrayOfLineItem"> - <xsd:sequence> <xsd:element maxOccurs="unbounded" minOccurs="0" name="LineItem" nillable="true" type="ns1:LineItem" /> </xsd:sequence> </xsd:complexType> - <xsd:complexType name="LineItem"> - <xsd:sequence> <xsd:element minOccurs="0" name="item" nillable="true" type="ns1:Item" /> <xsd:element minOccurs="0" name="itemId" nillable="true" type="xsd:string" /> <xsd:element minOccurs="0" name="lineNumber" type="xsd:int" /> <xsd:element minOccurs="0" name="orderId" type="xsd:int" /> <xsd:element minOccurs="0" name="quantity" type="xsd:int" /> <xsd:element minOccurs="0" name="totalPrice" type="xsd:double" /> <xsd:element minOccurs="0" name="unitPrice" type="xsd:double" /> </xsd:sequence> </xsd:complexType> </xsd:schema> </wsdl:types> - <wsdl:message name="getItemRequest"> <wsdl:part name="parameters" element="tns:getItem" /> </wsdl:message> - <wsdl:message name="getOrderResponse"> <wsdl:part name="parameters" element="tns:getOrderResponse" /> </wsdl:message> - <wsdl:message name="getOrderRequest"> <wsdl:part name="parameters" element="tns:getOrder" /> </wsdl:message> - <wsdl:message name="getMessageResponse"> <wsdl:part name="parameters" element="tns:getMessageResponse" /> </wsdl:message> - <wsdl:message name="getMessageRequest"> <wsdl:part name="parameters" element="tns:getMessage" /> </wsdl:message> - <wsdl:message name="getItemResponse"> <wsdl:part name="parameters" element="tns:getItemResponse" /> </wsdl:message> - <wsdl:portType name="OrderXFireServicePortType"> - <wsdl:operation name="getItem"> <wsdl:input name="getItemRequest" message="tns:getItemRequest" /> <wsdl:output name="getItemResponse" message="tns:getItemResponse" /> </wsdl:operation> - <wsdl:operation name="getOrder"> <wsdl:input name="getOrderRequest" message="tns:getOrderRequest" /> <wsdl:output name="getOrderResponse" message="tns:getOrderResponse" /> </wsdl:operation> - <wsdl:operation name="getMessage"> <wsdl:input name="getMessageRequest" message="tns:getMessageRequest" /> <wsdl:output name="getMessageResponse" message="tns:getMessageResponse" /> </wsdl:operation> </wsdl:portType> - <wsdl:binding name="OrderXFireServiceHttpBinding" type="tns:OrderXFireServicePortType"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="getItem"> <wsdlsoap:operation soapAction="" /> - <wsdl:input name="getItemRequest"> <wsdlsoap:body use="literal" /> </wsdl:input> - <wsdl:output name="getItemResponse"> <wsdlsoap:body use="literal" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="getOrder"> <wsdlsoap:operation soapAction="" /> - <wsdl:input name="getOrderRequest"> <wsdlsoap:body use="literal" /> </wsdl:input> - <wsdl:output name="getOrderResponse"> <wsdlsoap:body use="literal" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="getMessage"> <wsdlsoap:operation soapAction="" /> - <wsdl:input name="getMessageRequest"> <wsdlsoap:body use="literal" /> </wsdl:input> - <wsdl:output name="getMessageResponse"> <wsdlsoap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:service name="OrderXFireService"> - <wsdl:port name="OrderXFireServiceHttpPort" binding="tns:OrderXFireServiceHttpBinding"> <wsdlsoap:address location="http://localhost:8080/jpetstore/service/OrderXFireService" /> </wsdl:port> </wsdl:service> </wsdl:definitions> -- View this message in context: http://www.nabble.com/Help-needed-in-data-binding.-tf3299311.html#a9177819 Sent from the XFire - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
