[Axis2] Re: MTOM

2006-12-29 Thread Thilina Gunarathne

Fixed in the svn head.. http://svn.apache.org/viewvc?view=rev&rev=491179

~Thilina

On 12/30/06, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:

See my comments inline
> //User can set optimized to false by using the following
> //textData.doOptimize(false);
Please try textData.setOptimize(false);
I'll fix the guide...

>options.setProperty(Constants.Configuration.ENABLE_MTOM,Constants.VALUE_TRUE);
> options.setProperty(Constants.Configuration.ENABLE_SWA,Constants.VALUE_TRUE);
Do not enable both SwA and MTOM... However MTOM will get priority in this case..

I think I found the place which creates this possible bug... Will fix
that soon..

~Thilina
>
>
> Kind regards
> Stefan
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/




--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Re: No REST for axis2 v1.1

2006-12-29 Thread Salma Soleil

Umm..not sure. Can you run a validator on your xml to make sure you don't
have syntax error?

On 12/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:


 Thank You Salma

Now I have a different error
2006-12-29 21:48:23,390 ERROR
org.apache.axis2.deployment.WarBasedAxisConfigurator -
org.apache.axis2.deployment.DeploymentException: Dispatch phase not found
on the global InFlow phase of the axis2.xml. Please recheck; nested
exception is:
 org.apache.axis2.deployment.DeploymentException: Dispatch phase not found
on the global InFlow phase of the axis2.xml. Please recheck: loading
repository from classpath
Here are the phase declarations from axis2.xml






























 



 































 



 




Advice ?
---

This e-mail message (including attachments, if any) is intended for the
use of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.
---

Le pr�sent message �lectronique (y compris les pi�ces qui y sont annex�es,
le cas �ch�ant) s'adresse au destinataire indiqu� et peut contenir des
renseignements de caract�re priv� ou confidentiel. Si vous n'�tes pas le
destinataire de ce document, nous vous signalons qu'il est strictement
interdit de le diffuser, de le distribuer ou de le reproduire.

- Original Message -
*From:* Salma Soleil <[EMAIL PROTECTED]>
*To:* axis-user@ws.apache.org ; Martin Gainty <[EMAIL PROTECTED]>
*Sent:* Friday, December 29, 2006 7:58 PM
*Subject:* Re: No REST for axis2 v1.1


Set the parameter in axis2.xml

truehttp://wso2.org/library/254


On 12/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
>  How do i resolve this error when listing services or go to validate
> services ?
> (Note all I did was have tomcat browse and open the un-modified
> axis2.1.1.war)
>  Please enable REST support in WEB-INF/conf/axis2.xml and
> WEB-INF/web.xml
> --\-
>
> This e-mail message (including attachments, if any) is intended for the
> use of the individual or entity to which it is addressed and may contain
> information that is privileged, proprietary , confidential and exempt from
> disclosure. If you are not the intended recipient, you are notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited.
> ---
>
> Le pr�sent message �lectronique (y compris les pi�ces qui y sont
> annex�es, le cas �ch�ant) s'adresse au destinataire indiqu� et peut contenir
> des renseignements de caract�re priv� ou confidentiel. Si vous n'�tes pas le
> destinataire de ce document, nous vous signalons qu'il est strictement
> interdit de le diffuser, de le distribuer ou de le reproduire.
>
>  - Original Message -
> *From:* Manoj Khangaonkar <[EMAIL PROTECTED]>
> *To:* axis-user@ws.apache.org ; Martin Gainty <[EMAIL PROTECTED]>
>  *Sent:* Friday, December 29, 2006 7:03 PM
> *Subject:* Re: No REST for axis2 v1.1
>
>
> I presume you have seen this link that describes AXIS2 support for REST
> and has some samples
>
> http://ws.apache.org/axis2/1_1/rest-ws.html
>
>
>  On 12/29/06, Manoj Khangaonkar <[EMAIL PROTECTED] > wrote:
>
> >  I am not a REST expert, but it appears
> >
> > The quickstart example is invoked as a REST client.
> >
> > here is cut and paste from the userguide:
> >
> > begin guide -
> >
> > Once those url's are working, let's quickly test the service. Try
> > pointing your browser to the following URL:
> >
> > http://localhost:8080/axis2/rest/StockQuoteService/getPrice?symbol=IBM
> >
> > end guide -
> >
> > This invokes AXISRestServlet and not AXISServlet and follows the code path 
for REST services.
> >
> >
> >
> >
> >  On 12/29/06, Martin Gainty <[EMAIL PROTECTED] > wrote:
> >
> > >  apparently that was a patch for a CLASSPATH issue
> > > specifically I am looking for REST service which none of the 2.1.1distros 
seem to have
> > >
>

[Axis2] Feeback on 1.1.1-RC1

2006-12-29 Thread Thilina Gunarathne

Hi all,
It's been almost a week since the 1.1.1-RC1 release[1].. We would like
to know about your experience with it, so that we can go ahead with
the 1.1.1 (may be a RC2 if there are major issues)...

Thanks a lot,
Thilina

[1] http://people.apache.org/~thilina/axis2/1.1.1-RC1/
--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



RE: Soap Over JMS using Embedded Axis2 Engine

2006-12-29 Thread Brennan Spies
Ted,

 

Did you uncomment/configure the appropriate entries in your axis2.xml as
well as your .aar's service.xml?

 

http://ws.apache.org/axis2/1_1/jms-transport.html

 

 

  _  

