You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Barry Alexander <ba...@gmail.com> on 2008/10/15 19:02:04 UTC

Out Only MEP and Rest support

Hi Axis2 users,



I am trying the sample application at http://wso2.org/library/406 and have a
few questions:



1)      I have built and successfully deployed the two mentioned services in
the sample referenced above (ActiveService and ClientService), when
attempting to register with
http://localhost:8080/axis2/rest/ActiveService?register?notifyEpr=http://localhost:8080/axis2/services/ClientServiceI
get "Requested resource not found!"

2)      I modified the axis2.xml as follows:

    <!--Our HTTP endpoints can handle both REST and SOAP. Following
parameters can be used to distinguiush those endpoints-->

    <!--In case of a servlet, if you change this you have to manually change
the settings of your servlet container to map this -->

    <!--context path to proper Axis2 servlets-->

    <!--<parameter name="servicePath">services</parameter>-->

    <parameter name="restPath">rest</parameter>



           <!-- Following parameter will completely disable REST handling in
Axis2-->

   <parameter name="disableREST" locked="false">false</parameter>

This seemed to have no effect.



How do I enable the 'rest' url to register my client service?

Environment details:


Axis2 Happiness Page
Examining webapp configuration
Essential Components
Found Apache-Axis (org.apache.axis2.transport.http.AxisServlet)
  at C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\axis2\WEB-INF\lib\axis2-kernel-1.4.1.jar
Found Jakarta-Commons Logging (org.apache.commons.logging.Log)
  at C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\axis2\WEB-INF\lib\commons-logging-1.1.1.jar
Found Streaming API for XML (javax.xml.stream.XMLStreamReader)
  at an unknown location
Found Streaming API for XML implementation
(org.codehaus.stax2.XMLStreamWriter2)
  at C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\axis2\WEB-INF\lib\wstx-asl-3.2.4.jar
The core axis2 libraries are present.
Note: Even if everything this page probes for is present, there is no
guarantee your Axis Service will work, because there are many configuration
options that we do not check for. These tests are necessary but not
sufficient
Examining Version Service
Found Axis2 default Version service and Axis2 is working properly.
Now you can drop a service archive in axis2/WEB-INF/services. Following
output was produced while invoking Axis2 version service
Hello I am Axis2 version service , My version is 1.4.1
Examining Application Server
Servlet version 2.5
Platform Apache Tomcat/6.0.16

Examining System Properties
java.runtime.name Java(TM) SE Runtime Environment

sun.boot.library.path C: \Program Files\Java\jre1.6.0_05\bin

java.vm.version 10.0-b19

shared.loader

java.vm.vendor Sun Microsystems Inc.

java.vendor.url http: //java.sun.com/

path.separator ;

java.vm.name Java HotSpot(TM) Client VM

tomcat.util.buf.StringCache.byte.enabled true

file.encoding.pkg sun.io

java.util.logging.config.file C: \Program Files\Apache Software
Foundation\Tomcat 6.0\conf\logging.properties

user.country US

sun.os.patch.level Service Pack 2

java.vm.specification.name Java Virtual Machine Specification

user.dir C: \Program Files\Apache Software Foundation\Tomcat 6.0

java.runtime.version 1.6.0_05-b13

java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment

java.endorsed.dirs C: \Program Files\Apache Software Foundation\Tomcat
6.0\common\endorsed

os.arch x86

java.io.tmpdir C: \Program Files\Apache Software Foundation\Tomcat 6.0\temp


line.separator

java.vm.specification.vendor Sun Microsystems Inc.

user.variant

java.util.logging.manager org.apache.juli.ClassLoaderLogManager

java.naming.factory.url.pkgs org.apache.naming

os.name Windows XP

sun.jnu.encoding Cp1252

java.library.path C: \Program Files\Apache Software Foundation\Tomcat
6.0\bin;.;C: \WINDOWS1\Sun\Java\bin;C: \WINDOWS1\system32;C: \WINDOWS1;D:
\Program Files\Java\jdk1.5.0_15\bin;D: \axis\axis2-1.4.1\bin;c: \ruby\bin;C:
\Program Files\IBM\WebSphere MQ\Java\lib;C:
\OraHome_2\jre\1.4.2\bin\client;C: \OraHome_2\jre\1.4.2\bin;C:
\oracle\ora92\bin;C: \WINDOWS1\system32;C: \WINDOWS1;C:
\WINDOWS1\System32\Wbem;C: \Program Files\UltraEdit;C: \Program
Files\IBM\WebSphere MQ\bin;C: \Program Files\IBM\WebSphere
MQ\tools\c\samples\bin;"C: \Program
Files\Hummingbird\Connectivity\7.00\Accessories\";C: \Program
Files\Subversion\bin;C: \Program Files\Support Tools\;c: \Program
Files\Microsoft SQL Server\90\Tools\binn\;C: \Program Files\svnmerge;D:
\apache-ant-1.7.0\bin;D: \Sun\SDK\bin;C: \Program
Files\QuickTime\QTSystem\;D: \groovy\groovy-1.5.6\bin

java.specification.name Java Platform API Specification

java.class.version 50.0

sun.management.compiler HotSpot Client Compiler

os.version 5.1

user.home C: \

user.timezone America/Los_Angeles

catalina.useNaming true

java.awt.printerjob sun.awt.windows.WPrinterJob

java.specification.version 1.6

file.encoding Cp1252

catalina.home C: \Program Files\Apache Software Foundation\Tomcat 6.0

user.name SYSTEM

java.class.path C: \Program Files\Apache Software Foundation\Tomcat
6.0\bin\bootstrap.jar

java.naming.factory.initial org.apache.naming.java.javaURLContextFactory

package.definition
sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.


java.vm.specification.version 1.0

sun.arch.data.model 32

java.home C: \Program Files\Java\jre1.6.0_05

java.specification.vendor Sun Microsystems Inc.

user.language en

awt.toolkit sun.awt.windows.WToolkit

java.vm.info mixed mode, sharing

java.version 1.6.0_05

java.ext.dirs C: \Program Files\Java\jre1.6.0_05\lib\ext;C:
\WINDOWS1\Sun\Java\lib\ext

sun.boot.class.path C: \Program Files\Java\jre1.6.0_05\lib\resources.jar;C:
\Program Files\Java\jre1.6.0_05\lib\rt.jar;C: \Program
Files\Java\jre1.6.0_05\lib\sunrsasign.jar;C: \Program
Files\Java\jre1.6.0_05\lib\jsse.jar;C: \Program
Files\Java\jre1.6.0_05\lib\jce.jar;C: \Program
Files\Java\jre1.6.0_05\lib\charsets.jar;C: \Program
Files\Java\jre1.6.0_05\classes

java.vendor Sun Microsystems Inc.

server.loader

catalina.base C: \Program Files\Apache Software Foundation\Tomcat 6.0

file.separator \

java.vendor.url.bug http: //java.sun.com/cgi-bin/bugreport.cgi

