Re: Axis and constrained devices

2008-03-20 Thread Demetris G


I will try that - thanks much Keith.

keith chapman wrote:
May be you could try Axis2-c. Also you may get a better response for 
this question if u posted it to axis2-c list.


Thanks,
Keith

On Fri, Mar 21, 2008 at 1:22 AM, Demetris G <[EMAIL PROTECTED] 
> wrote:



Hi all,

   not sure if this was asked before but have people tried running
Axis
(1.x or 2) on
constrained (mobile) devices? Is kSOAP2 what I am should looking into?

Thanks much


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

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





--
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org 


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



Re: Axis2 and OSGi

2008-03-20 Thread Demetris G


No problem - 1.4 is a priority - good luck and we can talk about this
again later on. Thanks Dims.

Davanum Srinivas wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Unfortunately no. Sidetracked with trying to get 1.4 release out.

thanks,
dims

Demetris G wrote:
|
| Hi Dims,
|
|any progress on this? Just curious :)
|
| Thanks
|
|>
|>> Hi Demetris,
|>>
|>> Dims has kicked off an effort to create an Axis2 OSGi bundle. He
|>> posted to the axis-dev list last week [1].
|>>
|>> [1] http://marc.info/?l=axis-dev&m=120308686726732&w=2
|>>
|>> Lawrence
|>>
|>>
|>>
|>>
|>>
|>> Demetris G <[EMAIL PROTECTED]> 02/28/2008 11:02 PM
|>> Please respond to
|>> axis-user@ws.apache.org
|>>
|>>
|>> To
|>> axis-user@ws.apache.org
|>> cc
|>>
|>> Subject
|>> Axis2 and OSGi
|>>
|>>
|>>
|>>
|>>
|>>
|>>
|>> Hi all,
|>>
|>> has anyone tried to execute Axis2 in the OSGi containers? I know
|>> Axis1.x was imported as a bundle in OSGi but no idea about Axis2.
|>> I am wondering if it can be deployed in a similar manner as in Tomcat
|>> although I think it may still need an Activator to control the rest
|>> of its
|>> implementation.
|>>
|>> Thanks
|>>
|>>
|>> -
|>> 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]
|>
|>
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFH4vECgNg6eWEDv1kRAkLKAJ4yNGbYYXMJPp768fPYN7OiDWInHACgqHOQ
PA1nePEN2zTDBtACaif0mZM=
=0yob
-END PGP SIGNATURE-

-
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: axis 1.3 generated WSDL with three ports/bindings?

2008-03-20 Thread Daniel Woo
Hi Nadir,

Really thanks.

On Thu, Mar 20, 2008 at 10:11 PM, Nadir Amra <[EMAIL PROTECTED]> wrote:

> Daniel,
>
> One for SOAP 1.1, one for SOAP 1.2, and one for REST-like Web services.
> You can suppress 1.2 and REST like SOAP bindings by turning a flag on or
> off in Axis2.xml,  as follows:
>
> - 
>  true
> - 
>  true
>
>
>
> Nadir Amra
>
>
> "Daniel Woo" <[EMAIL PROTECTED]> wrote on 03/20/2008 01:31:44 AM:
>
> > Hi,
> >
> > I am a green babie with SOAP, my problem is that when I deploy a
> > POJO service class axis automatically generates a WSDL, but the
> > generated WSDL contains three bindings, eg
> >
> > 
> > 
> > http://16.158.65.18:
> > 80/axis2/services/ProblemService"/>
> > 
> > 
> > http://16.158.65.18:
> > 80/axis2/services/ProblemService"/>
> > 
> > 
> > http://16.158.65.18:
> > 80/axis2/services/ProblemService"/>
> > 
> > 
> >
> > Then my question is that why three ports/bindings we need? I can't
> > see any difference between the three bindings. When a SOAP request
> > is incoming, which port/binding will be used?
> >
> > --
> > Thanks & Regards,
> > Daniel
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks & Regards,
Daniel


What might cause "Unexpected subelement return"?

2008-03-20 Thread Nate Roe
I am using Axis2 v1.3 and Rampart v1.3 on JBossAS v4.0.5 running on Java 
1.6.0_03.

I'm deploying a POJO service.  Responses from this service cause an 
ADBExceptoion: "Unexpected subelement return".

The subelements in this case are child objects, collections, etc.

What are some causes of this exception?  Unfortunately I cannot share SOAP/WSDL 
corresponding to this specific problem.  I hope that this problem has some 
known causes that I can look into.  If I cannot identify the cause in this way 
then I will try to write some smaller, sharable demonstration.

I found JIRA #1746, but it was closed more than a year ago: 
http://issues.apache.org/jira/browse/AXIS2-1746

Thanks,
Nate Roe

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



Re: Interop problems with .Net and Axis 2 using MTOM

2008-03-20 Thread Thilina Gunarathne
If the error is coming from the server, you may want to check the following
and try using the axiom snapshots as mentioned.

https://issues.apache.org/jira/browse/AXIS2-3196

thanks,
Thilina

On Wed, Mar 19, 2008 at 12:11 PM, Paul Fremantle <[EMAIL PROTECTED]> wrote:

> Any chance of the TCPMON trace. It looks to me like there is a problem
> in the response from the server.
>
> Paul
>
> 2008/3/19 Amo23 <[EMAIL PROTECTED]>:
> >
> >  Here is the C# WSDL
> >
> >  _
> >
> >  
> >  http://schemas.xmlsoap.org/wsdl/soap/";
> >  xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/";
> >  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> >  xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
> >  xmlns:tns="http://MyCerPrototype.com/";
> >  xmlns:s1="http://MyCerPrototype.com/AbstractTypes";
> >  xmlns:s="http://www.w3.org/2001/XMLSchema";
> >  xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
> >  xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
> >  targetNamespace="http://MyCerPrototype.com/";
> >  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
> >   
> >  >  targetNamespace="http://MyCerPrototype.com/";>
> >   
> > 
> >   
> >  >  type="s:string" />
> >  >  type="s:base64Binary" />
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >  >  type="s:base64Binary" />
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> > http://MyCerPrototype.com/AbstractTypes";>
> >   http://schemas.xmlsoap.org/soap/encoding/"; />
> >   
> > 
> >   
> > 
> >name="String"
> >  type="s:string" />
> > 
> >   
> > 
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> >  />
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> >   
> > 
> >   
> >   
> >   
> >   
> >   
> > 
> > 
> >   
> >   
> >   
> > 
> >   
> >   
> >   
> >   
> >   
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> >   
> >>  type="tns:StorePDFforArchivingSoap">
> > http://schemas.xmlsoap.org/soap/http"; />
> > 
> >   http://MyCerPrototype.com/UploadDocument";
> >  style="document" />
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> > 
> >>  soapAction="http://MyCerPrototype.com/receiveBinaryFile";
> style="document" />
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> > 
> >   http://MyCerPrototype.com/HelloWorld";
> >  style="document" />
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> >   
> >>  type="tns:StorePDFforArchivingSoap">
> > http://schemas.xmlsoap.org/soap/http"; />
> > 
> >>  soapAction="http://MyCerPrototype.com/UploadDocument"; style="document"
> />
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> > 
> >>  soapAction="http://MyCerPrototype.com/receiveBinaryFile";
> style="document" />
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> > 
> >   http://MyCerPrototype.com/HelloWorld
> "
> >  style="document" />
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> >   
> >>  type="tns:StorePDFforArchivingHttpGet">
> > 
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >>  type="tns:StorePDFforArchivingHttpPost">
> > 
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> >  >  binding="tns:StorePDFforArchivingSoap">
> >>  location="http://192.168.1.173/Cer_Prototype/StorePDFforArchiving.asmx";
> />
> > 
> >  >  binding="tns:StorePDFforArchivingSoap12">
> >>  location="http://192.168.1.173/Cer_Prototype/StorePDFforArchiving.asmx";
> />
> > 
> >  >  binding="tns:StorePDFforArchivingHttpGet">
> >>  location="http://192.168.1.173/Cer_Prototype/StorePDFforArchiving.asmx";
> />
> > 
> >  >  binding="tns:StorePDFforArchivingHttpPost">
> >>  location="http:/

RE: [Axis2] What might cause "The server did npot recognise the action..."

