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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> To: [email protected]
> 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 <[EMAIL PROTECTED]>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 <
> [EMAIL PROTECTED]> 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 <
> [EMAIL PROTECTED]> 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>
>

Reply via email to