[jira] Created: (AXIS2-1268) Unexpected subelement - problem of correctly invoking services

2006-09-29 Thread Xia Zhao (JIRA)
Unexpected subelement - problem of correctly invoking services
--

 Key: AXIS2-1268
 URL: http://issues.apache.org/jira/browse/AXIS2-1268
 Project: Apache Axis 2.0 (Axis2)
  Issue Type: Task
Affects Versions: 1.0
 Environment: Java and WSDL files are created using code generator 
Eclipse plugin under Eclipse 3.1. The archive file is created using service 
archive generator Eclipse plugin 3.1 as well. Web Server: Tomcat 5.5.17. 
Operation System: Windows XP professional 
Reporter: Xia Zhao


I was working with Axis1.4 before and just started to look at Axis2 as my 
project requesting asynchronous web services. I built a simple asynchronous web 
service then try to build a client to invoke the service, however, I got the 
error of Unexpected subelement. Axis2 is deployed under Tomcat 5.5.17 and WSDL 
was generated by code generator Eclipse plugin. I would like to know how to 
correctly invoke this services. Or maybe there are some errors in the WSDL 
file. Please give some hints.

-- 
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]



[jira] Updated: (AXIS2-1268) Unexpected subelement - problem of correctly invoking services

2006-09-29 Thread Xia Zhao (JIRA)
 [ http://issues.apache.org/jira/browse/AXIS2-1268?page=all ]

Xia Zhao updated AXIS2-1268:


Attachment: AnalysisMethod1.xml

WSDL file

> Unexpected subelement - problem of correctly invoking services
> --
>
> Key: AXIS2-1268
> URL: http://issues.apache.org/jira/browse/AXIS2-1268
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Task
>Affects Versions: 1.0
> Environment: Java and WSDL files are created using code generator 
> Eclipse plugin under Eclipse 3.1. The archive file is created using service 
> archive generator Eclipse plugin 3.1 as well. Web Server: Tomcat 5.5.17. 
> Operation System: Windows XP professional 
>Reporter: Xia Zhao
> Attachments: AnalysisMethod1.xml
>
>
> I was working with Axis1.4 before and just started to look at Axis2 as my 
> project requesting asynchronous web services. I built a simple asynchronous 
> web service then try to build a client to invoke the service, however, I got 
> the error of Unexpected subelement. Axis2 is deployed under Tomcat 5.5.17 and 
> WSDL was generated by code generator Eclipse plugin. I would like to know how 
> to correctly invoke this services. Or maybe there are some errors in the WSDL 
> file. Please give some hints.

-- 
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]



[jira] Updated: (AXIS2-1268) Unexpected subelement - problem of correctly invoking services

2006-09-29 Thread Xia Zhao (JIRA)
 [ http://issues.apache.org/jira/browse/AXIS2-1268?page=all ]

Xia Zhao updated AXIS2-1268:


Attachment: Invoking & error.rtf

This file contains the invoking class and error information

> Unexpected subelement - problem of correctly invoking services
> --
>
> Key: AXIS2-1268
> URL: http://issues.apache.org/jira/browse/AXIS2-1268
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Task
>Affects Versions: 1.0
> Environment: Java and WSDL files are created using code generator 
> Eclipse plugin under Eclipse 3.1. The archive file is created using service 
> archive generator Eclipse plugin 3.1 as well. Web Server: Tomcat 5.5.17. 
> Operation System: Windows XP professional 
>Reporter: Xia Zhao
> Attachments: AnalysisMethod1.xml, Invoking & error.rtf
>
>
> I was working with Axis1.4 before and just started to look at Axis2 as my 
> project requesting asynchronous web services. I built a simple asynchronous 
> web service then try to build a client to invoke the service, however, I got 
> the error of Unexpected subelement. Axis2 is deployed under Tomcat 5.5.17 and 
> WSDL was generated by code generator Eclipse plugin. I would like to know how 
> to correctly invoke this services. Or maybe there are some errors in the WSDL 
> file. Please give some hints.

-- 
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]



[jira] Commented: (AXIS2-1268) Unexpected subelement - problem of correctly invoking services