2008-03-20 Thread Nate Roe

After doing some Googling, I've decided to disable Rampart to verify my 
service, and it turns out that my service is not working properly.

Therefore, please ignore this thread.

I will begin a new thread to discuss my new, more specific problem.

- Nate Roe

-Original Message-
From: Nate Roe [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2008 4:14 PM
To: axis-user@ws.apache.org
Subject: [Axis2] What might cause "The server did npot recognise the action..."

I am using Axis2 v1.3 and Rampart v1.3 on JBossAS v4.0.5 running on Java 
1.6.0_03.

I have built a web service and a client of that web service.  The client and 
service are both web apps, so I deploy two WARs.  I've activated Rampart and 
I'm using a policy.xml.

Earlier, I created a very simple service to learn how to use Rampart and 
WS-Security.  That project is functioning.

I'm now trying to apply that knowledge to secure a "real" web service.  
However, Axis2 is throwing an exception that I don't understand.  I hope for 
assistance in determining its cause.

Here is the stack trace:

15:57:07,360 ERROR [STDERR] org.apache.axis2.AxisFault: The server did not 
recognise the action which it received:
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.handlers.addressing.AddressingInFaultHandler.invoke(AddressingInFaultHandler.java:114)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.engine.Phase.invoke(Phase.java:292)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:336)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
15:57:07,360 ERROR [STDERR] at 
com.vegas.service.XenoServiceStub.getProductTypes(XenoServiceStub.java:546)
15:57:07,360 ERROR [STDERR] at 
com.vegas.client.XenoClientSession.getProductTypes(XenoClientSession.java:122)
15:57:07,360 ERROR [STDERR] at 
com.vegas.client.XenoClientSession.getProductTypeList(XenoClientSession.java:583)
15:57:07,360 ERROR [STDERR] at 
org.apache.jsp.XenoClient_jsp._jspService(XenoClient_jsp.java:82)
15:57:07,360 ERROR [STDERR] at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
15:57:07,360 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
15:57:07,360 ERROR [STDERR] at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
15:57:07,360 ERROR [STDERR] at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
15:57:07,360 ERROR [STDERR] at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
15:57:07,360 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
15:57:07,360 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
15:57:07,360 ERROR [STDERR] at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
15:57:07,360 ERROR [STDERR] at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
15:57:07,360 ERROR [STDERR] at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
15:57:07,360 ERROR [STDERR] at 
org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:637)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.connector.CoyoteAdapter.se

Re: Axis2 and OSGi

2008-03-20 Thread Davanum Srinivas

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Unfortunately no. Sidetracked with trying to get 1.4 release out.

thanks,
dims

Demetris G wrote:
|
| Hi Dims,
|
|any progress on this? Just curious :)
|
| Thanks
|
|>
|>> Hi Demetris,
|>>
|>> Dims has kicked off an effort to create an Axis2 OSGi bundle. He
|>> posted to the axis-dev list last week [1].
|>>
|>> [1] http://marc.info/?l=axis-dev&m=120308686726732&w=2
|>>
|>> Lawrence
|>>
|>>
|>>
|>>
|>>
|>> Demetris G <[EMAIL PROTECTED]> 02/28/2008 11:02 PM
|>> Please respond to
|>> axis-user@ws.apache.org
|>>
|>>
|>> To
|>> axis-user@ws.apache.org
|>> cc
|>>
|>> Subject
|>> Axis2 and OSGi
|>>
|>>
|>>
|>>
|>>
|>>
|>>
|>> Hi all,
|>>
|>> has anyone tried to execute Axis2 in the OSGi containers? I know
|>> Axis1.x was imported as a bundle in OSGi but no idea about Axis2.
|>> I am wondering if it can be deployed in a similar manner as in Tomcat
|>> although I think it may still need an Activator to control the rest
|>> of its
|>> implementation.
|>>
|>> Thanks
|>>
|>>
|>> -
|>> 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]
|>
|>
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFH4vECgNg6eWEDv1kRAkLKAJ4yNGbYYXMJPp768fPYN7OiDWInHACgqHOQ
PA1nePEN2zTDBtACaif0mZM=
=0yob
-END PGP SIGNATURE-

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



[Axis2] What might cause "The server did npot recognise the action..."

2008-03-20 Thread Nate Roe
I am using Axis2 v1.3 and Rampart v1.3 on JBossAS v4.0.5 running on Java 
1.6.0_03.

I have built a web service and a client of that web service.  The client and 
service are both web apps, so I deploy two WARs.  I've activated Rampart and 
I'm using a policy.xml.

Earlier, I created a very simple service to learn how to use Rampart and 
WS-Security.  That project is functioning.

I'm now trying to apply that knowledge to secure a "real" web service.  
However, Axis2 is throwing an exception that I don't understand.  I hope for 
assistance in determining its cause.

Here is the stack trace:

15:57:07,360 ERROR [STDERR] org.apache.axis2.AxisFault: The server did not 
recognise the action which it received:
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.handlers.addressing.AddressingInFaultHandler.invoke(AddressingInFaultHandler.java:114)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.engine.Phase.invoke(Phase.java:292)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:336)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
15:57:07,360 ERROR [STDERR] at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
15:57:07,360 ERROR [STDERR] at 
com.vegas.service.XenoServiceStub.getProductTypes(XenoServiceStub.java:546)
15:57:07,360 ERROR [STDERR] at 
com.vegas.client.XenoClientSession.getProductTypes(XenoClientSession.java:122)
15:57:07,360 ERROR [STDERR] at 
com.vegas.client.XenoClientSession.getProductTypeList(XenoClientSession.java:583)
15:57:07,360 ERROR [STDERR] at 
org.apache.jsp.XenoClient_jsp._jspService(XenoClient_jsp.java:82)
15:57:07,360 ERROR [STDERR] at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
15:57:07,360 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
15:57:07,360 ERROR [STDERR] at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
15:57:07,360 ERROR [STDERR] at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
15:57:07,360 ERROR [STDERR] at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
15:57:07,360 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
15:57:07,360 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
15:57:07,360 ERROR [STDERR] at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
15:57:07,360 ERROR [STDERR] at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
15:57:07,360 ERROR [STDERR] at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
15:57:07,360 ERROR [STDERR] at 
org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:637)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
15:57:07,360 ERROR [STDERR] at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
15:57:07,360 ERROR [STDERR] at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
15:57:07,360 ERROR [STDERR] at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
15:57:07,360 ERROR [STDERR] at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
15:57:07,360 ERROR [STDERR] at 
org.apache.tomcat.util.net.Mast

Re: Axis 2 client, Axis 1.4 server, unexpected element

2008-03-20 Thread Anne Thomas Manes
Please post the WSDL.

Anne

