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 de...@tcs.com on 2007/08/01 12:03:11 UTC

Axis to Axis2 migration doubt

In my axis deployment file I use following operation node to describe IN 
and OUT parameter of my method having signature as

public short WMLS_GetFromStore(String WellTypeIn, String 
XMLIn,StringHolder XMLOut, StringHolder SuppMsgOut)


        <operation name="WMLS_GetFromStore">
                <parameter name="TypeIn" mode="IN"/>
                <parameter name="XMLIn" mode="IN"/>
                <parameter name="XMLOut" mode="OUT"/>
                <parameter name="SuppMsgOut" mode="OUT"/>
        </operation>

How to achieve same in Axis2? I can not able to find out way to define 
parameter as OUT type with AXIS2.
could you please update me with way of achieving same with AXIS2?

With Regards,

Deepak Jerambhai Pansheriya
Tata Consultancy Services
Yantra Park -(STPI)
Mailto: deepak.pansheriya@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
   Business Solutions
   Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



Re: Axis to Axis2 migration doubt

Posted by mikkilineni <mi...@yahoo.co.in>.
Hi Deepak,

I am gettigg the below message when using java2wsdl task.

java.lang.NoClassDefFoundError: javax/xml/rpc/holders/StringHolder.

here is the build file content.

<taskdef name="java2wsdl"  
             classname="org.apache.ws.java2wsdl.Java2WSDLTask" 
classpathref="axis2.classpath"
             loaderref="axis"/>
<java2wsdl
className="dd.app.webservice.${target.directory.each}.service.${target.servicename.each}"
                  
outputLocation="http://localhost:8080/services/${target.servicename.each}"           
targetNamespace="urn:${target.servicename.each}">                   
                   <classpath> 
                      <pathelement path="${axis.class.path}"/>  
                      <pathelement
location="${deploy.home}/install/classes"/>   
                    </classpath>
         </java2wsdl>

my application was developed using axis1.2rc2 and used StringHolder
,Currently I am upgrading to Axis2.1.5.

If axis2.1.5 is not supported StringHolders,How to upgrade the existing java
files?

Could you please le me know how to over come these issues(java2wsdl and
existing appilication issues like to support StringHolders)

Thanks in advance,
mikkilineni


deepak.pansheriya wrote:
> 
> In my axis deployment file I use following operation node to describe IN 
> and OUT parameter of my method having signature as
> 
> public short WMLS_GetFromStore(String WellTypeIn, String 
> XMLIn,StringHolder XMLOut, StringHolder SuppMsgOut)
> 
> 
>         <operation name="WMLS_GetFromStore">
>                 <parameter name="TypeIn" mode="IN"/>
>                 <parameter name="XMLIn" mode="IN"/>
>                 <parameter name="XMLOut" mode="OUT"/>
>                 <parameter name="SuppMsgOut" mode="OUT"/>
>         </operation>
> 
> How to achieve same in Axis2? I can not able to find out way to define 
> parameter as OUT type with AXIS2.
> could you please update me with way of achieving same with AXIS2?
> 
> With Regards,
> 
> Deepak Jerambhai Pansheriya
> Tata Consultancy Services
> Yantra Park -(STPI)
> Mailto: deepak.pansheriya@tcs.com
> Website: http://www.tcs.com
> ____________________________________________
> Experience certainty. IT Services
>    Business Solutions
>    Outsourcing
> ____________________________________________
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain 
> confidential or privileged information. If you are 
> not the intended recipient, any dissemination, use, 
> review, distribution, printing or copying of the 
> information contained in this e-mail message 
> and/or attachments to it are strictly prohibited. If 
> you have received this communication in error, 
> please notify us by reply e-mail or telephone and 
> immediately and permanently delete the message 
> and any attachments. Thank you
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis-to-Axis2-migration-doubt-tp11942874p25332775.html
Sent from the Axis - User mailing list archive at Nabble.com.


Re: Axis to Axis2 migration doubt

Posted by de...@tcs.com.
Hi Deepal,

Could you give me one example source code or any URL from where I can get 
how to implement. 

Thanks,
Deepak




Deepal jayasinghe <de...@gmail.com> 
08/01/2007 04:49 PM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Re: Axis to Axis2 migration doubt