2006-10-02 Thread Xia Zhao (JIRA)
[ 
http://issues.apache.org/jira/browse/AXIS2-1268?page=comments#action_12439062 ] 

Xia Zhao commented on AXIS2-1268:
-

Thanks for your reply, dims.
I provide the way I create my services and attached related files. Hope these 
helpful.

I followed the normal sequence I used in Axis1.4 to develop the web services:
1. Create java class with several methods needed for services. In my example, 
these classes include AnalysisMethod.class (superclass), 
AnalysisMethod1.class(which extends from AnalysisMethod.class) and Job.class. 
(see attached files)
2. Generat wsdl using Java2WSDL tool. 
3. Implement the logic in skeleton class. (see attachement files).
4. Create archive file using service archive creator.
5. Deploy the service.

Thanks a lot.

Xia

> Unexpected subelement - problem of correctly invoking services
> --
>
> Key: AXIS2-1268
> URL: http://issues.apache.org/jira/browse/AXIS2-1268
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Task
>Affects Versions: 1.0
> Environment: Java and WSDL files are created using code generator 
> Eclipse plugin under Eclipse 3.1. The archive file is created using service 
> archive generator Eclipse plugin 3.1 as well. Web Server: Tomcat 5.5.17. 
> Operation System: Windows XP professional 
>Reporter: Xia Zhao
> Attachments: AnalysisMethod.java, AnalysisMethod1.java, 
> AnalysisMethod1.xml, Invoking & error.rtf
>
>
> I was working with Axis1.4 before and just started to look at Axis2 as my 
> project requesting asynchronous web services. I built a simple asynchronous 
> web service then try to build a client to invoke the service, however, I got 
> the error of Unexpected subelement. Axis2 is deployed under Tomcat 5.5.17 and 
> WSDL was generated by code generator Eclipse plugin. I would like to know how 
> to correctly invoke this services. Or maybe there are some errors in the WSDL 
> file. Please give some hints.

-- 
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]



[jira] Updated: (AXIS2-1268) Unexpected subelement - problem of correctly invoking services

2006-10-02 Thread Xia Zhao (JIRA)
 [ http://issues.apache.org/jira/browse/AXIS2-1268?page=all ]

Xia Zhao updated AXIS2-1268:


Attachment: AnalysisMethod.java

> Unexpected subelement - problem of correctly invoking services
> --
>
> Key: AXIS2-1268
> URL: http://issues.apache.org/jira/browse/AXIS2-1268
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Task
>Affects Versions: 1.0
> Environment: Java and WSDL files are created using code generator 
> Eclipse plugin under Eclipse 3.1. The archive file is created using service 
> archive generator Eclipse plugin 3.1 as well. Web Server: Tomcat 5.5.17. 
> Operation System: Windows XP professional 
>Reporter: Xia Zhao
> Attachments: AnalysisMethod.java, AnalysisMethod1.java, 
> AnalysisMethod1.xml, Invoking & error.rtf
>
>
> I was working with Axis1.4 before and just started to look at Axis2 as my 
> project requesting asynchronous web services. I built a simple asynchronous 
> web service then try to build a client to invoke the service, however, I got 
> the error of Unexpected subelement. Axis2 is deployed under Tomcat 5.5.17 and 
> WSDL was generated by code generator Eclipse plugin. I would like to know how 
> to correctly invoke this services. Or maybe there are some errors in the WSDL 
> file. Please give some hints.

-- 
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]



[jira] Updated: (AXIS2-1268) Unexpected subelement - problem of correctly invoking services

2006-10-02 Thread Xia Zhao (JIRA)
 [ http://issues.apache.org/jira/browse/AXIS2-1268?page=all ]

Xia Zhao updated AXIS2-1268:


Attachment: AnalysisMethod1.java

> Unexpected subelement - problem of correctly invoking services
> --
>
> Key: AXIS2-1268
> URL: http://issues.apache.org/jira/browse/AXIS2-1268
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Task
>Affects Versions: 1.0
> Environment: Java and WSDL files are created using code generator 
> Eclipse plugin under Eclipse 3.1. The archive file is created using service 
> archive generator Eclipse plugin 3.1 as well. Web Server: Tomcat 5.5.17. 
> Operation System: Windows XP professional 
>Reporter: Xia Zhao
> Attachments: AnalysisMethod.java, AnalysisMethod1.java, 
> AnalysisMethod1.xml, Invoking & error.rtf
>
>
> I was working with Axis1.4 before and just started to look at Axis2 as my 
> project requesting asynchronous web services. I built a simple asynchronous 
> web service then try to build a client to invoke the service, however, I got 
> the error of Unexpected subelement. Axis2 is deployed under Tomcat 5.5.17 and 
> WSDL was generated by code generator Eclipse plugin. I would like to know how 
> to correctly invoke this services. Or maybe there are some errors in the WSDL 
> file. Please give some hints.

-- 
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]