On Thu, Mar 20, 2008 at 4:28 AM, Richard Fagot <[EMAIL PROTECTED]> wrote:
> Nobody knows why Axis 2 client can not correctly interpret complex
>  type returned by an axis 1 server ?
>
>
>
>
>  2008/3/17, Richard Fagot <[EMAIL PROTECTED]>:
>  > I would like to add sent soap messages :
>  >
>  >  
>  > >  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>  >  
>  > http://ws.awas.ext"; />
>  >  
>  >   
>  >
>  >
>  >  
>  >   >  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
>  >  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>  >  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  >
>  >   http://ws.awas.ext";>
>  >  
>  > 
>  >une
>  >deux
>  >trois
>  > 
>  > ursula
>  >  
>  >   
>  >
>  > 
>  >
>  >  2008/3/17, Richard Fagot <[EMAIL PROTECTED]>:
>  >
>  > > Hi all,
>  >  >
>  >  >I have to create a web service with a lot of operations. On the
>  >  >  server side, I must use axis 1.4. On the client side I must use Axis
>  >  >  2-1.3.
>  >  >For the server I have written an interface representing all
>  >  >  operations (multiple complex arguments, complex returns) and the
>  >  >  implementation of these interface and then generated the correspondant
>  >  >  WSDL. I used this WSDL for the client side in Axis 2. At execution the
>  >  >  client throw an exception of the type : org.apache.axis2.AxisFault:
>  >  >  org.apache.axis2.databinding.ADBException: Unexpected subelement
>  >  >  MyElement
>  >  >
>  >  >   I have generated and used with success a client made with Axis 1.4.
>  >  >  I have simplified the server interface begining with a method with no
>  >  >  argument returning a simple string until I encounter the same issue as
>  >  >  with the complete WS. This exception appears when the return object is
>  >  >  a complex one containing an array of values.
>  >  >
>  >  >   Here is the minimal sample generating the exception. Help is welcom :)
>  >  >
>  >  >   Server Side (Axis 1.4) - Generation of the WSDL 
>  >  >
>  >  >  
>  >  >   
>  >  > >  >  serviceelementname="awas" bindingName="awas" style="WRAPPED"
>  >  >  namespace="http://ws.awas.ext";
>  >  >  
> location="http://${java.rmi.server.hostname}/${wt.server.id}/servlet/service/awas";
>  >  >  output="${wsdl.file}">
>  >  >
>  >  >http://ws.awas.ext"; package="ext.awas.ws" />
>  >  >   
>  >  >  
>  >  >
>  >  >   Server Side (Axis 1.4) - WS Interface Class 
>  >  >  package ext.awas.ws;
>  >  >
>  >  >  public interface AwasWS {
>  >  >
>  >  >SimpleObject getUrsula();
>  >  >  }
>  >  >
>  >  >   Server Side (Axis 1.4) - Returned type 
>  >  >  package ext.awas.ws;
>  >  >
>  >  >  public class SimpleObject {
>  >  >private String name;
>  >  >private String[] values;
>  >  >
>  >  >public SimpleObject() {
>  >  >name = "";
>  >  >values = new String[0];
>  >  >}
>  >  >
>  >  >public void setName(String name) {
>  >  >this.name = name;
>  >  >}
>  >  >
>  >  >public String getName() {
>  >  >return name;
>  >  >}
>  >  >
>  >  >public void setValues(String[] values) {
>  >  >this.values = values;
>  >  >}
>  >  >
>  >  >public String[] getValues() {
>  >  >return values;
>  >  >}
>  >  >  }
>  >  >
>  >  >   Client Side (Axis 2-1.3) - Generation of the client part *
>  >  > >  >  classname="org.apache.axis2.tool.ant.AntCodegenTask"
>  >  >  classpathref="axis.classpath"/>
>  >  >
>  >  >  >  >  wsdlfilename="${basedir}/wsdl/awas.wsdl" unpackclasses="true"
>  >  >  serverside="false" unwrap="yes"/>
>  >  >
>  >  >
>  >  >
>  >  >   Client Side (Axis 2-1.3) - WS call 
>  >  >  try {
>  >  >ConfigurationContext configContext =
>  >  >  ConfigurationContextFactory.createDefaultConfigurationContext();
>  >  >
>  >  >AwasStub stub = new AwasStub(configContext,
>  >  >"http://localhost:9090/servlet/service/awas";);
>  >  >
>  >  >SimpleObject ursula = stub.getUrsula(new GetUrsula());
>  >  >
>  >  >System.out.println(ursula.getName());
>  >  >ArrayOf_xsd_string values = ursula.getValues();
>  >  >String[] item = values.getItem();
>  >  >for (int i = 0; i < item.length; i++) {
>  >  >System.out.println(item[i]);
>  >  >}
>  >  >  } catch (Exception e) {
>  >  >e.printStackTrace();
>  >  >  }
>  >  >
>  >  >   The Exception (exists only on the client side) 
>  >  >  org.apache.axis2.AxisFault: org.apache.axis2.dat

Handling exceptions

2008-03-20 Thread Adrián Cuartero
Hi all

I'm developing a proyect with axis2 and now i'm trying the server throws an 
exception to the clients. I'm having lots of problems with it so i've written a 
small example but it doesn't work too.
The problem is that the server, instead of throwing the exception captures it 
or if the server doesn't capture it the client receives a remoteexception. Here 
is my code and thanks for the help.

Adrián

Server side

package ws.example;

public class Server{

public void llamada()throws MyException{
final MyException miprueba=new MyException(2,"Esto es una prueba");
throw miprueba;
}

package ws.example;

public class MyException extends java.lang.Exception {
private int errorCode;

private String errorDescription;


public MyException(int errorCode, String errorDescription) {
this.errorCode = errorCode;
this.errorDescription = errorDescription;
}
public int getErrorCode(){
return errorCode;
}
public String getErrorDescription(){
return errorDescription;
}
}

Client side

package client;

import client.ServerStub.*;
import org.apache.axis2.AxisFault;
import java.rmi.RemoteException;
public class Cliente {

public static void main(String[] args) {
ServerStub stub=null;
try{
stub=new ServerStub();
}catch(AxisFault e){

}
try{
stub.llamada();
}catch(client.MyException e){

System.out.println(e.getFaultMessage().getMyException().getErrorDescription());
}catch(RemoteException ex){
ex.printStackTrace();
System.out.println("Bad news");
}catch(java.lang.Exception fault){
System.out.println(fault.getCause().toString());
}
}
}

The wsdl was generated with java2wsdl, but i've tried with java2wsdl and i've 
obtained the same result.



xmlns:axis2="http://example.ws";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:ns0="http://example.ws/xsd";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:ns1="http://org.apache.axis2/xsd";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:stns="java:WS.exception"
targetNamespace="http://example.ws";>



attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://example.ws/xsd";>























style="document" />















style="document" />
























http://localhost:8080/axis2/services/Server"; />


http://localhost:8080/axis2/services/Server"; />


http://localhost:8080/axis2/services/Server"; />




Thanks again.




   
__ 
¿Con Mascota por primera vez? Sé un mejor Amigo. Entra en Yahoo! Respuestas 
http://es.answers.yahoo.com/info/welcome

Re: Axis and constrained devices

2008-03-20 Thread keith chapman
May be you could try Axis2-c. Also you may get a better response for this
question if u posted it to axis2-c list.

Thanks,
Keith

On Fri, Mar 21, 2008 at 1:22 AM, Demetris G <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
>not sure if this was asked before but have people tried running Axis
> (1.x or 2) on
> constrained (mobile) devices? Is kSOAP2 what I am should looking into?
>
> Thanks much
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


RE: How to return Object[] from axis2

2008-03-20 Thread Vinh Nguyen (vinguye2)
Hi,
What kind of value are you getting back?
 
I don't think xs:any was designed for this.  It should be to generically
represent an object that actually has an XSD schema.  In what you're
trying to do below, what is the schema of the xml you expect to be
returned?
-Vinh



From: Chinmoy Chakraborty [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 20, 2008 11:01 AM
To: axis-user@ws.apache.org
Subject: Re: How to return Object[] from axis2


Hi Deepal,
 
Thnaks a lot for your response. I can use Axis2 in our client side but
we need to make it work with Axis 1.4 to support backward compatibility.
I checked axis2 and found that it supports Object array as return type
however, it does not work with following return type (Object array of
Objejectarray of Object array):
 
public Object[] returnObjectArray(String authToken) {
Object[] retVal = new Object[3];
Object[] args = new Object[3];
args[0] = new Object[] {"Arg1", "Arg2", "Arg3"};
args[1] = new Object[] {"Arg1", "Arg2", "Arg3"};
args[2] = new Object[] {"Arg1", "Arg2", "Arg3"};
retVal[0] = new Object[] {"RetVal1", "Retval2", authToken,
args};
retVal[1] = new Object[] {"RetVal3", "Retval4", authToken,
args};
retVal[2] = new Object[] {"RetVal5", "Retval6", authToken,
args};
return retVal;
}
 
Please let me know how I can make axis2 work with axis 1.4 for the above
mentioned return type!!
 
Chinmoy
 
 

 
On Thu, Mar 20, 2008 at 10:30 PM, Deepal jayasinghe <[EMAIL PROTECTED]>
wrote:


Hi Chinmoy ,
If you do not mind , try to use Axis2 in the client side . If it
is
working then the problem should be there in either Axis1 or the
way
Axis2 serialize that message .

Thank you!
Deepal

> Thanks a lot Deepal for your reply. I have a made a test
service that
> returns an object array. I can see the correct SOAP through
the
> SOAPMonitor (that Axis2 is returning) but in axis 1.4 client I
am
> getting following exception:
>
> 23938 ERROR [http8080-Processor23]
> org.apache.axis.client.Call - Exception:
> org.xml.sax.SAXException: Found character data inside an array
element
> while deserializing
>  at
>
org.apache.axis.encoding.ser.ArrayDeserializer.characters(ArrayDeseriali
zer.java:502)
>  at
>
org.apache.axis.encoding.DeserializationContext.characters(Deserializati
onContext.java:966)
>  at
>
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
177)
>  at
>
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:1141)
>  at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
>  at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>  at org.apache.axis.client.Call.invoke(Call.java:2467)
>  at org.apache.axis.client.Call.invoke(Call.java:2366)
> .
>
> How can resolve above issue?
>
> Chinmoy
>
> On Wed, Mar 19, 2008 at 7:43 PM, Deepal jayasinghe
<[EMAIL PROTECTED]