For that you have to create a Java bean (with the proprieties MLOut,
SuppMsgOut   ) and return that .
>
> Dear Deepal,
>
> When I am doing as directed by you, I get webservices which take all
> arguments as IN type only.But  my requirement is that the 3rd and 4th
>  argument  XMLOut, SuppMsgOut should be return type(OUT mode).
>
>
> thanks
> Deepak
>
>
> *Deepal Jayasinghe <de...@opensource.lk>*
>
> 08/01/2007 03:59 PM
> Please respond to
> axis-user@ws.apache.org
>
>
> 
> To
>                axis-user@ws.apache.org
> cc
> 
> Subject
>                Re: Axis to Axis2 migration doubt
>
>
>
> 
>
>
>
>
> Well Axis2 does not support the holder concept , but you can easily
> achieve your goal
> - Just write a services.xml with specifying service class name
> - Do not worry about the operation name, Axis2 will automatically will
> creating the service analyzing the service impl class
>
> Thanks
> Deepal
> >
> > In my axis deployment file I use following operation node to describe 
IN
> > and OUT parameter of my method having signature as
> >
> > public short WMLS_GetFromStore(String WellTypeIn, String
> > XMLIn,StringHolder XMLOut, StringHolder SuppMsgOut)
> >
> >
> >        <operation name="WMLS_GetFromStore">
> >                <parameter name="TypeIn" mode="IN"/>
> >                <parameter name="XMLIn" mode="IN"/>
> >                <parameter name="XMLOut" mode="OUT"/>
> >                <parameter name="SuppMsgOut" mode="OUT"/>
> >        </operation>
> >
> > How to achieve same in Axis2? I can not able to find out way to define
> > parameter as OUT type with AXIS2.
> > could you please update me with way of achieving same with AXIS2?
> >
> > With Regards,
> >
> > Deepak Jerambhai Pansheriya
> > Tata Consultancy Services
> > Yantra Park -(STPI)
> > Mailto: deepak.pansheriya@tcs.com
> > Website: http://www.tcs.com
> > ____________________________________________
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
> ForwardSourceID:NT00003DCE 
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain 
> confidential or privileged information. If you are 
> not the intended recipient, any dissemination, use, 
> review, distribution, printing or copying of the 
> information contained in this e-mail message 
> and/or attachments to it are strictly prohibited. If 
> you have received this communication in error, 
> please notify us by reply e-mail or telephone and 
> immediately and permanently delete the message 
> and any attachments. Thank you
>
>
> 


-- 
Thanks,
Deepal
.................................................................
"The highest tower is built one brick at a time"


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

ForwardSourceID:NT00003E26 
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



Re: Axis to Axis2 migration doubt

Posted by Deepal jayasinghe <de...@gmail.com>.
For that you have to create a Java bean (with the proprieties MLOut,
SuppMsgOut   ) and return that .
>
> Dear Deepal,
>
> When I am doing as directed by you, I get webservices which take all
> arguments as IN type only.But  my requirement is that the 3rd and 4th
>  argument  XMLOut, SuppMsgOut should be return type(OUT mode).
>
>
> thanks
> Deepak
>
>
> *Deepal Jayasinghe <de...@opensource.lk>*
>
> 08/01/2007 03:59 PM
> Please respond to
> axis-user@ws.apache.org
>
>
> 	
> To
> 	axis-user@ws.apache.org
> cc
> 	
> Subject
> 	Re: Axis to Axis2 migration doubt
>
>
>
> 	
>
>
>
>
> Well Axis2 does not support the holder concept , but you can easily
> achieve your goal
> - Just write a services.xml with specifying service class name
> - Do not worry about the operation name, Axis2 will automatically will
> creating the service analyzing the service impl class
>
> Thanks
> Deepal
> >
> > In my axis deployment file I use following operation node to describe IN
> > and OUT parameter of my method having signature as
> >
> > public short WMLS_GetFromStore(String WellTypeIn, String
> > XMLIn,StringHolder XMLOut, StringHolder SuppMsgOut)
> >
> >
> >        <operation name="WMLS_GetFromStore">
> >                <parameter name="TypeIn" mode="IN"/>
> >                <parameter name="XMLIn" mode="IN"/>
> >                <parameter name="XMLOut" mode="OUT"/>
> >                <parameter name="SuppMsgOut" mode="OUT"/>
> >        </operation>
> >
> > How to achieve same in Axis2? I can not able to find out way to define
> > parameter as OUT type with AXIS2.
> > could you please update me with way of achieving same with AXIS2?
> >
> > With Regards,
> >
> > Deepak Jerambhai Pansheriya
> > Tata Consultancy Services
> > Yantra Park -(STPI)
> > Mailto: deepak.pansheriya@tcs.com
> > Website: http://www.tcs.com
> > ____________________________________________
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
> ForwardSourceID:NT00003DCE    
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain 
> confidential or privileged information. If you are 
> not the intended recipient, any dissemination, use, 
> review, distribution, printing or copying of the 
> information contained in this e-mail message 
> and/or attachments to it are strictly prohibited. If 
> you have received this communication in error, 
> please notify us by reply e-mail or telephone and 
> immediately and permanently delete the message 
> and any attachments. Thank you
>
>
>   