[jira] Updated: (AXIS2-1268) Unexpected subelement - problem of correctly invoking services

2006-10-02 Thread Xia Zhao (JIRA)
 [ http://issues.apache.org/jira/browse/AXIS2-1268?page=all ]

Xia Zhao updated AXIS2-1268:


Attachment: Job.java

> Unexpected subelement - problem of correctly invoking services
> --
>
> Key: AXIS2-1268
> URL: http://issues.apache.org/jira/browse/AXIS2-1268
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Task
>Affects Versions: 1.0
> Environment: Java and WSDL files are created using code generator 
> Eclipse plugin under Eclipse 3.1. The archive file is created using service 
> archive generator Eclipse plugin 3.1 as well. Web Server: Tomcat 5.5.17. 
> Operation System: Windows XP professional 
>Reporter: Xia Zhao
> Attachments: AnalysisMethod.java, AnalysisMethod1.java, 
> AnalysisMethod1.xml, Invoking & error.rtf, Job.java
>
>
> I was working with Axis1.4 before and just started to look at Axis2 as my 
> project requesting asynchronous web services. I built a simple asynchronous 
> web service then try to build a client to invoke the service, however, I got 
> the error of Unexpected subelement. Axis2 is deployed under Tomcat 5.5.17 and 
> WSDL was generated by code generator Eclipse plugin. I would like to know how 
> to correctly invoke this services. Or maybe there are some errors in the WSDL 
> file. Please give some hints.

-- 
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]



[jira] Updated: (AXIS2-1268) Unexpected subelement - problem of correctly invoking services

2006-10-02 Thread Xia Zhao (JIRA)
 [ http://issues.apache.org/jira/browse/AXIS2-1268?page=all ]

Xia Zhao updated AXIS2-1268:


Attachment: AnalysisMethod1Skeleton.java

> Unexpected subelement - problem of correctly invoking services
> --
>
> Key: AXIS2-1268
> URL: http://issues.apache.org/jira/browse/AXIS2-1268
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Task
>Affects Versions: 1.0
> Environment: Java and WSDL files are created using code generator 
> Eclipse plugin under Eclipse 3.1. The archive file is created using service 
> archive generator Eclipse plugin 3.1 as well. Web Server: Tomcat 5.5.17. 
> Operation System: Windows XP professional 
>Reporter: Xia Zhao
> Attachments: AnalysisMethod.java, AnalysisMethod1.java, 
> AnalysisMethod1.xml, AnalysisMethod1Skeleton.java, Invoking & error.rtf, 
> Job.java
>
>
> I was working with Axis1.4 before and just started to look at Axis2 as my 
> project requesting asynchronous web services. I built a simple asynchronous 
> web service then try to build a client to invoke the service, however, I got 
> the error of Unexpected subelement. Axis2 is deployed under Tomcat 5.5.17 and 
> WSDL was generated by code generator Eclipse plugin. I would like to know how 
> to correctly invoke this services. Or maybe there are some errors in the WSDL 
> file. Please give some hints.

-- 
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]



[jira] Commented: (AXIS2-1268) Unexpected subelement - problem of correctly invoking services