> > wrote:
>
> Yes Axis2 support Object arrays. The error may be due to
some issue in
> your code , however we can help you to fix that if you can
send us the
> code or create a JIRA attaching test code.
>
> Thank you!
> Deepal
> > Hi All,
> >
> > I am using hitting Axis2 with axis 1.4 client. I have a
service
> which
> > returns Object[].
> >
> > With axis 1.4 in both ends it worked well. But in axis2
it gives
> > Nullpointer exception when the service tried to return
Object[]
> > (object array).
> >
> > Does axis2 support object array as return type? If yes
then how
> can I
> > make it work with old axis1.4 client? its necessary to
support old
> > axis1.4 because lots of our customers are using axis1.4
client
> and we
> > need to make it backward compatible.
> >
> > Chinmoy
>
>
>
>
-
> 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]






Axis and constrained devices

2008-03-20 Thread Demetris G


Hi all,

   not sure if this was asked before but have people tried running Axis 
(1.x or 2) on

constrained (mobile) devices? Is kSOAP2 what I am should looking into?

Thanks much


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



Re: Axis2 and OSGi

2008-03-20 Thread Demetris G


Hi Dims,

   any progress on this? Just curious :)

Thanks




Hi Demetris,

Dims has kicked off an effort to create an Axis2 OSGi bundle. He 
posted to the axis-dev list last week [1].


[1] http://marc.info/?l=axis-dev&m=120308686726732&w=2

Lawrence





Demetris G <[EMAIL PROTECTED]> 02/28/2008 11:02 PM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Axis2 and OSGi







Hi all,

has anyone tried to execute Axis2 in the OSGi containers? I know
Axis1.x was imported as a bundle in OSGi but no idea about Axis2.
I am wondering if it can be deployed in a similar manner as in Tomcat
although I think it may still need an Activator to control the rest 
of its

implementation.

Thanks

 
-

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]




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



Re: How to return Object[] from axis2

2008-03-20 Thread Chinmoy Chakraborty
Hi Deepal,

Thnaks a lot for your response. I can use Axis2 in our client side but we
need to make it work with Axis 1.4 to support backward
compatibility. I checked axis2 and found that it supports Object array as
return type however, it does not work with following return type (Object
array of Objejectarray of Object array):

public Object[] returnObjectArray(String authToken) {
Object[] retVal = new Object[3];
Object[] args = new Object[3];
args[0] = new Object[] {"Arg1", "Arg2", "Arg3"};
args[1] = new Object[] {"Arg1", "Arg2", "Arg3"};
args[2] = new Object[] {"Arg1", "Arg2", "Arg3"};
retVal[0] = new Object[] {"RetVal1", "Retval2", authToken, args};
retVal[1] = new Object[] {"RetVal3", "Retval4", authToken, args};
retVal[2] = new Object[] {"RetVal5", "Retval6", authToken, args};
return retVal;
}

Please let me know how I can make axis2 work with axis 1.4 for the above
mentioned return type!!

Chinmoy




On Thu, Mar 20, 2008 at 10:30 PM, Deepal jayasinghe <[EMAIL PROTECTED]>
wrote:

> Hi Chinmoy ,
> If you do not mind , try to use Axis2 in the client side . If it is
> working then the problem should be there in either Axis1 or the way
> Axis2 serialize that message .
>
> Thank you!
> Deepal
> > Thanks a lot Deepal for your reply. I have a made a test service that
> > returns an object array. I can see the correct SOAP through the
> > SOAPMonitor (that Axis2 is returning) but in axis 1.4 client I am
> > getting following exception:
> >
> > 23938 ERROR [http8080-Processor23]
> > org.apache.axis.client.Call - Exception:
> > org.xml.sax.SAXException: Found character data inside an array element
> > while deserializing
> >  at
> > org.apache.axis.encoding.ser.ArrayDeserializer.characters(
> ArrayDeserializer.java:502)
> >  at
> > org.apache.axis.encoding.DeserializationContext.characters(
> DeserializationContext.java:966)
> >  at
> > org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java
> :177)
> >  at
> > org.apache.axis.message.MessageElement.publishToHandler(
> MessageElement.java:1141)
> >  at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
> >  at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
> >  at org.apache.axis.client.Call.invoke(Call.java:2467)
> >  at org.apache.axis.client.Call.invoke(Call.java:2366)
> > .
> >
> > How can resolve above issue?
> >
> > Chinmoy
> >
> > On Wed, Mar 19, 2008 at 7:43 PM, Deepal jayasinghe <[EMAIL PROTECTED]
> > > wrote:
> >
> > Yes Axis2 support Object arrays. The error may be due to some issue
> in
> > your code , however we can help you to fix that if you can send us
> the
> > code or create a JIRA attaching test code.
> >
> > Thank you!
> > Deepal
> > > Hi All,
> > >
> > > I am using hitting Axis2 with axis 1.4 client. I have a service
> > which
> > > returns Object[].
> > >
> > > With axis 1.4 in both ends it worked well. But in axis2 it gives
> > > Nullpointer exception when the service tried to return Object[]
> > > (object array).
> > >
> > > Does axis2 support object array as return type? If yes then how
> > can I
> > > make it work with old axis1.4 client? its necessary to support old
> > > axis1.4 because lots of our customers are using axis1.4 client
> > and we
> > > need to make it backward compatible.
> > >
> > > Chinmoy
> >
> >
> >
> >
> -
> > 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: How to return Object[] from axis2

2008-03-20 Thread Deepal jayasinghe



Does axis2 suport following return type?
Yes , and the generated wsdl would be anytype , but when serialize it 
does the right thing.


Thank you!
Deepal

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



Re: How to return Object[] from axis2

2008-03-20 Thread Deepal jayasinghe

Hi Chinmoy ,
If you do not mind , try to use Axis2 in the client side . If it is 
working then the problem should be there in either Axis1 or the way 
Axis2 serialize that message .


Thank you!
Deepal
Thanks a lot Deepal for your reply. I have a made a test service that 
returns an object array. I can see the correct SOAP through the 
SOAPMonitor (that Axis2 is returning) but in axis 1.4 client I am 
getting following exception:
 
23938 ERROR [http8080-Processor23]   
org.apache.axis.client.Call - Exception:
org.xml.sax.SAXException: Found character data inside an array element 
while deserializing
 at 
org.apache.axis.encoding.ser.ArrayDeserializer.characters(ArrayDeserializer.java:502)
 at 
org.apache.axis.encoding.DeserializationContext.characters(DeserializationContext.java:966)
 at 
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:177)
 at 
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)

 at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
 at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
 at org.apache.axis.client.Call.invoke(Call.java:2467)
 at org.apache.axis.client.Call.invoke(Call.java:2366)
.
 
How can resolve above issue?
 
Chinmoy


On Wed, Mar 19, 2008 at 7:43 PM, Deepal jayasinghe <[EMAIL PROTECTED] 
> wrote:


Yes Axis2 support Object arrays. The error may be due to some issue in
your code , however we can help you to fix that if you can send us the
code or create a JIRA attaching test code.

Thank you!
Deepal
> Hi All,
>
> I am using hitting Axis2 with axis 1.4 client. I have a service
which
> returns Object[].
>
> With axis 1.4 in both ends it worked well. But in axis2 it gives
> Nullpointer exception when the service tried to return Object[]
> (object array).
>
> Does axis2 support object array as return type? If yes then how
can I
> make it work with old axis1.4 client? its necessary to support old
> axis1.4 because lots of our customers are using axis1.4 client
and we
> need to make it backward compatible.
>
> Chinmoy



