You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Xia Zhao (JIRA)" <ji...@apache.org> on 2006/09/29 10:04:53 UTC

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

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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Xia Zhao (JIRA)" <ji...@apache.org>.
    [ 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 

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

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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Xia Zhao (JIRA)" <ji...@apache.org>.
     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Xia Zhao (JIRA)" <ji...@apache.org>.
     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Thilina Gunarathne (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1268?page=comments#action_12439078 ] 
            
Thilina Gunarathne commented on AXIS2-1268:
-------------------------------------------

Seems like you are using Axis2 1.0.... 
Please use the latest nightly builds available at http://people.apache.org/dist/axis2/nightly/... 

Please use the java2WSDL(not the eclipse plugin) from the latest SNAPSHOTS....



> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Xia Zhao (JIRA)" <ji...@apache.org>.
     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1268?page=comments#action_12438752 ] 
            
Davanum Srinivas commented on AXIS2-1268:
-----------------------------------------

Can you please post the java code that you used to generate the wsdl?

thanks,
dims

> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Xia Zhao (JIRA)" <ji...@apache.org>.
     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Xia Zhao (JIRA)" <ji...@apache.org>.
    [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Xia Zhao (JIRA)" <ji...@apache.org>.
     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1268?page=all ]

Eran Chinthaka resolved AXIS2-1268.
-----------------------------------

    Fix Version/s: 1.1
       Resolution: Fixed

Can you please open a new JIRA from your new issues. Let's resolve this for now.

That will help for some one to trackback the problems. 

> 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
>             Fix For: 1.1
>
>         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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Xia Zhao (JIRA)" <ji...@apache.org>.
     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Xia Zhao (JIRA)" <ji...@apache.org>.
     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Xia Zhao (JIRA)" <ji...@apache.org>.
    [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Xia Zhao (JIRA)" <ji...@apache.org>.
     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Xia Zhao (JIRA)" <ji...@apache.org>.
    [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org