2006-10-02 Thread Xia Zhao (JIRA)
[ 
http://issues.apache.org/jira/browse/AXIS2-1268?page=comments#action_12439083 ] 

Xia Zhao commented on AXIS2-1268:
-

Hi,

I've tried to use Java2WSDL in the nightly builds. However, I encounter an 
error: 

An error occurred while generating code java.lang.ClassNotFoundException.

Do I have to set classpath for running Java2WSDL?

Thanks.

Xia

> Unexpected subelement - problem of correctly invoking services
> --
>
> Key: AXIS2-1268
> URL: http://issues.apache.org/jira/browse/AXIS2-1268
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Task
>Affects Versions: 1.0
> Environment: Java and WSDL files are created using code generator 
> Eclipse plugin under Eclipse 3.1. The archive file is created using service 
> archive generator Eclipse plugin 3.1 as well. Web Server: Tomcat 5.5.17. 
> Operation System: Windows XP professional 
>Reporter: Xia Zhao
> Attachments: AnalysisMethod.java, AnalysisMethod1.java, 
> AnalysisMethod1.xml, AnalysisMethod1Skeleton.java, Invoking & error.rtf, 
> Job.java
>
>
> I was working with Axis1.4 before and just started to look at Axis2 as my 
> project requesting asynchronous web services. I built a simple asynchronous 
> web service then try to build a client to invoke the service, however, I got 
> the error of Unexpected subelement. Axis2 is deployed under Tomcat 5.5.17 and 
> WSDL was generated by code generator Eclipse plugin. I would like to know how 
> to correctly invoke this services. Or maybe there are some errors in the WSDL 
> file. Please give some hints.

-- 
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]



[jira] Commented: (AXIS2-1268) Unexpected subelement - problem of correctly invoking services

2006-10-02 Thread Xia Zhao (JIRA)
[ 
http://issues.apache.org/jira/browse/AXIS2-1268?page=comments#action_12439107 ] 

Xia Zhao commented on AXIS2-1268:
-

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 


myExample.Analysis





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)

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. (see attachement errortrace)

Xia


> Unexpected subelement - problem of correctly invoking services
> --
>
> Key: AXIS2-1268
> URL: http://issues.apache.org/jira/browse/AXIS2-1268
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Task
>Affects Versions: 1.0
> Environment: Java and WSDL files are created using code generator 
> Eclipse plugin under Eclipse 3.1. The archive file is created using service 
> archive generator Eclipse plugin 3.1 as well. Web Server: Tomcat 5.5.17. 
> Operation System: Windows XP professional 
>Reporter: Xia Zhao
> Attachments: Analysis.xml, AnalysisMethod.java, AnalysisMethod1.java, 
> AnalysisMethod1.xml, AnalysisMethod1Skeleton.java, errortrace.rtf, Invoking & 
> error.rtf, Job.java
>
>
> I was working with Axis1.4 before and just started to look at Axis2 as my 
> project requesting asynchronous web services. I built a simple asynchronous 
> web service then try to build a client to invoke the service, however, I got 
> the error of Unexpected subelement. Axis2 is deployed under Tomcat 5.5.17 and 
> WSDL was generated by code generator Eclipse plugin. I would like to know how 
> to correctly invoke this services. Or maybe there are some errors in the WSDL 
> file. Please give some hints.

-- 
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]



[jira] Updated: (AXIS2-1268) Unexpected subelement - problem of correctly invoking services

2006-10-02 Thread Xia Zhao (JIRA)
 [ http://issues.apache.org/jira/browse/AXIS2-1268?page=all ]

Xia Zhao updated AXIS2-1268:


Attachment: Analysis.xml

> Unexpected subelement - problem of correctly invoking services
> --
>
> Key: AXIS2-1268
> URL: http://issues.apache.org/jira/browse/AXIS2-1268
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Task
>Affects Versions: 1.0
> Environment: Java and WSDL files are created using code generator 
> Eclipse plugin under Eclipse 3.1. The archive file is created using service 
> archive generator Eclipse plugin 3.1 as well. Web Server: Tomcat 5.5.17. 
> Operation System: Windows XP professional 
>Reporter: Xia Zhao
> Attachments: Analysis.xml, AnalysisMethod.java, AnalysisMethod1.java, 
> AnalysisMethod1.xml, AnalysisMethod1Skeleton.java, errortrace.rtf, Invoking & 
> error.rtf, Job.java
>
>
> I was working with Axis1.4 before and just started to look at Axis2 as my 
> project requesting asynchronous web services. I built a simple asynchronous 
> web service then try to build a client to invoke the service, however, I got 
> the error of Unexpected subelement. Axis2 is deployed under Tomcat 5.5.17 and 
> WSDL was generated by code generator Eclipse plugin. I would like to know how 
> to correctly invoke this services. Or maybe there are some errors in the WSDL 
> file. Please give some hints.

-- 
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]



[jira] Updated: (AXIS2-1268) Unexpected subelement - problem of correctly invoking services