-
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: How do I learn which Axis2 JARs have which classes?

2008-03-20 Thread Appasamy Thirugnana
One more simple way is go to docjar.com .. type your  class name like 
org.apache.axis2.engine.AxisEngine..
it will list the jars in which your  class is in




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew 
Beldyk
Sent: Thursday, March 20, 2008 21:54
To: axis-user@ws.apache.org
Subject: Re: How do I learn which Axis2 JARs have which classes?


The way I find which jars hold the class I need is to do a grep of the 
all the jar files (mind you, I'm coming from a unix background, and I assume 
this would also work with cygwin in windows).  Zip files seem to store the data 
structure to access the stored files in an uncompressed way (letting me look 
strings of the paths of files without any extra steps to extract them).

[10:17:12][EMAIL PROTECTED]: ~/java_dev/client_libs
$ grep  org.apache.axis2.deployment.DeploymentClassLoader *
Binary file axis2-kernel-1.3.jar matches




On Thu, Mar 20, 2008 at 1:44 AM, <[EMAIL PROTECTED]> wrote:


If it is still valuable to anyone. If you use eclipse as your 
developing IDE. It has a nice feature how you can lookup classes.
Just press the keys Strg+Shift+T (alternatively open the Menu 
"Navigate" --> "Open Type") and eclipse opens a "Open Type" dialog. There you 
can start typing your classname and see all matching classes, including their 
full qualified name and the jar they belong to.

Matthias.