From: Ted Jones [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 29, 2006 3:36 PM
To: axis-user@ws.apache.org
Subject: Soap Over JMS using Embedded Axis2 Engine

 

I am attempting to execute a web service via ActiveMQ. The web service is
deployed to an Axis2 engine that is embedded in a web app running on Tomcat
5.5. Are there any known *gotchas* here? I cannot seem to communicate with
the service via JMS as it keeps timing out. When I change my endpoint in the
client call from the JMS endpoint to the web service endpoint, it finds it.

 

Thanks,

Ted



Re: axis1.2.1 vs axis1.4

2006-12-29 Thread Ravi Krishnamurthy

Could someone give some pointers on this.

Thanks,
Ravi

Ravi Krishnamurthy wrote:

Hello;
I had published the same webservice in axis 1.2.1 ans now trying it 
out with axis 1.4


The wsdl in 1.2.1 says for a complex type as below in 1.2.1

   
   
   
   
   
  


in 1.4 it shows as below:


   
   
   
   
   
   


What should be done in the service deployment to make sure the element 
name is shown as userId and not as in0, in1 etc


Thanks for your help,
regards,
Ravi


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





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



Re: MTOM

2006-12-29 Thread Thilina Gunarathne

See my comments inline

//User can set optimized to false by using the following
//textData.doOptimize(false);

Please try textData.setOptimize(false);
I'll fix the guide...


options.setProperty(Constants.Configuration.ENABLE_MTOM,Constants.VALUE_TRUE);
options.setProperty(Constants.Configuration.ENABLE_SWA,Constants.VALUE_TRUE);

Do not enable both SwA and MTOM... However MTOM will get priority in this case..

I think I found the place which creates this possible bug... Will fix
that soon..

~Thilina



Kind regards
Stefan


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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Re: No REST for axis2 v1.1

2006-12-29 Thread Martin Gainty
Thank You Salma

Now I have a different error
2006-12-29 21:48:23,390 ERROR 
org.apache.axis2.deployment.WarBasedAxisConfigurator - 
org.apache.axis2.deployment.DeploymentException: Dispatch phase not found on 
the global InFlow phase of the axis2.xml. Please recheck; nested exception is: 
 org.apache.axis2.deployment.DeploymentException: Dispatch phase not found on 
the global InFlow phase of the axis2.xml. Please recheck: loading repository 
from classpath

Here are the phase declarations from axis2.xml






























 



 































 



 





Advice ?

--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
  - Original Message - 
  From: Salma Soleil 
  To: axis-user@ws.apache.org ; Martin Gainty 
  Sent: Friday, December 29, 2006 7:58 PM
  Subject: Re: No REST for axis2 v1.1


  Set the parameter in axis2.xml
truehttp://wso2.org/library/254

   
  On 12/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote: 
How do i resolve this error when listing services or go to validate 
services ?
(Note all I did was have tomcat browse and open the un-modified 
axis2.1.1.war)
Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml


--\- 
This e-mail message (including attachments, if any) is intended for the use 
of the individual or entity to which it is addressed and may contain 
information that is privileged, proprietary , confidential and exempt from 
disclosure. If you are not the intended recipient, you are notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. 
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, 
le cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire. 
  - Original Message - 
  From: Manoj Khangaonkar 
  To: axis-user@ws.apache.org ; Martin Gainty 
  Sent: Friday, December 29, 2006 7:03 PM
  Subject: Re: No REST for axis2 v1.1

   
  I presume you have seen this link that describes AXIS2 support for REST 
and has some samples

  http://ws.apache.org/axis2/1_1/rest-ws.html

   
  On 12/29/06, Manoj Khangaonkar <[EMAIL PROTECTED] > wrote: 
I am not a REST expert, but it appears

The quickstart example is invoked as a REST client.

here is cut and paste from the userguide:

begin guide -
Once those url's are working, let's quickly test the service. Try 
pointing your browser to the following URL:

http://localhost:8080/axis2/rest/StockQuoteService/getPrice?symbol=IBM
end guide -This invokes AXISRestServlet and not AXISServlet and follows 
the code path for REST services. 

 
On 12/29/06, Martin Gainty <[EMAIL PROTECTED] > wrote: 
  apparently that was a patch for a CLASSPATH issue
  specifically I am looking for REST service which none of the 2.1.1 
distros seem to have

  BTW there are 5 quickstarts that are packaged in the 2.1.1 distro 
(and none of them are a REST service)
  /src/modules/samples/quickstart
  /src/modules/samples/quickstarta

Re: No REST for axis2 v1.1

2006-12-29 Thread Salma Soleil

Set the parameter in axis2.xml

truehttp://wso2.org/library/254


On 12/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:


 How do i resolve this error when listing services or go to validate
services ?
(Note all I did was have tomcat browse and open the un-modified
axis2.1.1.war)
 Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml
--\-

This e-mail message (including attachments, if any) is intended for the
use of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.
---

Le présent message électronique (y compris les pièces qui y sont annexées,
le cas échéant) s'adresse au destinataire indiqué et peut contenir des
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
destinataire de ce document, nous vous signalons qu'il est strictement
interdit de le diffuser, de le distribuer ou de le reproduire.

- Original Message -
*From:* Manoj Khangaonkar <[EMAIL PROTECTED]>
*To:* axis-user@ws.apache.org ; Martin Gainty <[EMAIL PROTECTED]>
 *Sent:* Friday, December 29, 2006 7:03 PM
*Subject:* Re: No REST for axis2 v1.1


I presume you have seen this link that describes AXIS2 support for REST
and has some samples

http://ws.apache.org/axis2/1_1/rest-ws.html


On 12/29/06, Manoj Khangaonkar <[EMAIL PROTECTED]> wrote:
>
> I am not a REST expert, but it appears
>
> The quickstart example is invoked as a REST client.
>
> here is cut and paste from the userguide:
>
> begin guide -
>
> Once those url's are working, let's quickly test the service. Try
> pointing your browser to the following URL:
>
> http://localhost:8080/axis2/rest/StockQuoteService/getPrice?symbol=IBM
>
> end guide -
>
> This invokes AXISRestServlet and not AXISServlet and follows the code path 
for REST services.
>
>
>
>
>  On 12/29/06, Martin Gainty <[EMAIL PROTECTED] > wrote:
> >
> >  apparently that was a patch for a CLASSPATH issue
> > specifically I am looking for REST service which none of the 2.1.1distros 
seem to have
> >
> > BTW there are 5 quickstarts that are packaged in the 2.1.1 distro (and
> > none of them are a REST service)
> > /src/modules/samples/quickstart
> > /src/modules/samples/quickstartadb
> > /src/modules/samples/quickstartaxiom
> > /src/modules/samples/quickstartjibx
> > /src/modules/samples/quickstartxmlbeans
> >
> > M-
> > ---
> >
> > This e-mail message (including attachments, if any) is intended for
> > the use of the individual or entity to which it is addressed and may contain
> > information that is privileged, proprietary , confidential and exempt from
> > disclosure. If you are not the intended recipient, you are notified that any
> > dissemination, distribution or copying of this communication is strictly
> > prohibited.
> > ---
> >
> > Le présent message électronique (y compris les pièces qui y sont
> > annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir
> > des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
> > destinataire de ce document, nous vous signalons qu'il est strictement
> > interdit de le diffuser, de le distribuer ou de le reproduire.
> >
> > - Original Message -
> > *From:* Manoj Khangaonkar <[EMAIL PROTECTED]>
> > *To:* axis-user@ws.apache.org ; Martin Gainty <[EMAIL PROTECTED]>
> > *Sent:* Friday, December 29, 2006 12:23 PM
> > *Subject:* Re: No REST for axis2 v1.1
> >
> >
> > Martin,
> >
> > To add to my earlier response,
> >
> > REST should be enabled by default and for 1.1.1 the patch is for
> > AXIS2-1917.
> >
> > Mj
> >
> >
> > On 12/29/06, Manoj Khangaonkar <[EMAIL PROTECTED] > wrote:
> > >
> > > Martin,
> > >
> > > The quickstartsample is a rest sample. The client invokes the
> > > service using REST
> > >
> > > I have not tried it in 1.1.
> > >
> > > In 1.1.1 , it is broken and I have provided a patch AXIS2-1912.
> > >
> > > Mj
> > >
> > >
> > >  On 12/29/06, Martin Gainty <[EMAIL PROTECTED] > wrote:
> > > >
> > > >  Hello All- when attempting to access Axis 2 v 1.1 HappyAxis.jsp I
> > > > see
> > > > Please enable REST support in WEB-INF/conf/axis2.xml and
> > > > WEB-INF/web.xml Does anyone know how to enable rest support in
> > > > Axis 2 1.1?
> > > > Is there an example REST service available?
> > > >
> > > > Thx,
> > > > M-
> > > > 
---
> > > >
> > > > This e-mail message (including attachments, if any) is intended
> > > > for the use of the individual or entity to

Re: No REST for axis2 v1.1

2006-12-29 Thread Martin Gainty
How do i resolve this error when listing services or go to validate services ?
(Note all I did was have tomcat browse and open the un-modified axis2.1.1.war)
Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml

--\- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
  - Original Message - 
  From: Manoj Khangaonkar 
  To: axis-user@ws.apache.org ; Martin Gainty 
  Sent: Friday, December 29, 2006 7:03 PM
  Subject: Re: No REST for axis2 v1.1


  I presume you have seen this link that describes AXIS2 support for REST and 
has some samples

  http://ws.apache.org/axis2/1_1/rest-ws.html

   
  On 12/29/06, Manoj Khangaonkar <[EMAIL PROTECTED]> wrote: 
I am not a REST expert, but it appears

The quickstart example is invoked as a REST client.

here is cut and paste from the userguide:

begin guide -
Once those url's are working, let's quickly test the service. Try pointing 
your browser to the following URL:

http://localhost:8080/axis2/rest/StockQuoteService/getPrice?symbol=IBM
end guide -This invokes AXISRestServlet and not AXISServlet and follows 
the code path for REST services. 

 
On 12/29/06, Martin Gainty <[EMAIL PROTECTED] > wrote: 
  apparently that was a patch for a CLASSPATH issue
  specifically I am looking for REST service which none of the 2.1.1 
distros seem to have

  BTW there are 5 quickstarts that are packaged in the 2.1.1 distro (and 
none of them are a REST service)
  /src/modules/samples/quickstart
  /src/modules/samples/quickstartadb
  /src/modules/samples/quickstartaxiom
  /src/modules/samples/quickstartjibx
  /src/modules/samples/quickstartxmlbeans

  M-
  
--- 
  This e-mail message (including attachments, if any) is intended for the 
use of the individual or entity to which it is addressed and may contain 
information that is privileged, proprietary , confidential and exempt from 
disclosure. If you are not the intended recipient, you are notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. 
  
--- 
  Le présent message électronique (y compris les pièces qui y sont 
annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir 
des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire. 
- Original Message - 
From: Manoj Khangaonkar 
To: axis-user@ws.apache.org ; Martin Gainty 
Sent: Friday, December 29, 2006 12:23 PM
Subject: Re: No REST for axis2 v1.1

 
Martin,

To add to my earlier response,

REST should be enabled by default and for 1.1.1 the patch is for 
AXIS2-1917.

Mj

 
On 12/29/06, Manoj Khangaonkar <[EMAIL PROTECTED] > wrote: 
  Martin,

  The quickstartsample is a rest sample. The client invokes the service 
using REST

  I have not tried it in 1.1.

  In 1.1.1 , it is broken and I have provided a patch AXIS2-1912.

  Mj

   
  On 12/29/06, Martin Gainty <[EMAIL PROTECTED] > wrote: 
Hello All-
when attempting to access Axis 2 v 1.1 HappyAxis.jsp I see
Please enable REST support in WEB-INF/conf/axis2.xml and 
WEB-INF/web.xml
Does anyone know how to enable rest support in Axis 2 1.1?
Is there an example REST service available?

Thx,
M-

--- 
This e-mail message (including attachments, if any) is intended for 
the use of the individual or entity to which it is addressed and may contain 
information that is privileged, proprietary , confidential and exempt from 
disclosure. If you are not the intended recipient, you are notified tha

Re: No REST for axis2 v1.1

2006-12-29 Thread Manoj Khangaonkar

I presume you have seen this link that describes AXIS2 support for REST and
has some samples

http://ws.apache.org/axis2/1_1/rest-ws.html


On 12/29/06, Manoj Khangaonkar <[EMAIL PROTECTED]> wrote:


I am not a REST expert, but it appears

The quickstart example is invoked as a REST client.

here is cut and paste from the userguide:

begin guide -

Once those url's are working, let's quickly test the service. Try pointing
your browser to the following URL:

http://localhost:8080/axis2/rest/StockQuoteService/getPrice?symbol=IBM

end guide -

This invokes AXISRestServlet and not AXISServlet and follows the code path for 
REST services.




 On 12/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
>  apparently that was a patch for a CLASSPATH issue
> specifically I am looking for REST service which none of the 2.1.1distros 
seem to have
>
> BTW there are 5 quickstarts that are packaged in the 2.1.1 distro (and
> none of them are a REST service)
> /src/modules/samples/quickstart
> /src/modules/samples/quickstartadb
> /src/modules/samples/quickstartaxiom
> /src/modules/samples/quickstartjibx
> /src/modules/samples/quickstartxmlbeans
>
> M-
> ---
>
> This e-mail message (including attachments, if any) is intended for the
> use of the individual or entity to which it is addressed and may contain
> information that is privileged, proprietary , confidential and exempt from
> disclosure. If you are not the intended recipient, you are notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited.
> ---
>
> Le présent message électronique (y compris les pièces qui y sont
> annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir
> des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
> destinataire de ce document, nous vous signalons qu'il est strictement
> interdit de le diffuser, de le distribuer ou de le reproduire.
>
> - Original Message -
> *From:* Manoj Khangaonkar <[EMAIL PROTECTED]>
> *To:* axis-user@ws.apache.org ; Martin Gainty <[EMAIL PROTECTED]>
> *Sent:* Friday, December 29, 2006 12:23 PM
> *Subject:* Re: No REST for axis2 v1.1
>
>
> Martin,
>
> To add to my earlier response,
>
> REST should be enabled by default and for 1.1.1 the patch is for
> AXIS2-1917.
>
> Mj
>
>
> On 12/29/06, Manoj Khangaonkar <[EMAIL PROTECTED] > wrote:
> >
> > Martin,
> >
> > The quickstartsample is a rest sample. The client invokes the service
> > using REST
> >
> > I have not tried it in 1.1.
> >
> > In 1.1.1 , it is broken and I have provided a patch AXIS2-1912.
> >
> > Mj
> >
> >
> >  On 12/29/06, Martin Gainty <[EMAIL PROTECTED] > wrote:
> > >
> > >  Hello All- when attempting to access Axis 2 v 1.1 HappyAxis.jsp I
> > > see
> > > Please enable REST support in WEB-INF/conf/axis2.xml and
> > > WEB-INF/web.xml Does anyone know how to enable rest support in Axis
> > > 2 1.1?
> > > Is there an example REST service available?
> > >
> > > Thx,
> > > M-
> > > 
---
> > >
> > > This e-mail message (including attachments, if any) is intended for
> > > the use of the individual or entity to which it is addressed and may 
contain
> > > information that is privileged, proprietary , confidential and exempt from
> > > disclosure. If you are not the intended recipient, you are notified that 
any
> > > dissemination, distribution or copying of this communication is strictly
> > > prohibited.
> > > 
---
> > >
> > > Le présent message électronique (y compris les pièces qui y sont
> > > annexées, le cas échéant) s'adresse au destinataire indiqué et peut 
contenir
> > > des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas 
le
> > > destinataire de ce document, nous vous signalons qu'il est strictement
> > > interdit de le diffuser, de le distribuer ou de le reproduire.
> > >
> >
> >
>



Re: No REST for axis2 v1.1

2006-12-29 Thread Manoj Khangaonkar

I am not a REST expert, but it appears

The quickstart example is invoked as a REST client.

here is cut and paste from the userguide:

begin guide -

Once those url's are working, let's quickly test the service. Try pointing
your browser to the following URL:

http://localhost:8080/axis2/rest/StockQuoteService/getPrice?symbol=IBM

end guide -

This invokes AXISRestServlet and not AXISServlet and follows the code
path for REST services.





On 12/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:


 apparently that was a patch for a CLASSPATH issue
specifically I am looking for REST service which none of the 2.1.1 distros
seem to have

BTW there are 5 quickstarts that are packaged in the 2.1.1 distro (and
none of them are a REST service)
/src/modules/samples/quickstart
/src/modules/samples/quickstartadb
/src/modules/samples/quickstartaxiom
/src/modules/samples/quickstartjibx
/src/modules/samples/quickstartxmlbeans

M-
---

This e-mail message (including attachments, if any) is intended for the
use of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.
---

Le présent message électronique (y compris les pièces qui y sont annexées,
le cas échéant) s'adresse au destinataire indiqué et peut contenir des
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
destinataire de ce document, nous vous signalons qu'il est strictement
interdit de le diffuser, de le distribuer ou de le reproduire.

- Original Message -
*From:* Manoj Khangaonkar <[EMAIL PROTECTED]>
*To:* axis-user@ws.apache.org ; Martin Gainty <[EMAIL PROTECTED]>
*Sent:* Friday, December 29, 2006 12:23 PM
*Subject:* Re: No REST for axis2 v1.1


Martin,

To add to my earlier response,

REST should be enabled by default and for 1.1.1 the patch is for
AXIS2-1917.

Mj


On 12/29/06, Manoj Khangaonkar <[EMAIL PROTECTED]> wrote:
>
> Martin,
>
> The quickstartsample is a rest sample. The client invokes the service
> using REST
>
> I have not tried it in 1.1.
>
> In 1.1.1 , it is broken and I have provided a patch AXIS2-1912.
>
> Mj
>
>
>  On 12/29/06, Martin Gainty <[EMAIL PROTECTED] > wrote:
> >
> >  Hello All- when attempting to access Axis 2 v 1.1 HappyAxis.jsp I see
> > Please enable REST support in WEB-INF/conf/axis2.xml and
> > WEB-INF/web.xml Does anyone know how to enable rest support in Axis 2
> > 1.1?
> > Is there an example REST service available?
> >
> > Thx,
> > M-
> > ---
> >
> > This e-mail message (including attachments, if any) is intended for
> > the use of the individual or entity to which it is addressed and may contain
> > information that is privileged, proprietary , confidential and exempt from
> > disclosure. If you are not the intended recipient, you are notified that any
> > dissemination, distribution or copying of this communication is strictly
> > prohibited.
> > ---
> >
> > Le présent message électronique (y compris les pièces qui y sont
> > annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir
> > des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
> > destinataire de ce document, nous vous signalons qu'il est strictement
> > interdit de le diffuser, de le distribuer ou de le reproduire.
> >
>
>



Soap Over JMS using Embedded Axis2 Engine

2006-12-29 Thread Ted Jones
I am attempting to execute a web service via ActiveMQ. The web service
is deployed to an Axis2 engine that is embedded in a web app running on
Tomcat 5.5. Are there any known *gotchas* here? I cannot seem to
communicate with the service via JMS as it keeps timing out. When I
change my endpoint in the client call from the JMS endpoint to the web
service endpoint, it finds it.
 
Thanks,
Ted


axis1.2.1 vs axis1.4

2006-12-29 Thread Ravi Krishnamurthy

Hello;
I had published the same webservice in axis 1.2.1 ans now trying it out 
with axis 1.4


The wsdl in 1.2.1 says for a complex type as below in 1.2.1

   
   
   
   
   
  


in 1.4 it shows as below:


   
   
   
   
   
   


What should be done in the service deployment to make sure the element 
name is shown as userId and not as in0, in1 etc


Thanks for your help,
regards,
Ravi


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



Re: SAXException-Invalid Element

2006-12-29 Thread Martin Gainty
Can you show the WSDL for the service and client code you are using to invoke 
this service?
Thanks,
M-
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
  - Original Message - 
  From: Sujoy 
  To: axis-user@ws.apache.org 
  Sent: Friday, December 29, 2006 9:34 AM
  Subject: SAXException-Invalid Element


  Hi, I am using Spring to call a webservice & Axis as a Service factory class. 
When I am passing valid input to the web service the response object is 
populated fine but when I am passing wrong/invalid input I am getting 
SAXException-Invalid Element. Basically at the time of error/exception 
scenarios the web service is sending back the request as response. I could not 
change the webservice(bcoz some other vendor is maintaining the web service) to 
send me back the response for the exception/error scenarios as well . How Can I 
get the proper response object in case of invalid input also? Is there any way 
that axis will populate the response object when request is coming back as 
response? The configuration details are as follows: Spring :1.2.5. Axis :1.2.1 
NOTE: When I am using weblogic webserviceclient as a client the code is working 
fine for right as well as wrong input to the web service. 

--
  View this message in context: SAXException-Invalid Element
  Sent from the Axis - User mailing list archive at Nabble.com.


RE: WSDL2Java

2006-12-29 Thread Douglas Kunzman
Yes - I want to keep them seperated becuase they are defined by the
government as seperate interfaces.

Doug

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Friday, December 29, 2006 4:58 PM
To: axis-user@ws.apache.org
Subject: Re: WSDL2Java


Hi Doug

Would be difficult (maybe possible but personally I dont know how) if you
have 2 differing schemas
If the (targetNamespace) schema is the same then you're better off combining
the 2
Is there any specific reason why you would want to keep them separate and
distinct?

M-
---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.
---
Le présent message électronique (y compris les pièces qui y sont annexées,
le cas échéant) s'adresse au destinataire indiqué et peut contenir des
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
destinataire de ce document, nous vous signalons qu'il est strictement
interdit de le diffuser, de le distribuer ou de le reproduire.
- Original Message -
From: "Doug Kunzman" <[EMAIL PROTECTED]>
To: 
Sent: Friday, December 29, 2006 10:40 AM
Subject: WSDL2Java


> Does anyone know if it is possible to use WSDL2Java to process two WSDL
> files into one application?  If I have to build a single server and have
> multipe WSDL to process what is the best method?
>
> Thanks
> Doug
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: WSDL2Java

2006-12-29 Thread Javier Kohen
El vie, 29-12-2006 a las 16:58 -0500, Martin Gainty escribió:
> Hi Doug
> 
> Would be difficult (maybe possible but personally I dont know how) if you 
> have 2 differing schemas
> If the (targetNamespace) schema is the same then you're better off combining 
> the 2
> Is there any specific reason why you would want to keep them separate and 
> distinct?

I do, on the client side, because my application communicates with
several different web services, and I was wondering this, too.

> - Original Message - 
> From: "Doug Kunzman" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, December 29, 2006 10:40 AM
> Subject: WSDL2Java
> 
> 
> > Does anyone know if it is possible to use WSDL2Java to process two WSDL
> > files into one application?  If I have to build a single server and have
> > multipe WSDL to process what is the best method?

Thanks,
-- 
Javier Kohen <[EMAIL PROTECTED]>
ICQ: blashyrkh #2361802
Jabber: [EMAIL PROTECTED]


signature.asc
Description: Esta parte del mensaje está firmada	digitalmente


Re: WSDL2Java

2006-12-29 Thread Martin Gainty
Hi Doug

Would be difficult (maybe possible but personally I dont know how) if you have 
2 differing schemas
If the (targetNamespace) schema is the same then you're better off combining 
the 2
Is there any specific reason why you would want to keep them separate and 
distinct?

M-
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: "Doug Kunzman" <[EMAIL PROTECTED]>
To: 
Sent: Friday, December 29, 2006 10:40 AM
Subject: WSDL2Java


> Does anyone know if it is possible to use WSDL2Java to process two WSDL
> files into one application?  If I have to build a single server and have
> multipe WSDL to process what is the best method?
> 
> Thanks
> Doug
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Re: [Axis2] Issues with Java 6 and Applets

2006-12-29 Thread Davanum Srinivas

Jérôme,

We have already fixed this problem in Axiom 1.2.1 release [1]

thanks,
dims

[1] http://svn.apache.org/viewvc?view=rev&revision=476358

On 12/27/06, Jérôme Mainaud <[EMAIL PROTECTED]> wrote:

That's the same as the one for which you gave the endorsed dir solution.
And copy deploy stax-api.jar in jre/lib/endorsed make it work for
testing purposes.
My real problem is I cannot ask this from the end-users, so I have to
find another solution.

Here is the stacktrace :

javax.xml.stream.FactoryConfigurationError: Provider
javax.xml.stream.XMLInputFactory could not be instantiated:
java.lang.InstantiationException
at javax.xml.stream.XMLInputFactory.newInstance(Unknown Source)
at
org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:40)
at
org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:66)
at
org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:86)
at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:58)
at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:690)
at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:109)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:61)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
at
org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient.java:189)
at
org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:118)
at org.apache.axis2.client.ServiceClient.(ServiceClient.java:114)
at org.apache.axis2.client.ServiceClient.(ServiceClient.java:207)
at
upload.client.service.UploadServiceSoapStub.initUpload(UploadServiceSoapStub.java:55)
at upload.client.service.UploadClient.init(UploadClient.java:30)
at upload.client.Upload.(Upload.java:56)
at upload.client.swing.UploadApplet.init(UploadApplet.java:50)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