common.loader ${catalina.home}/lib,${catalina.home}/lib/*.jar

sun.cpu.endian little

sun.io.unicode.encoding UnicodeLittle

package.access
sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.


sun.desktop windows

sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386
i86




Available services
Version
Service EPR : http://localhost:8080/axis2/services/Version

Service Description : Version
Service Status : Active
Available Operations
getVersion
GetOrderService
Service EPR : http://localhost:8080/axis2/services/GetOrderService

Service Description : GetOrderService
Service Status : Active
Available Operations
GetOrder
ActiveService
Service EPR : http://localhost:8080/axis2/services/ActiveService

Service Description : ActiveService
Service Status : Active
Available Operations
register
ClientService
Service EPR : http://localhost:8080/axis2/services/ClientService

Service Description : ClientService
Service Status : Active
Available Operations
notify

RE: Out Only MEP and Rest support

Posted by "Meeusen, Christopher W." <Me...@mayo.edu>.
should be the same url
http://localhost:8080/axis2/services/StudentService/getStudents
<http://localhost:8080/axis2/services/StudentService/getStudents> 
the url is typically the same for all the methods in a given service.
 
Chris

________________________________

From: axis-user-return-75776-Meeusen.Christopher=mayo.edu@ws.apache.org
[mailto:axis-user-return-75776-Meeusen.Christopher=mayo.edu@ws.apache.or
g] On Behalf Of Barry Alexander
Sent: Thursday, October 16, 2008 2:27 PM
To: axis-user@ws.apache.org
Subject: Re: Out Only MEP and Rest support


Sorry to be so dense...I have taken advice and implemented the
StudentService example

I get a good response from
http://localhost:8080/axis2/services/StudentService/getStudents

But when I try to add a student, I am not sure that the url should look
like?  This is what I tried:

http://localhost:8080/axis2/services/studentService/addStudent/student/b
arry

that bombs:

[ERROR] The service cannot be found for the endpoint reference (EPR)
/axis2/services/studentService/addStudent/student/barry
org.apache.axis2.AxisFault: The service cannot be found for the endpoint
reference (EPR) /axis2/services/studentService/addStudent/student/barry



On Wed, Oct 15, 2008 at 5:26 PM, Martin Gainty <mg...@hotmail.com>
wrote:


	the action you're specifying is null 
	

	Service Description : ClientService
	Service Status : Active
	Available Operations 
	notify 
	
	
	so in the axis 2.13 there is a fibonacci sample so your wsdl
your action should look something like..
	<wsdl:binding name="RESTSOAP11Binding"
type="axis2:RESTPortType">
	    <soap:binding
transport="http://schemas.xmlsoap.org/soap/http" style="document">
	    </soap:binding>
	    <wsdl:operation name="restNotify">
	        <soap:operation soapAction="urn:restNotify"
style="document">
	
	as earlier suggested please read the doc at
http://wso2.org/library/3726
	thanks
	Martin 
	______________________________________________ 
	Disclaimer and confidentiality note 
	Everything in this e-mail and any attachments relates to the
official business of Sender. This transmission is of a confidential
nature and Sender does not endorse distribution to any party other than
intended recipient. Sender does not necessarily endorse content
contained within this transmission. 
	
	
	
________________________________

	Date: Wed, 15 Oct 2008 16:28:09 -0700
	From: barry.alexander@gmail.com
	To: axis-user@ws.apache.org
	Subject: Re: Out Only MEP and Rest support 


	Keith, thanks for the info, it helped somewhat as I am further
along...calling it a night though, and will resume tomorrow.  This I am
left off:
	
	[ERROR] org.apache.axis2.AxisFault: Exception occurred while
trying to invoke service method notify
	[ERROR] Exception occurred while trying to invoke service method
notify
	org.apache.axis2.AxisFault: namespace mismatch require
http://ws.apache.org/axis2 found http://ws.apache.org/axis2/xsd
	
	
	On Wed, Oct 15, 2008 at 11:03 AM, keith chapman
<ke...@gmail.com> wrote:
	

		Perhaps having a look at this article
<http://wso2.org/library/3726>  [1] would explain to you how REST works
in Axis2.
		
		Thanks,
		Keith.
		
		[1] http://wso2.org/library/3726 


		On Wed, Oct 15, 2008 at 11:20 PM, Barry Alexander
<ba...@gmail.com> wrote:
		

			After send this
http://localhost:8080/axis2/services/ActiveService/register?notifyEpr=ht
tp://localhost:8080/axis2/services/ClientServic
			
			I see this in the tomcat logs:
			
			[ERROR] The endpoint reference (EPR) for the
Operation not found is
/axis2/services/ActiveService/register?notifyEpr=http://localhost:8080/a
xis2/services/ClientService and the WSA Action = null
			org.apache.axis2.AxisFault: The endpoint
reference (EPR) for the Operation not found is
/axis2/services/ActiveService/register?notifyEpr=http://localhost:8080/a
xis2/services/ClientService and the WSA Action = null
			    at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.
java:89)
			    at
org.apache.axis2.engine.Phase.invoke(Phase.java:333)
			    at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
			    at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
			    at
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.
java:136)
			    at
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil
.java:130)
			    at
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.process
URLRequest(AxisServlet.java:829)
			    at
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255)
			    at
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
			    at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
			    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
			    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
			    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:233)
			    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:175)
			    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:128)
			    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
			    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
			    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
86)
			    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
4)
			    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:583)
			    at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
			    at java.lang.Thread.run(Unknown Source) 



			On Wed, Oct 15, 2008 at 10:02 AM, Barry
Alexander <ba...@gmail.com> wrote:
			

				Hi Axis2 users,
				
				 
				
				I am trying the sample application at
http://wso2.org/library/406 and have a few questions:
				
				 
				
				1)      I have built and successfully
deployed the two mentioned services in the sample referenced above
(ActiveService and ClientService), when attempting to register with
http://localhost:8080/axis2/rest/ActiveService?register?notifyEpr=http:/
/localhost:8080/axis2/services/ClientService I get "Requested resource
not found!"
				
				2)      I modified the axis2.xml as
follows:
				
				    <!--Our HTTP endpoints can handle
both REST and SOAP. Following parameters can be used to distinguiush
those endpoints-->
				
				    <!--In case of a servlet, if you
change this you have to manually change the settings of your servlet
container to map this -->
				
				    <!--context path to proper Axis2
servlets-->
				
				    <!--<parameter
name="servicePath">services</parameter>-->
				
				    <parameter
name="restPath">rest</parameter>
				
				 
				
				           <!-- Following parameter will
completely disable REST handling in Axis2-->
				
				   <parameter name="disableREST"
locked="false">false</parameter>
				
				This seemed to have no effect.
				
				 
				
				How do I enable the 'rest' url to
register my client service?
				 
				Environment details:
				 
				  
				Axis2 Happiness Page
				Examining webapp configuration
				Essential Components
				Found Apache-Axis
(org.apache.axis2.transport.http.AxisServlet) 
				  at C:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\axis2\WEB-INF\lib\axis2-kernel-1.4.1.jar
				Found Jakarta-Commons Logging
(org.apache.commons.logging.Log) 
				  at C:\Program Files\Apache Software
Foundation\Tomcat
6.0\webapps\axis2\WEB-INF\lib\commons-logging-1.1.1.jar
				Found Streaming API for XML
(javax.xml.stream.XMLStreamReader) 
				  at an unknown location
				Found Streaming API for XML
implementation (org.codehaus.stax2.XMLStreamWriter2) 
				  at C:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\axis2\WEB-INF\lib\wstx-asl-3.2.4.jar
				The core axis2 libraries are present.
				Note: Even if everything this page
probes for is present, there is no guarantee your Axis Service will
work, because there are many configuration options that we do not check
for. These tests are necessary but not sufficient 
				Examining Version Service
				Found Axis2 default Version service and
Axis2 is working properly. 
				Now you can drop a service archive in
axis2/WEB-INF/services. Following output was produced while invoking
Axis2 version service 
				Hello I am Axis2 version service , My
version is 1.4.1
				Examining Application Server
				Servlet version 2.5 
				Platform Apache Tomcat/6.0.16 
				
				Examining System Properties
				java.runtime.name Java(TM) SE Runtime
Environment  
				  
				sun.boot.library.path C: \Program
Files\Java\jre1.6.0_05\bin  
				  
				java.vm.version 10.0-b19  
				  
				shared.loader   
				  
				java.vm.vendor Sun Microsystems Inc.  
				  
				java.vendor.url http: //java.sun.com/  
				  
				path.separator ;  
				  
				java.vm.name Java HotSpot(TM) Client VM

				  
				tomcat.util.buf.StringCache.byte.enabled
true  
				  
				file.encoding.pkg sun.io  
				  
				java.util.logging.config.file C:
\Program Files\Apache Software Foundation\Tomcat
6.0\conf\logging.properties  
				  
				user.country US  
				  
				sun.os.patch.level Service Pack 2  
				  
				java.vm.specification.name Java Virtual
Machine Specification  
				  
				user.dir C: \Program Files\Apache
Software Foundation\Tomcat 6.0  
				  
				java.runtime.version 1.6.0_05-b13  
				  
				java.awt.graphicsenv
sun.awt.Win32GraphicsEnvironment  
				  
				java.endorsed.dirs C: \Program
Files\Apache Software Foundation\Tomcat 6.0\common\endorsed  
				  
				os.arch x86  
				  
				java.io.tmpdir C: \Program Files\Apache
Software Foundation\Tomcat 6.0\temp  
				  
				line.separator   
				  
				java.vm.specification.vendor Sun
Microsystems Inc.  
				  
				user.variant   
				  
				java.util.logging.manager
org.apache.juli.ClassLoaderLogManager  
				  
				java.naming.factory.url.pkgs
org.apache.naming  
				  
				os.name Windows XP  
				  
				sun.jnu.encoding Cp1252  
				  
				java.library.path C: \Program
Files\Apache Software Foundation\Tomcat 6.0\bin;.;C:
\WINDOWS1\Sun\Java\bin;C: \WINDOWS1\system32;C: \WINDOWS1;D: \Program
Files\Java\jdk1.5.0_15\bin;D: \axis\axis2-1.4.1\bin;c: \ruby\bin;C:
\Program Files\IBM\WebSphere MQ\Java\lib;C:
\OraHome_2\jre\1.4.2\bin\client;C: \OraHome_2\jre\1.4.2\bin;C:
\oracle\ora92\bin;C: \WINDOWS1\system32;C: \WINDOWS1;C:
\WINDOWS1\System32\Wbem;C: \Program Files\UltraEdit;C: \Program
Files\IBM\WebSphere MQ\bin;C: \Program Files\IBM\WebSphere
MQ\tools\c\samples\bin;"C: \Program
Files\Hummingbird\Connectivity\7.00\Accessories\";C: \Program
Files\Subversion\bin;C: \Program Files\Support Tools\;c: \Program
Files\Microsoft SQL Server\90\Tools\binn\;C: \Program Files\svnmerge;D:
\apache-ant-1.7.0\bin;D: \Sun\SDK\bin;C: \Program
Files\QuickTime\QTSystem\;D: \groovy\groovy-1.5.6\bin  
				  
				java.specification.name Java Platform
API Specification  
				  
				java.class.version 50.0  
				  
				sun.management.compiler HotSpot Client
Compiler  
				  
				os.version 5.1  
				  
				user.home C: \  
				  
				user.timezone America/Los_Angeles  
				  
				catalina.useNaming true  
				  
				java.awt.printerjob
sun.awt.windows.WPrinterJob  
				  
				java.specification.version 1.6  
				  
				file.encoding Cp1252  
				  
				catalina.home C: \Program Files\Apache
Software Foundation\Tomcat 6.0  
				  
				user.name SYSTEM  
				  
				java.class.path C: \Program Files\Apache
Software Foundation\Tomcat 6.0\bin\bootstrap.jar  
				  
				java.naming.factory.initial
org.apache.naming.java.javaURLContextFactory  
				  
				package.definition
sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,or
g.apache.jasper.  
				  
				java.vm.specification.version 1.0  
				  
				sun.arch.data.model 32  
				  
				java.home C: \Program
Files\Java\jre1.6.0_05  
				  
				java.specification.vendor Sun
Microsystems Inc.  
				  
				user.language en  
				  
				awt.toolkit sun.awt.windows.WToolkit  
				  
				java.vm.info mixed mode, sharing  
				  
				java.version 1.6.0_05  
				  
				java.ext.dirs C: \Program
Files\Java\jre1.6.0_05\lib\ext;C: \WINDOWS1\Sun\Java\lib\ext  
				  
				sun.boot.class.path C: \Program
Files\Java\jre1.6.0_05\lib\resources.jar;C: \Program
Files\Java\jre1.6.0_05\lib\rt.jar;C: \Program
Files\Java\jre1.6.0_05\lib\sunrsasign.jar;C: \Program
Files\Java\jre1.6.0_05\lib\jsse.jar;C: \Program
Files\Java\jre1.6.0_05\lib\jce.jar;C: \Program
Files\Java\jre1.6.0_05\lib\charsets.jar;C: \Program
Files\Java\jre1.6.0_05\classes  
				  
				java.vendor Sun Microsystems Inc.  
				  
				server.loader   
				  
				catalina.base C: \Program Files\Apache
Software Foundation\Tomcat 6.0  
				  
				file.separator \  
				  
				java.vendor.url.bug http:
//java.sun.com/cgi-bin/bugreport.cgi  
				  
				common.loader
${catalina.home}/lib,${catalina.home}/lib/*.jar  
				  
				sun.cpu.endian little  
				  
				sun.io.unicode.encoding UnicodeLittle  
				  
				package.access
sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apac
he.jasper.,sun.beans.  
				  
				sun.desktop windows  
				  
				sun.cpu.isalist pentium_pro+mmx
pentium_pro pentium+mmx pentium i486 i386 i86  
				  
				
				
				
				Available services
				Version
				Service EPR :
http://localhost:8080/axis2/services/Version
				
				Service Description : Version
				Service Status : Active
				Available Operations 
				getVersion 
				GetOrderService
				Service EPR :
http://localhost:8080/axis2/services/GetOrderService
				
				Service Description : GetOrderService
				Service Status : Active
				Available Operations 
				GetOrder 
				ActiveService
				Service EPR :
http://localhost:8080/axis2/services/ActiveService
				
				Service Description : ActiveService
				Service Status : Active
				Available Operations 
				register 
				ClientService
				Service EPR :
http://localhost:8080/axis2/services/ClientService
				
				Service Description : ClientService
				Service Status : Active
				Available Operations 
				notify 
				
				





		-- 
		Keith Chapman
		Senior Software Engineer
		WSO2 Inc.
		Oxygenating the Web Service Platform.
		http://wso2.org/
		
		blog: http://www.keith-chapman.org
		



________________________________

	Want to do more with Windows Live? Learn "10 hidden secrets"
from Jamie. Learn Now
<http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-c
ns%21550F681DAD532637%215295.entry?ocid=TXT_TAGLM_WL_domore_092008> 



Re: Out Only MEP and Rest support

Posted by Barry Alexander <ba...@gmail.com>.
Sorry to be so dense...I have taken advice and implemented the
StudentService example

I get a good response from
http://localhost:8080/axis2/services/StudentService/getStudents

But when I try to add a student, I am not sure that the url should look
like?  This is what I tried:

http://localhost:8080/axis2/services/studentService/addStudent/student/barry

that bombs:

[ERROR] The service cannot be found for the endpoint reference (EPR)
/axis2/services/studentService/addStudent/student/barry
org.apache.axis2.AxisFault: The service cannot be found for the endpoint
reference (EPR) /axis2/services/studentService/addStudent/student/barry


On Wed, Oct 15, 2008 at 5:26 PM, Martin Gainty <mg...@hotmail.com> wrote:

>  the action you're specifying is null
>
> Service Description : ClientService
> Service Status : Active
> Available Operations
> notify
>
> so in the axis 2.13 there is a fibonacci sample so your wsdl your action
> should look something like..
> <wsdl:binding name="RESTSOAP11Binding" type="axis2:RESTPortType">
>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document">
>     </soap:binding>
>     <wsdl:operation name="restNotify">
>         <soap:operation soapAction="urn:restNotify" style="document">
>
> as earlier suggested please read the doc at http://wso2.org/library/3726
> thanks
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and Sender
> does not endorse distribution to any party other than intended recipient.
> Sender does not necessarily endorse content contained within this
> transmission.
>
>
> ------------------------------
> Date: Wed, 15 Oct 2008 16:28:09 -0700
> From: barry.alexander@gmail.com
> To: axis-user@ws.apache.org
> Subject: Re: Out Only MEP and Rest support
>
>
> Keith, thanks for the info, it helped somewhat as I am further
> along...calling it a night though, and will resume tomorrow.  This I am left
> off:
>
> [ERROR] org.apache.axis2.AxisFault: Exception occurred while trying to
> invoke service method notify
> [ERROR] Exception occurred while trying to invoke service method notify
> org.apache.axis2.AxisFault: namespace mismatch require
> http://ws.apache.org/axis2 found http://ws.apache.org/axis2/xsd
>
> On Wed, Oct 15, 2008 at 11:03 AM, keith chapman <ke...@gmail.com>wrote:
>
> Perhaps having a look at this article <http://wso2.org/library/3726> [1]
> would explain to you how REST works in Axis2.
>
> Thanks,
> Keith.
>
> [1] http://wso2.org/library/3726
>
>
> On Wed, Oct 15, 2008 at 11:20 PM, Barry Alexander <
> barry.alexander@gmail.com> wrote:
>
> After send this
> http://localhost:8080/axis2/services/ActiveService/register?notifyEpr=http://localhost:8080/axis2/services/ClientServic
>
> I see this in the tomcat logs:
>
> [ERROR] The endpoint reference (EPR) for the Operation not found is
> /axis2/services/ActiveService/register?notifyEpr=
> http://localhost:8080/axis2/services/ClientService and the WSA Action =
> null
> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
> not found is /axis2/services/ActiveService/register?notifyEpr=
> http://localhost:8080/axis2/services/ClientService and the WSA Action =
> null
>     at
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:89)
>     at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
>     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
>     at
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
>     at
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
>     at
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829)
>     at
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>     at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>     at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>     at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>     at java.lang.Thread.run(Unknown Source)
>
>
>
> On Wed, Oct 15, 2008 at 10:02 AM, Barry Alexander <
> barry.alexander@gmail.com> wrote:
>
> Hi Axis2 users,
>
>
>
> I am trying the sample application at http://wso2.org/library/406 and have
> a few questions:
>
>
>
> 1)      I have built and successfully deployed the two mentioned services
> in the sample referenced above (ActiveService and ClientService), when
> attempting to register with
> http://localhost:8080/axis2/rest/ActiveService?register?notifyEpr=http://localhost:8080/axis2/services/ClientServiceI get "Requested resource not found!"
>
> 2)      I modified the axis2.xml as follows:
>
>     <!--Our HTTP endpoints can handle both REST and SOAP. Following
> parameters can be used to distinguiush those endpoints-->
>
>     <!--In case of a servlet, if you change this you have to manually
> change the settings of your servlet container to map this -->
>
>     <!--context path to proper Axis2 servlets-->
>
>     <!--<parameter name="servicePath">services</parameter>-->
>
>     <parameter name="restPath">rest</parameter>
>
>
>
>            <!-- Following parameter will completely disable REST handling
> in Axis2-->
>
>    <parameter name="disableREST" locked="false">false</parameter>
>
> This seemed to have no effect.
>
>
>
> How do I enable the 'rest' url to register my client service?
>
> Environment details:
>
>
> Axis2 Happiness Page
> Examining webapp configuration
> Essential Components
> Found Apache-Axis (org.apache.axis2.transport.http.AxisServlet)
>   at C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\axis2\WEB-INF\lib\axis2-kernel-1.4.1.jar
> Found Jakarta-Commons Logging (org.apache.commons.logging.Log)
>   at C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\axis2\WEB-INF\lib\commons-logging-1.1.1.jar
> Found Streaming API for XML (javax.xml.stream.XMLStreamReader)
>   at an unknown location
> Found Streaming API for XML implementation
> (org.codehaus.stax2.XMLStreamWriter2)
>   at C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\axis2\WEB-INF\lib\wstx-asl-3.2.4.jar
> The core axis2 libraries are present.
> Note: Even if everything this page probes for is present, there is no
> guarantee your Axis Service will work, because there are many configuration
> options that we do not check for. These tests are necessary but not
> sufficient
> Examining Version Service
> Found Axis2 default Version service and Axis2 is working properly.
> Now you can drop a service archive in axis2/WEB-INF/services. Following
> output was produced while invoking Axis2 version service
> Hello I am Axis2 version service , My version is 1.4.1
> Examining Application Server
> Servlet version 2.5
> Platform Apache Tomcat/6.0.16
>
> Examining System Properties
> java.runtime.name Java(TM) SE Runtime Environment
>
> sun.boot.library.path C: \Program Files\Java\jre1.6.0_05\bin
>
> java.vm.version 10.0-b19
>
> shared.loader
>
> java.vm.vendor Sun Microsystems Inc.
>
> java.vendor.url http: //java.sun.com/
>
> path.separator ;
>
> java.vm.name Java HotSpot(TM) Client VM
>
> tomcat.util.buf.StringCache.byte.enabled true
>
> file.encoding.pkg sun.io
>
> java.util.logging.config.file C: \Program Files\Apache Software
> Foundation\Tomcat 6.0\conf\logging.properties
>
> user.country US
>
> sun.os.patch.level Service Pack 2
>
> java.vm.specification.name Java Virtual Machine Specification
>
> user.dir C: \Program Files\Apache Software Foundation\Tomcat 6.0
>
> java.runtime.version 1.6.0_05-b13
>
> java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
>
> java.endorsed.dirs C: \Program Files\Apache Software Foundation\Tomcat
> 6.0\common\endorsed
>
> os.arch x86
>
> java.io.tmpdir C: \Program Files\Apache Software Foundation\Tomcat
> 6.0\temp
>
> line.separator
>
> java.vm.specification.vendor Sun Microsystems Inc.
>
> user.variant
>
> java.util.logging.manager org.apache.juli.ClassLoaderLogManager
>
> java.naming.factory.url.pkgs org.apache.naming
>
> os.name Windows XP
>
> sun.jnu.encoding Cp1252
>
> java.library.path C: \Program Files\Apache Software Foundation\Tomcat
> 6.0\bin;.;C: \WINDOWS1\Sun\Java\bin;C: \WINDOWS1\system32;C: \WINDOWS1;D:
> \Program Files\Java\jdk1.5.0_15\bin;D: \axis\axis2-1.4.1\bin;c: \ruby\bin;C:
> \Program Files\IBM\WebSphere MQ\Java\lib;C:
> \OraHome_2\jre\1.4.2\bin\client;C: \OraHome_2\jre\1.4.2\bin;C:
> \oracle\ora92\bin;C: \WINDOWS1\system32;C: \WINDOWS1;C:
> \WINDOWS1\System32\Wbem;C: \Program Files\UltraEdit;C: \Program
> Files\IBM\WebSphere MQ\bin;C: \Program Files\IBM\WebSphere
> MQ\tools\c\samples\bin;"C: \Program
> Files\Hummingbird\Connectivity\7.00\Accessories\";C: \Program
> Files\Subversion\bin;C: \Program Files\Support Tools\;c: \Program
> Files\Microsoft SQL Server\90\Tools\binn\;C: \Program Files\svnmerge;D:
> \apache-ant-1.7.0\bin;D: \Sun\SDK\bin;C: \Program
> Files\QuickTime\QTSystem\;D: \groovy\groovy-1.5.6\bin
>
> java.specification.name Java Platform API Specification
>
> java.class.version 50.0
>
> sun.management.compiler HotSpot Client Compiler
>
> os.version 5.1
>
> user.home C: \
>
> user.timezone America/Los_Angeles
>
> catalina.useNaming true
>
> java.awt.printerjob sun.awt.windows.WPrinterJob
>
> java.specification.version 1.6
>
> file.encoding Cp1252
>
> catalina.home C: \Program Files\Apache Software Foundation\Tomcat 6.0
>
> user.name SYSTEM
>
> java.class.path C: \Program Files\Apache Software Foundation\Tomcat
> 6.0\bin\bootstrap.jar
>
> java.naming.factory.initial org.apache.naming.java.javaURLContextFactory
>
> package.definition
> sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
>
>
> java.vm.specification.version 1.0
>
> sun.arch.data.model 32
>
> java.home C: \Program Files\Java\jre1.6.0_05
>
> java.specification.vendor Sun Microsystems Inc.
>
> user.language en
>
> awt.toolkit sun.awt.windows.WToolkit
>
> java.vm.info mixed mode, sharing
>
> java.version 1.6.0_05
>
> java.ext.dirs C: \Program Files\Java\jre1.6.0_05\lib\ext;C:
> \WINDOWS1\Sun\Java\lib\ext
>
> sun.boot.class.path C: \Program Files\Java\jre1.6.0_05\lib\resources.jar;C:
> \Program Files\Java\jre1.6.0_05\lib\rt.jar;C: \Program
> Files\Java\jre1.6.0_05\lib\sunrsasign.jar;C: \Program
> Files\Java\jre1.6.0_05\lib\jsse.jar;C: \Program
> Files\Java\jre1.6.0_05\lib\jce.jar;C: \Program
> Files\Java\jre1.6.0_05\lib\charsets.jar;C: \Program
> Files\Java\jre1.6.0_05\classes
>
> java.vendor Sun Microsystems Inc.
>
> server.loader
>
> catalina.base C: \Program Files\Apache Software Foundation\Tomcat 6.0
>
> file.separator \
>
> java.vendor.url.bug http: //java.sun.com/cgi-bin/bugreport.cgi
>
> common.loader ${catalina.home}/lib,${catalina.home}/lib/*.jar
>
> sun.cpu.endian little
>
> sun.io.unicode.encoding UnicodeLittle
>
> package.access
> sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
>
>
> sun.desktop windows
>
> sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386
> i86
>
>
>
>
> Available services
> Version
> Service EPR : http://localhost:8080/axis2/services/Version
>
> Service Description : Version
> Service Status : Active
> Available Operations
> getVersion
> GetOrderService
> Service EPR : http://localhost:8080/axis2/services/GetOrderService
>
> Service Description : GetOrderService
> Service Status : Active
> Available Operations
> GetOrder
> ActiveService
> Service EPR : http://localhost:8080/axis2/services/ActiveService
>
> Service Description : ActiveService
> Service Status : Active
> Available Operations
> register
> ClientService
> Service EPR : http://localhost:8080/axis2/services/ClientService
>
> Service Description : ClientService
> Service Status : Active
> Available Operations
> notify
>
>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>
>
>
> ------------------------------
> Want to do more with Windows Live? Learn "10 hidden secrets" from Jamie. Learn
> Now<http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns%21550F681DAD532637%215295.entry?ocid=TXT_TAGLM_WL_domore_092008>
>

RE: Out Only MEP and Rest support

Posted by Martin Gainty <mg...@hotmail.com>.
the action you're specifying is null 

Service Description : ClientService
Service Status : Active
Available Operations 
notify 

so in the axis 2.13 there is a fibonacci sample so your wsdl your action should look something like..
<wsdl:binding name="RESTSOAP11Binding" type="axis2:RESTPortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document">
    </soap:binding>
    <wsdl:operation name="restNotify">
        <soap:operation soapAction="urn:restNotify" style="document">

as earlier suggested please read the doc at http://wso2.org/library/3726
thanks
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 


Date: Wed, 15 Oct 2008 16:28:09 -0700
From: barry.alexander@gmail.com
To: axis-user@ws.apache.org
Subject: Re: Out Only MEP and Rest support

Keith, thanks for the info, it helped somewhat as I am further along...calling it a night though, and will resume tomorrow.  This I am left off:

[ERROR] org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method notify

[ERROR] Exception occurred while trying to invoke service method notify
org.apache.axis2.AxisFault: namespace mismatch require http://ws.apache.org/axis2 found http://ws.apache.org/axis2/xsd


On Wed, Oct 15, 2008 at 11:03 AM, keith chapman <ke...@gmail.com> wrote:

Perhaps having a look at this article [1] would explain to you how REST works in Axis2.

Thanks,
Keith.

[1] http://wso2.org/library/3726



On Wed, Oct 15, 2008 at 11:20 PM, Barry Alexander <ba...@gmail.com> wrote:


After send this http://localhost:8080/axis2/services/ActiveService/register?notifyEpr=http://localhost:8080/axis2/services/ClientServic




I see this in the tomcat logs:

[ERROR] The endpoint reference (EPR) for the Operation not found is /axis2/services/ActiveService/register?notifyEpr=http://localhost:8080/axis2/services/ClientService and the WSA Action = null



org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not found is /axis2/services/ActiveService/register?notifyEpr=http://localhost:8080/axis2/services/ClientService and the WSA Action = null



    at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:89)
    at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
    at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)



    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
    at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
    at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)



    at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829)
    at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)



    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)



    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)



    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)



    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)



    at java.lang.Thread.run(Unknown Source)


On Wed, Oct 15, 2008 at 10:02 AM, Barry Alexander <ba...@gmail.com> wrote:



Hi Axis2 users,

 

I am trying the sample application at http://wso2.org/library/406 and have a few questions:




 

1)      I have built and successfully deployed the two mentioned services in the sample referenced above (ActiveService and ClientService), when attempting to register with http://localhost:8080/axis2/rest/ActiveService?register?notifyEpr=http://localhost:8080/axis2/services/ClientService I get "Requested resource not found!"





2)      I modified the axis2.xml as follows:

    <!--Our HTTP endpoints can handle both REST and SOAP. Following parameters can be used to distinguiush those endpoints-->

    <!--In case of a servlet, if you change this you have to manually change the settings of your servlet container to map this -->





    <!--context path to proper Axis2 servlets-->

    <!--<parameter name="servicePath">services</parameter>-->

    <parameter name="restPath">rest</parameter>





 

           <!-- Following parameter will completely disable REST handling in Axis2-->

   <parameter name="disableREST" locked="false">false</parameter>

This seemed to have no effect.





 

How do I enable the 'rest' url to register my client service?
 
Environment details:
 
  
Axis2 Happiness Page
Examining webapp configuration
Essential Components
Found Apache-Axis (org.apache.axis2.transport.http.AxisServlet) 




  at C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis2\WEB-INF\lib\axis2-kernel-1.4.1.jar
Found Jakarta-Commons Logging (org.apache.commons.logging.Log) 
  at C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis2\WEB-INF\lib\commons-logging-1.1.1.jar




Found Streaming API for XML (javax.xml.stream.XMLStreamReader) 
  at an unknown location
Found Streaming API for XML implementation (org.codehaus.stax2.XMLStreamWriter2) 
  at C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis2\WEB-INF\lib\wstx-asl-3.2.4.jar




The core axis2 libraries are present.
Note: Even if everything this page probes for is present, there is no guarantee your Axis Service will work, because there are many configuration options that we do not check for. These tests are necessary but not sufficient 




Examining Version Service
Found Axis2 default Version service and Axis2 is working properly. 
Now you can drop a service archive in axis2/WEB-INF/services. Following output was produced while invoking Axis2 version service 




Hello I am Axis2 version service , My version is 1.4.1
Examining Application Server
Servlet version 2.5 
Platform Apache Tomcat/6.0.16 

Examining System Properties
java.runtime.name Java(TM) SE Runtime Environment  




  
sun.boot.library.path C: \Program Files\Java\jre1.6.0_05\bin  
  
java.vm.version 10.0-b19  
  
shared.loader   
  
java.vm.vendor Sun Microsystems Inc.  
  
java.vendor.url http: //java.sun.com/  




  
path.separator ;  
  
java.vm.name Java HotSpot(TM) Client VM  
  
tomcat.util.buf.StringCache.byte.enabled true  
  
file.encoding.pkg sun.io  




  
java.util.logging.config.file C: \Program Files\Apache Software Foundation\Tomcat 6.0\conf\logging.properties  
  
user.country US  
  
sun.os.patch.level Service Pack 2  
  
java.vm.specification.name Java Virtual Machine Specification  




  
user.dir C: \Program Files\Apache Software Foundation\Tomcat 6.0  
  
java.runtime.version 1.6.0_05-b13  
  
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment  
  
java.endorsed.dirs C: \Program Files\Apache Software Foundation\Tomcat 6.0\common\endorsed  




  
os.arch x86  
  
java.io.tmpdir C: \Program Files\Apache Software Foundation\Tomcat 6.0\temp  
  
line.separator   
  
java.vm.specification.vendor Sun Microsystems Inc.  
  
user.variant   




  
java.util.logging.manager org.apache.juli.ClassLoaderLogManager  
  
java.naming.factory.url.pkgs org.apache.naming  
  
os.name Windows XP  
  
sun.jnu.encoding Cp1252  




  
java.library.path C: \Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;C: \WINDOWS1\Sun\Java\bin;C: \WINDOWS1\system32;C: \WINDOWS1;D: \Program Files\Java\jdk1.5.0_15\bin;D: \axis\axis2-1.4.1\bin;c: \ruby\bin;C: \Program Files\IBM\WebSphere MQ\Java\lib;C: \OraHome_2\jre\1.4.2\bin\client;C: \OraHome_2\jre\1.4.2\bin;C: \oracle\ora92\bin;C: \WINDOWS1\system32;C: \WINDOWS1;C: \WINDOWS1\System32\Wbem;C: \Program Files\UltraEdit;C: \Program Files\IBM\WebSphere MQ\bin;C: \Program Files\IBM\WebSphere MQ\tools\c\samples\bin;"C: \Program Files\Hummingbird\Connectivity\7.00\Accessories\";C: \Program Files\Subversion\bin;C: \Program Files\Support Tools\;c: \Program Files\Microsoft SQL Server\90\Tools\binn\;C: \Program Files\svnmerge;D: \apache-ant-1.7.0\bin;D: \Sun\SDK\bin;C: \Program Files\QuickTime\QTSystem\;D: \groovy\groovy-1.5.6\bin  




  
java.specification.name Java Platform API Specification  
  
java.class.version 50.0  
  
sun.management.compiler HotSpot Client Compiler  



  
os.version 5.1  

  
user.home C: \  
  
user.timezone America/Los_Angeles  
  
catalina.useNaming true  
  
java.awt.printerjob sun.awt.windows.WPrinterJob  
  
java.specification.version 1.6  
  
file.encoding Cp1252  




  
catalina.home C: \Program Files\Apache Software Foundation\Tomcat 6.0  
  
user.name SYSTEM  
  
java.class.path C: \Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar  




  
java.naming.factory.initial org.apache.naming.java.javaURLContextFactory  
  
package.definition sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.  
  
java.vm.specification.version 1.0  




  
sun.arch.data.model 32  
  
java.home C: \Program Files\Java\jre1.6.0_05  
  
java.specification.vendor Sun Microsystems Inc.  
  
user.language en  
  
awt.toolkit sun.awt.windows.WToolkit  




  
java.vm.info mixed mode, sharing  
  
java.version 1.6.0_05  
  
java.ext.dirs C: \Program Files\Java\jre1.6.0_05\lib\ext;C: \WINDOWS1\Sun\Java\lib\ext  



  
sun.boot.class.path C: \Program Files\Java\jre1.6.0_05\lib\resources.jar;C: \Program Files\Java\jre1.6.0_05\lib\rt.jar;C: \Program Files\Java\jre1.6.0_05\lib\sunrsasign.jar;C: \Program Files\Java\jre1.6.0_05\lib\jsse.jar;C: \Program Files\Java\jre1.6.0_05\lib\jce.jar;C: \Program Files\Java\jre1.6.0_05\lib\charsets.jar;C: \Program Files\Java\jre1.6.0_05\classes  




  
java.vendor Sun Microsystems Inc.  
  
server.loader   
  
catalina.base C: \Program Files\Apache Software Foundation\Tomcat 6.0  
  
file.separator \  
  
java.vendor.url.bug http: //java.sun.com/cgi-bin/bugreport.cgi  




  
common.loader ${catalina.home}/lib,${catalina.home}/lib/*.jar  
  
sun.cpu.endian little  
  
sun.io.unicode.encoding UnicodeLittle  
  
package.access sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.  




  
sun.desktop windows  
  
sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86  
  



Available services
Version
Service EPR : http://localhost:8080/axis2/services/Version





Service Description : Version
Service Status : Active
Available Operations 
getVersion 
GetOrderService
Service EPR : http://localhost:8080/axis2/services/GetOrderService





Service Description : GetOrderService
Service Status : Active
Available Operations 
GetOrder 
ActiveService
Service EPR : http://localhost:8080/axis2/services/ActiveService





Service Description : ActiveService
Service Status : Active
Available Operations 
register 
ClientService
Service EPR : http://localhost:8080/axis2/services/ClientService





Service Description : ClientService
Service Status : Active
Available Operations 
notify 






-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/


blog: http://www.keith-chapman.org






_________________________________________________________________
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: Out Only MEP and Rest support

Posted by Barry Alexander <ba...@gmail.com>.
Keith, thanks for the info, it helped somewhat as I am further
along...calling it a night though, and will resume tomorrow.  This I am left
off:

[ERROR] org.apache.axis2.AxisFault: Exception occurred while trying to
invoke service method notify
[ERROR] Exception occurred while trying to invoke service method notify
org.apache.axis2.AxisFault: namespace mismatch require
http://ws.apache.org/axis2 found http://ws.apache.org/axis2/xsd

On Wed, Oct 15, 2008 at 11:03 AM, keith chapman <ke...@gmail.com>wrote:

> Perhaps having a look at this article <http://wso2.org/library/3726> [1]
> would explain to you how REST works in Axis2.
>
> Thanks,
> Keith.
>
> [1] http://wso2.org/library/3726
>
>
> On Wed, Oct 15, 2008 at 11:20 PM, Barry Alexander <
> barry.alexander@gmail.com> wrote:
>
>> After send this
>> http://localhost:8080/axis2/services/ActiveService/register?notifyEpr=http://localhost:8080/axis2/services/ClientServic
>>
>> I see this in the tomcat logs:
>>
>> [ERROR] The endpoint reference (EPR) for the Operation not found is
>> /axis2/services/ActiveService/register?notifyEpr=
>> http://localhost:8080/axis2/services/ClientService and the WSA Action =
>> null
>> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
>> not found is /axis2/services/ActiveService/register?notifyEpr=
>> http://localhost:8080/axis2/services/ClientService and the WSA Action =
>> null
>>     at
>> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:89)
>>     at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
>>     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
>>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
>>     at
>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
>>     at
>> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
>>     at
>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829)
>>     at
>> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>     at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>     at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>     at java.lang.Thread.run(Unknown Source)
>>
>>
>>
>> On Wed, Oct 15, 2008 at 10:02 AM, Barry Alexander <
>> barry.alexander@gmail.com> wrote:
>>
>>> Hi Axis2 users,
>>>
>>>
>>>
>>> I am trying the sample application at http://wso2.org/library/406 and
>>> have a few questions:
>>>
>>>
>>>
>>> 1)      I have built and successfully deployed the two mentioned services
>>> in the sample referenced above (ActiveService and ClientService), when
>>> attempting to register with
>>> http://localhost:8080/axis2/rest/ActiveService?register?notifyEpr=http://localhost:8080/axis2/services/ClientServiceI get "Requested resource not found!"
>>>
>>> 2)      I modified the axis2.xml as follows:
>>>
>>>     <!--Our HTTP endpoints can handle both REST and SOAP. Following
>>> parameters can be used to distinguiush those endpoints-->
>>>
>>>     <!--In case of a servlet, if you change this you have to manually
>>> change the settings of your servlet container to map this -->
>>>
>>>     <!--context path to proper Axis2 servlets-->
>>>
>>>     <!--<parameter name="servicePath">services</parameter>-->
>>>
>>>     <parameter name="restPath">rest</parameter>
>>>
>>>
>>>
>>>            <!-- Following parameter will completely disable REST handling
>>> in Axis2-->
>>>
>>>    <parameter name="disableREST" locked="false">false</parameter>
>>>
>>> This seemed to have no effect.
>>>
>>>
>>>
>>> How do I enable the 'rest' url to register my client service?
>>>
>>> Environment details:
>>>
>>>
>>> Axis2 Happiness Page
>>> Examining webapp configuration
>>> Essential Components
>>> Found Apache-Axis (org.apache.axis2.transport.http.AxisServlet)
>>>   at C:\Program Files\Apache Software Foundation\Tomcat
>>> 6.0\webapps\axis2\WEB-INF\lib\axis2-kernel-1.4.1.jar
>>> Found Jakarta-Commons Logging (org.apache.commons.logging.Log)
>>>   at C:\Program Files\Apache Software Foundation\Tomcat
>>> 6.0\webapps\axis2\WEB-INF\lib\commons-logging-1.1.1.jar
>>> Found Streaming API for XML (javax.xml.stream.XMLStreamReader)
>>>   at an unknown location
>>> Found Streaming API for XML implementation
>>> (org.codehaus.stax2.XMLStreamWriter2)
>>>   at C:\Program Files\Apache Software Foundation\Tomcat
>>> 6.0\webapps\axis2\WEB-INF\lib\wstx-asl-3.2.4.jar
>>> The core axis2 libraries are present.
>>> Note: Even if everything this page probes for is present, there is no
>>> guarantee your Axis Service will work, because there are many configuration
>>> options that we do not check for. These tests are necessary but not
>>> sufficient
>>> Examining Version Service
>>> Found Axis2 default Version service and Axis2 is working properly.
>>> Now you can drop a service archive in axis2/WEB-INF/services. Following
>>> output was produced while invoking Axis2 version service
>>> Hello I am Axis2 version service , My version is 1.4.1
>>> Examining Application Server
>>> Servlet version 2.5
>>> Platform Apache Tomcat/6.0.16
>>>
>>> Examining System Properties
>>> java.runtime.name Java(TM) SE Runtime Environment
>>>
>>> sun.boot.library.path C: \Program Files\Java\jre1.6.0_05\bin
>>>
>>> java.vm.version 10.0-b19
>>>
>>> shared.loader
>>>
>>> java.vm.vendor Sun Microsystems Inc.
>>>
>>> java.vendor.url http: //java.sun.com/
>>>
>>> path.separator ;
>>>
>>> java.vm.name Java HotSpot(TM) Client VM
>>>
>>> tomcat.util.buf.StringCache.byte.enabled true
>>>
>>> file.encoding.pkg sun.io
>>>
>>> java.util.logging.config.file C: \Program Files\Apache Software
>>> Foundation\Tomcat 6.0\conf\logging.properties
>>>
>>> user.country US
>>>
>>> sun.os.patch.level Service Pack 2
>>>
>>> java.vm.specification.name Java Virtual Machine Specification
>>>
>>> user.dir C: \Program Files\Apache Software Foundation\Tomcat 6.0
>>>
>>> java.runtime.version 1.6.0_05-b13
>>>
>>> java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
>>>
>>> java.endorsed.dirs C: \Program Files\Apache Software Foundation\Tomcat
>>> 6.0\common\endorsed
>>>
>>> os.arch x86
>>>
>>> java.io.tmpdir C: \Program Files\Apache Software Foundation\Tomcat
>>> 6.0\temp
>>>
>>> line.separator
>>>
>>> java.vm.specification.vendor Sun Microsystems Inc.
>>>
>>> user.variant
>>>
>>> java.util.logging.manager org.apache.juli.ClassLoaderLogManager
>>>
>>> java.naming.factory.url.pkgs org.apache.naming
>>>
>>> os.name Windows XP
>>>
>>> sun.jnu.encoding Cp1252
>>>
>>> java.library.path C: \Program Files\Apache Software Foundation\Tomcat
>>> 6.0\bin;.;C: \WINDOWS1\Sun\Java\bin;C: \WINDOWS1\system32;C: \WINDOWS1;D:
>>> \Program Files\Java\jdk1.5.0_15\bin;D: \axis\axis2-1.4.1\bin;c: \ruby\bin;C:
>>> \Program Files\IBM\WebSphere MQ\Java\lib;C:
>>> \OraHome_2\jre\1.4.2\bin\client;C: \OraHome_2\jre\1.4.2\bin;C:
>>> \oracle\ora92\bin;C: \WINDOWS1\system32;C: \WINDOWS1;C:
>>> \WINDOWS1\System32\Wbem;C: \Program Files\UltraEdit;C: \Program
>>> Files\IBM\WebSphere MQ\bin;C: \Program Files\IBM\WebSphere
>>> MQ\tools\c\samples\bin;"C: \Program
>>> Files\Hummingbird\Connectivity\7.00\Accessories\";C: \Program
>>> Files\Subversion\bin;C: \Program Files\Support Tools\;c: \Program
>>> Files\Microsoft SQL Server\90\Tools\binn\;C: \Program Files\svnmerge;D:
>>> \apache-ant-1.7.0\bin;D: \Sun\SDK\bin;C: \Program
>>> Files\QuickTime\QTSystem\;D: \groovy\groovy-1.5.6\bin
>>>
>>> java.specification.name Java Platform API Specification
>>>
>>> java.class.version 50.0
>>>
>>> sun.management.compiler HotSpot Client Compiler
>>>
>>> os.version 5.1
>>>
>>> user.home C: \
>>>
>>> user.timezone America/Los_Angeles
>>>
>>> catalina.useNaming true
>>>
>>> java.awt.printerjob sun.awt.windows.WPrinterJob
>>>
>>> java.specification.version 1.6
>>>
>>> file.encoding Cp1252
>>>
>>> catalina.home C: \Program Files\Apache Software Foundation\Tomcat 6.0
>>>
>>> user.name SYSTEM
>>>
>>> java.class.path C: \Program Files\Apache Software Foundation\Tomcat
>>> 6.0\bin\bootstrap.jar
>>>
>>> java.naming.factory.initial org.apache.naming.java.javaURLContextFactory
>>>
>>>
>>> package.definition
>>> sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
>>>
>>>
>>> java.vm.specification.version 1.0
>>>
>>> sun.arch.data.model 32
>>>
>>> java.home C: \Program Files\Java\jre1.6.0_05
>>>
>>> java.specification.vendor Sun Microsystems Inc.
>>>
>>> user.language en
>>>
>>> awt.toolkit sun.awt.windows.WToolkit
>>>
>>> java.vm.info mixed mode, sharing
>>>
>>> java.version 1.6.0_05
>>>
>>> java.ext.dirs C: \Program Files\Java\jre1.6.0_05\lib\ext;C:
>>> \WINDOWS1\Sun\Java\lib\ext
>>>
>>> sun.boot.class.path C: \Program
>>> Files\Java\jre1.6.0_05\lib\resources.jar;C: \Program
>>> Files\Java\jre1.6.0_05\lib\rt.jar;C: \Program
>>> Files\Java\jre1.6.0_05\lib\sunrsasign.jar;C: \Program
>>> Files\Java\jre1.6.0_05\lib\jsse.jar;C: \Program
>>> Files\Java\jre1.6.0_05\lib\jce.jar;C: \Program
>>> Files\Java\jre1.6.0_05\lib\charsets.jar;C: \Program
>>> Files\Java\jre1.6.0_05\classes
>>>
>>> java.vendor Sun Microsystems Inc.
>>>
>>> server.loader
>>>
>>> catalina.base C: \Program Files\Apache Software Foundation\Tomcat 6.0
>>>
>>> file.separator \
>>>
>>> java.vendor.url.bug http: //java.sun.com/cgi-bin/bugreport.cgi
>>>
>>> common.loader ${catalina.home}/lib,${catalina.home}/lib/*.jar
>>>
>>> sun.cpu.endian little
>>>
>>> sun.io.unicode.encoding UnicodeLittle
>>>
>>> package.access
>>> sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
>>>
>>>
>>> sun.desktop windows
>>>
>>> sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386
>>> i86
>>>
>>>
>>>
>>>
>>> Available services
>>> Version
>>> Service EPR : http://localhost:8080/axis2/services/Version
>>>
>>> Service Description : Version
>>> Service Status : Active
>>> Available Operations
>>> getVersion
>>> GetOrderService
>>> Service EPR : http://localhost:8080/axis2/services/GetOrderService
>>>
>>> Service Description : GetOrderService
>>> Service Status : Active
>>> Available Operations
>>> GetOrder
>>> ActiveService
>>> Service EPR : http://localhost:8080/axis2/services/ActiveService
>>>
>>> Service Description : ActiveService
>>> Service Status : Active
>>> Available Operations
>>> register
>>> ClientService
>>> Service EPR : http://localhost:8080/axis2/services/ClientService
>>>
>>> Service Description : ClientService
>>> Service Status : Active
>>> Available Operations
>>> notify
>>>
>>>
>>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>

Re: Out Only MEP and Rest support

Posted by Barry Alexander <ba...@gmail.com>.
Thanks Keith for the clarification regarding the request schema.  I look
forward to your write up.

I was excited about REST support in Axis2 because I could foresee many
opportunities to take advantage of interaction with services via browsers,
scripting and testing.

On Sat, Oct 18, 2008 at 3:33 AM, keith chapman <ke...@gmail.com>wrote:

> Hi Barry,
>
> Here is sample code for adding a student (using service client)
>
> ServiceClient serviceClient = new ServiceClient();
>         Options options = new Options();
>         options.setTo(
>                 new EndpointReference("
> http://localhost:8080/axis2/services/StudentService/students"));
>         serviceClient.setOptions(
> options);
>         options.setProperty(Constants.Configuration.HTTP_METHOD,
> HTTPConstants.HTTP_METHOD_POST);
>         OMElement payload = AXIOMUtil.stringToOM("<addStudent xmlns=\"
> http://axis2.apache.org
> \"><student><age>27</age><name>Keith</name><subjects>Math</subjects></student></addStudent>");
>         options.setProperty(Constants.Configuration.MESSAGE_TYPE,
>                             HTTPConstants.MEDIA_TYPE_APPLICATION_XML);
>         OMElement omElement = serviceClient.sendReceive(payload);
>         omElement.serialize(System.out);
>
> The request looks like:
>
> POST /axis2/services/StudentService/students HTTP/1.1
> Content-Type: application/xml; charset=UTF-8
> SOAPAction: urn:anonOutInOp
> User-Agent: Axis2
> Host: 127.0.0.1
> Transfer-Encoding: chunked
>
> 84
> <addStudent xmlns="http://axis2.apache.org">
>    <student>
>       <age>27</age>
>       <name>Keith</name>
>       <subjects>Math</subjects>
>    </student></addStudent>0
>
>
> while the response is:
>
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/xml;charset=UTF-8
> Transfer-Encoding: chunked
> Date: Sat, 18 Oct 2008 10:28:34 GMT
>
> ac
> <ns:addStudentResponse xmlns:ns="http://axis2.apache.org">
>    <ns:return>
> http://192.168.1.2:8080/axis2/services/StudentService/student/Keith
> </ns:return></ns:addStudentResponse>
> 0
>
> The request in the case of the example is Application/xml, Axis2 can also
> handle application/x-www-form-urlencoded but this would not work in the case
> of the example. The reason for that is the schema used to describe the
> request message (Will do a detail write up of why this is the case and how
> this could be prevented in a couple of days. Will post it here).
>
> Thanks,
> Keith.
>
>
> On Sat, Oct 18, 2008 at 2:55 AM, Barry Alexander <
> barry.alexander@gmail.com> wrote:
>
>> OK, I am getting closer.  I looked at the wsdl and fixed the parameter
>> 'name' to 'student' and got a response.  But it got added as null.
>>
>> groovy> import java.net.*;
>> groovy> import java.io.*;
>> groovy> try {
>> groovy>     // Construct data
>> groovy>     String data = URLEncoder.encode("student", "UTF-8") + "=" +
>> URLEncoder.encode("barry", "UTF-8");
>> groovy>     //data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" +
>> URLEncoder.encode("value2", "UTF-8");
>> groovy>
>> groovy>     // Send data
>> groovy>     URL url = new URL("
>> http://localhost:8080/axis2/services/StudentService/students");
>> groovy>     URLConnection conn = url.openConnection();
>> groovy>     conn.setDoOutput(true);
>> groovy>     OutputStreamWriter wr = new
>> OutputStreamWriter(conn.getOutputStream());
>> groovy>     wr.write(data);
>> groovy>     wr.flush();
>> groovy>
>> groovy>     // Get the response
>> groovy>     BufferedReader rd = new BufferedReader(new
>> InputStreamReader(conn.getInputStream()));
>> groovy>     String line;
>> groovy>      while ((line = rd.readLine()) != null) {
>> groovy>         // Process line...
>> groovy>         System.out.println(line);
>> groovy>     }
>> groovy>     wr.close();
>> groovy>     rd.close();
>> groovy>     } catch (Exception e) {
>> groovy> }
>>
>> <ns:addStudentResponse xmlns:ns="http://axis2.apache.org"><ns:return>
>> http://192.168.61.1:8080/axis2/services/StudentService/student/null
>> </ns:return></ns:addStudentResponse>
>>
>>
>>
>> On Fri, Oct 17, 2008 at 12:39 PM, Barry Alexander <
>> barry.alexander@gmail.com> wrote:
>>
>>> Yes, I understand this is a POST.  So I wrote some groovy code to call
>>> the service, but the student object is passed as null to the addStudent
>>> method of StudentService.
>>>
>>> Here is my code:
>>>
>>> import java.net.*;
>>> import java.io.*;
>>>
>>> try {
>>>     // Construct data
>>>     String data = URLEncoder.encode("name", "UTF-8") + "=" +
>>> URLEncoder.encode("barry", "UTF-8");
>>>     //data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" +
>>> URLEncoder.encode("value2", "UTF-8");
>>>
>>>     // Send data
>>>     URL url = new URL("
>>> http://localhost:8080/axis2/services/StudentService/students");
>>>     URLConnection conn = url.openConnection();
>>>     conn.setDoOutput(true);
>>>     OutputStreamWriter wr = new
>>> OutputStreamWriter(conn.getOutputStream());
>>>     wr.write(data);
>>>     wr.flush();
>>>
>>>     // Get the response
>>>     BufferedReader rd = new BufferedReader(new
>>> InputStreamReader(conn.getInputStream()));
>>>     String line;
>>>      while ((line = rd.readLine()) != null) {
>>>         // Process line...
>>>         System.out.println(line);
>>>     }
>>>     wr.close();
>>>     rd.close();
>>>     } catch (Exception e) {
>>> }
>>>
>>> From Tomcat logs:
>>>
>>> [ERROR] Exception occurred while trying to invoke service method
>>> addStudent
>>> java.lang.reflect.InvocationTargetException
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>     at java.lang.reflect.Method.invoke(Unknown Source)
>>>     at
>>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)
>>>     at
>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102)
>>>     at
>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>>     at
>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
>>>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>>>     at
>>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
>>>      at
>>> org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:84)
>>>     at
>>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:818)
>>>     at
>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:206)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>     at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>     at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>     at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>     at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>     at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>     at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>     at
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>>     at
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>     at
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>     at java.lang.Thread.run(Unknown Source)
>>> Caused by: java.lang.NullPointerException
>>>     at org.apache.axis2.StudentService.addStudent(StudentService.java:39)
>>>     ... 27 more
>>> [ERROR] Exception occurred while trying to invoke service method
>>> addStudent
>>> org.apache.axis2.AxisFault: Exception occurred while trying to invoke
>>> service method addStudent
>>>     at
>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:158)
>>>     at
>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>>     at
>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
>>>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>>>     at
>>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
>>>     at
>>> org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:84)
>>>     at
>>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:818)
>>>     at
>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:206)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>     at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>     at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>     at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>     at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>     at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>     at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>     at
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>>     at
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>     at
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>     at java.lang.Thread.run(Unknown Source)
>>> Caused by: java.lang.reflect.InvocationTargetException
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>     at java.lang.reflect.Method.invoke(Unknown Source)
>>>     at
>>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)
>>>     at
>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102)
>>>     ... 21 more
>>> Caused by: java.lang.NullPointerException
>>>     at org.apache.axis2.StudentService.addStudent(StudentService.java:39)
>>>     ... 27 more
>>>
>>>
>>> On Thu, Oct 16, 2008 at 7:11 PM, keith chapman <ke...@gmail.com>wrote:
>>>
>>>> Hi Barry,
>>>>
>>>> In my example on http://wso2.org/library/3726 in order to add a student
>>>> you need to do a HTTP POST to /services/studentService/students
>>>> I have not exposed it as a GET hence you wont be able to perform a GET
>>>> on it. Hope this makes things clear.
>>>>
>>>> Thanks,
>>>> Keith.
>>>>
>>>>
>>>> On Fri, Oct 17, 2008 at 2:52 AM, Barry Alexander <
>>>> barry.alexander@gmail.com> wrote:
>>>>
>>>>> Hi Keith, I am have implemented the StudentService sample but I am
>>>>> having trouble with the addStudent operation.
>>>>>
>>>>> What should the url look like?  How do I pass in the student name, this
>>>>> is what I tried
>>>>>
>>>>>
>>>>> http://localhost:8080/axis2/services/StudentService/addStudent/student/barry
>>>>>
>>>>> causes:
>>>>>
>>>>> [ERROR] The endpoint reference (EPR) for the Operation not found is
>>>>> /axis2/services/StudentService/addStudent/student/barry and the WSA Action =
>>>>> null
>>>>> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
>>>>> Operation not found is
>>>>> /axis2/services/StudentService/addStudent/student/barry and the WSA Action =
>>>>> null
>>>>>
>>>>>
>>>>> On Wed, Oct 15, 2008 at 11:03 AM, keith chapman <
>>>>> keithgchapman@gmail.com> wrote:
>>>>>
>>>>>> Perhaps having a look at this article <http://wso2.org/library/3726>[1] would explain to you how REST works in Axis2.
>>>>>>
>>>>>> Thanks,
>>>>>> Keith.
>>>>>>
>>>>>> [1] http://wso2.org/library/3726
>>>>>>
>>>>>>
>>>>>> On Wed, Oct 15, 2008 at 11:20 PM, Barry Alexander <
>>>>>> barry.alexander@gmail.com> wrote:
>>>>>>
>>>>>>> After send this
>>>>>>> http://localhost:8080/axis2/services/ActiveService/register?notifyEpr=http://localhost:8080/axis2/services/ClientServic
>>>>>>>
>>>>>>> I see this in the tomcat logs:
>>>>>>>
>>>>>>> [ERROR] The endpoint reference (EPR) for the Operation not found is
>>>>>>> /axis2/services/ActiveService/register?notifyEpr=
>>>>>>> http://localhost:8080/axis2/services/ClientService and the WSA
>>>>>>> Action = null
>>>>>>> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
>>>>>>> Operation not found is /axis2/services/ActiveService/register?notifyEpr=
>>>>>>> http://localhost:8080/axis2/services/ClientService and the WSA
>>>>>>> Action = null
>>>>>>>     at
>>>>>>> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:89)
>>>>>>>     at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
>>>>>>>     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
>>>>>>>     at
>>>>>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
>>>>>>>     at
>>>>>>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
>>>>>>>     at
>>>>>>> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
>>>>>>>     at
>>>>>>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829)
>>>>>>>     at
>>>>>>> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255)
>>>>>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>>>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>>>>>     at
>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>>>>>     at
>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>>>>>     at
>>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>>>>>     at
>>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>>>>>     at
>>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>>>>>     at
>>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>>>>>     at
>>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>>>>>     at
>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>>>>>     at
>>>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>>>>>>     at
>>>>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>>>>>     at
>>>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>>>>>     at java.lang.Thread.run(Unknown Source)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Oct 15, 2008 at 10:02 AM, Barry Alexander <
>>>>>>> barry.alexander@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Axis2 users,
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I am trying the sample application at http://wso2.org/library/406and have a few questions:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> 1)      I have built and successfully deployed the two mentioned
>>>>>>>> services in the sample referenced above (ActiveService and ClientService),
>>>>>>>> when attempting to register with
>>>>>>>> http://localhost:8080/axis2/rest/ActiveService?register?notifyEpr=http://localhost:8080/axis2/services/ClientServiceI get "Requested resource not found!"
>>>>>>>>
>>>>>>>> 2)      I modified the axis2.xml as follows:
>>>>>>>>
>>>>>>>>     <!--Our HTTP endpoints can handle both REST and SOAP. Following
>>>>>>>> parameters can be used to distinguiush those endpoints-->
>>>>>>>>
>>>>>>>>     <!--In case of a servlet, if you change this you have to
>>>>>>>> manually change the settings of your servlet container to map this -->
>>>>>>>>
>>>>>>>>     <!--context path to proper Axis2 servlets-->
>>>>>>>>
>>>>>>>>     <!--<parameter name="servicePath">services</parameter>-->
>>>>>>>>
>>>>>>>>     <parameter name="restPath">rest</parameter>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>            <!-- Following parameter will completely disable REST
>>>>>>>> handling in Axis2-->
>>>>>>>>
>>>>>>>>    <parameter name="disableREST" locked="false">false</parameter>
>>>>>>>>
>>>>>>>> This seemed to have no effect.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> How do I enable the 'rest' url to register my client service?
>>>>>>>>
>>>>>>>> Environment details:
>>>>>>>>
>>>>>>>>
>>>>>>>> Axis2 Happiness Page
>>>>>>>> Examining webapp configuration
>>>>>>>> Essential Components
>>>>>>>> Found Apache-Axis (org.apache.axis2.transport.http.AxisServlet)
>>>>>>>>   at C:\Program Files\Apache Software Foundation\Tomcat
>>>>>>>> 6.0\webapps\axis2\WEB-INF\lib\axis2-kernel-1.4.1.jar
>>>>>>>> Found Jakarta-Commons Logging (org.apache.commons.logging.Log)
>>>>>>>>   at C:\Program Files\Apache Software Foundation\Tomcat
>>>>>>>> 6.0\webapps\axis2\WEB-INF\lib\commons-logging-1.1.1.jar
>>>>>>>> Found Streaming API for XML (javax.xml.stream.XMLStreamReader)
>>>>>>>>   at an unknown location
>>>>>>>> Found Streaming API for XML implementation
>>>>>>>> (org.codehaus.stax2.XMLStreamWriter2)
>>>>>>>>   at C:\Program Files\Apache Software Foundation\Tomcat
>>>>>>>> 6.0\webapps\axis2\WEB-INF\lib\wstx-asl-3.2.4.jar
>>>>>>>> The core axis2 libraries are present.
>>>>>>>> Note: Even if everything this page probes for is present, there is
>>>>>>>> no guarantee your Axis Service will work, because there are many
>>>>>>>> configuration options that we do not check for. These tests are necessary
>>>>>>>> but not sufficient
>>>>>>>> Examining Version Service
>>>>>>>> Found Axis2 default Version service and Axis2 is working properly.
>>>>>>>> Now you can drop a service archive in axis2/WEB-INF/services.
>>>>>>>> Following output was produced while invoking Axis2 version service
>>>>>>>> Hello I am Axis2 version service , My version is 1.4.1
>>>>>>>> Examining Application Server
>>>>>>>> Servlet version 2.5
>>>>>>>> Platform Apache Tomcat/6.0.16
>>>>>>>>
>>>>>>>> Examining System Properties
>>>>>>>> java.runtime.name Java(TM) SE Runtime Environment
>>>>>>>>
>>>>>>>> sun.boot.library.path C: \Program Files\Java\jre1.6.0_05\bin
>>>>>>>>
>>>>>>>> java.vm.version 10.0-b19
>>>>>>>>
>>>>>>>> shared.loader
>>>>>>>>
>>>>>>>> java.vm.vendor Sun Microsystems Inc.
>>>>>>>>
>>>>>>>> java.vendor.url http: //java.sun.com/
>>>>>>>>
>>>>>>>> path.separator ;
>>>>>>>>
>>>>>>>> java.vm.name Java HotSpot(TM) Client VM
>>>>>>>>
>>>>>>>> tomcat.util.buf.StringCache.byte.enabled true
>>>>>>>>
>>>>>>>> file.encoding.pkg sun.io
>>>>>>>>
>>>>>>>> java.util.logging.config.file C: \Program Files\Apache Software
>>>>>>>> Foundation\Tomcat 6.0\conf\logging.properties
>>>>>>>>
>>>>>>>> user.country US
>>>>>>>>
>>>>>>>> sun.os.patch.level Service Pack 2
>>>>>>>>
>>>>>>>> java.vm.specification.name Java Virtual Machine Specification
>>>>>>>>
>>>>>>>> user.dir C: \Program Files\Apache Software Foundation\Tomcat 6.0
>>>>>>>>
>>>>>>>> java.runtime.version 1.6.0_05-b13
>>>>>>>>
>>>>>>>> java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
>>>>>>>>
>>>>>>>> java.endorsed.dirs C: \Program Files\Apache Software
>>>>>>>> Foundation\Tomcat 6.0\common\endorsed
>>>>>>>>
>>>>>>>> os.arch x86
>>>>>>>>
>>>>>>>> java.io.tmpdir C: \Program Files\Apache Software Foundation\Tomcat
>>>>>>>> 6.0\temp
>>>>>>>>
>>>>>>>> line.separator
>>>>>>>>
>>>>>>>> java.vm.specification.vendor Sun Microsystems Inc.
>>>>>>>>
>>>>>>>> user.variant
>>>>>>>>
>>>>>>>> java.util.logging.manager org.apache.juli.ClassLoaderLogManager
>>>>>>>>
>>>>>>>> java.naming.factory.url.pkgs org.apache.naming
>>>>>>>>
>>>>>>>> os.name Windows XP
>>>>>>>>
>>>>>>>> sun.jnu.encoding Cp1252
>>>>>>>>
>>>>>>>> java.library.path C: \Program Files\Apache Software
>>>>>>>> Foundation\Tomcat 6.0\bin;.;C: \WINDOWS1\Sun\Java\bin;C:
>>>>>>>> \WINDOWS1\system32;C: \WINDOWS1;D: \Program Files\Java\jdk1.5.0_15\bin;D:
>>>>>>>> \axis\axis2-1.4.1\bin;c: \ruby\bin;C: \Program Files\IBM\WebSphere
>>>>>>>> MQ\Java\lib;C: \OraHome_2\jre\1.4.2\bin\client;C:
>>>>>>>> \OraHome_2\jre\1.4.2\bin;C: \oracle\ora92\bin;C: \WINDOWS1\system32;C:
>>>>>>>> \WINDOWS1;C: \WINDOWS1\System32\Wbem;C: \Program Files\UltraEdit;C: \Program
>>>>>>>> Files\IBM\WebSphere MQ\bin;C: \Program Files\IBM\WebSphere
>>>>>>>> MQ\tools\c\samples\bin;"C: \Program
>>>>>>>> Files\Hummingbird\Connectivity\7.00\Accessories\";C: \Program
>>>>>>>> Files\Subversion\bin;C: \Program Files\Support Tools\;c: \Program
>>>>>>>> Files\Microsoft SQL Server\90\Tools\binn\;C: \Program Files\svnmerge;D:
>>>>>>>> \apache-ant-1.7.0\bin;D: \Sun\SDK\bin;C: \Program
>>>>>>>> Files\QuickTime\QTSystem\;D: \groovy\groovy-1.5.6\bin
>>>>>>>>
>>>>>>>> java.specification.name Java Platform API Specification
>>>>>>>>
>>>>>>>> java.class.version 50.0
>>>>>>>>
>>>>>>>> sun.management.compiler HotSpot Client Compiler
>>>>>>>>
>>>>>>>> os.version 5.1
>>>>>>>>
>>>>>>>> user.home C: \
>>>>>>>>
>>>>>>>> user.timezone America/Los_Angeles
>>>>>>>>
>>>>>>>> catalina.useNaming true
>>>>>>>>
>>>>>>>> java.awt.printerjob sun.awt.windows.WPrinterJob
>>>>>>>>
>>>>>>>> java.specification.version 1.6
>>>>>>>>
>>>>>>>> file.encoding Cp1252
>>>>>>>>
>>>>>>>> catalina.home C: \Program Files\Apache Software Foundation\Tomcat
>>>>>>>> 6.0
>>>>>>>>
>>>>>>>> user.name SYSTEM
>>>>>>>>
>>>>>>>> java.class.path C: \Program Files\Apache Software Foundation\Tomcat
>>>>>>>> 6.0\bin\bootstrap.jar
>>>>>>>>
>>>>>>>> java.naming.factory.initial
>>>>>>>> org.apache.naming.java.javaURLContextFactory
>>>>>>>>
>>>>>>>> package.definition
>>>>>>>> sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
>>>>>>>>
>>>>>>>>
>>>>>>>> java.vm.specification.version 1.0
>>>>>>>>
>>>>>>>> sun.arch.data.model 32
>>>>>>>>
>>>>>>>> java.home C: \Program Files\Java\jre1.6.0_05
>>>>>>>>
>>>>>>>> java.specification.vendor Sun Microsystems Inc.
>>>>>>>>
>>>>>>>> user.language en
>>>>>>>>
>>>>>>>> awt.toolkit sun.awt.windows.WToolkit
>>>>>>>>
>>>>>>>> java.vm.info mixed mode, sharing
>>>>>>>>
>>>>>>>> java.version 1.6.0_05
>>>>>>>>
>>>>>>>> java.ext.dirs C: \Program Files\Java\jre1.6.0_05\lib\ext;C:
>>>>>>>> \WINDOWS1\Sun\Java\lib\ext
>>>>>>>>
>>>>>>>> sun.boot.class.path C: \Program
>>>>>>>> Files\Java\jre1.6.0_05\lib\resources.jar;C: \Program
>>>>>>>> Files\Java\jre1.6.0_05\lib\rt.jar;C: \Program
>>>>>>>> Files\Java\jre1.6.0_05\lib\sunrsasign.jar;C: \Program
>>>>>>>> Files\Java\jre1.6.0_05\lib\jsse.jar;C: \Program
>>>>>>>> Files\Java\jre1.6.0_05\lib\jce.jar;C: \Program
>>>>>>>> Files\Java\jre1.6.0_05\lib\charsets.jar;C: \Program
>>>>>>>> Files\Java\jre1.6.0_05\classes
>>>>>>>>
>>>>>>>> java.vendor Sun Microsystems Inc.
>>>>>>>>
>>>>>>>> server.loader
>>>>>>>>
>>>>>>>> catalina.base C: \Program Files\Apache Software Foundation\Tomcat
>>>>>>>> 6.0
>>>>>>>>
>>>>>>>> file.separator \
>>>>>>>>
>>>>>>>> java.vendor.url.bug http: //java.sun.com/cgi-bin/bugreport.cgi
>>>>>>>>
>>>>>>>> common.loader ${catalina.home}/lib,${catalina.home}/lib/*.jar
>>>>>>>>
>>>>>>>> sun.cpu.endian little
>>>>>>>>
>>>>>>>> sun.io.unicode.encoding UnicodeLittle
>>>>>>>>
>>>>>>>> package.access
>>>>>>>> sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
>>>>>>>>
>>>>>>>>
>>>>>>>> sun.desktop windows
>>>>>>>>
>>>>>>>> sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486
>>>>>>>> i386 i86
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Available services
>>>>>>>> Version
>>>>>>>> Service EPR : http://localhost:8080/axis2/services/Version
>>>>>>>>
>>>>>>>> Service Description : Version
>>>>>>>> Service Status : Active
>>>>>>>> Available Operations
>>>>>>>> getVersion
>>>>>>>> GetOrderService
>>>>>>>> Service EPR : http://localhost:8080/axis2/services/GetOrderService
>>>>>>>>
>>>>>>>> Service Description : GetOrderService
>>>>>>>> Service Status : Active
>>>>>>>> Available Operations
>>>>>>>> GetOrder
>>>>>>>> ActiveService
>>>>>>>> Service EPR : http://localhost:8080/axis2/services/ActiveService
>>>>>>>>
>>>>>>>> Service Description : ActiveService
>>>>>>>> Service Status : Active
>>>>>>>> Available Operations
>>>>>>>> register
>>>>>>>> ClientService
>>>>>>>> Service EPR : http://localhost:8080/axis2/services/ClientService
>>>>>>>>
>>>>>>>> Service Description : ClientService
>>>>>>>> Service Status : Active
>>>>>>>> Available Operations
>>>>>>>> notify
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Keith Chapman
>>>>>> Senior Software Engineer
>>>>>> WSO2 Inc.
>>>>>> Oxygenating the Web Service Platform.
>>>>>> http://wso2.org/
>>>>>>
>>>>>> blog: http://www.keith-chapman.org
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Keith Chapman
>>>> Senior Software Engineer
>>>> WSO2 Inc.
>>>> Oxygenating the Web Service Platform.
>>>> http://wso2.org/
>>>>
>>>> blog: http://www.keith-chapman.org
>>>>
>>>
>>>
>>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>

Re: Out Only MEP and Rest support

Posted by keith chapman <ke...@gmail.com>.
Hi Barry,

Here is sample code for adding a student (using service client)

ServiceClient serviceClient = new ServiceClient();
        Options options = new Options();
        options.setTo(
                new EndpointReference("
http://localhost:8080/axis2/services/StudentService/students"));
        serviceClient.setOptions(options);
        options.setProperty(Constants.Configuration.HTTP_METHOD,
HTTPConstants.HTTP_METHOD_POST);
        OMElement payload = AXIOMUtil.stringToOM("<addStudent xmlns=\"
http://axis2.apache.org
\"><student><age>27</age><name>Keith</name><subjects>Math</subjects></student></addStudent>");
        options.setProperty(Constants.Configuration.MESSAGE_TYPE,
                            HTTPConstants.MEDIA_TYPE_APPLICATION_XML);
        OMElement omElement = serviceClient.sendReceive(payload);
        omElement.serialize(System.out);

The request looks like:

POST /axis2/services/StudentService/students HTTP/1.1
Content-Type: application/xml; charset=UTF-8
SOAPAction: urn:anonOutInOp
User-Agent: Axis2
Host: 127.0.0.1
Transfer-Encoding: chunked

84
<addStudent xmlns="http://axis2.apache.org">
   <student>
      <age>27</age>
      <name>Keith</name>
      <subjects>Math</subjects>
   </student></addStudent>0


while the response is:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Sat, 18 Oct 2008 10:28:34 GMT

ac
<ns:addStudentResponse xmlns:ns="http://axis2.apache.org">
   <ns:return>
http://192.168.1.2:8080/axis2/services/StudentService/student/Keith
</ns:return></ns:addStudentResponse>
0

The request in the case of the example is Application/xml, Axis2 can also
handle application/x-www-form-urlencoded but this would not work in the case
of the example. The reason for that is the schema used to describe the
request message (Will do a detail write up of why this is the case and how
this could be prevented in a couple of days. Will post it here).

Thanks,
Keith.


On Sat, Oct 18, 2008 at 2:55 AM, Barry Alexander
<ba...@gmail.com>wrote:

> OK, I am getting closer.  I looked at the wsdl and fixed the parameter
> 'name' to 'student' and got a response.  But it got added as null.
>
> groovy> import java.net.*;
> groovy> import java.io.*;
> groovy> try {
> groovy>     // Construct data
> groovy>     String data = URLEncoder.encode("student", "UTF-8") + "=" +
> URLEncoder.encode("barry", "UTF-8");
> groovy>     //data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" +
> URLEncoder.encode("value2", "UTF-8");
> groovy>
> groovy>     // Send data
> groovy>     URL url = new URL("
> http://localhost:8080/axis2/services/StudentService/students");
> groovy>     URLConnection conn = url.openConnection();
> groovy>     conn.setDoOutput(true);
> groovy>     OutputStreamWriter wr = new
> OutputStreamWriter(conn.getOutputStream());
> groovy>     wr.write(data);
> groovy>     wr.flush();
> groovy>
> groovy>     // Get the response
> groovy>     BufferedReader rd = new BufferedReader(new
> InputStreamReader(conn.getInputStream()));
> groovy>     String line;
> groovy>      while ((line = rd.readLine()) != null) {
> groovy>         // Process line...
> groovy>         System.out.println(line);
> groovy>     }
> groovy>     wr.close();
> groovy>     rd.close();
> groovy>     } catch (Exception e) {
> groovy> }
>
> <ns:addStudentResponse xmlns:ns="http://axis2.apache.org"><ns:return>
> http://192.168.61.1:8080/axis2/services/StudentService/student/null
> </ns:return></ns:addStudentResponse>
>
>
>
> On Fri, Oct 17, 2008 at 12:39 PM, Barry Alexander <
> barry.alexander@gmail.com> wrote:
>
>> Yes, I understand this is a POST.  So I wrote some groovy code to call the
>> service, but the student object is passed as null to the addStudent method
>> of StudentService.
>>
>> Here is my code:
>>
>> import java.net.*;
>> import java.io.*;
>>
>> try {
>>     // Construct data
>>     String data = URLEncoder.encode("name", "UTF-8") + "=" +
>> URLEncoder.encode("barry", "UTF-8");
>>     //data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" +
>> URLEncoder.encode("value2", "UTF-8");
>>
>>     // Send data
>>     URL url = new URL("
>> http://localhost:8080/axis2/services/StudentService/students");
>>     URLConnection conn = url.openConnection();
>>     conn.setDoOutput(true);
>>     OutputStreamWriter wr = new
>> OutputStreamWriter(conn.getOutputStream());
>>     wr.write(data);
>>     wr.flush();
>>
>>     // Get the response
>>     BufferedReader rd = new BufferedReader(new
>> InputStreamReader(conn.getInputStream()));
>>     String line;
>>      while ((line = rd.readLine()) != null) {
>>         // Process line...
>>         System.out.println(line);
>>     }
>>     wr.close();
>>     rd.close();
>>     } catch (Exception e) {
>> }
>>
>> From Tomcat logs:
>>
>> [ERROR] Exception occurred while trying to invoke service method
>> addStudent
>> java.lang.reflect.InvocationTargetException
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>     at java.lang.reflect.Method.invoke(Unknown Source)
>>     at
>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)
>>     at
>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102)
>>     at
>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>     at
>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
>>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>>     at
>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
>>      at
>> org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:84)
>>     at
>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:818)
>>     at
>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:206)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>     at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>     at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>     at java.lang.Thread.run(Unknown Source)
>> Caused by: java.lang.NullPointerException
>>     at org.apache.axis2.StudentService.addStudent(StudentService.java:39)
>>     ... 27 more
>> [ERROR] Exception occurred while trying to invoke service method
>> addStudent
>> org.apache.axis2.AxisFault: Exception occurred while trying to invoke
>> service method addStudent
>>     at
>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:158)
>>     at
>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>     at
>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
>>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>>     at
>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
>>     at
>> org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:84)
>>     at
>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:818)
>>     at
>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:206)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>     at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>     at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>     at java.lang.Thread.run(Unknown Source)
>> Caused by: java.lang.reflect.InvocationTargetException
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>     at java.lang.reflect.Method.invoke(Unknown Source)
>>     at
>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)
>>     at
>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102)
>>     ... 21 more
>> Caused by: java.lang.NullPointerException
>>     at org.apache.axis2.StudentService.addStudent(StudentService.java:39)
>>     ... 27 more
>>
>>
>> On Thu, Oct 16, 2008 at 7:11 PM, keith chapman <ke...@gmail.com>wrote:
>>
>>> Hi Barry,
>>>
>>> In my example on http://wso2.org/library/3726 in order to add a student
>>> you need to do a HTTP POST to /services/studentService/students
>>> I have not exposed it as a GET hence you wont be able to perform a GET on
>>> it. Hope this makes things clear.
>>>
>>> Thanks,
>>> Keith.
>>>
>>>
>>> On Fri, Oct 17, 2008 at 2:52 AM, Barry Alexander <
>>> barry.alexander@gmail.com> wrote:
>>>
>>>> Hi Keith, I am have implemented the StudentService sample but I am
>>>> having trouble with the addStudent operation.
>>>>
>>>> What should the url look like?  How do I pass in the student name, this
>>>> is what I tried
>>>>
>>>>
>>>> http://localhost:8080/axis2/services/StudentService/addStudent/student/barry
>>>>
>>>> causes:
>>>>
>>>> [ERROR] The endpoint reference (EPR) for the Operation not found is
>>>> /axis2/services/StudentService/addStudent/student/barry and the WSA Action =
>>>> null
>>>> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
>>>> Operation not found is
>>>> /axis2/services/StudentService/addStudent/student/barry and the WSA Action =
>>>> null
>>>>
>>>>
>>>> On Wed, Oct 15, 2008 at 11:03 AM, keith chapman <
>>>> keithgchapman@gmail.com> wrote:
>>>>
>>>>> Perhaps having a look at this article <http://wso2.org/library/3726>[1] would explain to you how REST works in Axis2.
>>>>>
>>>>> Thanks,
>>>>> Keith.
>>>>>
>>>>> [1] http://wso2.org/library/3726
>>>>>
>>>>>
>>>>> On Wed, Oct 15, 2008 at 11:20 PM, Barry Alexander <
>>>>> barry.alexander@gmail.com> wrote:
>>>>>
>>>>>> After send this
>>>>>> http://localhost:8080/axis2/services/ActiveService/register?notifyEpr=http://localhost:8080/axis2/services/ClientServic
>>>>>>
>>>>>> I see this in the tomcat logs:
>>>>>>
>>>>>> [ERROR] The endpoint reference (EPR) for the Operation not found is
>>>>>> /axis2/services/ActiveService/register?notifyEpr=
>>>>>> http://localhost:8080/axis2/services/ClientService and the WSA Action
>>>>>> = null
>>>>>> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
>>>>>> Operation not found is /axis2/services/ActiveService/register?notifyEpr=
>>>>>> http://localhost:8080/axis2/services/ClientService and the WSA Action
>>>>>> = null
>>>>>>     at
>>>>>> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:89)
>>>>>>     at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
>>>>>>     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
>>>>>>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
>>>>>>     at
>>>>>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
>>>>>>     at
>>>>>> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
>>>>>>     at
>>>>>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829)
>>>>>>     at
>>>>>> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255)
>>>>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>>>>     at
>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>>>>     at
>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>>>>     at
>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>>>>     at
>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>>>>     at
>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>>>>     at
>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>>>>     at
>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>>>>     at
>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>>>>     at
>>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>>>>>     at
>>>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>>>>     at
>>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>>>>     at java.lang.Thread.run(Unknown Source)
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Oct 15, 2008 at 10:02 AM, Barry Alexander <
>>>>>> barry.alexander@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Axis2 users,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I am trying the sample application at http://wso2.org/library/406and have a few questions:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 1)      I have built and successfully deployed the two mentioned
>>>>>>> services in the sample referenced above (ActiveService and ClientService),
>>>>>>> when attempting to register with
>>>>>>> http://localhost:8080/axis2/rest/ActiveService?register?notifyEpr=http://localhost:8080/axis2/services/ClientServiceI get "Requested resource not found!"
>>>>>>>
>>>>>>> 2)      I modified the axis2.xml as follows:
>>>>>>>
>>>>>>>     <!--Our HTTP endpoints can handle both REST and SOAP. Following
>>>>>>> parameters can be used to distinguiush those endpoints-->
>>>>>>>
>>>>>>>     <!--In case of a servlet, if you change this you have to manually
>>>>>>> change the settings of your servlet container to map this -->
>>>>>>>
>>>>>>>     <!--context path to proper Axis2 servlets-->
>>>>>>>
>>>>>>>     <!--<parameter name="servicePath">services</parameter>-->
>>>>>>>
>>>>>>>     <parameter name="restPath">rest</parameter>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>            <!-- Following parameter will completely disable REST
>>>>>>> handling in Axis2-->
>>>>>>>
>>>>>>>    <parameter name="disableREST" locked="false">false</parameter>
>>>>>>>
>>>>>>> This seemed to have no effect.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> How do I enable the 'rest' url to register my client service?
>>>>>>>
>>>>>>> Environment details:
>>>>>>>
>>>>>>>
>>>>>>> Axis2 Happiness Page
>>>>>>> Examining webapp configuration
>>>>>>> Essential Components
>>>>>>> Found Apache-Axis (org.apache.axis2.transport.http.AxisServlet)
>>>>>>>   at C:\Program Files\Apache Software Foundation\Tomcat
>>>>>>> 6.0\webapps\axis2\WEB-INF\lib\axis2-kernel-1.4.1.jar
>>>>>>> Found Jakarta-Commons Logging (org.apache.commons.logging.Log)
>>>>>>>   at C:\Program Files\Apache Software Foundation\Tomcat
>>>>>>> 6.0\webapps\axis2\WEB-INF\lib\commons-logging-1.1.1.jar
>>>>>>> Found Streaming API for XML (javax.xml.stream.XMLStreamReader)
>>>>>>>   at an unknown location
>>>>>>> Found Streaming API for XML implementation
>>>>>>> (org.codehaus.stax2.XMLStreamWriter2)
>>>>>>>   at C:\Program Files\Apache Software Foundation\Tomcat
>>>>>>> 6.0\webapps\axis2\WEB-INF\lib\wstx-asl-3.2.4.jar
>>>>>>> The core axis2 libraries are present.
>>>>>>> Note: Even if everything this page probes for is present, there is no
>>>>>>> guarantee your Axis Service will work, because there are many configuration
>>>>>>> options that we do not check for. These tests are necessary but not
>>>>>>> sufficient
>>>>>>> Examining Version Service
>>>>>>> Found Axis2 default Version service and Axis2 is working properly.
>>>>>>> Now you can drop a service archive in axis2/WEB-INF/services.
>>>>>>> Following output was produced while invoking Axis2 version service
>>>>>>> Hello I am Axis2 version service , My version is 1.4.1
>>>>>>> Examining Application Server
>>>>>>> Servlet version 2.5
>>>>>>> Platform Apache Tomcat/6.0.16
>>>>>>>
>>>>>>> Examining System Properties
>>>>>>> java.runtime.name Java(TM) SE Runtime Environment
>>>>>>>
>>>>>>> sun.boot.library.path C: \Program Files\Java\jre1.6.0_05\bin
>>>>>>>
>>>>>>> java.vm.version 10.0-b19
>>>>>>>
>>>>>>> shared.loader
>>>>>>>
>>>>>>> java.vm.vendor Sun Microsystems Inc.
>>>>>>>
>>>>>>> java.vendor.url http: //java.sun.com/
>>>>>>>
>>>>>>> path.separator ;
>>>>>>>
>>>>>>> java.vm.name Java HotSpot(TM) Client VM
>>>>>>>
>>>>>>> tomcat.util.buf.StringCache.byte.enabled true
>>>>>>>
>>>>>>> file.encoding.pkg sun.io
>>>>>>>
>>>>>>> java.util.logging.config.file C: \Program Files\Apache Software
>>>>>>> Foundation\Tomcat 6.0\conf\logging.properties
>>>>>>>
>>>>>>> user.country US
>>>>>>>
>>>>>>> sun.os.patch.level Service Pack 2
>>>>>>>
>>>>>>> java.vm.specification.name Java Virtual Machine Specification
>>>>>>>
>>>>>>> user.dir C: \Program Files\Apache Software Foundation\Tomcat 6.0
>>>>>>>
>>>>>>> java.runtime.version 1.6.0_05-b13
>>>>>>>
>>>>>>> java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
>>>>>>>
>>>>>>> java.endorsed.dirs C: \Program Files\Apache Software
>>>>>>> Foundation\Tomcat 6.0\common\endorsed
>>>>>>>
>>>>>>> os.arch x86
>>>>>>>
>>>>>>> java.io.tmpdir C: \Program Files\Apache Software Foundation\Tomcat
>>>>>>> 6.0\temp
>>>>>>>
>>>>>>> line.separator
>>>>>>>
>>>>>>> java.vm.specification.vendor Sun Microsystems Inc.
>>>>>>>
>>>>>>> user.variant
>>>>>>>
>>>>>>> java.util.logging.manager org.apache.juli.ClassLoaderLogManager
>>>>>>>
>>>>>>> java.naming.factory.url.pkgs org.apache.naming
>>>>>>>
>>>>>>> os.name Windows XP
>>>>>>>
>>>>>>> sun.jnu.encoding Cp1252
>>>>>>>
>>>>>>> java.library.path C: \Program Files\Apache Software Foundation\Tomcat
>>>>>>> 6.0\bin;.;C: \WINDOWS1\Sun\Java\bin;C: \WINDOWS1\system32;C: \WINDOWS1;D:
>>>>>>> \Program Files\Java\jdk1.5.0_15\bin;D: \axis\axis2-1.4.1\bin;c: \ruby\bin;C:
>>>>>>> \Program Files\IBM\WebSphere MQ\Java\lib;C:
>>>>>>> \OraHome_2\jre\1.4.2\bin\client;C: \OraHome_2\jre\1.4.2\bin;C:
>>>>>>> \oracle\ora92\bin;C: \WINDOWS1\system32;C: \WINDOWS1;C:
>>>>>>> \WINDOWS1\System32\Wbem;C: \Program Files\UltraEdit;C: \Program
>>>>>>> Files\IBM\WebSphere MQ\bin;C: \Program Files\IBM\WebSphere
>>>>>>> MQ\tools\c\samples\bin;"C: \Program
>>>>>>> Files\Hummingbird\Connectivity\7.00\Accessories\";C: \Program
>>>>>>> Files\Subversion\bin;C: \Program Files\Support Tools\;c: \Program
>>>>>>> Files\Microsoft SQL Server\90\Tools\binn\;C: \Program Files\svnmerge;D:
>>>>>>> \apache-ant-1.7.0\bin;D: \Sun\SDK\bin;C: \Program
>>>>>>> Files\QuickTime\QTSystem\;D: \groovy\groovy-1.5.6\bin
>>>>>>>
>>>>>>> java.specification.name Java Platform API Specification
>>>>>>>
>>>>>>> java.class.version 50.0
>>>>>>>
>>>>>>> sun.management.compiler HotSpot Client Compiler
>>>>>>>
>>>>>>> os.version 5.1
>>>>>>>
>>>>>>> user.home C: \
>>>>>>>
>>>>>>> user.timezone America/Los_Angeles
>>>>>>>
>>>>>>> catalina.useNaming true
>>>>>>>
>>>>>>> java.awt.printerjob sun.awt.windows.WPrinterJob
>>>>>>>
>>>>>>> java.specification.version 1.6
>>>>>>>
>>>>>>> file.encoding Cp1252
>>>>>>>
>>>>>>> catalina.home C: \Program Files\Apache Software Foundation\Tomcat
>>>>>>> 6.0
>>>>>>>
>>>>>>> user.name SYSTEM
>>>>>>>
>>>>>>> java.class.path C: \Program Files\Apache Software Foundation\Tomcat
>>>>>>> 6.0\bin\bootstrap.jar
>>>>>>>
>>>>>>> java.naming.factory.initial
>>>>>>> org.apache.naming.java.javaURLContextFactory
>>>>>>>
>>>>>>> package.definition
>>>>>>> sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
>>>>>>>
>>>>>>>
>>>>>>> java.vm.specification.version 1.0
>>>>>>>
>>>>>>> sun.arch.data.model 32
>>>>>>>
>>>>>>> java.home C: \Program Files\Java\jre1.6.0_05
>>>>>>>
>>>>>>> java.specification.vendor Sun Microsystems Inc.
>>>>>>>
>>>>>>> user.language en
>>>>>>>
>>>>>>> awt.toolkit sun.awt.windows.WToolkit
>>>>>>>
>>>>>>> java.vm.info mixed mode, sharing
>>>>>>>
>>>>>>> java.version 1.6.0_05
>>>>>>>
>>>>>>> java.ext.dirs C: \Program Files\Java\jre1.6.0_05\lib\ext;C:
>>>>>>> \WINDOWS1\Sun\Java\lib\ext
>>>>>>>
>>>>>>> sun.boot.class.path C: \Program
>>>>>>> Files\Java\jre1.6.0_05\lib\resources.jar;C: \Program
>>>>>>> Files\Java\jre1.6.0_05\lib\rt.jar;C: \Program
>>>>>>> Files\Java\jre1.6.0_05\lib\sunrsasign.jar;C: \Program
>>>>>>> Files\Java\jre1.6.0_05\lib\jsse.jar;C: \Program
>>>>>>> Files\Java\jre1.6.0_05\lib\jce.jar;C: \Program
>>>>>>> Files\Java\jre1.6.0_05\lib\charsets.jar;C: \Program
>>>>>>> Files\Java\jre1.6.0_05\classes
>>>>>>>
>>>>>>> java.vendor Sun Microsystems Inc.
>>>>>>>
>>>>>>> server.loader
>>>>>>>
>>>>>>> catalina.base C: \Program Files\Apache Software Foundation\Tomcat
>>>>>>> 6.0
>>>>>>>
>>>>>>> file.separator \
>>>>>>>
>>>>>>> java.vendor.url.bug http: //java.sun.com/cgi-bin/bugreport.cgi
>>>>>>>
>>>>>>> common.loader ${catalina.home}/lib,${catalina.home}/lib/*.jar
>>>>>>>
>>>>>>> sun.cpu.endian little
>>>>>>>
>>>>>>> sun.io.unicode.encoding UnicodeLittle
>>>>>>>
>>>>>>> package.access
>>>>>>> sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
>>>>>>>
>>>>>>>
>>>>>>> sun.desktop windows
>>>>>>>
>>>>>>> sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486
>>>>>>> i386 i86
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Available services
>>>>>>> Version
>>>>>>> Service EPR : http://localhost:8080/axis2/services/Version
>>>>>>>
>>>>>>> Service Description : Version
>>>>>>> Service Status : Active
>>>>>>> Available Operations
>>>>>>> getVersion
>>>>>>> GetOrderService
>>>>>>> Service EPR : http://localhost:8080/axis2/services/GetOrderService
>>>>>>>
>>>>>>> Service Description : GetOrderService
>>>>>>> Service Status : Active
>>>>>>> Available Operations
>>>>>>> GetOrder
>>>>>>> ActiveService
>>>>>>> Service EPR : http://localhost:8080/axis2/services/ActiveService
>>>>>>>
>>>>>>> Service Description : ActiveService
>>>>>>> Service Status : Active
>>>>>>> Available Operations
>>>>>>> register
>>>>>>> ClientService
>>>>>>> Service EPR : http://localhost:8080/axis2/services/ClientService
>>>>>>>
>>>>>>> Service Description : ClientService
>>>>>>> Service Status : Active
>>>>>>> Available Operations
>>>>>>> notify
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Keith Chapman
>>>>> Senior Software Engineer
>>>>> WSO2 Inc.
>>>>> Oxygenating the Web Service Platform.
>>>>> http://wso2.org/
>>>>>
>>>>> blog: http://www.keith-chapman.org
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Keith Chapman
>>> Senior Software Engineer
>>> WSO2 Inc.
>>> Oxygenating the Web Service Platform.
>>> http://wso2.org/
>>>
>>> blog: http://www.keith-chapman.org
>>>
>>
>>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: Out Only MEP and Rest support

Posted by keith chapman <ke...@gmail.com>.
Perhaps having a look at this article <http://wso2.org/library/3726> [1]
would explain to you how REST works in Axis2.

Thanks,
Keith.

[1] http://wso2.org/library/3726

On Wed, Oct 15, 2008 at 11:20 PM, Barry Alexander <barry.alexander@gmail.com
> wrote:

> After send this
> http://localhost:8080/axis2/services/ActiveService/register?notifyEpr=http://localhost:8080/axis2/services/ClientServic
>
> I see this in the tomcat logs:
>
> [ERROR] The endpoint reference (EPR) for the Operation not found is
> /axis2/services/ActiveService/register?notifyEpr=
> http://localhost:8080/axis2/services/ClientService and the WSA Action =
> null
> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
> not found is /axis2/services/ActiveService/register?notifyEpr=
> http://localhost:8080/axis2/services/ClientService and the WSA Action =
> null
>     at
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:89)
>     at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
>     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
>     at
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
>     at
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
>     at
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829)
>     at
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>     at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>     at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>     at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>     at java.lang.Thread.run(Unknown Source)
>
>
>
> On Wed, Oct 15, 2008 at 10:02 AM, Barry Alexander <
> barry.alexander@gmail.com> wrote:
>
>> Hi Axis2 users,
>>
>>
>>
>> I am trying the sample application at http://wso2.org/library/406 and
>> have a few questions:
>>
>>
>>
>> 1)      I have built and successfully deployed the two mentioned services
>> in the sample referenced above (ActiveService and ClientService), when
>> attempting to register with
>> http://localhost:8080/axis2/rest/ActiveService?register?notifyEpr=http://localhost:8080/axis2/services/ClientServiceI get "Requested resource not found!"
>>
>> 2)      I modified the axis2.xml as follows:
>>
>>     <!--Our HTTP endpoints can handle both REST and SOAP. Following
>> parameters can be used to distinguiush those endpoints-->
>>
>>     <!--In case of a servlet, if you change this you have to manually
>> change the settings of your servlet container to map this -->
>>
>>     <!--context path to proper Axis2 servlets-->
>>
>>     <!--<parameter name="servicePath">services</parameter>-->
>>
>>     <parameter name="restPath">rest</parameter>
>>
>>
>>
>>            <!-- Following parameter will completely disable REST handling
>> in Axis2-->
>>
>>    <parameter name="disableREST" locked="false">false</parameter>
>>
>> This seemed to have no effect.
>>
>>
>>
>> How do I enable the 'rest' url to register my client service?
>>
>> Environment details:
>>
>>
>> Axis2 Happiness Page
>> Examining webapp configuration
>> Essential Components
>> Found Apache-Axis (org.apache.axis2.transport.http.AxisServlet)
>>   at C:\Program Files\Apache Software Foundation\Tomcat
>> 6.0\webapps\axis2\WEB-INF\lib\axis2-kernel-1.4.1.jar
>> Found Jakarta-Commons Logging (org.apache.commons.logging.Log)
>>   at C:\Program Files\Apache Software Foundation\Tomcat
>> 6.0\webapps\axis2\WEB-INF\lib\commons-logging-1.1.1.jar
>> Found Streaming API for XML (javax.xml.stream.XMLStreamReader)
>>   at an unknown location
>> Found Streaming API for XML implementation
>> (org.codehaus.stax2.XMLStreamWriter2)
>>   at C:\Program Files\Apache Software Foundation\Tomcat
>> 6.0\webapps\axis2\WEB-INF\lib\wstx-asl-3.2.4.jar
>> The core axis2 libraries are present.
>> Note: Even if everything this page probes for is present, there is no
>> guarantee your Axis Service will work, because there are many configuration
>> options that we do not check for. These tests are necessary but not
>> sufficient
>> Examining Version Service
>> Found Axis2 default Version service and Axis2 is working properly.
>> Now you can drop a service archive in axis2/WEB-INF/services. Following
>> output was produced while invoking Axis2 version service
>> Hello I am Axis2 version service , My version is 1.4.1
>> Examining Application Server
>> Servlet version 2.5
>> Platform Apache Tomcat/6.0.16
>>
>> Examining System Properties
>> java.runtime.name Java(TM) SE Runtime Environment
>>
>> sun.boot.library.path C: \Program Files\Java\jre1.6.0_05\bin
>>
>> java.vm.version 10.0-b19
>>
>> shared.loader
>>
>> java.vm.vendor Sun Microsystems Inc.
>>
>> java.vendor.url http: //java.sun.com/
>>
>> path.separator ;
>>
>> java.vm.name Java HotSpot(TM) Client VM
>>
>> tomcat.util.buf.StringCache.byte.enabled true
>>
>> file.encoding.pkg sun.io
>>
>> java.util.logging.config.file C: \Program Files\Apache Software
>> Foundation\Tomcat 6.0\conf\logging.properties
>>
>> user.country US
>>
>> sun.os.patch.level Service Pack 2
>>
>> java.vm.specification.name Java Virtual Machine Specification
>>
>> user.dir C: \Program Files\Apache Software Foundation\Tomcat 6.0
>>
>> java.runtime.version 1.6.0_05-b13
>>
>> java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
>>
>> java.endorsed.dirs C: \Program Files\Apache Software Foundation\Tomcat
>> 6.0\common\endorsed
>>
>> os.arch x86
>>
>> java.io.tmpdir C: \Program Files\Apache Software Foundation\Tomcat
>> 6.0\temp
>>
>> line.separator
>>
>> java.vm.specification.vendor Sun Microsystems Inc.
>>
>> user.variant
>>
>> java.util.logging.manager org.apache.juli.ClassLoaderLogManager
>>
>> java.naming.factory.url.pkgs org.apache.naming
>>
>> os.name Windows XP
>>
>> sun.jnu.encoding Cp1252
>>
>> java.library.path C: \Program Files\Apache Software Foundation\Tomcat
>> 6.0\bin;.;C: \WINDOWS1\Sun\Java\bin;C: \WINDOWS1\system32;C: \WINDOWS1;D:
>> \Program Files\Java\jdk1.5.0_15\bin;D: \axis\axis2-1.4.1\bin;c: \ruby\bin;C:
>> \Program Files\IBM\WebSphere MQ\Java\lib;C:
>> \OraHome_2\jre\1.4.2\bin\client;C: \OraHome_2\jre\1.4.2\bin;C:
>> \oracle\ora92\bin;C: \WINDOWS1\system32;C: \WINDOWS1;C:
>> \WINDOWS1\System32\Wbem;C: \Program Files\UltraEdit;C: \Program
>> Files\IBM\WebSphere MQ\bin;C: \Program Files\IBM\WebSphere
>> MQ\tools\c\samples\bin;"C: \Program
>> Files\Hummingbird\Connectivity\7.00\Accessories\";C: \Program
>> Files\Subversion\bin;C: \Program Files\Support Tools\;c: \Program
>> Files\Microsoft SQL Server\90\Tools\binn\;C: \Program Files\svnmerge;D:
>> \apache-ant-1.7.0\bin;D: \Sun\SDK\bin;C: \Program
>> Files\QuickTime\QTSystem\;D: \groovy\groovy-1.5.6\bin
>>
>> java.specification.name Java Platform API Specification
>>
>> java.class.version 50.0
>>
>> sun.management.compiler HotSpot Client Compiler
>>
>> os.version 5.1
>>
>> user.home C: \
>>
>> user.timezone America/Los_Angeles
>>
>> catalina.useNaming true
>>
>> java.awt.printerjob sun.awt.windows.WPrinterJob
>>
>> java.specification.version 1.6
>>
>> file.encoding Cp1252
>>
>> catalina.home C: \Program Files\Apache Software Foundation\Tomcat 6.0
>>
>> user.name SYSTEM
>>
>> java.class.path C: \Program Files\Apache Software Foundation\Tomcat
>> 6.0\bin\bootstrap.jar
>>
>> java.naming.factory.initial org.apache.naming.java.javaURLContextFactory
>>
>> package.definition
>> sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
>>
>>
>> java.vm.specification.version 1.0
>>
>> sun.arch.data.model 32
>>
>> java.home C: \Program Files\Java\jre1.6.0_05
>>
>> java.specification.vendor Sun Microsystems Inc.
>>
>> user.language en
>>
>> awt.toolkit sun.awt.windows.WToolkit
>>
>> java.vm.info mixed mode, sharing
>>
>> java.version 1.6.0_05
>>
>> java.ext.dirs C: \Program Files\Java\jre1.6.0_05\lib\ext;C:
>> \WINDOWS1\Sun\Java\lib\ext
>>
>> sun.boot.class.path C: \Program
>> Files\Java\jre1.6.0_05\lib\resources.jar;C: \Program
>> Files\Java\jre1.6.0_05\lib\rt.jar;C: \Program
>> Files\Java\jre1.6.0_05\lib\sunrsasign.jar;C: \Program
>> Files\Java\jre1.6.0_05\lib\jsse.jar;C: \Program
>> Files\Java\jre1.6.0_05\lib\jce.jar;C: \Program
>> Files\Java\jre1.6.0_05\lib\charsets.jar;C: \Program
>> Files\Java\jre1.6.0_05\classes
>>
>> java.vendor Sun Microsystems Inc.
>>
>> server.loader
>>
>> catalina.base C: \Program Files\Apache Software Foundation\Tomcat 6.0
>>
>> file.separator \
>>
>> java.vendor.url.bug http: //java.sun.com/cgi-bin/bugreport.cgi
>>
>> common.loader ${catalina.home}/lib,${catalina.home}/lib/*.jar
>>
>> sun.cpu.endian little
>>
>> sun.io.unicode.encoding UnicodeLittle
>>
>> package.access
>> sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
>>
>>
>> sun.desktop windows
>>
>> sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386
>> i86
>>
>>
>>
>>
>> Available services
>> Version
>> Service EPR : http://localhost:8080/axis2/services/Version
>>
>> Service Description : Version
>> Service Status : Active
>> Available Operations
>> getVersion
>> GetOrderService
>> Service EPR : http://localhost:8080/axis2/services/GetOrderService
>>
>> Service Description : GetOrderService
>> Service Status : Active
>> Available Operations
>> GetOrder
>> ActiveService
>> Service EPR : http://localhost:8080/axis2/services/ActiveService
>>
>> Service Description : ActiveService
>> Service Status : Active
>> Available Operations
>> register
>> ClientService
>> Service EPR : http://localhost:8080/axis2/services/ClientService
>>
>> Service Description : ClientService
>> Service Status : Active
>> Available Operations
>> notify
>>
>>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: Out Only MEP and Rest support

Posted by Barry Alexander <ba...@gmail.com>.
After send this
http://localhost:8080/axis2/services/ActiveService/register?notifyEpr=http://localhost:8080/axis2/services/ClientServic

I see this in the tomcat logs:

[ERROR] The endpoint reference (EPR) for the Operation not found is
/axis2/services/ActiveService/register?notifyEpr=
http://localhost:8080/axis2/services/ClientService and the WSA Action = null
org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
not found is /axis2/services/ActiveService/register?notifyEpr=
http://localhost:8080/axis2/services/ClientService and the WSA Action = null
    at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:89)
    at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
    at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
    at
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
    at
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
    at
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829)
    at
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Unknown Source)


On Wed, Oct 15, 2008 at 10:02 AM, Barry Alexander <barry.alexander@gmail.com
> wrote:

> Hi Axis2 users,
>
>
>
> I am trying the sample application at http://wso2.org/library/406 and have
> a few questions:
>
>
>
> 1)      I have built and successfully deployed the two mentioned services
> in the sample referenced above (ActiveService and ClientService), when
> attempting to register with
> http://localhost:8080/axis2/rest/ActiveService?register?notifyEpr=http://localhost:8080/axis2/services/ClientServiceI get "Requested resource not found!"
>
> 2)      I modified the axis2.xml as follows:
>
>     <!--Our HTTP endpoints can handle both REST and SOAP. Following
> parameters can be used to distinguiush those endpoints-->
>
>     <!--In case of a servlet, if you change this you have to manually
> change the settings of your servlet container to map this -->
>
>     <!--context path to proper Axis2 servlets-->
>
>     <!--<parameter name="servicePath">services</parameter>-->
>
>     <parameter name="restPath">rest</parameter>
>
>
>
>            <!-- Following parameter will completely disable REST handling
> in Axis2-->
>
>    <parameter name="disableREST" locked="false">false</parameter>
>
> This seemed to have no effect.
>
>
>
> How do I enable the 'rest' url to register my client service?
>
> Environment details:
>
>
> Axis2 Happiness Page
> Examining webapp configuration
> Essential Components
> Found Apache-Axis (org.apache.axis2.transport.http.AxisServlet)
>   at C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\axis2\WEB-INF\lib\axis2-kernel-1.4.1.jar
> Found Jakarta-Commons Logging (org.apache.commons.logging.Log)
>   at C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\axis2\WEB-INF\lib\commons-logging-1.1.1.jar
> Found Streaming API for XML (javax.xml.stream.XMLStreamReader)
>   at an unknown location
> Found Streaming API for XML implementation
> (org.codehaus.stax2.XMLStreamWriter2)
>   at C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\axis2\WEB-INF\lib\wstx-asl-3.2.4.jar
> The core axis2 libraries are present.
> Note: Even if everything this page probes for is present, there is no
> guarantee your Axis Service will work, because there are many configuration
> options that we do not check for. These tests are necessary but not
> sufficient
> Examining Version Service
> Found Axis2 default Version service and Axis2 is working properly.
> Now you can drop a service archive in axis2/WEB-INF/services. Following
> output was produced while invoking Axis2 version service
> Hello I am Axis2 version service , My version is 1.4.1
> Examining Application Server
> Servlet version 2.5
> Platform Apache Tomcat/6.0.16
>
> Examining System Properties
> java.runtime.name Java(TM) SE Runtime Environment
>
> sun.boot.library.path C: \Program Files\Java\jre1.6.0_05\bin
>
> java.vm.version 10.0-b19
>
> shared.loader
>
> java.vm.vendor Sun Microsystems Inc.
>
> java.vendor.url http: //java.sun.com/
>
> path.separator ;
>
> java.vm.name Java HotSpot(TM) Client VM
>
> tomcat.util.buf.StringCache.byte.enabled true
>
> file.encoding.pkg sun.io
>
> java.util.logging.config.file C: \Program Files\Apache Software
> Foundation\Tomcat 6.0\conf\logging.properties
>
> user.country US
>
> sun.os.patch.level Service Pack 2
>
> java.vm.specification.name Java Virtual Machine Specification
>
> user.dir C: \Program Files\Apache Software Foundation\Tomcat 6.0
>
> java.runtime.version 1.6.0_05-b13
>
> java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
>
> java.endorsed.dirs C: \Program Files\Apache Software Foundation\Tomcat
> 6.0\common\endorsed
>
> os.arch x86
>
> java.io.tmpdir C: \Program Files\Apache Software Foundation\Tomcat
> 6.0\temp
>
> line.separator
>
> java.vm.specification.vendor Sun Microsystems Inc.
>
> user.variant
>
> java.util.logging.manager org.apache.juli.ClassLoaderLogManager
>
> java.naming.factory.url.pkgs org.apache.naming
>
> os.name Windows XP
>
> sun.jnu.encoding Cp1252
>
> java.library.path C: \Program Files\Apache Software Foundation\Tomcat
> 6.0\bin;.;C: \WINDOWS1\Sun\Java\bin;C: \WINDOWS1\system32;C: \WINDOWS1;D:
> \Program Files\Java\jdk1.5.0_15\bin;D: \axis\axis2-1.4.1\bin;c: \ruby\bin;C:
> \Program Files\IBM\WebSphere MQ\Java\lib;C:
> \OraHome_2\jre\1.4.2\bin\client;C: \OraHome_2\jre\1.4.2\bin;C:
> \oracle\ora92\bin;C: \WINDOWS1\system32;C: \WINDOWS1;C:
> \WINDOWS1\System32\Wbem;C: \Program Files\UltraEdit;C: \Program
> Files\IBM\WebSphere MQ\bin;C: \Program Files\IBM\WebSphere
> MQ\tools\c\samples\bin;"C: \Program
> Files\Hummingbird\Connectivity\7.00\Accessories\";C: \Program
> Files\Subversion\bin;C: \Program Files\Support Tools\;c: \Program
> Files\Microsoft SQL Server\90\Tools\binn\;C: \Program Files\svnmerge;D:
> \apache-ant-1.7.0\bin;D: \Sun\SDK\bin;C: \Program
> Files\QuickTime\QTSystem\;D: \groovy\groovy-1.5.6\bin
>
> java.specification.name Java Platform API Specification
>
> java.class.version 50.0
>
> sun.management.compiler HotSpot Client Compiler
>
> os.version 5.1
>
> user.home C: \
>
> user.timezone America/Los_Angeles
>
> catalina.useNaming true
>
> java.awt.printerjob sun.awt.windows.WPrinterJob
>
> java.specification.version 1.6
>
> file.encoding Cp1252
>
> catalina.home C: \Program Files\Apache Software Foundation\Tomcat 6.0
>
> user.name SYSTEM
>
> java.class.path C: \Program Files\Apache Software Foundation\Tomcat
> 6.0\bin\bootstrap.jar
>
> java.naming.factory.initial org.apache.naming.java.javaURLContextFactory
>
> package.definition
> sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
>
>
> java.vm.specification.version 1.0
>
> sun.arch.data.model 32
>
> java.home C: \Program Files\Java\jre1.6.0_05
>
> java.specification.vendor Sun Microsystems Inc.
>
> user.language en
>
> awt.toolkit sun.awt.windows.WToolkit
>
> java.vm.info mixed mode, sharing
>
> java.version 1.6.0_05
>
> java.ext.dirs C: \Program Files\Java\jre1.6.0_05\lib\ext;C:
> \WINDOWS1\Sun\Java\lib\ext
>
> sun.boot.class.path C: \Program Files\Java\jre1.6.0_05\lib\resources.jar;C:
> \Program Files\Java\jre1.6.0_05\lib\rt.jar;C: \Program
> Files\Java\jre1.6.0_05\lib\sunrsasign.jar;C: \Program
> Files\Java\jre1.6.0_05\lib\jsse.jar;C: \Program
> Files\Java\jre1.6.0_05\lib\jce.jar;C: \Program
> Files\Java\jre1.6.0_05\lib\charsets.jar;C: \Program
> Files\Java\jre1.6.0_05\classes
>
> java.vendor Sun Microsystems Inc.
>
> server.loader
>
> catalina.base C: \Program Files\Apache Software Foundation\Tomcat 6.0
>
> file.separator \
>
> java.vendor.url.bug http: //java.sun.com/cgi-bin/bugreport.cgi
>
> common.loader ${catalina.home}/lib,${catalina.home}/lib/*.jar
>
> sun.cpu.endian little
>
> sun.io.unicode.encoding UnicodeLittle
>
> package.access
> sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
>
>
> sun.desktop windows
>
> sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386
> i86
>
>
>
>
> Available services
> Version
> Service EPR : http://localhost:8080/axis2/services/Version
>
> Service Description : Version
> Service Status : Active
> Available Operations
> getVersion
> GetOrderService
> Service EPR : http://localhost:8080/axis2/services/GetOrderService
>
> Service Description : GetOrderService
> Service Status : Active
> Available Operations
> GetOrder
> ActiveService
> Service EPR : http://localhost:8080/axis2/services/ActiveService
>
> Service Description : ActiveService
> Service Status : Active
> Available Operations
> register
> ClientService
> Service EPR : http://localhost:8080/axis2/services/ClientService
>
> Service Description : ClientService
> Service Status : Active
> Available Operations
> notify
>
>