Hi, I am facing the same problem. Can someone help. --Irshad.
Daniel Loebbe wrote: > > Hi all, > I am testing xfire for a few days now, but I can't solve this issue for > me: > > When creating the client side stuff (using the wsgen ant task) for the > GeoIP > service example, everything is fine concerning the created dataobjects ( > GeoIP.java). There exist proper typed (String) getter and setter methods > for > the attributes. > > When deploying a own service with a simple pojo or deploying the > jsr181-example CustomerService, the client side dataobjects do not have > proper types getters and setters. The simple String attributes from the > server side objects are type on client side with JAXBElement<String>. > > What is wrong with my deployed services respectively their automatically > generated wsdl-files? I attached both, the origin geoservice swdl and the > automatically created one of the CustomerService. > > Please help! > > Bye, Daniel > > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions targetNamespace="http://demo.xfire.codehaus.org" > xmlns:tns="http://demo.xfire.codehaus.org" > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" > 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://demo.xfire.codehaus.org"> > <xsd:element name="getCustomers"> > <xsd:complexType/> > </xsd:element> > <xsd:element name="getCustomersResponse"> > <xsd:complexType> > <xsd:sequence> > <xsd:element maxOccurs="1" > minOccurs="1" name="Customers" > nillable="true" type="xsd:ArrayOfAnyType"/> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > <xsd:complexType name="Customer"> > <xsd:sequence> > <xsd:element minOccurs="0" name="email" > nillable="true" > type="xsd:string"/> > <xsd:element minOccurs="0" name="name" > nillable="true" > type="xsd:string"/> > <xsd:element minOccurs="0" name="phone" > nillable="true" > type="xsd:string"/> > </xsd:sequence> > </xsd:complexType> > <xsd:element name="addCustomer"> > <xsd:complexType> > <xsd:sequence> > <xsd:element maxOccurs="1" > minOccurs="1" name="customer" > nillable="true" type="tns:Customer"/> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > <xsd:element name="addCustomerResponse"> > <xsd:complexType> > <xsd:sequence> > <xsd:element maxOccurs="1" > minOccurs="1" name="out" nillable="true" > type="xsd:string"/> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > <xsd:complexType name="UserToken"> > <xsd:sequence> > <xsd:element minOccurs="0" > name="password" nillable="true" > type="xsd:string"/> > <xsd:element minOccurs="0" > name="username" nillable="true" > type="xsd:string"/> > </xsd:sequence> > </xsd:complexType> > <xsd:element name="UserToken" type="tns:UserToken"/> > </xsd:schema> > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" > attributeFormDefault="qualified" elementFormDefault="qualified" > targetNamespace="http://www.w3.org/2001/XMLSchema"> > <xsd:complexType name="ArrayOfAnyType"> > <xsd:sequence> > <xsd:element maxOccurs="unbounded" > minOccurs="0" name="anyType" > nillable="true" type="xsd:anyType"/> > </xsd:sequence> > </xsd:complexType> > </xsd:schema> > </wsdl:types> > <wsdl:message name="getCustomersRequest"> > <wsdl:part name="parameters" element="tns:getCustomers"/> > </wsdl:message> > <wsdl:message name="getCustomersRequestHeaders"> > <wsdl:part name="UserToken" element="tns:UserToken"/> > </wsdl:message> > <wsdl:message name="getCustomersResponse"> > <wsdl:part name="parameters" > element="tns:getCustomersResponse"/> > </wsdl:message> > <wsdl:message name="addCustomerRequestHeaders"> > <wsdl:part name="UserToken" element="tns:UserToken"/> > </wsdl:message> > <wsdl:message name="addCustomerResponse"> > <wsdl:part name="parameters" element="tns:addCustomerResponse"/> > </wsdl:message> > <wsdl:message name="addCustomerRequest"> > <wsdl:part name="parameters" element="tns:addCustomer"/> > </wsdl:message> > <wsdl:portType name="CustomerServicePortType"> > <wsdl:operation name="getCustomers"> > <wsdl:input name="getCustomersRequest" > message="tns:getCustomersRequest"/> > <wsdl:output name="getCustomersResponse" > message="tns:getCustomersResponse"/> > </wsdl:operation> > <wsdl:operation name="addCustomer"> > <wsdl:input name="addCustomerRequest" > message="tns:addCustomerRequest"/> > <wsdl:output name="addCustomerResponse" > message="tns:addCustomerResponse"/> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding name="CustomerServiceHttpBinding" > type="tns:CustomerServicePortType"> > <wsdlsoap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="getCustomers"> > <wsdlsoap:operation soapAction=""/> > <wsdl:input name="getCustomersRequest"> > <wsdlsoap:body use="literal"/> > <wsdlsoap:header > message="tns:getCustomersRequestHeaders" > part="UserToken" use="literal"></wsdlsoap:header> > </wsdl:input> > <wsdl:output name="getCustomersResponse"> > <wsdlsoap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > <wsdl:operation name="addCustomer"> > <wsdlsoap:operation soapAction=""/> > <wsdl:input name="addCustomerRequest"> > <wsdlsoap:body use="literal"/> > <wsdlsoap:header > message="tns:addCustomerRequestHeaders" > part="UserToken" use="literal"></wsdlsoap:header> > </wsdl:input> > <wsdl:output name="addCustomerResponse"> > <wsdlsoap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="CustomerService"> > <wsdl:port name="CustomerServiceHttpPort" > binding="tns:CustomerServiceHttpBinding"> > <wsdlsoap:address > location="http://localhost:9001/Services/services/CustomerService"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > > <?xml version="1.0" encoding="utf-8"?> > <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:s="http://www.w3.org/2001/XMLSchema" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:tns="http://www.webservicex.net" > xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" > targetNamespace="http://www.webservicex.net" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> > <wsdl:types> > <s:schema elementFormDefault="qualified" > targetNamespace="http://www.webservicex.net"> > <s:element name="GetGeoIPContext"> > <s:complexType /> > </s:element> > <s:element name="GetGeoIPContextResponse"> > <s:complexType> > <s:sequence> > <s:element minOccurs="0" > maxOccurs="1" name="GetGeoIPContextResult" > type="tns:GeoIP" /> > </s:sequence> > </s:complexType> > </s:element> > <s:complexType name="GeoIP"> > <s:sequence> > <s:element minOccurs="1" maxOccurs="1" > name="ReturnCode" type="s:int" > /> > <s:element minOccurs="0" maxOccurs="1" > name="IP" type="s:string" /> > <s:element minOccurs="0" maxOccurs="1" > name="ReturnCodeDetails" > type="s:string" /> > <s:element minOccurs="0" maxOccurs="1" > name="CountryName" > type="s:string" /> > <s:element minOccurs="0" maxOccurs="1" > name="CountryCode" > type="s:string" /> > </s:sequence> > </s:complexType> > <s:element name="GetGeoIP"> > <s:complexType> > <s:sequence> > <s:element minOccurs="0" > maxOccurs="1" name="IPAddress" > type="s:string" /> > </s:sequence> > </s:complexType> > </s:element> > <s:element name="GetGeoIPResponse"> > <s:complexType> > <s:sequence> > <s:element minOccurs="0" > maxOccurs="1" name="GetGeoIPResult" > type="tns:GeoIP" /> > </s:sequence> > </s:complexType> > </s:element> > <s:element name="GeoIP" nillable="true" > type="tns:GeoIP" /> > </s:schema> > </wsdl:types> > <wsdl:message name="GetGeoIPContextSoapIn"> > <wsdl:part name="parameters" element="tns:GetGeoIPContext" /> > </wsdl:message> > <wsdl:message name="GetGeoIPContextSoapOut"> > <wsdl:part name="parameters" > element="tns:GetGeoIPContextResponse" /> > </wsdl:message> > <wsdl:message name="GetGeoIPSoapIn"> > <wsdl:part name="parameters" element="tns:GetGeoIP" /> > </wsdl:message> > <wsdl:message name="GetGeoIPSoapOut"> > <wsdl:part name="parameters" element="tns:GetGeoIPResponse" /> > </wsdl:message> > <wsdl:message name="GetGeoIPContextHttpGetIn" /> > <wsdl:message name="GetGeoIPContextHttpGetOut"> > <wsdl:part name="Body" element="tns:GeoIP" /> > </wsdl:message> > <wsdl:message name="GetGeoIPHttpGetIn"> > <wsdl:part name="IPAddress" type="s:string" /> > </wsdl:message> > <wsdl:message name="GetGeoIPHttpGetOut"> > <wsdl:part name="Body" element="tns:GeoIP" /> > </wsdl:message> > <wsdl:message name="GetGeoIPContextHttpPostIn" /> > <wsdl:message name="GetGeoIPContextHttpPostOut"> > <wsdl:part name="Body" element="tns:GeoIP" /> > </wsdl:message> > <wsdl:message name="GetGeoIPHttpPostIn"> > <wsdl:part name="IPAddress" type="s:string" /> > </wsdl:message> > <wsdl:message name="GetGeoIPHttpPostOut"> > <wsdl:part name="Body" element="tns:GeoIP" /> > </wsdl:message> > <wsdl:portType name="GeoIPServiceSoap"> > <wsdl:operation name="GetGeoIPContext"> > <documentation > xmlns="http://schemas.xmlsoap.org/wsdl/">GeoIPService - > GetGeoIPContext enables you to easily look up countries by Context > </documentation> > <wsdl:input message="tns:GetGeoIPContextSoapIn" /> > <wsdl:output message="tns:GetGeoIPContextSoapOut" /> > </wsdl:operation> > <wsdl:operation name="GetGeoIP"> > <documentation > xmlns="http://schemas.xmlsoap.org/wsdl/">GeoIPService - > GetGeoIP enables you to easily look up countries by IP addresses > </documentation> > <wsdl:input message="tns:GetGeoIPSoapIn" /> > <wsdl:output message="tns:GetGeoIPSoapOut" /> > </wsdl:operation> > </wsdl:portType> > <wsdl:portType name="GeoIPServiceHttpGet"> > <wsdl:operation name="GetGeoIPContext"> > <documentation > xmlns="http://schemas.xmlsoap.org/wsdl/">GeoIPService - > GetGeoIPContext enables you to easily look up countries by Context > </documentation> > <wsdl:input message="tns:GetGeoIPContextHttpGetIn" /> > <wsdl:output message="tns:GetGeoIPContextHttpGetOut" /> > </wsdl:operation> > <wsdl:operation name="GetGeoIP"> > <documentation > xmlns="http://schemas.xmlsoap.org/wsdl/">GeoIPService - > GetGeoIP enables you to easily look up countries by IP addresses > </documentation> > <wsdl:input message="tns:GetGeoIPHttpGetIn" /> > <wsdl:output message="tns:GetGeoIPHttpGetOut" /> > </wsdl:operation> > </wsdl:portType> > <wsdl:portType name="GeoIPServiceHttpPost"> > <wsdl:operation name="GetGeoIPContext"> > <documentation > xmlns="http://schemas.xmlsoap.org/wsdl/">GeoIPService - > GetGeoIPContext enables you to easily look up countries by Context > </documentation> > <wsdl:input message="tns:GetGeoIPContextHttpPostIn" /> > <wsdl:output message="tns:GetGeoIPContextHttpPostOut" /> > </wsdl:operation> > <wsdl:operation name="GetGeoIP"> > <documentation > xmlns="http://schemas.xmlsoap.org/wsdl/">GeoIPService - > GetGeoIP enables you to easily look up countries by IP addresses > </documentation> > <wsdl:input message="tns:GetGeoIPHttpPostIn" /> > <wsdl:output message="tns:GetGeoIPHttpPostOut" /> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding name="GeoIPServiceSoap" type="tns:GeoIPServiceSoap"> > <soap:binding transport="http://schemas.xmlsoap.org/soap/http" > style="document" /> > <wsdl:operation name="GetGeoIPContext"> > <soap:operation > soapAction="http://www.webservicex.net/GetGeoIPContext" > style="document" /> > <wsdl:input> > <soap:body use="literal" /> > </wsdl:input> > <wsdl:output> > <soap:body use="literal" /> > </wsdl:output> > </wsdl:operation> > <wsdl:operation name="GetGeoIP"> > <soap:operation > soapAction="http://www.webservicex.net/GetGeoIP" > style="document" /> > <wsdl:input> > <soap:body use="literal" /> > </wsdl:input> > <wsdl:output> > <soap:body use="literal" /> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:binding name="GeoIPServiceHttpGet" type="tns:GeoIPServiceHttpGet"> > <http:binding verb="GET" /> > <wsdl:operation name="GetGeoIPContext"> > <http:operation location="/GetGeoIPContext" /> > <wsdl:input> > <http:urlEncoded /> > </wsdl:input> > <wsdl:output> > <mime:mimeXml part="Body" /> > </wsdl:output> > </wsdl:operation> > <wsdl:operation name="GetGeoIP"> > <http:operation location="/GetGeoIP" /> > <wsdl:input> > <http:urlEncoded /> > </wsdl:input> > <wsdl:output> > <mime:mimeXml part="Body" /> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:binding name="GeoIPServiceHttpPost" > type="tns:GeoIPServiceHttpPost"> > <http:binding verb="POST" /> > <wsdl:operation name="GetGeoIPContext"> > <http:operation location="/GetGeoIPContext" /> > <wsdl:input> > <mime:content > type="application/x-www-form-urlencoded" /> > </wsdl:input> > <wsdl:output> > <mime:mimeXml part="Body" /> > </wsdl:output> > </wsdl:operation> > <wsdl:operation name="GetGeoIP"> > <http:operation location="/GetGeoIP" /> > <wsdl:input> > <mime:content > type="application/x-www-form-urlencoded" /> > </wsdl:input> > <wsdl:output> > <mime:mimeXml part="Body" /> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="GeoIPService"> > <wsdl:port name="GeoIPServiceSoap" > binding="tns:GeoIPServiceSoap"> > <soap:address > location="http://www.webservicex.net/geoipservice.asmx" > /> > </wsdl:port> > <wsdl:port name="GeoIPServiceHttpGet" > binding="tns:GeoIPServiceHttpGet"> > <http:address > location="http://www.webservicex.net/geoipservice.asmx" > /> > </wsdl:port> > <wsdl:port name="GeoIPServiceHttpPost" > binding="tns:GeoIPServiceHttpPost"> > <http:address > location="http://www.webservicex.net/geoipservice.asmx" > /> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > -- View this message in context: http://www.nabble.com/wsdl-generation----client-side-class-creation-question-tf2357634.html#a8673961 Sent from the XFire - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
