Hi all,
I have tried geo-ip client example with xmlbeans. It works fine with jaxb.
I created jar file with xmlbind 2.2.0, than I added this jar file into
classpath.
pom.xml changes:
<wsgen outputDirectory="${basedir}/target/generated-source"
wsdl="${basedir}/src/wsdl/geoip.wsdl"
package="net.webservicex.geoip.xmlbinding"
overwrite="true"
binding="xmlbeans"
/>
When is code generated with XMLBeans GeoIPServiceSoap methods have
return type XmlObject, but when is code generated with JAXB methods
have return type along schema.
I am using XFire 1.2.5 and XMLBeans 2.2.0.
I exmpected same output for both jaxb and xmlbeans?
Is it right?
Thanks.
Regards,
Zdenek
generated code:
xmlbeans:
package net.webservicex.geoip.xmlbinding;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import org.apache.xmlbeans.XmlObject;
@WebService(name = "GeoIPServiceSoap", targetNamespace =
"http://www.webservicex.net")
@SOAPBinding(use = SOAPBinding.Use.LITERAL, parameterStyle =
SOAPBinding.ParameterStyle.WRAPPED)
public interface GeoIPServiceSoap {
@WebMethod(operationName = "GetGeoIP", action =
"http://www.webservicex.net/GetGeoIP")
@WebResult(name = "GetGeoIPResult", targetNamespace =
"http://www.webservicex.net")
public XmlObject getGeoIP(
@WebParam(name = "IPAddress", targetNamespace =
"http://www.webservicex.net")
String IPAddress);
@WebMethod(operationName = "GetGeoIPContext", action =
"http://www.webservicex.net/GetGeoIPContext")
@WebResult(name = "GetGeoIPContextResult", targetNamespace =
"http://www.webservicex.net")
public XmlObject getGeoIPContext();
}
JAXB:
package net.webservicex.geoip.xmlbinding;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import net.webservicex.GeoIP;
@WebService(name = "GeoIPServiceSoap", targetNamespace =
"http://www.webservicex.net")
@SOAPBinding(use = SOAPBinding.Use.LITERAL, parameterStyle =
SOAPBinding.ParameterStyle.WRAPPED)
public interface GeoIPServiceSoap {
@WebMethod(operationName = "GetGeoIP", action =
"http://www.webservicex.net/GetGeoIP")
@WebResult(name = "GetGeoIPResult", targetNamespace =
"http://www.webservicex.net")
public GeoIP getGeoIP(
@WebParam(name = "IPAddress", targetNamespace =
"http://www.webservicex.net")
String IPAddress);
@WebMethod(operationName = "GetGeoIPContext", action =
"http://www.webservicex.net/GetGeoIPContext")
@WebResult(name = "GetGeoIPContextResult", targetNamespace =
"http://www.webservicex.net")
public GeoIP getGeoIPContext();
}
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email