--
Jérôme Mainaud   Klee Group
[EMAIL PROTECTED]  
+ 33 146 295 825Tel: + 33 146 292 525
Fax: + 33 146 292 529



Davanum Srinivas a écrit :
> Can u please paste the exception you get with JDK 1.6?
>
> thanks,
> dims
>
> On 12/27/06, Jérôme Mainaud <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> I have a ws client (using Axis2) that is an applet.
>> It must work on any jre since 1.4.2 but do not work on clients that have
>> java 1.6 since Sun added stax-api in jdk.
>>
>> I cannot deploy stax-api.jar in jre/lib/endorsed folder on every Java 6
>> client.
>> Because there are many clients, because them do not have any computer's
>> skill, because they often are not allowed to install anything in their
>> computer, because their administrator will never accept that there is
>> anything to deploy but standard jvm...
>>
>> How can I make Axis2 work on any client (from 1.4.2 to 1.6.0) ?
>>
>> Thank you.
>>
>> --
>> Jérôme Mainaud   Klee Group
>> [EMAIL PROTECTED]  
>> + 33 146 295 825Tel: + 33 146 292 525
>> Fax: + 33 146 292 529
>>
>>
>>
>> Sathija Pavuluri a écrit :
>> > Hello,
>> >
>> > An issue had been posted earlier about axis2 issues when running on
>> jdk 6. -
>> > http://marc.theaimsgroup.com/?l=axis-user&m=116593301416986&w=2
>> >
>> > And the proposed solution was to copy the stax-api.jar from axis2
>> distribution to jre's endorsed folder.
>> >
>> > The issue was actually resolved by copying the jar to tomcat's
>> common/endorsed folder.
>> > Didnt have to copy to jre's endorsed.
>> >
>> > Just an FYI.
>> >
>> > - Sathija Pavuluri.
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

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





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Re: Re: Re: No Deserializer found in encoding string!