2006-10-02 Thread Xia Zhao (JIRA)
 [ http://issues.apache.org/jira/browse/AXIS2-1268?page=all ]

Xia Zhao updated AXIS2-1268:


Attachment: errortrace.rtf

> Unexpected subelement - problem of correctly invoking services
> --
>
> Key: AXIS2-1268
> URL: http://issues.apache.org/jira/browse/AXIS2-1268
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Task
>Affects Versions: 1.0
> Environment: Java and WSDL files are created using code generator 
> Eclipse plugin under Eclipse 3.1. The archive file is created using service 
> archive generator Eclipse plugin 3.1 as well. Web Server: Tomcat 5.5.17. 
> Operation System: Windows XP professional 
>Reporter: Xia Zhao
> Attachments: Analysis.xml, AnalysisMethod.java, AnalysisMethod1.java, 
> AnalysisMethod1.xml, AnalysisMethod1Skeleton.java, errortrace.rtf, Invoking & 
> error.rtf, Job.java
>
>
> I was working with Axis1.4 before and just started to look at Axis2 as my 
> project requesting asynchronous web services. I built a simple asynchronous 
> web service then try to build a client to invoke the service, however, I got 
> the error of Unexpected subelement. Axis2 is deployed under Tomcat 5.5.17 and 
> WSDL was generated by code generator Eclipse plugin. I would like to know how 
> to correctly invoke this services. Or maybe there are some errors in the WSDL 
> file. Please give some hints.

-- 
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]



[jira] Commented: (AXIS2-1268) Unexpected subelement - problem of correctly invoking services

2006-10-02 Thread Xia Zhao (JIRA)
[ 
http://issues.apache.org/jira/browse/AXIS2-1268?page=comments#action_12439131 ] 

Xia Zhao commented on AXIS2-1268:
-

Hi,

I noticed that in my generated WSDL file, the location soap address is 
http://192.168.225.1:8080/axis2/services/Analysis, but not 
http://localhost:8080 Is that correct or not?

Thanks.

Xia

> Unexpected subelement - problem of correctly invoking services
> --
>
> Key: AXIS2-1268
> URL: http://issues.apache.org/jira/browse/AXIS2-1268
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Task
>Affects Versions: 1.0
> Environment: Java and WSDL files are created using code generator 
> Eclipse plugin under Eclipse 3.1. The archive file is created using service 
> archive generator Eclipse plugin 3.1 as well. Web Server: Tomcat 5.5.17. 
> Operation System: Windows XP professional 
>Reporter: Xia Zhao
> Attachments: Analysis.xml, AnalysisMethod.java, AnalysisMethod1.java, 
> AnalysisMethod1.xml, AnalysisMethod1Skeleton.java, errortrace.rtf, Invoking & 
> error.rtf, Job.java
>
>
> I was working with Axis1.4 before and just started to look at Axis2 as my 
> project requesting asynchronous web services. I built a simple asynchronous 
> web service then try to build a client to invoke the service, however, I got 
> the error of Unexpected subelement. Axis2 is deployed under Tomcat 5.5.17 and 
> WSDL was generated by code generator Eclipse plugin. I would like to know how 
> to correctly invoke this services. Or maybe there are some errors in the WSDL 
> file. Please give some hints.

-- 
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]



[jira] Created: (AXIS2-1283) org.apache.axis2.AxisFault: Operation not found

2006-10-02 Thread Xia Zhao (JIRA)
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
Priority: Critical
 Attachments: Analysis.xml

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 


myExample.Analysis





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]



[jira] Updated: (AXIS2-1283) org.apache.axis2.AxisFault: Operation not found

2006-10-02 Thread Xia Zhao (JIRA)
 [ http://issues.apache.org/jira/browse/AXIS2-1283?page=all ]

Xia Zhao updated AXIS2-1283:


Attachment: Analysis.xml

> 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
>Priority: Critical
> Attachments: Analysis.xml
>
>
> 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 
> 
>  locked="false">myExample.Analysis
>   
>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>   
> 
> 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]



[jira] Commented: (AXIS2-1283) org.apache.axis2.AxisFault: Operation not found

2006-10-04 Thread Xia Zhao (JIRA)
[ 
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 
> 
>  locked="false">myExample.Analysis
>   
>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>   
> 
> 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]