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 jnedzel <jn...@broad.mit.edu> on 2007/04/20 20:01:46 UTC

axis2-1.1.1 wsdl2java code does not contain import statements

I'm just starting with Axis2 (v1.1.1) and I'm working through the User's 
Guide.  I've generated the client using the command shown in Code Listing 6:

%AXIS2_HOME%\bin\wsdl2java -uri Axis2UserGuide.wsdl -p 
org.apache.axis2.axis2userguide -d adb -s

However, the Java class generated by this code does not compile because 
it has no import statements.

----------
package org.apache.axis2.axis2userguide;

/*
  * Axis2UserGuideServiceStub java implementation
  */

public class Axis2UserGuideServiceStub extends 
org.apache.axis2.client.Stub {
	protected org.apache.axis2.description.AxisOperation[] _operations;

	// hashmaps to keep the fault mapping
	private java.util.HashMap faultExeptionNameMap = new java.util.HashMap();

	private java.util.HashMap faultExeptionClassNameMap = new 
java.util.HashMap();
---------

Is this expected behavior?  Is there a work-around, other than manually 
fixing up the generated file?

Thanks,

Jared Nedzel

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: axis2-1.1.1 wsdl2java code does not contain import statements

Posted by Amila Suriarachchi <am...@gmail.com>.
Generated code does not have any imports. Instead it always uses the fully
qualified name for each class.

On 4/20/07, jnedzel <jn...@broad.mit.edu> wrote:
>
> Nevermind, my mistake...
>
> jnedzel wrote:
> > I'm just starting with Axis2 (v1.1.1) and I'm working through the User's
> > Guide.  I've generated the client using the command shown in Code
> > Listing 6:
> >
> > %AXIS2_HOME%\bin\wsdl2java -uri Axis2UserGuide.wsdl -p
> > org.apache.axis2.axis2userguide -d adb -s
> >
> > However, the Java class generated by this code does not compile because
> > it has no import statements.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Re: axis2-1.1.1 wsdl2java code does not contain import statements

Posted by jnedzel <jn...@broad.mit.edu>.
Nevermind, my mistake...

jnedzel wrote:
> I'm just starting with Axis2 (v1.1.1) and I'm working through the User's 
> Guide.  I've generated the client using the command shown in Code 
> Listing 6:
> 
> %AXIS2_HOME%\bin\wsdl2java -uri Axis2UserGuide.wsdl -p 
> org.apache.axis2.axis2userguide -d adb -s
> 
> However, the Java class generated by this code does not compile because 
> it has no import statements.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org