[ 
http://issues.apache.org/jira/browse/AXIS2-1283?page=comments#action_12439760 ] 
            
Xia Zhao commented on AXIS2-1283:
---------------------------------

Thanks Eran. I got them working now.

Xia

> org.apache.axis2.AxisFault: Operation not found
> -----------------------------------------------
>
>                 Key: AXIS2-1283
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1283
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: nightly builds 02-Oct, Tomcat 5.5.17, Java1.5, Windows 
> XP Professional
>            Reporter: Xia Zhao
>         Assigned To: Eran Chinthaka
>            Priority: Critical
>             Fix For: 1.1
>
>         Attachments: Analysis.xml, Axis2-1283.zip
>
>
> Hi, 
> I managed to build my service using nightly builds. This time I just builds 
> an even simple service which read input job status and tell new status. And I 
> got new problems. Can anyone help please? Thanks a lot.
> As before, I will list my developing sequence and attach related files:
> 1. Develop java class. There are two classes:
> package myExample;
> public class Analysis {
>       public Job traceJob(Job job){
>               job.setStatus("received");
>               return job;
>       }
> }
> package myExample;
> public class Job {
>       private String status;
>       public void setStatus(String status) {
>               this.status = status;
>       }
>       public String getStatus() {
>               return status;
>       }
> }
> 2. Create services.xml 
> <service>
>       <parameter name="ServiceClass" 
>           locked="false">myExample.Analysis</parameter>
>       <operation name="traceJob">
>               <messageReceiver 
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>       </operation>    
> </service>
> 3. Create Analysis.aar
> 4. Deploy Analysis.aar on the tomcat server.
> 5. Get WSDL file from: http://localhost:8080/axis2/services/Analysis?wsdl 
> (see attcahment Analysis.xml)
> The soap address in the generated wsdl file is 
> http://192.168.225.1:8080/axis2/services/Analysis, but not on 
> http://localhost:8080...
> I don't know whether it is correct or not.
> 6. Create client classes. There are two classes generated: 
> org.apache.ws.axis2.AnalysisCallBackHandler and 
> org.apache.ws.axis2.AnalysisStub
> 7. Create a test class:
> package org.apache.ws.axis2;
> public class Test {
>       /**
>        * @param args
>        */
>       public static void main(String[] args) throws Exception{
>               // TODO Auto-generated method stub
>               AnalysisStub as = new AnalysisStub();
>               AnalysisStub.TraceJob tj = new AnalysisStub.TraceJob();
>               AnalysisStub.Job j = new AnalysisStub.Job();
>               j.setStatus("request");
>               tj.setJob(j);
>               AnalysisCallbackHandler callback = new 
> AnalysisCallbackHandler(null){
>                       public void receiveResulttraceJob(
>                     org.apache.ws.axis2.AnalysisStub.TraceJobResponse param1) 
> {
>                               
> System.out.println(param1.get_return().getStatus());
>            }
>                   public void receiveErrortraceJob(java.lang.Exception e) {
>                       e.printStackTrace();
>             }
>               };
>               as.starttraceJob(tj, callback);
>               Thread.sleep(1000);
>       }
> }
> Then I got the error trace on server. 
> org.apache.axis2.AxisFault: Operation Not found EPR is 
> /axis2/axis2/services/Analysis and WSA Action =  null; nested exception is: 
>       org.apache.axis2.AxisFault: Operation Not found EPR is 
> /axis2/axis2/services/Analysis and WSA Action =  null;
> Can someone tell where is the problem? Thanks a lot.
> Xia

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to