2006-12-29 Thread Durga Srinivasu
Hai,

Don't remove your Output bean mapping, u keep that mapping as it is and add the 
following mapping for string.

smr.mapTypes(Constants.NS_URI_SOAP_ENC, new
QName("http://schemas.xmlsoap.org/soap/encoding/";,
"string"), String.class, null, sd);

In my old post, inplace of "String.class" there is null, that is wrong, we 
should use "String.class".

Sorry for the wrong post.

thanks
Durga Srinivasu 

On Fri, 29 Dec 2006 Durga Srinivasu wrote :
>Hi,
>
>I hope ur are using Apache SOAP Kit to invoke ur web service, which is 
>deployed on AXIS 1.4.
>
>I hope the following de-serializer changes to ur AICliente.soapInit() method 
>could solve ur problem.
>
>SOAPMappingRegistry smr = new SOAPMappingRegistry();
>StringDeserializer sd = new StringDeserializer();
>smr.mapTypes(Constants.NS_URI_SOAP_ENC, new
>QName("http://schemas.xmlsoap.org/soap/encoding/";,
>"string"), null, null, sd);
>call.setSOAPMappingRegistry(smr);
>
>thanks
>Durga Srinivasu
>
>
>
>
>
>
>
>On Fri, 29 Dec 2006 celia05es wrote :
> >
> >Hello again,
> >I have looked and looked again but could not find anything in the database
> >that could help me. I am completely stuck.
> >COuld someone give me a hand please?
> >
> >
> >
> >
> >celia05es wrote:
> > >
> > > Hello,
> > >
> > > I am quite new to Axis and I am getting mad trying to find out what the
> > > problem is. I have been trying so many things! I am desperate!
> > > Could you suggest a solution?
> > > I don't know what you need to help me so I give you the wsdd and the
> > > cliente side procedure where I call AXIS. I suppose the problem is there
> > > but I cannot find it.
> > >
> > >
> > > THank you
> > > ==
> > > I am using Axis 1-4 and Tomcat 5.1.9.
> > >
> > > I am getting the following exception:
> > >
> > > No Deserializer found to deserialize a
> > > 'http://schemas.xmlsoap.org/soap/encoding/:string' using
> > > encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.
> > >
> > > My application is very, very simple since I wanted to have AXIS working
> > > before starting something else.
> > >
> > > ON SERVER SIDE:
> > >
> > > AI.wsdd:
> > >  
> > > -  > > targetNamespace="http://135.88.100.235:8081/services/services/AI";
> > > xmlns:apachesoap="http://xml.apache.org/xml-soap";
> > > xmlns:impl="http://135.88.100.235:8081/services/services/AI";
> > > xmlns:intf="http://135.88.100.235:8081/services/services/AI";
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> > > xmlns:tns1="urn:AI" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> > > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> > > - 
> > > - 
> > > -  > > xmlns="http://www.w3.org/2001/XMLSchema";>
> > >   http://schemas.xmlsoap.org/soap/encoding/"; />
> > > - 
> > > - 
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > > - 
> > >   
> > >   
> > >   
> > > - 
> > >   
> > >   
> > > - 
> > > - 
> > >   
> > >> > />
> > >   
> > >   
> > > - 
> > >> > transport="http://schemas.xmlsoap.org/soap/http"; />
> > > - 
> > >   
> > > - 
> > >   http://schemas.xmlsoap.org/soap/encoding/";
> > > namespace="http://AI"; use="encoded" />
> > >   
> > > - 
> > >   http://schemas.xmlsoap.org/soap/encoding/";
> > > namespace="http://135.88.100.235:8081/services/services/AI"; use="encoded"
> > > />
> > >   
> > >   
> > >   
> > > - 
> > > - 
> > >> > location="http://135.88.100.235:8081/services/services/AI"; />
> > >   
> > >   
> > >   
> > >
> > >
> > > AIServicio.java
> > > That contains a procedure AIModif_p1 (String p1_old, String p1_new).
> > > This procedure returns an Output object that contains the error code and
> > > the error message.
> > >
> > > CLIENTE SIDE
> > > AICliente.java
> > >   import.
> > > public class AICliente  extends HttpServlet
> > > {
> > >
> > >   public AICliente() {}
> > >
> > >   private static URL url = null;
> > >   private static Call call = null;
> > >   private static SOAPMappingRegistry smr = null;
> > >   private static BeanSerializer beanSer = null;
> > >   private static Output output = null;
> > >
> > >   public static void soapInit()  throws IOException
> > >   {
> > >  url = new URL("http://135.88.100.235:8081/services/services/AI";);
> > >  call = new Call();
> > >  beanSer = new BeanSerializer();
> > >  smr = new SOAPMappingRegistry();
> > >  smr.mapTypes(Constants.NS_URI_SOAP_ENC,
> > > new QName("urn:AI","Output"),
> > > Output.class, beanSer, beanSer);
> > >  call.setSOAPMappingRegistry(smr);
> > >  call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
> > >  call.setTargetObjectURI("urn:AI");
> > >  output= new Output();
> > >   }
> > >
> > >   public static Output AImodif_p1( String p1_old, String p1_new)
> > > throws IOException
> > >   {
> > > System.out.println("Entewring Cliente AImodif_p1");
> > > System.out.prin

Re: No REST for axis2 v1.1

2006-12-29 Thread Martin Gainty
apparently that was a patch for a CLASSPATH issue
specifically I am looking for REST service which none of the 2.1.1 distros seem 
to have

BTW there are 5 quickstarts that are packaged in the 2.1.1 distro (and none of 
them are a REST service)
/src/modules/samples/quickstart
/src/modules/samples/quickstartadb
/src/modules/samples/quickstartaxiom
/src/modules/samples/quickstartjibx
/src/modules/samples/quickstartxmlbeans

M-
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
  - Original Message - 
  From: Manoj Khangaonkar 
  To: axis-user@ws.apache.org ; Martin Gainty 
  Sent: Friday, December 29, 2006 12:23 PM
  Subject: Re: No REST for axis2 v1.1


  Martin,

  To add to my earlier response,

  REST should be enabled by default and for 1.1.1 the patch is for AXIS2-1917.

  Mj

   
  On 12/29/06, Manoj Khangaonkar <[EMAIL PROTECTED]> wrote: 
Martin,

The quickstartsample is a rest sample. The client invokes the service using 
REST

I have not tried it in 1.1.

In 1.1.1 , it is broken and I have provided a patch AXIS2-1912.

Mj

 
On 12/29/06, Martin Gainty <[EMAIL PROTECTED] > wrote: 
  Hello All-
  when attempting to access Axis 2 v 1.1 HappyAxis.jsp I see
  Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml
  Does anyone know how to enable rest support in Axis 2 1.1?
  Is there an example REST service available?

  Thx,
  M-
  
--- 
  This e-mail message (including attachments, if any) is intended for the 
use of the individual or entity to which it is addressed and may contain 
information that is privileged, proprietary , confidential and exempt from 
disclosure. If you are not the intended recipient, you are notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. 
  
--- 
  Le présent message électronique (y compris les pièces qui y sont 
annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir 
des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire. 





Re: No REST for axis2 v1.1

2006-12-29 Thread Manoj Khangaonkar

Martin,

To add to my earlier response,

REST should be enabled by default and for 1.1.1 the patch is for AXIS2-1917.

Mj


On 12/29/06, Manoj Khangaonkar <[EMAIL PROTECTED]> wrote:


Martin,

The quickstartsample is a rest sample. The client invokes the service
using REST

I have not tried it in 1.1.

In 1.1.1 , it is broken and I have provided a patch AXIS2-1912.

Mj


 On 12/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
>  Hello All- when attempting to access Axis 2 v 1.1 HappyAxis.jsp I see
> Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml Does
> anyone know how to enable rest support in Axis 2 1.1?
> Is there an example REST service available?
>
> Thx,
> M-
> ---
>
> This e-mail message (including attachments, if any) is intended for the
> use of the individual or entity to which it is addressed and may contain
> information that is privileged, proprietary , confidential and exempt from
> disclosure. If you are not the intended recipient, you are notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited.
> ---
>
> Le présent message électronique (y compris les pièces qui y sont
> annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir
> des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
> destinataire de ce document, nous vous signalons qu'il est strictement
> interdit de le diffuser, de le distribuer ou de le reproduire.
>




Re: No REST for axis2 v1.1

2006-12-29 Thread Manoj Khangaonkar

Martin,

The quickstartsample is a rest sample. The client invokes the service using
REST

I have not tried it in 1.1.

In 1.1.1 , it is broken and I have provided a patch AXIS2-1912.

Mj


On 12/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:


 Hello All- when attempting to access Axis 2 v 1.1 HappyAxis.jsp I see
Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml Does
anyone know how to enable rest support in Axis 2 1.1?
Is there an example REST service available?

Thx,
M-
---

This e-mail message (including attachments, if any) is intended for the
use of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.
---

Le présent message électronique (y compris les pièces qui y sont annexées,
le cas échéant) s'adresse au destinataire indiqué et peut contenir des
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
destinataire de ce document, nous vous signalons qu'il est strictement
interdit de le diffuser, de le distribuer ou de le reproduire.



Re: Axis 1.4 Empty data in the invoke method

2006-12-29 Thread Aniket M Shende
Hello Anne , 

The question i have is related to the below discussion. 
Is it true that generated stubs provde the fastest response time , 
compared to generated proxy and DII ?
Is this statement true in any sense ?

If yes , then how can we explain the fact that Axis uses DII internally 
even in the case of generated stubs. 


Thanks,
Aniket
desk : 954 447 5429
GNA - Portal
Miramar II





"Anne Thomas Manes" <[EMAIL PROTECTED]>
12/29/2006 08:49 AM
Please respond to axis-user
 
To: axis-user@ws.apache.org
cc: 
Subject:Re: Axis 1.4 Empty data in the invoke method


Make sure that the qnames you use exactly match the qnames defined in the 
WSDL.
I also suggest that you use wsdl2java to generate a client stub, and
then look at the generated code to see how Axis would do it.

Anne

On 12/28/06, Pradyumna Kanchi <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
>
>
> Thanks for the response.
>
>
>
> I modified and added the following lines of code
>
>
>
>
>
> //call.setProperty(org.apache.axis.client.Call.OPERATION_STYLE_PROPERTY,
>  org.apache.axis.constants.Style.DOCUMENT_STR);
>
>
>
> //call.setProperty(org.apache.axis.client.Call.SOAPACTION_USE_PROPERTY,
> org.apache.axis.constants.Use.LITERAL_STR);
>
>
>
> call.setOperationStyle(org.apache.axis.constants.Style.DOCUMENT);
>
>
>
> call.setOperationUse(org.apache.axis.constants.Use.LITERAL);
>
>
>
>
>
> call.setReturnQName(new
> javax.xml.namespace.QName(qname,"getMessageReturned"));
>
>
>
>
>
> I am getting the following exception
>
>
>
> ; nested exception is:
>
> org.xml.sax.SAXException: SimpleDeserializer encountered a child 
element,
> which is NOT expected, in something it was trying to deserialize.
>
>
>
>
>
> Also the .Net Service is receiving empty data
>
>
>
> Thanks & Regards,
>
> Pradyumna
>
>
>
>
> -Original Message-
>  From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
>  Sent: Thursday, December 28, 2006 12:37 AM
>  To: axis-user@ws.apache.org
>  Subject: Re: Axis 1.4 Empty data in the invoke method
>
>
>
> Axis defaults to "rpc" style, so you must set the
>
> OPERATION_STYLE_PROPERTY to "document". You also must pass the
>
> "wrapped" elements rather than the "unwrapped" parameters. So you must
>
> pass in the "getMessage" value object, and get the
>
> "getMessageResponse" value object for the return value.
>
>
>
> Anne
>
>
>
> On 12/27/06, Pradyumna Kanchi <[EMAIL PROTECTED]> wrote:
>
> >
>
> >
>
> >
>
> >
>
> > Hi,
>
> >
>
> >
>
> >
>
> > I want to invoke a web service. I don't want to generate the client 
from
>
> > WSDL. Instead I am using axis client Call.
>
> >
>
> > I am able to invoke the web service method written in .Net and getting 
the
>
> > acknowledgement.
>
> >
>
> > But the .Net web service is receiving empty parameter from the axis 
client
>
> > even though the data is being passed.
>
> >
>
> > (But it is receiving data if I invoke from the classes generated from
> WSDL)
>
> >
>
> >
>
> >
>
> > The web service is of document / literal.
>
> >
>
> >
>
> >
>
> > I am using axis 1.4. Is it possible to invoke .Net service without 
using
> the
>
> > classes generated from WSDL?
>
> >
>
> >
>
> >
>
> > Following is the code that I am using.
>
> >
>
> >
>
> >
>
> > String endPointAddress =
>
> > "http://192.168.1.22/testws/service.asmx";;
>
> >
>
> > String qname = "http://tempuri.org/";;
>
> >
>
> > String soapURI = "http://tempuri.org/getMessage";;
>
> >
>
> > String methodName = "getMessage";
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > org.apache.axis.client.Service service = new
>
> > org.apache.axis.client.Service();
>
> >
>
> > Call call = (Call) service.createCall();
>
> >
>
> > call.setTargetEndpointAddress(new java.net.URL(new
>
> > java.net.URL(endPointAddress));
>
> >
>
> > call.setUseSOAPAction(true);
>
> >
>
> > call.setSOAPActionURI(soapURI);
>
> >
>
> > call.setEncodingStyle(null);
>
> >
>
> >
> call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
>
> > Boolean.FALSE);
>
> >
>
> >
> call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
>
> > Boolean.FALSE);
>
> >
>
> >
> 
call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
>
> >
>
> >
>
> >
>
> > call.setOperationName(new javax.xml.namespace.QName(qname, 
methodName));
>
> >
>
> >
>
> >
>
> > call.setTimeout(6);
>
> >
>
> > String returned = (String) call.invoke(new Object[]{" Test Message"});
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Thanks & Regards,
>
> >
>
> > Pradyumna
>
> >
>
> >
>
> >
>
> >
>
> >
> -
>
> > CONFIDENTIALITY NOTICE:
>
> >  The information contained in this transmittal and Documents 
accompanying
>
> > same are legally privileged and confidential information intended only 
for
>
> > the use of the individual or entity named herein. If the reader of 
this
>
> > message is not the intended recipient, you are hereby notified that 
any
>
> > dissemination, distribution or copy of this transmittal is strictly
>

No REST for axis2 v1.1

2006-12-29 Thread Martin Gainty
Hello All-
when attempting to access Axis 2 v 1.1 HappyAxis.jsp I see
Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml
Does anyone know how to enable rest support in Axis 2 1.1?
Is there an example REST service available?

Thx,
M-
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.

WSDL2Java

2006-12-29 Thread Doug Kunzman
Does anyone know if it is possible to use WSDL2Java to process two WSDL
files into one application?  If I have to build a single server and have
multipe WSDL to process what is the best method?

Thanks
Doug



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



[Axis2] building Axis2

2006-12-29 Thread Lin Sun
Hello there,

I am new to the list and I just checked out Axis2\trunk\java.   I followed
this Axis2 development page (http://ws.apache.org/axis2/svn.html) and typed
'maven' to kick off the build.I am getting the following error when
attempting to build Axis2 using Maven1.
 

BUILD FAILED

File.. C:\Documents and
Settings\Administrator\.maven\cache\maven-multiproje

ct-plugin-1.5-SNAPSHOT\plugin.jelly

Element... maven:reactor

Line.. 227

Column -1

Unable to obtain goal [multiproject:install-callback] -- C:\Documents and
Settin

gs\Administrator\.maven\cache\maven-test-plugin-1.8.1-SNAPSHOT\plugin.jelly:
155:

-1:  Test org.apache.axis2.engine.EchoRawXMLMultipleTest failed

Total time   : 17 minutes 47 seconds

Finished at  : Friday, December 22, 2006 1:10:45 PM EST

 

Should I skip test during the build?  Thanks, Lin


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



SAXException-Invalid Element

2006-12-29 Thread Sujoy

Hi,
I am using Spring to call a webservice & Axis as a Service factory class.
When I am passing valid input to the web service the response object is
populated fine but when I am passing wrong/invalid input I am getting
SAXException-Invalid Element. Basically at the time of error/exception
scenarios the web service is sending back the request as response. I could
not change the webservice(bcoz some other vendor is maintaining the web
service) to send me back the response for the exception/error scenarios as
well .

How Can I get the proper response object in case of invalid input also? Is
there any way that axis will populate the response object when request is
coming back as response?

The configuration details are as follows:
Spring :1.2.5.
Axis :1.2.1

NOTE: When I am using weblogic webserviceclient as a client the code is
working fine for right as well as wrong input to the web service.
-- 
View this message in context: 
http://www.nabble.com/SAXException-Invalid-Element-tf2894884.html#a8087928
Sent from the Axis - User mailing list archive at Nabble.com.


RE: soap header in axis2

2006-12-29 Thread Amit G Soni
Hi Paul,

I am trying rampart with version 1.0 but it gives me following error
along with the mail I am also attaching the client code and axis2.xml

 [java] org.apache.axis2.deployment.DeploymentException: Invalid
phases please recheck axis2.xml {0} for the handler {1}; nested
exception is: 
 [java] org.apache.axis2.deployment.DeploymentException: Invalid
phases please recheck axis2.xml {0} for the handler {1}
 [java] at
org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEn
gine.java:117)
 [java] at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
FileSystemConfigurator.java:120)
 [java] at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:38)
 [java] at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
