I am using Xfire 1.2.2. I generated the source code (server + client) for
GeoIp example that comes with the Xfire distribution and exposed that as a
POJO using the service mix http-end point and jsr181 end point using the
configuration below:

        <jsr181:endpoint
                               
pojoClass="net.webservicex.geoip.jaxb.GeoIPServiceImpl"
                               
serviceInterface="net.webservicex.geoip.jaxb.GeoIPServiceSoap"
                                annotations="none"
                                service="tns:GeoIPService"
                                endpoint="soap"
                                style="document"/>
                                </jsr181:endpoints>
        </jsr181:component>

        <http:component>
        <http:endpoints>
        <http:endpoint
                  service="tns:GeoIPService"
                  endpoint="soap"
                  soap="true"
                  role="consumer"
                  targetService="tns:GeoIPService"
                  locationURI="http://0.0.0.0:9600/GeoIPService";
                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                  defaultOperation="getGeoIP"/>
                 </http:endpoints>
                                </http:component>
                            </sm:component>
            </sm:activationSpec>

The component is deployed fine. But when I try to access the web service
using the generated client code or the XFireProxyFactory, it throws the
following error and the web service is not invoked at all.
org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
INFO: Redirect requested but followRedirects is disabled

Here is the XFireProxyFactory code:
        Service serviceModel = new
AnnotationServiceFactory().create(GeoIPServiceImpl.classl);
        XFire xfire = XFireFactory.newInstance().getXFire();
        XFireProxyFactory factory = new XFireProxyFactory(xfire);      
        String serviceUrl = "http://localhost:9600/GeoIPService";;
        GeoIPServiceSoap service = null;
        GeoIP geoip = null;
     
        service = (GeoIPServiceSoap) factory.create(serviceModel,
serviceUrl);
        Client client = Client.getInstance(service);
        geoip = service.getGeoIP("1.1.1.1");

Please let me know as to what needs to be done to resolve this issue.
Thanks in advance.

-- 
View this message in context: 
http://www.nabble.com/Invoking-service-mix-jsr181-POJO-using-Xfire-tf2703846.html#a7539316
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to