Hi

I have pasted below my java class




public class CamelCfxTest extends RouteBuilder {

    String endPoint = "cxf:
http://123.231.66.11/gslwsairavailabilitydisplay/Service1.asmx?wsdlURL=galieo.wsdl";
//
            + "&dataFormat=PAYLOAD" //
            + "&serviceName={http://tempuri.org/}Service1"; //
            + "&synchronous=true" //
            + "&loggingFeatureEnabled=true" //
            + "&portName={http://tempuri.org/}Service1Soap";;

    public static void main(String[] args) throws Exception {
        CamelContext camelContext = new DefaultCamelContext();
        camelContext.addRoutes(new CamelCfxTest());
        camelContext.start();
        Thread.sleep(1000);
    }

    @Override
    public void configure() throws Exception {

        from("file://Input").to(endPoint).process(new Processor() {

            public void process(Exchange exchng) throws Exception {
                System.out.println("exchng " + exchng.getIn(String.class));
            }
        });
    }

}






On Mon, Dec 15, 2014 at 8:19 PM, Willem.Jiang [via Camel] <
ml-node+s465427n5760706...@n5.nabble.com> wrote:
>
> It looks like you didn’t setup your camel route rightly?
> Can you show me your camel route?
>
> --
> Willem Jiang
>
> Red Hat, Inc.
> Web: http://www.redhat.com
> Blog: http://willemjiang.blogspot.com (English)
> http://jnn.iteye.com (Chinese)
> Twitter: willemjiang
> Weibo: 姜宁willem
>
>
>
> On December 15, 2014 at 10:31:09 PM, dharshan ([hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5760706&i=0>) wrote:
>
> > Hi Willem
> >
> >
> > now am getting below error
> >
> > Response-Code: 500
> > Encoding: UTF-8
> > Content-Type: application/soap+xml; charset=utf-8
> > Headers: {Cache-Control=[private], connection=[keep-alive],
> > Content-Length=[508], content-type=[application/soap+xml;
> charset=utf-8],
> > Date=[Mon, 15 Dec 2014 12:14:53 GMT], Server=[Microsoft-IIS/7.5],
> Via=[1.0
> > proxy (squid/3.1.8)], X-AspNet-Version=[4.0.30319], X-Cache=[MISS from
> > proxy], X-Cache-Lookup=[MISS from proxy:3128], X-Powered-By=[ASP.NET]}
> > Payload: soap:Receiver> xml:lang="en">Server was unable to process
> request. ---> Object
> > reference not set to an instance of an
> > object.> />
> > --------------------------------------
> >
> >
> > Please advise me to over come this issue
> >
> > This is my enpoint configuration
> >
> > String cxfAddressLine = "cxf:
> >
> http://123.231.66.11/gslwsairavailabilitydisplay/Service1.asmx?wsdlURL=galieo.wsdl";
>
> > //
> > + "&dataFormat=PAYLOAD" //
> > + "&serviceName={http://tempuri.org/}Service1"; //
> > + "&synchronous=true" //
> > + "&loggingFeatureEnabled=true" //
> > + "&portName={http://tempuri.org/}Service1Soap12";
> >
> >
> >
> > Request file:
> >
> >
> > T6C
> >
> > G1038416
> >
> > ZT6C/MWS
> >
> > 20141005
> >
> > CMB
> >
> > LON
> >
> > A
> >
> > Y
> >
> > I
> >
> > UL
> >
> > A
> >
> >
> >
> >
> > On Thu, Dec 11, 2014 at 3:36 PM, Dharashan Sithamparam > > wrote:
> > >
> > > thanks lot i will check and let you know
> > >
> > >
> > > On Wed, Dec 10, 2014 at 8:42 AM, Willem.Jiang [via Camel] <
> > > [hidden email] <http:///user/SendEmail.jtp?type=node&node=5760706&i=1>>
> wrote:
> > >
> > >> You just defined a wrong service name, it could be “s:Service1Soap”,
> or
> > >> “s:Service1Soap12”.
> > >>
> > >> --
> > >> Willem Jiang
> > >>
> > >> Red Hat, Inc.
> > >> Web: http://www.redhat.com
> > >> Blog: http://willemjiang.blogspot.com (English)
> > >> http://jnn.iteye.com (Chinese)
> > >> Twitter: willemjiang
> > >> Weibo: 姜宁willem
> > >>
> > >>
> > >>
> > >> On December 9, 2014 at 11:15:28 PM, dharshan ([hidden email]
> > >> ) wrote:
> > >>
> > >> > Hi
> > >> >
> > >> > When i sent the request i have getting below error .
> > >> > Caused by: org.apache.camel.FailedToCreateProducerException: Failed
> to
> > >> > create Producer for endpoint: Endpoint[cxf://bean:galileo]. Reason:
> > >> > org.apache.cxf.service.factory.ServiceConstructionException: Could
> not
> > >> find
> > >> > definition for service {http://tempuri.org/}AirAvailabilityDisplay.
>
> > >> >
> > >> > Please advis me on this
> > >> > I have attached my config file ,wsdl file and request file with
> this
> > >> thread
> > >> > .
> > >> >
> > >> > config file : camel-context.xml
> > >> >
> > >> > wsdl: galieo.wsdl
> > >> >
> > >> > Request: request.xml
> > >> >
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > View this message in context:
> > >>
> http://camel.465427.n5.nabble.com/cfx-web-service-client-error-tp5760403.html
>
> > >>
> > >> > Sent from the Camel - Users mailing list archive at Nabble.com.
> > >> >
> > >>
> > >>
> > >>
> > >> ------------------------------
> > >> If you reply to this email, your message will be added to the
> > >> discussion below:
> > >>
> > >>
> http://camel.465427.n5.nabble.com/cfx-web-service-client-error-tp5760403p5760433.html
>
> > >> To unsubscribe from cfx web service client error, click here
> > >>
> > >> .
> > >> NAML
> > >>
> > >>
> > >
> > >
> > >
> > > --
> > > Regards
> > >
> > > S.Dharshan
> > >
> >
> >
> > --
> > Regards
> >
> > S.Dharshan
> >
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/cfx-web-service-client-error-tp5760403p5760702.html
>
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/cfx-web-service-client-error-tp5760403p5760706.html
>  To unsubscribe from cfx web service client error, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5760403&code=Y2RoYXJzaGFuc0BnbWFpbC5jb218NTc2MDQwM3wtODU2NDQ3NTAy>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


-- 
Regards

S.Dharshan




--
View this message in context: 
http://camel.465427.n5.nabble.com/cfx-web-service-client-error-tp5760403p5760719.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to