> -Ursprüngliche Nachricht-
> Von: Nate Roe [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 14. März 2008 19:36
> An: 'axis-user@ws.apache.org'
> Betreff: RE: How do I learn which Axis2 JARs have which 
classes?

>
>
> The difficulty is in finding a file from amongst several JARs.
> (basically foreach a directory's JARs, and then -tvf them.)
>
> I've written a small utility that serves me for this.  See 
the attached
> file.
>
> - Nate
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Jeff Greif
> Sent: Friday, March 14, 2008 10:52 AM
> To: axis-user@ws.apache.org
> Subject: Re: How do I learn which Axis2 JARs have which 
classes?
>
> Use the jar tool that comes with (Sun) java:
>
> jar tvf xxx.jar
>
> and is documented via a on the main page of the JDK 
documentation
> (under Tools).
>
> You can combine this with other Unix-style shell tools if you 
have the
> cygwin tools on your windows box:
>
> jar tvf xxx.jar | grep '*MetaData*
>
> to look for certain classes or packages by some part of their 
name.
>
> You can also edit the jar with the Emacs editor, which shows 
you a
> listing of files.
>
> Jeff
>
> On Fri, Mar 14, 2008 at 10:17 AM, Kraus, David
> <[EMAIL PROTECTED]> wrote:
> > I haven't hacked the registry. I have used WinZip to open 
jar files
> as
> > zip files. Not sure whether this creates a file association 
which
> helps.
> >
> >  -Original Message-
> >  From: Nate Roe [mailto:[EMAIL PROTECTED]
> >  Sent: Friday, March 14, 2008 10:04 AM
> >  To: 'axis-user@ws.apache.org'
> >  Subject: RE: How do I learn which Axis2 JARs have which 
classes?
> >
> >
> >  I don't think this method will work unless you hack the 
Windows
> > registry  to tell it that a JAR is a ZIP.  Maybe.
> >
> >  I guess another way is to build a script (or a Java 
program) to do
> > the  looking.
> >
> >  - Nate
> >
> >  -Original Message-
> >  From: Kraus, David [mailto:[EMAIL PROTECTED]
> >  Sent: Friday, March 14, 2008 8:57 AM
> >  To: axis-user@ws.apache.org
> >  Subject: RE: How do I learn which Axis2 JARs have which 
classes?
> >
> >  Hmmm...I didn't start using this method until about a year 
ago. My
> O

Re: How do I learn which Axis2 JARs have which classes?

2008-03-20 Thread Matthew Beldyk
The way I find which jars hold the class I need is to do a grep of the all
the jar files (mind you, I'm coming from a unix background, and I assume
this would also work with cygwin in windows).  Zip files seem to store the
data structure to access the stored files in an uncompressed way (letting me
look strings of the paths of files without any extra steps to extract them).

[10:17:12][EMAIL PROTECTED]: ~/java_dev/client_libs
$ grep  org.apache.axis2.deployment.DeploymentClassLoader *
Binary file axis2-kernel-1.3.jar matches



On Thu, Mar 20, 2008 at 1:44 AM, <[EMAIL PROTECTED]> wrote:

> If it is still valuable to anyone. If you use eclipse as your developing
> IDE. It has a nice feature how you can lookup classes.
> Just press the keys Strg+Shift+T (alternatively open the Menu "Navigate"
> --> "Open Type") and eclipse opens a "Open Type" dialog. There you can start
> typing your classname and see all matching classes, including their full
> qualified name and the jar they belong to.
>
> Matthias.
>
> > -Ursprüngliche Nachricht-
> > Von: Nate Roe [mailto:[EMAIL PROTECTED]
> > Gesendet: Freitag, 14. März 2008 19:36
> > An: 'axis-user@ws.apache.org'
> > Betreff: RE: How do I learn which Axis2 JARs have which classes?
> >
> >
> > The difficulty is in finding a file from amongst several JARs.
> > (basically foreach a directory's JARs, and then -tvf them.)
> >
> > I've written a small utility that serves me for this.  See the attached
> > file.
> >
> > - Nate
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> > Jeff Greif
> > Sent: Friday, March 14, 2008 10:52 AM
> > To: axis-user@ws.apache.org
> > Subject: Re: How do I learn which Axis2 JARs have which classes?
> >
> > Use the jar tool that comes with (Sun) java:
> >
> > jar tvf xxx.jar
> >
> > and is documented via a on the main page of the JDK documentation
> > (under Tools).
> >
> > You can combine this with other Unix-style shell tools if you have the
> > cygwin tools on your windows box:
> >
> > jar tvf xxx.jar | grep '*MetaData*
> >
> > to look for certain classes or packages by some part of their name.
> >
> > You can also edit the jar with the Emacs editor, which shows you a
> > listing of files.
> >
> > Jeff
> >
> > On Fri, Mar 14, 2008 at 10:17 AM, Kraus, David
> > <[EMAIL PROTECTED]> wrote:
> > > I haven't hacked the registry. I have used WinZip to open jar files
> > as
> > > zip files. Not sure whether this creates a file association which
> > helps.
> > >
> > >  -Original Message-
> > >  From: Nate Roe [mailto:[EMAIL PROTECTED]
> > >  Sent: Friday, March 14, 2008 10:04 AM
> > >  To: 'axis-user@ws.apache.org'
> > >  Subject: RE: How do I learn which Axis2 JARs have which classes?
> > >
> > >
> > >  I don't think this method will work unless you hack the Windows
> > > registry  to tell it that a JAR is a ZIP.  Maybe.
> > >
> > >  I guess another way is to build a script (or a Java program) to do
> > > the  looking.
> > >
> > >  - Nate
> > >
> > >  -Original Message-
> > >  From: Kraus, David [mailto:[EMAIL PROTECTED]
> > >  Sent: Friday, March 14, 2008 8:57 AM
> > >  To: axis-user@ws.apache.org
> > >  Subject: RE: How do I learn which Axis2 JARs have which classes?
> > >
> > >  Hmmm...I didn't start using this method until about a year ago. My
> > OS
> > > is  Windows XP Professional. Not sure if previous windows platforms
> > > worked  in the same way when doing file searches.
> > >
> > >  I tried the same thing you mentioned:
> > >
> > >  Navigated to: D:\axis2-1.2\lib
> > >  all files and folders: *.jar
> > >  a word or phrase in the file file: org/apache
> > >
> > >  ...and I got a match on a large number of jar files...
> > >
> > >  The jarfinder website also provides a way to look up jar files, but
> > > didn't seem to know axis2 jars.
> > >
> > >
> > >  -Original Message-
> > >  From: learn_n_share [mailto:[EMAIL PROTECTED]
> > >  Sent: Thursday, March 13, 2008 10:35 PM
> > >  To: axis-user@ws.apache.org
> > >  Subject: RE: How do I learn which Axis2 JARs have which classes?
> > >
> > >
> > >  Hi Dave
> > >
> > >  I have the same doubt. I tried using your guidelines but couldn't
> > > succeed.
> > >  Please guide me where i m wrong.
> > >
> > >  i opened the C:\axis2\lib folder.
> > >  i pressed the serach button on the tool bar to open the search
> > window
> > > on  the  left hand side of the current window.
> > >  clicked the "all files and folders" option  entered "*.jar" in "all
> > > or part of filename"
> > >  entered "org/apache" in "a word or phrase in the file file"
> > >  "look in" to be "axis2\lib"
> > >  but couldn't get the results
> > >  guide me the correct way
> > >
> > >  regards
> > >  --
> > >  View this message in context:
> > >
> > > http://www.nabble.com/How-do-I-learn-which-Axis2-JARs-have-which-
> > class
> > > es
> > >  --tp16042438p16044726.html
> > >  Sent from the Axis - User mailing list archive at Nabble.com.
> > >

Re: [Axis2][1.4] RC1 - doc build problem

2008-03-20 Thread Leon Searl

Hi Guys,

I have tried to build the Axis2 1.4 RC1 from src but
ran into an issue and a BUILD ERROR.

The issue:

When building the docs the javax.servlet.http package can not be found:

 [exec]   [javadoc] Constructing Javadoc information...
 [exec]   [javadoc] 
/users/searl/sensorNet/eclipse/workspace/ACE_SOA/third_party/axis2/axis2-637511/modules/kernel/src/org/apache/axis2/builder/MultipartFormDataBuilder.java:40: 
package javax.servlet.http does not exist

 [exec]   [javadoc] import javax.servlet.http.HttpServletRequest;

I'm currently using Sun Standard Edition JDK1.5.0_14.
Should I be using Enterprise Edition to get the javax.servlet.http
package or should I set something up (CLASSPATH env variable)
to get to the Apache Tomcat library to get it's servlet-api.jar?

The BUILD ERROR:

 [exec] [INFO] 


 [exec] [INFO] Building Apache Axis2 - Distribution
 [exec] [INFO]task-segment: [install]
 [exec] [INFO] 


 [exec] [INFO] [antrun:run {execution: package}]
 [exec] [INFO] Executing tasks
 [exec]  [copy] Copying 136 files to 
/users/searl/sensorNet/eclipse/workspace/ACE_SOA/third_party/axis2/axis2-637511/modules/distribution/target/tmp-doc-distro/xdocs/1_3
 [exec]  [copy] Copied 10 empty directories to 2 empty 
directories under 
/users/searl/sensorNet/eclipse/workspace/ACE_SOA/third_party/axis2/axis2-637511/modules/distribution/target/tmp-doc-distro/xdocs/1_3
 [exec]  [copy] Copying 50 files to 
/users/searl/sensorNet/eclipse/workspace/ACE_SOA/third_party/axis2/axis2-637511/modules/distribution/target/tmp-doc-distro/xdocs/1_3
 [exec] [INFO] 


 [exec] [ERROR] BUILD ERROR
 [exec] [INFO] 


 [exec] [INFO] Error executing ant tasks
 [exec]
 [exec] Embedded error: 
/users/searl/sensorNet/eclipse/workspace/ACE_SOA/third_party/axis2/axis2-637511/release-docs/readme-files 
not found.
 [exec] [INFO] 




Thanks for your help.

leon

Davanum Srinivas wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,

I've posted the RC1 here:
http://people.apache.org/~dims/axis2-1.4/RC1/

Notes:
- - There's a text file with revision numbers that i used for all the 
SNAPSHOTS

- - There's a m2-repo.zip with all the m2 artifacts
- - There's an online repo as well 
http://people.apache.org/~dims/axis2-1.4/RC1/m2-repo/


Please kick the tires and raise JIRA's.

Thanks,
dims
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFH3QjegNg6eWEDv1kRAlELAKCK1+hrOnRzWLdVfFIKzR/Q0KWFFgCfe4UX
bZKJr3GADb33Hcv0U4MfNbM=
=RRmP
-END PGP SIGNATURE-

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


--
Leon S. Searl, Software Research Engineer
Information and Telecommunication Technology Center, University of Kansas
Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612
Ph: 785-864-7820 Fax: 785-864-0387
http://www.ittc.ku.edu

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



Re: axis 1.3 generated WSDL with three ports/bindings?

2008-03-20 Thread Nadir Amra
Daniel,

One for SOAP 1.1, one for SOAP 1.2, and one for REST-like Web services. 
You can suppress 1.2 and REST like SOAP bindings by turning a flag on or 
off in Axis2.xml,  as follows:

-  
  true 
-  
  true 



Nadir Amra


"Daniel Woo" <[EMAIL PROTECTED]> wrote on 03/20/2008 01:31:44 AM:

> Hi,
> 
> I am a green babie with SOAP, my problem is that when I deploy a 
> POJO service class axis automatically generates a WSDL, but the 
> generated WSDL contains three bindings, eg
> 
> 
> 
> http://16.158.65.18:
> 80/axis2/services/ProblemService"/>
> 
> 
> http://16.158.65.18:
> 80/axis2/services/ProblemService"/>
> 
> 
> http://16.158.65.18:
> 80/axis2/services/ProblemService"/>
> 
> 
> 
> Then my question is that why three ports/bindings we need? I can't 
> see any difference between the three bindings. When a SOAP request 
> is incoming, which port/binding will be used?
> 
> -- 
> Thanks & Regards,
> Daniel 

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



Persisting AxisService to aar

2008-03-20 Thread Chefo
Hi guys,

is anyone aware of the eventual existence of some ready-to-use functionality
in axis2 to persist an AxisService that has been created or modified
programmatically in the Axis2 runtime?
Ideally an AxisService to AAR utility would be nice :) , to be able to
overwrite/modify an existing service and survive a restart of the axis2
runtime.

Best wishes!
Chefo


Re: How to return Object[] from axis2

2008-03-20 Thread robert lazarski
Ahh, you have an axis2 service with an axis 1.x client.

I'm not sure if axis 1.x supports object arrays so someone else will
have to comment, sorry.

Robert

On Thu, Mar 20, 2008 at 9:05 AM, robert lazarski
<[EMAIL PROTECTED]> wrote:
> Hmm, you mention axis2 but the exception below is axis 1.x ?
>
>  Robert
>
>
>
>  On Thu, Mar 20, 2008 at 4:47 AM, Chinmoy Chakraborty <[EMAIL PROTECTED]> 
> wrote:
>  > Thanks a lot Deepal for your reply. I have a made a test service that
>  > returns an object array. I can see the correct SOAP through the SOAPMonitor
>  > (that Axis2 is returning) but in axis 1.4 client I am getting following
>  > exception:
>  >
>  > 23938 ERROR [http8080-Processor23]   org.apache.axis.client.Call
>  > - Exception:
>  > org.xml.sax.SAXException: Found character data inside an array element 
> while
>  > deserializing
>  >  at
>  > 
> org.apache.axis.encoding.ser.ArrayDeserializer.characters(ArrayDeserializer.java:502)
>  >   at
>  > 
> org.apache.axis.encoding.DeserializationContext.characters(DeserializationContext.java:966)
>  >  at
>  > 
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:177)
>  >  at
>  > 
> org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
>  >   at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
>  >  at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>  >  at org.apache.axis.client.Call.invoke(Call.java:2467)
>  >  at org.apache.axis.client.Call.invoke(Call.java:2366)
>  > .
>  >
>  > How can resolve above issue?
>  >
>  > Chinmoy
>  >
>  >
>  > On Wed, Mar 19, 2008 at 7:43 PM, Deepal jayasinghe <[EMAIL PROTECTED]>
>  > wrote:
>  >
>  > > Yes Axis2 support Object arrays. The error may be due to some issue in
>  > > your code , however we can help you to fix that if you can send us the
>  > > code or create a JIRA attaching test code.
>  > >
>  > > Thank you!
>  > > Deepal
>  > >
>  > >
>  > >
>  > > > Hi All,
>  > > >
>  > > > I am using hitting Axis2 with axis 1.4 client. I have a service which
>  > > > returns Object[].
>  > > >
>  > > > With axis 1.4 in both ends it worked well. But in axis2 it gives
>  > > > Nullpointer exception when the service tried to return Object[]
>  > > > (object array).
>  > > >
>  > > > Does axis2 support object array as return type? If yes then how can I
>  > > > make it work with old axis1.4 client? its necessary to support old
>  > > > axis1.4 because lots of our customers are using axis1.4 client and we
>  > > > need to make it backward compatible.
>  > > >
>  > > > Chinmoy
>  > >
>  > >
>  > >
>  > > -
>  > > 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: How to return Object[] from axis2

2008-03-20 Thread robert lazarski
Hmm, you mention axis2 but the exception below is axis 1.x ?

Robert

On Thu, Mar 20, 2008 at 4:47 AM, Chinmoy Chakraborty <[EMAIL PROTECTED]> wrote:
> Thanks a lot Deepal for your reply. I have a made a test service that
> returns an object array. I can see the correct SOAP through the SOAPMonitor
> (that Axis2 is returning) but in axis 1.4 client I am getting following
> exception:
>
> 23938 ERROR [http8080-Processor23]   org.apache.axis.client.Call
> - Exception:
> org.xml.sax.SAXException: Found character data inside an array element while
> deserializing
>  at
> org.apache.axis.encoding.ser.ArrayDeserializer.characters(ArrayDeserializer.java:502)
>   at
> org.apache.axis.encoding.DeserializationContext.characters(DeserializationContext.java:966)
>  at
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:177)
>  at
> org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
>   at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
>  at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>  at org.apache.axis.client.Call.invoke(Call.java:2467)
>  at org.apache.axis.client.Call.invoke(Call.java:2366)
> .
>
> How can resolve above issue?
>
> Chinmoy
>
>
> On Wed, Mar 19, 2008 at 7:43 PM, Deepal jayasinghe <[EMAIL PROTECTED]>
> wrote:
>
> > Yes Axis2 support Object arrays. The error may be due to some issue in
> > your code , however we can help you to fix that if you can send us the
> > code or create a JIRA attaching test code.
> >
> > Thank you!
> > Deepal
> >
> >
> >
> > > Hi All,
> > >
> > > I am using hitting Axis2 with axis 1.4 client. I have a service which
> > > returns Object[].
> > >
> > > With axis 1.4 in both ends it worked well. But in axis2 it gives
> > > Nullpointer exception when the service tried to return Object[]
> > > (object array).
> > >
> > > Does axis2 support object array as return type? If yes then how can I
> > > make it work with old axis1.4 client? its necessary to support old
> > > axis1.4 because lots of our customers are using axis1.4 client and we
> > > need to make it backward compatible.
> > >
> > > Chinmoy
> >
> >
> >
> > -
> > 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: How to return Object[] from axis2

2008-03-20 Thread Chinmoy Chakraborty
Does axis2 suport following return type?

public Object[] returnObjectArray(String authToken) {
Object[] retVal = new Object[3];
Object[] args = new Object[3];
args[0] = new Object[] {"Arg1", "Arg2", "Arg3"};
args[1] = new Object[] {"Arg1", "Arg2", "Arg3"};
args[2] = new Object[] {"Arg1", "Arg2", "Arg3"};
retVal[0] = new Object[] {"RetVal1", "Retval2", authToken, args};
retVal[1] = new Object[] {"RetVal3", "Retval4", authToken, args};
retVal[2] = new Object[] {"RetVal5", "Retval6", authToken, args};
return retVal;
}

Chinmoy

On Thu, Mar 20, 2008 at 1:17 PM, Chinmoy Chakraborty <[EMAIL PROTECTED]>
wrote:

> Thanks a lot Deepal for your reply. I have a made a test service that
> returns an object array. I can see the correct SOAP through the SOAPMonitor
> (that Axis2 is returning) but in axis 1.4 client I am getting following
> exception:
>
> 23938 ERROR [http8080-Processor23]   org.apache.axis.client.Call
> - Exception:
> org.xml.sax.SAXException: Found character data inside an array element
> while deserializing
>  at org.apache.axis.encoding.ser.ArrayDeserializer.characters(
> ArrayDeserializer.java:502)
>  at org.apache.axis.encoding.DeserializationContext.characters(
> DeserializationContext.java:966)
>  at org.apache.axis.message.SAX2EventRecorder.replay(
> SAX2EventRecorder.java:177)
>  at org.apache.axis.message.MessageElement.publishToHandler(
> MessageElement.java:1141)
>  at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
>  at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>  at org.apache.axis.client.Call.invoke(Call.java:2467)
>  at org.apache.axis.client.Call.invoke(Call.java:2366)
> .
>
> How can resolve above issue?
>
> Chinmoy
>
>   On Wed, Mar 19, 2008 at 7:43 PM, Deepal jayasinghe <[EMAIL PROTECTED]>
> wrote:
>
> > Yes Axis2 support Object arrays. The error may be due to some issue in
> > your code , however we can help you to fix that if you can send us the
> > code or create a JIRA attaching test code.
> >
> > Thank you!
> > Deepal
> >  > Hi All,
> > >
> > > I am using hitting Axis2 with axis 1.4 client. I have a service which
> > > returns Object[].
> > >
> > > With axis 1.4 in both ends it worked well. But in axis2 it gives
> > > Nullpointer exception when the service tried to return Object[]
> > > (object array).
> > >
> > > Does axis2 support object array as return type? If yes then how can I
> > > make it work with old axis1.4 client? its necessary to support old
> > > axis1.4 because lots of our customers are using axis1.4 client and we
> > > need to make it backward compatible.
> > >
> > > Chinmoy
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Axis 2 client, Axis 1.4 server, unexpected element

2008-03-20 Thread Richard Fagot
Nobody knows why Axis 2 client can not correctly interpret complex
type returned by an axis 1 server ?


2008/3/17, Richard Fagot <[EMAIL PROTECTED]>:
> I would like to add sent soap messages :
>
>  
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>  
> http://ws.awas.ext"; />
>  
>   
>
>
>  
>   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
>  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>
>   http://ws.awas.ext";>
>  
> 
>une
>deux
>trois
> 
> ursula
>  
>   
>
> 
>
>  2008/3/17, Richard Fagot <[EMAIL PROTECTED]>:
>
> > Hi all,
>  >
>  >I have to create a web service with a lot of operations. On the
>  >  server side, I must use axis 1.4. On the client side I must use Axis
>  >  2-1.3.
>  >For the server I have written an interface representing all
>  >  operations (multiple complex arguments, complex returns) and the
>  >  implementation of these interface and then generated the correspondant
>  >  WSDL. I used this WSDL for the client side in Axis 2. At execution the
>  >  client throw an exception of the type : org.apache.axis2.AxisFault:
>  >  org.apache.axis2.databinding.ADBException: Unexpected subelement
>  >  MyElement
>  >
>  >   I have generated and used with success a client made with Axis 1.4.
>  >  I have simplified the server interface begining with a method with no
>  >  argument returning a simple string until I encounter the same issue as
>  >  with the complete WS. This exception appears when the return object is
>  >  a complex one containing an array of values.
>  >
>  >   Here is the minimal sample generating the exception. Help is welcom :)
>  >
>  >   Server Side (Axis 1.4) - Generation of the WSDL 
>  >
>  >  
>  >   
>  > >  serviceelementname="awas" bindingName="awas" style="WRAPPED"
>  >  namespace="http://ws.awas.ext";
>  >  
> location="http://${java.rmi.server.hostname}/${wt.server.id}/servlet/service/awas";
>  >  output="${wsdl.file}">
>  >
>  >http://ws.awas.ext"; package="ext.awas.ws" />
>  >   
>  >  
>  >
>  >   Server Side (Axis 1.4) - WS Interface Class 
>  >  package ext.awas.ws;
>  >
>  >  public interface AwasWS {
>  >
>  >SimpleObject getUrsula();
>  >  }
>  >
>  >   Server Side (Axis 1.4) - Returned type 
>  >  package ext.awas.ws;
>  >
>  >  public class SimpleObject {
>  >private String name;
>  >private String[] values;
>  >
>  >public SimpleObject() {
>  >name = "";
>  >values = new String[0];
>  >}
>  >
>  >public void setName(String name) {
>  >this.name = name;
>  >}
>  >
>  >public String getName() {
>  >return name;
>  >}
>  >
>  >public void setValues(String[] values) {
>  >this.values = values;
>  >}
>  >
>  >public String[] getValues() {
>  >return values;
>  >}
>  >  }
>  >
>  >   Client Side (Axis 2-1.3) - Generation of the client part *
>  > >  classname="org.apache.axis2.tool.ant.AntCodegenTask"
>  >  classpathref="axis.classpath"/>
>  >
>  >  >  wsdlfilename="${basedir}/wsdl/awas.wsdl" unpackclasses="true"
>  >  serverside="false" unwrap="yes"/>
>  >
>  >
>  >
>  >   Client Side (Axis 2-1.3) - WS call 
>  >  try {
>  >ConfigurationContext configContext =
>  >  ConfigurationContextFactory.createDefaultConfigurationContext();
>  >
>  >AwasStub stub = new AwasStub(configContext,
>  >"http://localhost:9090/servlet/service/awas";);
>  >
>  >SimpleObject ursula = stub.getUrsula(new GetUrsula());
>  >
>  >System.out.println(ursula.getName());
>  >ArrayOf_xsd_string values = ursula.getValues();
>  >String[] item = values.getItem();
>  >for (int i = 0; i < item.length; i++) {
>  >System.out.println(item[i]);
>  >}
>  >  } catch (Exception e) {
>  >e.printStackTrace();
>  >  }
>  >
>  >   The Exception (exists only on the client side) 
>  >  org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
>  >  Unexpected subelement values
>  >at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>  >at ext.awas.ws.AwasStub.fromOM(AwasStub.java:431)
>  >at ext.awas.ws.AwasStub.getUrsula(AwasStub.java:146)
>  >at ext.airbus.axis2.auth.Axis2AuthTest.main(Axis2AuthTest.java:45)
>  >  Caused by: java.lang.Exception:
>  >  org.apache.axis2.databinding.ADBException: Unexpected subelement
>  >  values
>  >at ext.awas.ws.SimpleObject$Factory.parse(SimpleObject.jav

Re: How to return Object[] from axis2

2008-03-20 Thread Chinmoy Chakraborty
Thanks a lot Deepal for your reply. I have a made a test service that
returns an object array. I can see the correct SOAP through the SOAPMonitor
(that Axis2 is returning) but in axis 1.4 client I am getting following
exception:

23938 ERROR [http8080-Processor23]   org.apache.axis.client.Call
- Exception:
org.xml.sax.SAXException: Found character data inside an array element while
deserializing
 at org.apache.axis.encoding.ser.ArrayDeserializer.characters(
ArrayDeserializer.java:502)
 at org.apache.axis.encoding.DeserializationContext.characters(
DeserializationContext.java:966)
 at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java
:177)
 at org.apache.axis.message.MessageElement.publishToHandler(
MessageElement.java:1141)
 at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
 at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
 at org.apache.axis.client.Call.invoke(Call.java:2467)
 at org.apache.axis.client.Call.invoke(Call.java:2366)
.

How can resolve above issue?

Chinmoy

On Wed, Mar 19, 2008 at 7:43 PM, Deepal jayasinghe <[EMAIL PROTECTED]>
wrote:

> Yes Axis2 support Object arrays. The error may be due to some issue in
> your code , however we can help you to fix that if you can send us the
> code or create a JIRA attaching test code.
>
> Thank you!
> Deepal
>  > Hi All,
> >
> > I am using hitting Axis2 with axis 1.4 client. I have a service which
> > returns Object[].
> >
> > With axis 1.4 in both ends it worked well. But in axis2 it gives
> > Nullpointer exception when the service tried to return Object[]
> > (object array).
> >
> > Does axis2 support object array as return type? If yes then how can I
> > make it work with old axis1.4 client? its necessary to support old
> > axis1.4 because lots of our customers are using axis1.4 client and we
> > need to make it backward compatible.
> >
> > Chinmoy
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: How do I learn which Axis2 JARs have which classes?

2008-03-20 Thread Matthias.Gaiser
If it is still valuable to anyone. If you use eclipse as your developing IDE. 
It has a nice feature how you can lookup classes.
Just press the keys Strg+Shift+T (alternatively open the Menu "Navigate" --> 
"Open Type") and eclipse opens a "Open Type" dialog. There you can start typing 
your classname and see all matching classes, including their full qualified 
name and the jar they belong to.

Matthias.

> -Ursprüngliche Nachricht-
> Von: Nate Roe [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 14. März 2008 19:36
> An: 'axis-user@ws.apache.org'
> Betreff: RE: How do I learn which Axis2 JARs have which classes?
> 
> 
> The difficulty is in finding a file from amongst several JARs.
> (basically foreach a directory's JARs, and then -tvf them.)
> 
> I've written a small utility that serves me for this.  See the attached
> file.
> 
> - Nate
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Jeff Greif
> Sent: Friday, March 14, 2008 10:52 AM
> To: axis-user@ws.apache.org
> Subject: Re: How do I learn which Axis2 JARs have which classes?
> 
> Use the jar tool that comes with (Sun) java:
> 
> jar tvf xxx.jar
> 
> and is documented via a on the main page of the JDK documentation
> (under Tools).
> 
> You can combine this with other Unix-style shell tools if you have the
> cygwin tools on your windows box:
> 
> jar tvf xxx.jar | grep '*MetaData*
> 
> to look for certain classes or packages by some part of their name.
> 
> You can also edit the jar with the Emacs editor, which shows you a
> listing of files.
> 
> Jeff
> 
> On Fri, Mar 14, 2008 at 10:17 AM, Kraus, David
> <[EMAIL PROTECTED]> wrote:
> > I haven't hacked the registry. I have used WinZip to open jar files
> as
> > zip files. Not sure whether this creates a file association which
> helps.
> >
> >  -Original Message-
> >  From: Nate Roe [mailto:[EMAIL PROTECTED]
> >  Sent: Friday, March 14, 2008 10:04 AM
> >  To: 'axis-user@ws.apache.org'
> >  Subject: RE: How do I learn which Axis2 JARs have which classes?
> >
> >
> >  I don't think this method will work unless you hack the Windows
> > registry  to tell it that a JAR is a ZIP.  Maybe.
> >
> >  I guess another way is to build a script (or a Java program) to do
> > the  looking.
> >
> >  - Nate
> >
> >  -Original Message-
> >  From: Kraus, David [mailto:[EMAIL PROTECTED]
> >  Sent: Friday, March 14, 2008 8:57 AM
> >  To: axis-user@ws.apache.org
> >  Subject: RE: How do I learn which Axis2 JARs have which classes?
> >
> >  Hmmm...I didn't start using this method until about a year ago. My
> OS
> > is  Windows XP Professional. Not sure if previous windows platforms
> > worked  in the same way when doing file searches.
> >
> >  I tried the same thing you mentioned:
> >
> >  Navigated to: D:\axis2-1.2\lib
> >  all files and folders: *.jar
> >  a word or phrase in the file file: org/apache
> >
> >  ...and I got a match on a large number of jar files...
> >
> >  The jarfinder website also provides a way to look up jar files, but
> > didn't seem to know axis2 jars.
> >
> >
> >  -Original Message-
> >  From: learn_n_share [mailto:[EMAIL PROTECTED]
> >  Sent: Thursday, March 13, 2008 10:35 PM
> >  To: axis-user@ws.apache.org
> >  Subject: RE: How do I learn which Axis2 JARs have which classes?
> >
> >
> >  Hi Dave
> >
> >  I have the same doubt. I tried using your guidelines but couldn't
> > succeed.
> >  Please guide me where i m wrong.
> >
> >  i opened the C:\axis2\lib folder.
> >  i pressed the serach button on the tool bar to open the search
> window
> > on  the  left hand side of the current window.
> >  clicked the "all files and folders" option  entered "*.jar" in "all
> > or part of filename"
> >  entered "org/apache" in "a word or phrase in the file file"
> >  "look in" to be "axis2\lib"
> >  but couldn't get the results
> >  guide me the correct way
> >
> >  regards
> >  --
> >  View this message in context:
> >
> > http://www.nabble.com/How-do-I-learn-which-Axis2-JARs-have-which-
> class
> > es
> >  --tp16042438p16044726.html
> >  Sent from the Axis - User mailing list archive at Nabble.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]
> >
> >
> >  
> -
> >  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 unsu