ContextFromFileSystem(ConfigurationContextFactory.java:90)
 [java] at com.test.TestClient.main(TestClient.java:18)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:324)
 [java] at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
 [java] at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
 [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:745)
 [java] at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:199)
 [java] at
org.apache.tools.ant.taskdefs.Java.execute(Java.java:102)
 [java] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:324)
 [java] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
05)
 [java] at org.apache.tools.ant.Task.perform(Task.java:342)
 [java] at org.apache.tools.ant.Target.execute(Target.java:357)
 [java] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
 [java] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1292)
 [java] at
org.apache.tools.ant.Project.executeTarget(Project.java:1261)
 [java] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:41)
 [java] at
org.apache.tools.ant.Project.executeTargets(Project.java:1144)
 [java] at org.apache.tools.ant.Main.runBuild(Main.java:698)
 [java] at org.apache.tools.ant.Main.startAnt(Main.java:199)
 [java] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:298)
 [java] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
 [java] Caused by: org.apache.axis2.deployment.DeploymentException:
Invalid phases please recheck axis2.xml {0} for the handler {1}
 [java] at
org.apache.axis2.deployment.util.PhasesInfo.getGlobalInflow(PhasesInfo.j
ava:111)
 [java] at
org.apache.axis2.deployment.DeploymentEngine.validateSystemPredefinedPha
ses(DeploymentEngine.java:817)
 [java] at
