Hi,

Do you try to access the MS Exchanger WebService in the MyWSProcessor?
How did you create the web service client proxy?
CXF Client support to set the username and password by setting the 
AuthorizationPolicy on the ClientFactoryBean.

--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Thursday, December 6, 2012 at 7:52 PM, Philroc wrote:

> Hello,
> I am trying to connect to an Exchange Web Service to retrieve e-mails and
> process them, using Apache Camel CXF.
>  
> Here's my (very coarse) code so far:
>  
> from(
> "cxf://https://mymailserver.com/ews?";
> + "wsdlURL=https://mymailsever.com/ews/Services.wsdl&";
> + "serviceClass=com.mycompany.MyEndPoint&"
> + "serviceName=GetInboxRules").process(new MyWSProcessor()).to("log:foo");
>  
> When I run it, I get an "401" error from the server, which means that I need
> to authenticate. How do I do that? Should I pass "loginname" and "password"
> parameters in the cxf string?
> Furthermore, do I need a serviceClass? If so, can anyone provide a simple
> example of a service class?
> Last but not least, does anyone have sample code which shows how to process
> the data returned by any method (eg, GetInboxRules here) in MS Exchange's
> WSDL?
> Many thanks.
> Philroc
>  
>  
>  
>  
>  
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Connecting-to-MS-Exchanger-Service-using-CXF-tp5723701.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to