-- 
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"


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


Re: Axis to Axis2 migration doubt

Posted by de...@tcs.com.
Dear Deepal,

When I am doing as directed by you, I get webservices which take all 
arguments as IN type only.But  my requirement is that the 3rd and 4th 
argument  XMLOut, SuppMsgOut should be return type(OUT mode).


thanks
Deepak



Deepal Jayasinghe <de...@opensource.lk> 
08/01/2007 03:59 PM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Re: Axis to Axis2 migration doubt





Well Axis2 does not support the holder concept , but you can easily
achieve your goal
- Just write a services.xml with specifying service class name
- Do not worry about the operation name, Axis2 will automatically will
creating the service analyzing the service impl class

Thanks
Deepal
>
> In my axis deployment file I use following operation node to describe IN
> and OUT parameter of my method having signature as
>
> public short WMLS_GetFromStore(String WellTypeIn, String
> XMLIn,StringHolder XMLOut, StringHolder SuppMsgOut)
>
>
>        <operation name="WMLS_GetFromStore">
>                <parameter name="TypeIn" mode="IN"/>
>                <parameter name="XMLIn" mode="IN"/>
>                <parameter name="XMLOut" mode="OUT"/>
>                <parameter name="SuppMsgOut" mode="OUT"/>
>        </operation>
>
> How to achieve same in Axis2? I can not able to find out way to define
> parameter as OUT type with AXIS2.
> could you please update me with way of achieving same with AXIS2?
>
> With Regards,
>
> Deepak Jerambhai Pansheriya
> Tata Consultancy Services
> Yantra Park -(STPI)
> Mailto: deepak.pansheriya@tcs.com
> Website: http://www.tcs.com
> ____________________________________________



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

ForwardSourceID:NT00003DCE 
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



Re: Axis to Axis2 migration doubt

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Well Axis2 does not support the holder concept , but you can easily
achieve your goal
- Just write a services.xml with specifying service class name
- Do not worry about the operation name, Axis2 will automatically will
creating the service analyzing the service impl class

Thanks
Deepal
>
> In my axis deployment file I use following operation node to describe IN
> and OUT parameter of my method having signature as
>
> public short WMLS_GetFromStore(String WellTypeIn, String
> XMLIn,StringHolder XMLOut, StringHolder SuppMsgOut)
>
>
>        <operation name="WMLS_GetFromStore">
>                <parameter name="TypeIn" mode="IN"/>
>                <parameter name="XMLIn" mode="IN"/>
>                <parameter name="XMLOut" mode="OUT"/>
>                <parameter name="SuppMsgOut" mode="OUT"/>
>        </operation>
>
> How to achieve same in Axis2? I can not able to find out way to define
> parameter as OUT type with AXIS2.
> could you please update me with way of achieving same with AXIS2?
>
> With Regards,
>
> Deepak Jerambhai Pansheriya
> Tata Consultancy Services
> Yantra Park -(STPI)
> Mailto: deepak.pansheriya@tcs.com
> Website: http://www.tcs.com
> ____________________________________________



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


Re: Axis to Axis2 migration doubt

Posted by Glen Daniels <gl...@thoughtcraft.com>.
deepak.pansheriya@tcs.com wrote:
> How to achieve same in Axis2? I can not able to find out way to define
> parameter as OUT type with AXIS2.
> could you please update me with way of achieving same with AXIS2?

Hi Deepak!

2 comments here.

First, the Web Services Application Server (WSAS) from WSO2, which you 
can find at http://wso2.com/products/wsas, contains an Axis2 "custom 
deployer" for Axis1 services.  This allows you to drop your existing 
service classes (jars) and server-config.wsdd into the Axis2-based 
server, and get some of the benefits of Axis2 (Modules, etc) without 
having to rewrite your code.  You might want to check that out as a 
first step.

Second, I definitely think that the holder concept is of great value, 
and it would be nice if Axis2 supported it in the native ADB 
databinding.  Could you perhaps file a JIRA about this?

Thanks,
--Glen

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