org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEn
gine.java:115)
 [java] ... 30 more
 [java] __1

Thanks,
Amit Soni

-Original Message-
From: Paul Fremantle [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 28, 2006 8:45 PM
To: axis-user@ws.apache.org
Subject: Re: soap header in axis2

Amit

You seem to have cut out the phases from axis2.xml. The config needs
the phases defined. That is how it figures out how to interleave the
security handlers. If you take the standard axis2.xml and add those
lines:



UsernameToken Timestamp
wfws
 
com.test.PWCallback



Paul

On 12/28/06, Amit G Soni <[EMAIL PROTECTED]> wrote:
> Hi Paul,
>
> Thanks a lot for all of your help.
>
> I have executed the same wsdl with axis-1.4 successfully but in axis2
it
> gives these error. I between I have downloaded the rampart-1.0.mar
file
> but when I am running following line of code it gives me exception.
>
> ConfigurationContext context = ConfigurationContextFactory
> .createConfigurationContextFromFileSystem(
> "resources", "resources/axis2.xml");
>
>
> log4j:WARN No appenders could be found for logger
> (org.apache.axiom.om.impl.builder.StAXOMBuilder).
> log4j:WARN Please initialize the log4j system properly.
> org.apache.axis2.deployment.DeploymentException: Invalid phases please
> recheck axis2.xml {0} for the handler {1}; n

Re: Axis 1.4 Empty data in the invoke method

2006-12-29 Thread Anne Thomas Manes

Make sure that the qnames you use exactly match the qnames defined in the WSDL.
I also suggest that you use wsdl2java to generate a client stub, and
then look at the generated code to see how Axis would do it.

Anne

On 12/28/06, Pradyumna Kanchi <[EMAIL PROTECTED]> wrote:





Hi,



Thanks for the response.



I modified and added the following lines of code





//call.setProperty(org.apache.axis.client.Call.OPERATION_STYLE_PROPERTY,
 org.apache.axis.constants.Style.DOCUMENT_STR);



//call.setProperty(org.apache.axis.client.Call.SOAPACTION_USE_PROPERTY,
org.apache.axis.constants.Use.LITERAL_STR);



call.setOperationStyle(org.apache.axis.constants.Style.DOCUMENT);



call.setOperationUse(org.apache.axis.constants.Use.LITERAL);





call.setReturnQName(new
javax.xml.namespace.QName(qname,"getMessageReturned"));





I am getting the following exception



; nested exception is:

org.xml.sax.SAXException: SimpleDeserializer encountered a child element,
which is NOT expected, in something it was trying to deserialize.





Also the .Net Service is receiving empty data



Thanks & Regards,

Pradyumna




-Original Message-
 From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 28, 2006 12:37 AM
 To: axis-user@ws.apache.org
 Subject: Re: Axis 1.4 Empty data in the invoke method



Axis defaults to "rpc" style, so you must set the

OPERATION_STYLE_PROPERTY to "document". You also must pass the

"wrapped" elements rather than the "unwrapped" parameters. So you must

pass in the "getMessage" value object, and get the

"getMessageResponse" value object for the return value.



Anne



On 12/27/06, Pradyumna Kanchi <[EMAIL PROTECTED]> wrote:

>

>

>

>

> Hi,

>

>

>

> I want to invoke a web service. I don't want to generate the client from

> WSDL. Instead I am using axis client Call.

>

> I am able to invoke the web service method written in .Net and getting the

> acknowledgement.

>

> But the .Net web service is receiving empty parameter from the axis client

> even though the data is being passed.

>

> (But it is receiving data if I invoke from the classes generated from
WSDL)

>

>

>

> The web service is of document / literal.

>

>

>

> I am using axis 1.4. Is it possible to invoke .Net service without using
the

> classes generated from WSDL?

>

>

>

> Following is the code that I am using.

>

>

>

> String endPointAddress =

> "http://192.168.1.22/testws/service.asmx";;

>

> String qname = "http://tempuri.org/";;

>

> String soapURI = "http://tempuri.org/getMessage";;

>

> String methodName = "getMessage";

>

>

>

>

>

> org.apache.axis.client.Service service = new

> org.apache.axis.client.Service();

>

> Call call = (Call) service.createCall();

>

> call.setTargetEndpointAddress(new java.net.URL(new

> java.net.URL(endPointAddress));

>

> call.setUseSOAPAction(true);

>

> call.setSOAPActionURI(soapURI);

>

> call.setEncodingStyle(null);

>

>
call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,

> Boolean.FALSE);

>

>
call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,

> Boolean.FALSE);

>

>
call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);

>

>

>

> call.setOperationName(new javax.xml.namespace.QName(qname, methodName));

>

>

>

> call.setTimeout(6);

>

> String returned = (String) call.invoke(new Object[]{" Test Message"});

>

>

>

>

>

>

>

> Thanks & Regards,

>

> Pradyumna

>

>

>

>

>
-

> CONFIDENTIALITY NOTICE:

>  The information contained in this transmittal and Documents accompanying

> same are legally privileged and confidential information intended only for

> the use of the individual or entity named herein. If the reader of this

> message is not the intended recipient, you are hereby notified that any

> dissemination, distribution or copy of this transmittal is strictly

> prohibited.

>
-

>

>
-

> To unsubscribe, e-mail:
[EMAIL PROTECTED]

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

>

>

>



-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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





-
CONFIDENTIALITY NOTICE:
 The information contained in this transmittal and Documents accompanying
same are legally privileged and confidential information intended only for
the use of the individual or entity named herein. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copy of this transmittal is strictly
prohibited.
-




Re: Question about AXIS and tomcat

2006-12-29 Thread Anne Thomas Manes

Frank,

Axis and Axis2 are web service frameworks. They make it easier for you
to implement web service clients and services. Axis supports web
services that use the SOAP protocol. Axis2 supports SOAP as well as
"plain old XML" (POX) over HTTP services.

Both Axis and Axis2 server-side frameworks are implemented as
servlets. They run on Tomcat or some other servlet engine. (They both
also support a stand-alone configuration, but it's not recommended for
production systems.)


From a server-side perspective, for in-bound messages, they receive

