<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Web Services Tutorial with Apache CXF</title>
	<atom:link href="http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/</link>
	<description>The software development weblog of Benjamin McCann.</description>
	<lastBuildDate>Mon, 06 Feb 2012 21:26:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ricky</title>
		<link>http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/comment-page-2/#comment-39844</link>
		<dc:creator>Ricky</dc:creator>
		<pubDate>Sat, 12 Feb 2011 12:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/web-services-tutorial-with-apache-cxf/#comment-39844</guid>
		<description>Thanks! This got me started. Perhaps the easiest for a newby like me is to use the Maven jax-ws archetype. It was a snap. Plus your example helped me put it all together.</description>
		<content:encoded><![CDATA[<p>Thanks! This got me started. Perhaps the easiest for a newby like me is to use the Maven jax-ws archetype. It was a snap. Plus your example helped me put it all together.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Praniv</title>
		<link>http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/comment-page-2/#comment-34340</link>
		<dc:creator>Praniv</dc:creator>
		<pubDate>Wed, 15 Dec 2010 20:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/web-services-tutorial-with-apache-cxf/#comment-34340</guid>
		<description>Can u please upload your project. Can&#039;t find the cxf-servlet.xml &amp; cxf-extension-soap.xml.
Its very confusing. I an a newbie

Please help</description>
		<content:encoded><![CDATA[<p>Can u please upload your project. Can&#8217;t find the cxf-servlet.xml &amp; cxf-extension-soap.xml.<br />
Its very confusing. I an a newbie</p>
<p>Please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bosman</title>
		<link>http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/comment-page-2/#comment-31378</link>
		<dc:creator>Bosman</dc:creator>
		<pubDate>Tue, 19 Oct 2010 20:23:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/web-services-tutorial-with-apache-cxf/#comment-31378</guid>
		<description>Question for any one. I have one service running fine using CXF with RAD7. I have a requirement to call another service that&#039;s in a jar file from within my service. I have the wsdl for the other service, and I have generated the artifacts. However, I am not sure how to go about associating my service to this other service so that I can call it. Obviously, my service will act as a client of this new service. Please provide some assistance if anyone can.

Cheers!</description>
		<content:encoded><![CDATA[<p>Question for any one. I have one service running fine using CXF with RAD7. I have a requirement to call another service that&#8217;s in a jar file from within my service. I have the wsdl for the other service, and I have generated the artifacts. However, I am not sure how to go about associating my service to this other service so that I can call it. Obviously, my service will act as a client of this new service. Please provide some assistance if anyone can.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tutorial services</title>
		<link>http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/comment-page-2/#comment-30562</link>
		<dc:creator>tutorial services</dc:creator>
		<pubDate>Thu, 30 Sep 2010 11:10:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/web-services-tutorial-with-apache-cxf/#comment-30562</guid>
		<description>great tutorial!!! Really great tutorial!! amazing .
really thanks for it...</description>
		<content:encoded><![CDATA[<p>great tutorial!!! Really great tutorial!! amazing .<br />
really thanks for it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michele</title>
		<link>http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/comment-page-2/#comment-30468</link>
		<dc:creator>Michele</dc:creator>
		<pubDate>Mon, 27 Sep 2010 14:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/web-services-tutorial-with-apache-cxf/#comment-30468</guid>
		<description>Thanks for the article man, the example worked wonders on my weblogic 10.3 server.</description>
		<content:encoded><![CDATA[<p>Thanks for the article man, the example worked wonders on my weblogic 10.3 server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chandan Agarwal</title>
		<link>http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/comment-page-2/#comment-30223</link>
		<dc:creator>chandan Agarwal</dc:creator>
		<pubDate>Mon, 20 Sep 2010 16:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/web-services-tutorial-with-apache-cxf/#comment-30223</guid>
		<description>Hello i am in an urgent need of help. its been a week but i am not able to figure out the problem;
I have done exactly what you told. I have been able to successfully generate the .jar file with dependencies; I am using jonas server. When i run the client i get the following result

2010-09-20 15:04:37,167 : LoggingOutInterceptor$LoggingCallback.onClose : Outbound Message

---------------------------
Encoding: UTF-8
Headers: {SOAPAction=[&quot;&quot;], Accept=[*]}
Messages:
Payload: 
10072601/10072
60100000001fr_FR1WSS-ATOL2032309
--------------------------------------
2010-09-20 15:04:37,558 : LoggingInInterceptor.logging : Inbound Message
----------------------------
Encoding: UTF-8
Headers: {connection=[close], Date=[Mon, 20 Sep 2010 13:04:30 GMT], transfer-encoding=[chu
nked], Server=[Apache], content-type=[text/xml;charset=utf-8]}
Messages:
Message:

Payload: ns1:ClientNo such operation &#039;getB
illingPeriodRangeRequest&#039;dvedv332


The error is in this line --&gt; No such operation &#039;getBillingPeriodRangeRequest&#039;
Its really strange coz it is looking for an operation which doesnt exist and which it shldnt be looking for this. Is ther anything wrong with my wsdl.

The client code is:

 JaxWsProxyFactoryBean factory = new org.apache.cxf.jaxws.JaxWsProxyFactoryBean();
	           factory.setServiceClass(GetBillingPeriodRange.class);
	           factory.setAddress(attributes.getWsURL().toString());
	         factory.getInInterceptors().add(new org.apache.cxf.interceptor.LoggingInInterceptor());
	          factory.getOutInterceptors().add(new org.apache.cxf.interceptor.LoggingOutInterceptor());
	           GetBillingPeriodRange billingService = (GetBillingPeriodRange) factory.create();
	           
	           result=billingService.manageGetBillingPeriodRange(request);


My wsdl is:



	

		
			

				
				
				
				
				
			

			

				

					

						
							
							
							
							
							
						
					
				
			
			
			
			
				
				
					
					
						
							
							
							
						
					
				
			
			

			
			
				
					
					
					
					
				
			

			
			
				
					
				
			

			
			
				
				
					
						
						
							
						
					
				
			

			
			
				
					
					
					
					
				
			

			
			
				
					
				
			
		
			
			
				
					
					
						
						
							
							
							
							
						
					
				
			
		
		
	

	
		
	

	
		
	

	
			
			
			
		
	

	
		

		
			

			
				
			

			
				
			
		
	

	

		
			
		
	
</description>
		<content:encoded><![CDATA[<p>Hello i am in an urgent need of help. its been a week but i am not able to figure out the problem;<br />
I have done exactly what you told. I have been able to successfully generate the .jar file with dependencies; I am using jonas server. When i run the client i get the following result</p>
<p>2010-09-20 15:04:37,167 : LoggingOutInterceptor$LoggingCallback.onClose : Outbound Message</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Encoding: UTF-8<br />
Headers: {SOAPAction=[""], Accept=[*]}<br />
Messages:<br />
Payload:<br />
10072601/10072<br />
60100000001fr_FR1WSS-ATOL2032309<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
2010-09-20 15:04:37,558 : LoggingInInterceptor.logging : Inbound Message<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Encoding: UTF-8<br />
Headers: {connection=[close], Date=[Mon, 20 Sep 2010 13:04:30 GMT], transfer-encoding=[chu<br />
nked], Server=[Apache], content-type=[text/xml;charset=utf-8]}<br />
Messages:<br />
Message:</p>
<p>Payload: ns1:ClientNo such operation &#8216;getB<br />
illingPeriodRangeRequest&#8217;dvedv332</p>
<p>The error is in this line &#8211;&gt; No such operation &#8216;getBillingPeriodRangeRequest&#8217;<br />
Its really strange coz it is looking for an operation which doesnt exist and which it shldnt be looking for this. Is ther anything wrong with my wsdl.</p>
<p>The client code is:</p>
<p> JaxWsProxyFactoryBean factory = new org.apache.cxf.jaxws.JaxWsProxyFactoryBean();<br />
	           factory.setServiceClass(GetBillingPeriodRange.class);<br />
	           factory.setAddress(attributes.getWsURL().toString());<br />
	         factory.getInInterceptors().add(new org.apache.cxf.interceptor.LoggingInInterceptor());<br />
	          factory.getOutInterceptors().add(new org.apache.cxf.interceptor.LoggingOutInterceptor());<br />
	           GetBillingPeriodRange billingService = (GetBillingPeriodRange) factory.create();</p>
<p>	           result=billingService.manageGetBillingPeriodRange(request);</p>
<p>My wsdl is:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chandan Agarwal</title>
		<link>http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/comment-page-2/#comment-30222</link>
		<dc:creator>chandan Agarwal</dc:creator>
		<pubDate>Mon, 20 Sep 2010 16:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/web-services-tutorial-with-apache-cxf/#comment-30222</guid>
		<description>Hello i am in an urgent need of help. its been a week but i am not able to figure out the problem;
I first converted wsdl to java and then created a jar file in MAVEN using apache cxf.  I am using jonas server. When i run the client i get the following result

2010-09-20 15:04:37,167 : LoggingOutInterceptor$LoggingCallback.onClose : Outbound Message

---------------------------
Encoding: UTF-8
Headers: {SOAPAction=[&quot;&quot;], Accept=[*]}
Messages:
Payload: 
10072601/10072
60100000001fr_FR1WSS-ATOL2032309
--------------------------------------
2010-09-20 15:04:37,558 : LoggingInInterceptor.logging : Inbound Message
----------------------------
Encoding: UTF-8
Headers: {connection=[close], Date=[Mon, 20 Sep 2010 13:04:30 GMT], transfer-encoding=[chu
nked], Server=[Apache], content-type=[text/xml;charset=utf-8]}
Messages:
Message:

Payload: ns1:ClientNo such operation &#039;getB
illingPeriodRangeRequest&#039;dvedv332


The error is in this line --&gt; No such operation &#039;getBillingPeriodRangeRequest&#039;
Its really strange coz it is looking for an operation which doesnt exist and which it shldnt be looking for this. Is ther anything wrong with my wsdl.

The client code is:

 JaxWsProxyFactoryBean factory = new org.apache.cxf.jaxws.JaxWsProxyFactoryBean();
	           factory.setServiceClass(GetBillingPeriodRange.class);
	           factory.setAddress(attributes.getWsURL().toString());
	         factory.getInInterceptors().add(new org.apache.cxf.interceptor.LoggingInInterceptor());
	          factory.getOutInterceptors().add(new org.apache.cxf.interceptor.LoggingOutInterceptor());
	           GetBillingPeriodRange billingService = (GetBillingPeriodRange) factory.create();
	           
	           result=billingService.manageGetBillingPeriodRange(request);


My wsdl is:



	

		
			

				
				
				
				
				
			

			

				

					

						
							
							
							
							
							
						
					
				
			
			
			
			
				
				
					
					
						
							
							
							
						
					
				
			
			

			
			
				
					
					
					
					
				
			

			
			
				
					
				
			

			
			
				
				
					
						
						
							
						
					
				
			

			
			
				
					
					
					
					
				
			

			
			
				
					
				
			
		
			
			
				
					
					
						
						
							
							
							
							
						
					
				
			
		
		
	

	
		
	

	
		
	

	
			
			
			
		
	

	
		

		
			

			
				
			

			
				
			
		
	

	

		
			
		
	
</description>
		<content:encoded><![CDATA[<p>Hello i am in an urgent need of help. its been a week but i am not able to figure out the problem;<br />
I first converted wsdl to java and then created a jar file in MAVEN using apache cxf.  I am using jonas server. When i run the client i get the following result</p>
<p>2010-09-20 15:04:37,167 : LoggingOutInterceptor$LoggingCallback.onClose : Outbound Message</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Encoding: UTF-8<br />
Headers: {SOAPAction=[""], Accept=[*]}<br />
Messages:<br />
Payload:<br />
10072601/10072<br />
60100000001fr_FR1WSS-ATOL2032309<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
2010-09-20 15:04:37,558 : LoggingInInterceptor.logging : Inbound Message<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Encoding: UTF-8<br />
Headers: {connection=[close], Date=[Mon, 20 Sep 2010 13:04:30 GMT], transfer-encoding=[chu<br />
nked], Server=[Apache], content-type=[text/xml;charset=utf-8]}<br />
Messages:<br />
Message:</p>
<p>Payload: ns1:ClientNo such operation &#8216;getB<br />
illingPeriodRangeRequest&#8217;dvedv332</p>
<p>The error is in this line &#8211;&gt; No such operation &#8216;getBillingPeriodRangeRequest&#8217;<br />
Its really strange coz it is looking for an operation which doesnt exist and which it shldnt be looking for this. Is ther anything wrong with my wsdl.</p>
<p>The client code is:</p>
<p> JaxWsProxyFactoryBean factory = new org.apache.cxf.jaxws.JaxWsProxyFactoryBean();<br />
	           factory.setServiceClass(GetBillingPeriodRange.class);<br />
	           factory.setAddress(attributes.getWsURL().toString());<br />
	         factory.getInInterceptors().add(new org.apache.cxf.interceptor.LoggingInInterceptor());<br />
	          factory.getOutInterceptors().add(new org.apache.cxf.interceptor.LoggingOutInterceptor());<br />
	           GetBillingPeriodRange billingService = (GetBillingPeriodRange) factory.create();</p>
<p>	           result=billingService.manageGetBillingPeriodRange(request);</p>
<p>My wsdl is:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/comment-page-2/#comment-27167</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Tue, 06 Jul 2010 21:56:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/web-services-tutorial-with-apache-cxf/#comment-27167</guid>
		<description>Hi Ben,
Your client example contains factory.setServiceClass(AuthService.class);
If I&#039;m not mistaken AuthService class is part of your web service. If so then your client is tightly coupled with the web service implementation which is a &#039;no-no&#039;. Clients shouldn&#039;t care about service implementations. All they need to know is WSDL. Here is an example of what i mean http://www.opendocs.net/apache/cxf/2.0/developing-a-consumer.html.
Thanks Ben!</description>
		<content:encoded><![CDATA[<p>Hi Ben,<br />
Your client example contains factory.setServiceClass(AuthService.class);<br />
If I&#8217;m not mistaken AuthService class is part of your web service. If so then your client is tightly coupled with the web service implementation which is a &#8216;no-no&#8217;. Clients shouldn&#8217;t care about service implementations. All they need to know is WSDL. Here is an example of what i mean <a href="http://www.opendocs.net/apache/cxf/2.0/developing-a-consumer.html" rel="nofollow">http://www.opendocs.net/apache/cxf/2.0/developing-a-consumer.html</a>.<br />
Thanks Ben!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/comment-page-2/#comment-26535</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Tue, 22 Jun 2010 17:03:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/web-services-tutorial-with-apache-cxf/#comment-26535</guid>
		<description>thanks for the great article!

i have one question. in the client side we should enter this code:
factory.setAddress(&quot;http://IPAddressOfTheServer:PortNember/serviceName&quot;);  
to invoke the web service

but in my case, to access to the web from the client Machine we should pass by a web proxy. how can I enter the ip adress of the web proxy using in the class Client</description>
		<content:encoded><![CDATA[<p>thanks for the great article!</p>
<p>i have one question. in the client side we should enter this code:<br />
factory.setAddress(&#8220;http://IPAddressOfTheServer:PortNember/serviceName&#8221;);<br />
to invoke the web service</p>
<p>but in my case, to access to the web from the client Machine we should pass by a web proxy. how can I enter the ip adress of the web proxy using in the class Client</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexas</title>
		<link>http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/comment-page-2/#comment-26134</link>
		<dc:creator>alexas</dc:creator>
		<pubDate>Mon, 14 Jun 2010 00:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.lumidant.com/blog/web-services-tutorial-with-apache-cxf/#comment-26134</guid>
		<description>great first steps tutorial abt cxf and web srvces. thank you!</description>
		<content:encoded><![CDATA[<p>great first steps tutorial abt cxf and web srvces. thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