HTTP requests, process the XML message, and dispatch the request by
invoking the appropriate service method. The "process the XML message"
step includes processing message headers and optionally translating
the XML body into Java objects. (A configuration file tells the
framework how to process the message.) For out-bound messages, the
framework takes the return value, packages it back into an XML
message, adds any required headers, and returns the message to the
caller.


From a client-side perspective, for each request, it packages the

request into an XML message, adds any required headers, sends the
message to the appropriate server, and waits for a response. On
response, it processes the XML message and returns the return value to
the application.

Hope this helps.

Anne

On 12/29/06, Frank Zhou <[EMAIL PROTECTED]> wrote:

Hi, All,

I have a general question about tomcat and AXIS. Is
there any relation or execlusion between the two? I am
currently starting to work on a web service
application which the web server is hosted on TOMCAT
and the client is using AXIS to parse WSDL and making
SOAP/http calls et cetera. My web service application
basically intends to expose some functionalities of
another application through web serivce (so there is a
server component), it also try to use thrid party web
services to integrate with my other applications's
functionality (so there is a client component). The
server side is really simple from architectural point
of view, it basically just a servlet respoding to
SOAP/http calls (like publish WSDL and handling
operations as defined in the generated WSDL).

Now I am trying to expand and enhance the web service
application, but as a web service novice, I would like
to seek some expert advices here.

(1) Can I use AXIS on the server side? can AXIS
replace the servlet?

(2) On the client side, currently I am just able to
make SOAP/http calls. I know AXIS2 offers lots of new
features. Which of those are more important than
others from web service perspective? I am trying to
enhance my web service client so that I can better
consume third party web services like Google adwords
et cetera.

(3) Is there such a thing called platform web service?
What are the essential features of it? Maybe I am
asking wrong question here, but I am trying to
understand what I can do to enhance my server side
compoent, which currently is just a servlet
structually.

Well, enough for now, any feedback is really
appreciated.

Thanks much in advance.

Frank

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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




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



Re: Re: No Deserializer found in encoding string!

2006-12-29 Thread Durga Srinivasu
Hi,

I hope ur are using Apache SOAP Kit to invoke ur web service, which is deployed 
on AXIS 1.4.

I hope the following de-serializer changes to ur AICliente.soapInit() method 
could solve ur problem.

SOAPMappingRegistry smr = new SOAPMappingRegistry();
StringDeserializer sd = new StringDeserializer();
smr.mapTypes(Constants.NS_URI_SOAP_ENC, new
QName("http://schemas.xmlsoap.org/soap/encoding/";,
"string"), null, null, sd);
call.setSOAPMappingRegistry(smr);

thanks
Durga Srinivasu




 


On Fri, 29 Dec 2006 celia05es wrote :
>
>Hello again,
>I have looked and looked again but could not find anything in the database
>that could help me. I am completely stuck.
>COuld someone give me a hand please?
>
>
>
>
>celia05es wrote:
> >
> > Hello,
> >
> > I am quite new to Axis and I am getting mad trying to find out what the
> > problem is. I have been trying so many things! I am desperate!
> > Could you suggest a solution?
> > I don't know what you need to help me so I give you the wsdd and the
> > cliente side procedure where I call AXIS. I suppose the problem is there
> > but I cannot find it.
> >
> >
> > THank you
> > ==
> > I am using Axis 1-4 and Tomcat 5.1.9.
> >
> > I am getting the following exception:
> >
> > No Deserializer found to deserialize a
> > 'http://schemas.xmlsoap.org/soap/encoding/:string' using
> > encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.
> >
> > My application is very, very simple since I wanted to have AXIS working
> > before starting something else.
> >
> > ON SERVER SIDE:
> >
> > AI.wsdd:
> >  
> > -  > targetNamespace="http://135.88.100.235:8081/services/services/AI";
> > xmlns:apachesoap="http://xml.apache.org/xml-soap";
> > xmlns:impl="http://135.88.100.235:8081/services/services/AI";
> > xmlns:intf="http://135.88.100.235:8081/services/services/AI";
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> > xmlns:tns1="urn:AI" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> > - 
> > - 
> > -  > xmlns="http://www.w3.org/2001/XMLSchema";>
> >   http://schemas.xmlsoap.org/soap/encoding/"; />
> > - 
> > - 
> >   
> >   
> >   
> >   
> >   
> >   
> > - 
> >   
> >   
> >   
> > - 
> >   
> >   
> > - 
> > - 
> >   
> >> />
> >   
> >   
> > - 
> >> transport="http://schemas.xmlsoap.org/soap/http"; />
> > - 
> >   
> > - 
> >   http://schemas.xmlsoap.org/soap/encoding/";
> > namespace="http://AI"; use="encoded" />
> >   
> > - 
> >   http://schemas.xmlsoap.org/soap/encoding/";
> > namespace="http://135.88.100.235:8081/services/services/AI"; use="encoded"
> > />
> >   
> >   
> >   
> > - 
> > - 
> >> location="http://135.88.100.235:8081/services/services/AI"; />
> >   
> >   
> >   
> >
> >
> > AIServicio.java
> > That contains a procedure AIModif_p1 (String p1_old, String p1_new).
> > This procedure returns an Output object that contains the error code and
> > the error message.
> >
> > CLIENTE SIDE
> > AICliente.java
> >   import.
> > public class AICliente  extends HttpServlet
> > {
> >
> >   public AICliente() {}
> >
> >   private static URL url = null;
> >   private static Call call = null;
> >   private static SOAPMappingRegistry smr = null;
> >   private static BeanSerializer beanSer = null;
> >   private static Output output = null;
> >
> >   public static void soapInit()  throws IOException
> >   {
> >  url = new URL("http://135.88.100.235:8081/services/services/AI";);
> >  call = new Call();
> >  beanSer = new BeanSerializer();
> >  smr = new SOAPMappingRegistry();
> >  smr.mapTypes(Constants.NS_URI_SOAP_ENC,
> > new QName("urn:AI","Output"),
> > Output.class, beanSer, beanSer);
> >  call.setSOAPMappingRegistry(smr);
> >  call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
> >  call.setTargetObjectURI("urn:AI");
> >  output= new Output();
> >   }
> >
> >   public static Output AImodif_p1( String p1_old, String p1_new)
> > throws IOException
> >   {
> > System.out.println("Entewring Cliente AImodif_p1");
> > System.out.println("p1_old="+p1_old+" p1_new="+p1_new);
> >
> > soapInit();
> >
> > call.setMethodName("AImodif_p1");
> >
> > Vector params = new Vector();
> > try
> > {
> >   params.addElement(new Parameter("p1_old",String.class,p1_old,null));
> >   params.addElement(new Parameter("p1_new",String.class,p1_new,null));
> >   call.setParams(params);
> > }
> > catch (Exception e)
> > {
> >   output.setPError(-1);
> >   output.setSError(e.getMessage());
> >   System.out.println("ERROR: Generated fault: " + e.getMessage());
> >   return output;
> > };
> >
> > System.out.println("AImodif_p1.Server answering ...");
> > Response resp=null;try
> > {
> >   System.out.println("url

MTOM and content-type

2006-12-29 Thread Stefan Kok
Hi All

I have got axis2 to generate the following for me:

POST /some HTTP/1.1
SOAPAction: ""
User-Agent: Axis2
Content-Length: 5790
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_D71D1475B0136C8FED11673898742622;
type="application/xop+xml";
start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml"; charset=UTF-8
Authorization: Digest username="username", realm="somerealm",
nonce="RZTzxw==028733d3cb3ad64a414de383d252b679e8969982", uri="/some",
response="427csaasaawqwqee6be586508c8e91b4", qop=auth, nc=0001,
cnonce="61849b59f21f00e0ac46d38f9be4f1b2", algorithm="MD5"
Host: fqdn:8082

--MIMEBoundaryurn_uuid_D71D1475B0136C8FED11673898742622
content-type: application/xop+xml; charset=UTF-8; type="text/xml"; 
content-transfer-encoding: binary
content-id: <0.urn:uuid:[EMAIL PROTECTED]>

http://schemas.xmlsoap.org/soap/envelope/";>http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2";
 
ns1:mustUnderstand="1">MyTransactionhttp://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2";>http://www.w3.org/2004/08/xop/include"; 
/>
--MIMEBoundaryurn_uuid_D71D1475B0136C8FED11673898742622

The server that I send this to, requires that the content-type must be:

text/xml; charset="utf-8" 

and not

content-type: application/xop+xml; charset=UTF-8; type="text/xml";

I have been searching the web for ideas but have not found much. It must
be multipart/related so I cannot turn off MTOM. 



Kind regards
Stefan.






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



Re: DISABLE_SOAP_ACTION (AXIS2)

2006-12-29 Thread Stefan Kok
Hi Thilina

Thanks I found it.

The way I got it to work was :

options.setProperty(org.apache.axis2.Constants.Configuration.DISABLE_SOAP_ACTION,endPointRef);


Thanks Stefan.

On Fri, 2006-12-29 at 16:48 +0600, Thilina Gunarathne wrote:
> Stefan,
> A similar issue was fixed just before the Axis2 1.1.1-RC1[1]... Please try 
> that.
> 
> ~Thilina
> [1] http://people.apache.org/~thilina/axis2/1.1.1-RC1/
> 
> On 12/28/06, Stefan Kok <[EMAIL PROTECTED]> wrote:
> > Hi Anne
> >
> > Thanks for your reply.
> >
> > I am afraid you have lost me.  Please see the two sample headers below.
> > The first is correct. The second incorrect. The second one is generated
> > by axis2  for me. I was hoping to drop the "urn:anonOutInOp" part using
> > DISABLE_SOAP_ACTION.
> >
> > However I can not figure out how to do it using the options object.
> >
> > Kind regards
> > Stefan.
> >
> >
> > * First **
> > POST /some HTTP/1.1
> > Content-Type: multipart/related;
> > boundary="E0675A0FDC9DF1D04617D97FB987D5AD"; type=text/xml;
> > start=""
> > SOAPAction: ""
> > Content-Length: 120617
> > 
> >
> > *** Second  **
> > POST /some HTTP/1.1
> > SOAPAction: "urn:anonOutInOp"
> > User-Agent: Axis2
> > Content-Length: 467
> > **
> >
> > On Thu, 2006-12-28 at 08:29 -0500, Anne Thomas Manes wrote:
> > > If you want to send an empty SOAPAction, then you cannot disable it.
> > > You enablde bit but specify no value.
> > >
> > > On 12/28/06, Stefan Kok <[EMAIL PROTECTED]> wrote:
> > > > Hi All
> > > >
> > > >
> > > > I need to send an empty SOAPAction. I have found a reference to
> > > > org.apache.axis2.Constants.DISABLE_SOAP_ACTION.
> > > >
> > > > It seems this would solve my problem. This can be set via the options
> > > > object. I have searched Google  for examples of setting it but could
> > > > find none.
> > > >
> > > > If anyone has got any ideas could you please pass me some pointers.
> > > >
> > > > Kind Regards
> > > > Stefan.
> > > >
> > > > P.S
> > > > Original post at:
> > > > http://mail-archives.apache.org/mod_mbox/ws-axis-cvs/200610.mbox/%
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > --
> > Stefan Kok <[EMAIL PROTECTED]>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
-- 
Stefan Kok <[EMAIL PROTECTED]>


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



Re: DISABLE_SOAP_ACTION (AXIS2)

2006-12-29 Thread Thilina Gunarathne

Stefan,
A similar issue was fixed just before the Axis2 1.1.1-RC1[1]... Please try that.

~Thilina
[1] http://people.apache.org/~thilina/axis2/1.1.1-RC1/

On 12/28/06, Stefan Kok <[EMAIL PROTECTED]> wrote:

Hi Anne

Thanks for your reply.

I am afraid you have lost me.  Please see the two sample headers below.
The first is correct. The second incorrect. The second one is generated
by axis2  for me. I was hoping to drop the "urn:anonOutInOp" part using
DISABLE_SOAP_ACTION.

However I can not figure out how to do it using the options object.

Kind regards
Stefan.


* First **
POST /some HTTP/1.1
Content-Type: multipart/related;
boundary="E0675A0FDC9DF1D04617D97FB987D5AD"; type=text/xml;
start=""
SOAPAction: ""
Content-Length: 120617


*** Second  **
POST /some HTTP/1.1
SOAPAction: "urn:anonOutInOp"
User-Agent: Axis2
Content-Length: 467
**

On Thu, 2006-12-28 at 08:29 -0500, Anne Thomas Manes wrote:
> If you want to send an empty SOAPAction, then you cannot disable it.
> You enablde bit but specify no value.
>
> On 12/28/06, Stefan Kok <[EMAIL PROTECTED]> wrote:
> > Hi All
> >
> >
> > I need to send an empty SOAPAction. I have found a reference to
> > org.apache.axis2.Constants.DISABLE_SOAP_ACTION.
> >
> > It seems this would solve my problem. This can be set via the options
> > object. I have searched Google  for examples of setting it but could
> > find none.
> >
> > If anyone has got any ideas could you please pass me some pointers.
> >
> > Kind Regards
> > Stefan.
> >
> > P.S
> > Original post at:
> > http://mail-archives.apache.org/mod_mbox/ws-axis-cvs/200610.mbox/%
> > [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Stefan Kok <[EMAIL PROTECTED]>


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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Re: No Deserializer found in encoding string!

2006-12-29 Thread celia05es

Hello again,
I have looked and looked again but could not find anything in the database
that could help me. I am completely stuck.
COuld someone give me a hand please?




celia05es wrote:
> 
> Hello,
> 
> I am quite new to Axis and I am getting mad trying to find out what the
> problem is. I have been trying so many things! I am desperate!
> Could you suggest a solution?
> I don't know what you need to help me so I give you the wsdd and the
> cliente side procedure where I call AXIS. I suppose the problem is there
> but I cannot find it.
> 
> 
> THank you
> ==
> I am using Axis 1-4 and Tomcat 5.1.9.
> 
> I am getting the following exception:
> 
> No Deserializer found to deserialize a
> 'http://schemas.xmlsoap.org/soap/encoding/:string' using
> encoding style 'http://schemas.xmlsoap.org/soap/encoding/'. 
> 
> My application is very, very simple since I wanted to have AXIS working
> before starting something else.
> 
> ON SERVER SIDE:  
> 
> AI.wsdd:
>   
> -  targetNamespace="http://135.88.100.235:8081/services/services/AI";
> xmlns:apachesoap="http://xml.apache.org/xml-soap";
> xmlns:impl="http://135.88.100.235:8081/services/services/AI";
> xmlns:intf="http://135.88.100.235:8081/services/services/AI";
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:tns1="urn:AI" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> -  
> - 
> -  xmlns="http://www.w3.org/2001/XMLSchema";>
>   http://schemas.xmlsoap.org/soap/encoding/"; /> 
> - 
> - 
>
>
>   
>   
>   
>   
> - 
>
>
>   
> - 
>
>   
> - 
> - 
>
>/> 
>   
>   
> - 
>transport="http://schemas.xmlsoap.org/soap/http"; /> 
> - 
>
> - 
>   http://schemas.xmlsoap.org/soap/encoding/";
> namespace="http://AI"; use="encoded" /> 
>   
> - 
>   http://schemas.xmlsoap.org/soap/encoding/";
> namespace="http://135.88.100.235:8081/services/services/AI"; use="encoded"
> /> 
>   
>   
>   
> - 
> - 
>location="http://135.88.100.235:8081/services/services/AI"; /> 
>   
>   
>   
> 
> 
> AIServicio.java
> That contains a procedure AIModif_p1 (String p1_old, String p1_new).
> This procedure returns an Output object that contains the error code and
> the error message.
> 
> CLIENTE SIDE
> AICliente.java
>   import.
> public class AICliente  extends HttpServlet
> {
> 
>   public AICliente() {}
> 
>   private static URL url = null;
>   private static Call call = null;
>   private static SOAPMappingRegistry smr = null;
>   private static BeanSerializer beanSer = null;
>   private static Output output = null;
> 
>   public static void soapInit()  throws IOException
>   {
>  url = new URL("http://135.88.100.235:8081/services/services/AI";);
>  call = new Call();
>  beanSer = new BeanSerializer();
>  smr = new SOAPMappingRegistry();
>  smr.mapTypes(Constants.NS_URI_SOAP_ENC,
> new QName("urn:AI","Output"),
> Output.class, beanSer, beanSer);
>  call.setSOAPMappingRegistry(smr);
>  call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
>  call.setTargetObjectURI("urn:AI");
>  output= new Output();
>   }
> 
>   public static Output AImodif_p1( String p1_old, String p1_new)
> throws IOException
>   {
> System.out.println("Entewring Cliente AImodif_p1");
> System.out.println("p1_old="+p1_old+" p1_new="+p1_new);
> 
> soapInit();
> 
> call.setMethodName("AImodif_p1");
> 
> Vector params = new Vector();
> try
> {
>   params.addElement(new Parameter("p1_old",String.class,p1_old,null));
>   params.addElement(new Parameter("p1_new",String.class,p1_new,null));
>   call.setParams(params);
> }
> catch (Exception e)
> {
>   output.setPError(-1);
>   output.setSError(e.getMessage());
>   System.out.println("ERROR: Generated fault: " + e.getMessage());
>   return output;
> };
> 
> System.out.println("AImodif_p1.Server answering ...");
> Response resp=null;try
> {
>   System.out.println("url="+url);
>   resp = call.invoke(url, "");
> }
> catch (SOAPException e)
> {
>   System.out.println("SOAPException in client AImodif_p1...");
>   output.setPError(-1);
>   output.setSError(e.getMessage());
>   System.out.println("Caught SOAPException (" + e.getFaultCode() + "):
> [" +
> e.getMessage()+"]");
>   return output;
> }if (!resp.generatedFault())
> {
>   Parameter ret = resp.getReturnValue();
>   output = (Output)ret.getValue();
> }
> else
> {
>   Fault fault = resp.getFault();
>   output.setPError(-1);
>   output.setSError(resp.getFault().getFaultString());
>   System.out.println("ERROR: Generated fault: " + fault);
> }
> return output;
>  }
> 
>   public void doGet(HttpServletRequest request, HttpS

MTOM

2006-12-29 Thread Stefan Kok
Hi All

My understanding from the MTOM guide is that if I specify:

OMText textData = sf.createOMText(dataHandler, false);

Then the attachment will be sent using base64 and not binary. However it
sends it as binary regardless if I set it as true or false.

Also the guide lists an example :

//User can set optimized to false by using the following
//textData.doOptimize(false);

This however does not seem to exist.

I am misunderstanding the user guide ?

Below you can see all the options that I set. 

.
.
.
Options options = new Options();
options.setTo(epr);
options.setProperty(HTTPConstants.AUTHENTICATE, auth);
options.setProperty(HTTPConstants.CHUNKED, Boolean.FALSE);

/*
 * NB !!! MTOM must be enabled for  
 * multipart/related to work !!
 */

options.setProperty(Constants.Configuration.ENABLE_MTOM,Constants.VALUE_TRUE);

options.setProperty(Constants.Configuration.ENABLE_SWA,Constants.VALUE_TRUE);

options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
.
.
.
DataHandler dh = new DataHandler(fileDataSource);
.
.
.
OMText textData = sf.createOMText(dh, false);
name.addChild(textData);


Kind regards
Stefan


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