Is it possible to do BasicAuth with Axis1?

2006-08-29 Thread William Ferguson
Without hacking the generated stubs.

Or alternatively, are there any recommendations on how to invoke using
an Axis2 client within Weblogic8. 

The problem I'm facing is that it ships with an old version of
javax.xml.namespace.Qname that does not have the 3 arg constructor used
by the Axis2 generated ADBs. Nor would it binary compatible, right?

William

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



Re: [Axis2] Service packaging how to

2006-08-29 Thread Deepal Jayasinghe
Hi Michele ;
pls have a look at following reference , it will show how to put lib and
properties into service archive file.
http://www.developer.com/open/article.php/10930_3557741_2

>Hi all,
>
>I've got a simple question: which structure should the aar file have if
>libraries and property files are included?
>
>Is the default (i.e. classes in / and libraries in /lib) ok? And what
>about the property files?
>I've tried also to store classes as well as property files (i.e. log4j
>configuration )in /WEB-INF/classes, libraries in /WEB-INF/lib, but it
>does not work properly.
>
>Any idea?
>
>Thanks in advance,
>Michele
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 



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



web methods should return string not OM

2006-08-29 Thread MUHAMMAD IQBAL

Hi,

my service is written using axis2 and have methods like:

 public  String hello(String p){
 return "hello"
 }

1) I want all of my web methods accept and return String xml not OM, can any 
one help me how can i achieve this in axis2?


2)  how could i write a doc/lit style web services in axis2?


Thanks and Regards,

Muhammad Iqbal



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



Re: AXIS2 : WSDL 2.0 implementation in Axis2

2006-08-29 Thread Anne Thomas Manes

Yes, but I advise extreme caution when building systems based on
pre-standard specifications. WSDL 2.0 is a Candidate Recommendation.
That's two steps below Final Recommendation. The W3C Working Group has
issued a call for implementations (such as Woden) so as to test the
viability of this specification. Based on implementation experience,
the Working Group is likely to make some changes to the specification
before it proceeds to Proposed Recommendation status. I suspect it
will be sometime in 2007 before WSDL 2.0 becomes a Final
Recommendation.

If your goal is to test the specification, then by all means use
Woden. But you really don't want to develop production apps using WSDL
2.0 yet.

Anne

On 8/29/06, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:

Hi,
We do have WSDL 2.0 support based on Woden [1].

Ajith
[1] http://incubator.apache.org/woden/

On 8/29/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> WSDL 2.0 specification is not yet complete.
>
> On 8/29/06, Gul Onural <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Hi,
> >
> > My understanding is that the current version of the Axis2 implemented WSDL
> > 1.1.
> > Does anyone know when the implementation of WSDL 2.0 is planned for ?
> >
> > Thanks,
> >
> > Gul Onural
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Ajith Ranabahu

-
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: AXIS2 : WSDL 2.0 implementation in Axis2

2006-08-29 Thread Ajith Ranabahu

Hi,
We do have WSDL 2.0 support based on Woden [1].

Ajith
[1] http://incubator.apache.org/woden/

On 8/29/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

WSDL 2.0 specification is not yet complete.

On 8/29/06, Gul Onural <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
> My understanding is that the current version of the Axis2 implemented WSDL
> 1.1.
> Does anyone know when the implementation of WSDL 2.0 is planned for ?
>
> Thanks,
>
> Gul Onural

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





--
Ajith Ranabahu

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



JIRA ISSUE ClassUtil

2006-08-29 Thread Warren Crossing

Hi please excues me, I couldn't seem to post an issue to JIRA

Axis-1_4 ClassUtil hides classload exceptions

patch is


src/org/apache/axis/utils/ClassUtils.java
205,206d204
< } else if (ret instanceof Throwable) {
< throw (ClassNotFoundException)new 
ClassNotFoundException(_className,(Throwable)ret);


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



Re: SOLVED: Re: [Axis2] nightly exception while invoking via stub

2006-08-29 Thread Anne Thomas Manes

Even though this was caused by user error, Axis2 should not generate
an NPE. Please file a JIRA.

Anne

On 8/29/06, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:

Hi,
If the WSDL (schema really) has the value as nillable, ADB will
generate the code to handle the null value.

Ajith

On 8/29/06, robert lazarski <[EMAIL PROTECTED]> wrote:
> MinOccurs=0 would fix that, right? Typically its hard to program null
> as a valid value, because your not sure if its valid or not.
>
> HTH,
> Robert
> http://www.braziloutsource.com/
>
> On 8/29/06, Nirmit Desai <[EMAIL PROTECTED]> wrote:
> > Hi Robert,
> >
> > All my fault...
> >
> > Thanks for pointing that one out. I found deep down somewhere one of the
> > fields of an ADB bean was not being set and so was left null. And
> > SOAPMonitor did not display anything as its connection to server was lost
> > :) The problem was on the service side trying to serialize the results...
> >
> > Should Axis2 serialize null in some way instead of complaining? maybe only
> > if it is declared nillable in WSDL..?
> >
> > Thanks,
> >
> > -Nirmit
> >
> >
> >
> >
> >  "robert lazarski"
> >  <[EMAIL PROTECTED]
> >  mail.com>  To
> >axis-user@ws.apache.org
> >  08/29/2006 04:35   cc
> >  PM
> >Subject
> >Re: [Axis2] nightly exception while
> >  Please respond to invoking via stub
> >  [EMAIL PROTECTED]
> >   he.org
> >
> >
> >
> >
> >
> >
> >
> >
> > 
> > > Caused by: java.lang.NullPointerException
> > >   at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(
> > > MTOMXMLStreamWriter.java:194)
> > >   at
> > com.ibm.sobe.xsd.ServiceBundle$1.serialize(ServiceBundle.java:307)
> > >   at
> > >
> > 
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(
> >
> > > OMSourcedElementImpl.java:522)
> > >   at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize(
> > > OMSourcedElementImpl.java:529)
> > >   at com.ibm.sobe.xsd.ArrayOfServiceBundle$1.serialize(
> >
> > Something is null. Need to see to the code to perhaps know why, but
> > that should give you a start.
> >
> > HTH,
> > Robert
> > http://www.braziloutsource.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]
>
>


--
Ajith Ranabahu

-
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: SOLVED: Re: [Axis2] nightly exception while invoking via stub

2006-08-29 Thread Ajith Ranabahu

Hi,
If the WSDL (schema really) has the value as nillable, ADB will
generate the code to handle the null value.

Ajith

On 8/29/06, robert lazarski <[EMAIL PROTECTED]> wrote:

MinOccurs=0 would fix that, right? Typically its hard to program null
as a valid value, because your not sure if its valid or not.

HTH,
Robert
http://www.braziloutsource.com/

On 8/29/06, Nirmit Desai <[EMAIL PROTECTED]> wrote:
> Hi Robert,
>
> All my fault...
>
> Thanks for pointing that one out. I found deep down somewhere one of the
> fields of an ADB bean was not being set and so was left null. And
> SOAPMonitor did not display anything as its connection to server was lost
> :) The problem was on the service side trying to serialize the results...
>
> Should Axis2 serialize null in some way instead of complaining? maybe only
> if it is declared nillable in WSDL..?
>
> Thanks,
>
> -Nirmit
>
>
>
>
>  "robert lazarski"
>  <[EMAIL PROTECTED]
>  mail.com>  To
>axis-user@ws.apache.org
>  08/29/2006 04:35   cc
>  PM
>Subject
>Re: [Axis2] nightly exception while
>  Please respond to invoking via stub
>  [EMAIL PROTECTED]
>   he.org
>
>
>
>
>
>
>
>
> 
> > Caused by: java.lang.NullPointerException
> >   at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(
> > MTOMXMLStreamWriter.java:194)
> >   at
> com.ibm.sobe.xsd.ServiceBundle$1.serialize(ServiceBundle.java:307)
> >   at
> >
> 
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(
>
> > OMSourcedElementImpl.java:522)
> >   at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize(
> > OMSourcedElementImpl.java:529)
> >   at com.ibm.sobe.xsd.ArrayOfServiceBundle$1.serialize(
>
> Something is null. Need to see to the code to perhaps know why, but
> that should give you a start.
>
> HTH,
> Robert
> http://www.braziloutsource.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]





--
Ajith Ranabahu

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



Re: revision 227023 commons-discovery

2006-08-29 Thread Martin Gainty
Dims and Luigi--

I ran into this bug today and applied dims fix of Aug 2005 to all affected 
source files to fix and rebuilt the jar..
I have a strange feeling that we should be submitting this patch to someone 
higher up on the food chain (but I dont know who that is?)

Thanks,
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.


> Martin,
> 
> No, we have not made a release since that bug got fixed.
> 
> -- dims
> 
> On 8/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>> Good Morning Luis and Dims-
>>
>> I am following up on a nasty bug (which I am experiencing) which Luis 
>> reported and dims fixed Aug 2005 in commons-discovery
>> Here is the link
>> http://svn.apache.org/viewvc/jakarta/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK12Hooks.java?diff_format=h&r1=165666&r2=227023&pathrev=227023
>>
>> The mods dims made are on Line 212 of 
>> /org/apache/commons/discovery/jdk/JDK12Hooks.java (which I CANNOT locate in 
>> any of the source distros!)
>>
>> if (classLoader == null) {
>>   213SecurityManager security = 
>> System.getSecurityManager();
>>   214if (security != null) {
>>   215try {
>>   216security.checkCreateClassLoader();
>>   217  classLoader = new PsuedoSystemClassLoader();  
>> classLoader = new PsuedoSystemClassLoader();
>>   218} catch (SecurityException se){
>>   219}
>>   220}
>>   221  }  }
>>
>> *
>>
>> Is there a repository which contains the commons-discovery updates ???
>>
>> Thanks!
>> Martin --
>> This email message and any files transmitted with it contain confidential
>> information intended only for the person(s) to whom this email message is
>> addressed.  If you have received this email message in error, please notify
>> the sender immediately by telephone or email and destroy the original
>> message without making a copy.  Thank you.
>>
>>
>>
>> - Original Message -
>> From: "Luis Rivera" <[EMAIL PROTECTED]>
>> To: "Martin Gainty" <[EMAIL PROTECTED]>
>> Cc: "Tomcat Users List" 
>> Sent: Monday, July 24, 2006 6:37 PM
>> Subject: Re: java.lang.LinkageError: Class soap/xsd/CompanyInfo violates 
>> loader constraints
>>
>>
>> >Dear Martin,
>> >
>> > Thanks again for the reply.
>> >
>> > I added some questions to your responses, hoping that I can clarify what I
>> > am trying to do. I think I have been very confusing and probably the
>> > solution is so obvious I am just missing it.
>> >
>> > 2)
>> >> ClassLoader delegation-
>> >> Straight from the doc at
>> >> http://docs.sun.com/app/docs/doc/819-2556/6n4rap8qm?a=view
>> >>
>> >> "Servlet specification recommends that the Web Classloader look in the
>> >> local class loader before delegating to its parent. To make the Web
>> >> Classloader follow the delegation model in the Servlet specification, set
>> >> delegate="false" in the class-loader element of the sun-web.xml file. 
>> >> *It's
>> >> safe to do this only for a web module that does not interact with any 
>> >> other
>> >> modules."*
>> >>
>> >> "The default value is delegate="true", which causes the Web Classloader to
>> >> delegate in the same manner as the other classloaders. Use 
>> >> delegate="true"for a web application that accesses EJB components or that 
>> >> acts as a web
>> >> service client or endpoint. For details about sun-web.xml, see The
>> >> sun-web.xml 
>> >> File
>> >> ."
>> >>
>> >> from the doc if your webapp is standalone set delegate = false
>> >> If it's accessing EJB components or is a webservice client and or endpoint
>> >> delegate = true
>> >> I defer to the sun application server site for accuracy on configuration
>> >> and installation details
>> >>
>> >
>> > If I understand this, this means this is possible in J2EE, which I had read
>> > about. But, what about TOMCAT? Is it possible to do the same thing in
>> > Tomcat, just to see if that would solve my problem?
>> >
>> > I have looked around on the web, documentaiton and configuration files and
>> > this does not seem to be possible in Tomcat
>> >
>> >
>> >> 3)
>> >> JNI:
>> >> I *assume* you are attempting to build and configure your own mod_jk
>> >> worker?
>> >> http://tomcat.apache.org/connectors-doc/install/apache2.html
>> >> This is system related stuff which assumes you are backing up your current
>> >> installation beforehand
>> >> and us

Re: [axis2] newbie: null rcl

2006-08-29 Thread Nolan Johnson

Stack trace, on server side:

2006-08-29 15:20:53,393 ERROR
org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver
- Exception occurred while trying to invoke service
method browse
org.apache.axiom.om.OMException:
java.lang.IllegalArgumentException: null rcl
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:199)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:298)
at
org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:580)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:118)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:235)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:192)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:146)
at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:288)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:207)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.IllegalArgumentException: null
rcl
at
org.codehaus.jam.internal.reflect.ReflectClassBuilder.(ReflectClassBuilder.java:47)
at
org.codehaus.jam.provider.JamServiceFactoryImpl.createBuilder(JamServiceFactoryImpl.java:173)
at
org.codehaus.jam.provider.JamServiceFactoryImpl.createClassLoader(JamServiceFactoryImpl.java:137)
at
org.codehaus.jam.provider.JamServiceFactoryImpl.createService(JamServiceFactoryImpl.java:78)
at
org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:61)
at
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:953)
at
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:826)
at
org.apache.axis2.databinding.utils.reader.WrappingXMLStreamReader.next(WrappingXMLStreamReader.java:45)
at
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:829)
at
org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:116)
... 26 more
3799 [http-8080-Processor24] ERROR
org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver
 - Exception occurred while trying to invoke service
method browse
org.apache.axiom.om.OMException:
java.lang.IllegalArgumentException: null rcl
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:199)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:298)
at
org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:580)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:118)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:235)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:192)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:146)
at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)

Re: SOLVED: Re: [Axis2] nightly exception while invoking via stub

2006-08-29 Thread robert lazarski

MinOccurs=0 would fix that, right? Typically its hard to program null
as a valid value, because your not sure if its valid or not.

HTH,
Robert
http://www.braziloutsource.com/

On 8/29/06, Nirmit Desai <[EMAIL PROTECTED]> wrote:

Hi Robert,

All my fault...

Thanks for pointing that one out. I found deep down somewhere one of the
fields of an ADB bean was not being set and so was left null. And
SOAPMonitor did not display anything as its connection to server was lost
:) The problem was on the service side trying to serialize the results...

Should Axis2 serialize null in some way instead of complaining? maybe only
if it is declared nillable in WSDL..?

Thanks,

-Nirmit




 "robert lazarski"
 <[EMAIL PROTECTED]
 mail.com>  To
   axis-user@ws.apache.org
 08/29/2006 04:35   cc
 PM
   Subject
   Re: [Axis2] nightly exception while
 Please respond to invoking via stub
 [EMAIL PROTECTED]
  he.org









> Caused by: java.lang.NullPointerException
>   at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(
> MTOMXMLStreamWriter.java:194)
>   at
com.ibm.sobe.xsd.ServiceBundle$1.serialize(ServiceBundle.java:307)
>   at
>
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(

> OMSourcedElementImpl.java:522)
>   at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize(
> OMSourcedElementImpl.java:529)
>   at com.ibm.sobe.xsd.ArrayOfServiceBundle$1.serialize(

Something is null. Need to see to the code to perhaps know why, but
that should give you a start.

HTH,
Robert
http://www.braziloutsource.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]



SOLVED: Re: [Axis2] nightly exception while invoking via stub

2006-08-29 Thread Nirmit Desai
Hi Robert,

All my fault...

Thanks for pointing that one out. I found deep down somewhere one of the
fields of an ADB bean was not being set and so was left null. And
SOAPMonitor did not display anything as its connection to server was lost
:) The problem was on the service side trying to serialize the results...

Should Axis2 serialize null in some way instead of complaining? maybe only
if it is declared nillable in WSDL..?

Thanks,

-Nirmit



   
 "robert lazarski" 
 <[EMAIL PROTECTED] 
 mail.com>  To 
   axis-user@ws.apache.org 
 08/29/2006 04:35   cc 
 PM
   Subject 
   Re: [Axis2] nightly exception while 
 Please respond to invoking via stub   
 [EMAIL PROTECTED] 
  he.org   
   
   
   
   





> Caused by: java.lang.NullPointerException
>   at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(
> MTOMXMLStreamWriter.java:194)
>   at
com.ibm.sobe.xsd.ServiceBundle$1.serialize(ServiceBundle.java:307)
>   at
>
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(

> OMSourcedElementImpl.java:522)
>   at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize(
> OMSourcedElementImpl.java:529)
>   at com.ibm.sobe.xsd.ArrayOfServiceBundle$1.serialize(

Something is null. Need to see to the code to perhaps know why, but
that should give you a start.

HTH,
Robert
http://www.braziloutsource.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: [axis2] newbie: null rcl

2006-08-29 Thread robert lazarski

Try posting a full stracktrace and your code and maybe we can help.

Robert
http://www.braziloutsource.com/

On 8/29/06, Nolan Johnson <[EMAIL PROTECTED]> wrote:


Can somebody explain to me what the following
exception means:
org.apache.axiom.om.OMException:
java.lang.IllegalArgumentException: null rcl

This seems to have something to do with my passing
custom objects around in RPC messages.  I'm really not
sure what, though.

Thanks.

__
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: [Axis2] nightly exception while invoking via stub

2006-08-29 Thread Nirmit Desai
Hi Robert,

Thanks for even looking at this deep exception trace. My confusion is that
this operation takes no parameters (empty in), and the stub code looks
right. The
ArrayOfServiceBundle, and ServiceBundle are ADB types for the return from
the operation. Then, why do I not see anything (request message) in the
SOAPMonitor?

Thanks

-Nirmit



   
 "robert lazarski" 
 <[EMAIL PROTECTED] 
 mail.com>  To 
   axis-user@ws.apache.org 
 08/29/2006 04:35   cc 
 PM
   Subject 
   Re: [Axis2] nightly exception while 
 Please respond to invoking via stub   
 [EMAIL PROTECTED] 
  he.org   
   
   
   
   





> Caused by: java.lang.NullPointerException
>   at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(
> MTOMXMLStreamWriter.java:194)
>   at
com.ibm.sobe.xsd.ServiceBundle$1.serialize(ServiceBundle.java:307)
>   at
>
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(

> OMSourcedElementImpl.java:522)
>   at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize(
> OMSourcedElementImpl.java:529)
>   at com.ibm.sobe.xsd.ArrayOfServiceBundle$1.serialize(

Something is null. Need to see to the code to perhaps know why, but
that should give you a start.

HTH,
Robert
http://www.braziloutsource.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: [Axis2] nightly exception while invoking via stub

2006-08-29 Thread robert lazarski



Caused by: java.lang.NullPointerException
  at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(
MTOMXMLStreamWriter.java:194)
  at com.ibm.sobe.xsd.ServiceBundle$1.serialize(ServiceBundle.java:307)
  at
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(
OMSourcedElementImpl.java:522)
  at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize(
OMSourcedElementImpl.java:529)
  at com.ibm.sobe.xsd.ArrayOfServiceBundle$1.serialize(


Something is null. Need to see to the code to perhaps know why, but
that should give you a start.

HTH,
Robert
http://www.braziloutsource.com/

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



[axis2] newbie: null rcl

2006-08-29 Thread Nolan Johnson

Can somebody explain to me what the following
exception means:
org.apache.axiom.om.OMException:
java.lang.IllegalArgumentException: null rcl

This seems to have something to do with my passing
custom objects around in RPC messages.  I'm really not
sure what, though.

Thanks.

__
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]



[Axis2] nightly exception while invoking via stub

2006-08-29 Thread Nirmit Desai

Hi,

What does the exception below mean? it gives me no clue. I get this when
trying to invoke an operation (doc/lit) via a generated stub. This is from
8/24 nightly. I do not see any messages in the SOAPMonitor...so service
implementation is out of question..

Only if I can understand what this is trying to say?

-Nirmit

Aug 29, 2006 3:20:36 PM org.apache.axis2.engine.AxisEngine receiveFault
INFO: Received Error Message with id
urn:uuid:E98263F171272E08DB11568792356871
Exception in thread "main" org.apache.axis2.AxisFault:
java.lang.NullPointerException
  at org.apache.axis2.description.OutInAxisOperationClient.execute(
OutInAxisOperation.java:301)
  at com.ibm.sobe.platform.SampleClubMemberServicesStub.getServices(
SampleClubMemberServicesStub.java:220)
  at
com.ibm.sobe.platform.SampleClubMemberServicesTest.testgetServices(
SampleClubMemberServicesTest.java:60)
  at com.ibm.sobe.platform.SampleClubMemberServicesTestDriver.main(
SampleClubMemberServicesTestDriver.java:22)
Caused by: java.lang.Exception: org.apache.axis2.AxisFault:
java.lang.NullPointerException; nested exception is:
  java.lang.NullPointerException
  at org.apache.axis2.transport.http.AxisServlet.doPost(
AxisServlet.java:245)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
  at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
  at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
  at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
  at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
  at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
  at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
  at org.apache.coyote.http11.Http11AprProcessor.process(
Http11AprProcessor.java:833)
  at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(
Http11AprProtocol.java:639)
  at org.apache.tomcat.util.net.AprEndpoint$Worker.run(
AprEndpoint.java:1285)
  at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
  at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(
MTOMXMLStreamWriter.java:194)
  at com.ibm.sobe.xsd.ServiceBundle$1.serialize(ServiceBundle.java:307)
  at
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(
OMSourcedElementImpl.java:522)
  at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize(
OMSourcedElementImpl.java:529)
  at com.ibm.sobe.xsd.ArrayOfServiceBundle$1.serialize(
ArrayOfServiceBundle.java:152)
  at
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(
OMSourcedElementImpl.java:522)
  at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize(
OMSourcedElementImpl.java:529)
  at com.ibm.sobe.xsd.GetServicesReturn$1.serialize(
GetServicesReturn.java:102)
  at
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(
OMSourcedElementImpl.java:522)
  at
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(
OMSourcedElementImpl.java:505)
  at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(
OMElementImpl.java:765)
  at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(
OMElementImpl.java:750)
  at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(
OMElementImpl.java:765)
  at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(
SOAPEnvelopeImpl.java:177)
  at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(
OMElementImpl.java:750)
  at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(
OMNodeImpl.java:310)
  at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(
OMNodeImpl.java:348)
  at org.apache.axiom.om.impl.llom.OMElementImpl.toString(
OMElementImpl.java:893)
  at org.apache.axis2.handlers.soapmonitor.SOAPMonitorHandler.invoke(
SOAPMonitorHandler.java:102)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
  at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:517)
  at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:627)
  at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(
AbstractInOutSyncMessageReceiver.java:48)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
  at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
HTTPTransportUtils.java:283)
  at org.apache.axis2.transport.http.AxisServlet.doPost(
AxisServlet.java:205)


--

Re: [Axis2] Codegen Task failing

2006-08-29 Thread robert lazarski

http://people.apache.org/dist/axis2/nightly/

HTH,
Robert
http://www.braziloutsource.com/

On 8/29/06, Nathaniel Auvil <[EMAIL PROTECTED]> wrote:

is there any work around for this?



On 8/29/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> This bug has been fixed in latest SVN. Please try a nightly build.
>
> -- dims
>
> On 8/29/06, Nathaniel Auvil <[EMAIL PROTECTED]> wrote:
> > I am using Axis 2 1.0 and geting the following error when trying to use
the
> > codegen ant task
> >
> > javax.xml.stream.FactoryConfigurationError: Provider
> > com.bea.xml.stream.MXParserFactory not found
> >
> >
> > I am guessing this has something to do with axis not including a STaX
> > implementation?  Where can i get one?  Are there plans to include one in
> > axis?
> >
>
>
> --
> Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
>
>
-
> 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: [Axis2] Codegen Task failing

2006-08-29 Thread Nathaniel Auvil
is there any work around for this?On 8/29/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
This bug has been fixed in latest SVN. Please try a nightly build.-- dimsOn 8/29/06, Nathaniel Auvil <[EMAIL PROTECTED]> wrote:> I am using Axis 2 
1.0 and geting the following error when trying to use the> codegen ant task>> javax.xml.stream.FactoryConfigurationError: Provider> com.bea.xml.stream.MXParserFactory not found>>
> I am guessing this has something to do with axis not including a STaX> implementation?  Where can i get one?  Are there plans to include one in> axis?>--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: Axis2 1.0 RC1 Weblogic 9.1 installation problem

2006-08-29 Thread nj_us

I had similar problem.  Unpacking the war file and deploying the directory
solved the problem.



Lharka wrote:
> 
> Hi,
> 
> I have the same problem on Weblogic 9.1
> I checked and the war is unpack.
> 
> Thanks,
> 
> Lharka
> 

-- 
View this message in context: 
http://www.nabble.com/Axis2-1.0-RC1-Weblogic-9.1-installation-problem-tf1495632.html#a6044471
Sent from the Axis - User forum at Nabble.com.


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



Re: AXIS2 : WSDL 2.0 implementation in Axis2

2006-08-29 Thread Anne Thomas Manes

WSDL 2.0 specification is not yet complete.

On 8/29/06, Gul Onural <[EMAIL PROTECTED]> wrote:





Hi,

My understanding is that the current version of the Axis2 implemented WSDL
1.1.
Does anyone know when the implementation of WSDL 2.0 is planned for ?

Thanks,

Gul Onural


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



Re: [Axis2] change in envelope from 1.0 to nightly

2006-08-29 Thread Anne Thomas Manes

This is a bug. Please enter a JIRA for it.

On 8/29/06, Nirmit Desai <[EMAIL PROTECTED]> wrote:


Hi,

I used to use Axis2 1.0, and now shifted to the nightlies. I always used
doc/lit style.

When I look at the envelopes being exchanged over the wire, I see that the
request messages for operations having no parameters are encoded
differently. I have put envelope sample below.

With 1.0, the request envelope for an operation having no parameter would
have an empty soap:body.

With the nighgtly of 8/24, the soap:body i non-empty, and has one empty
element corresponding to the name of the input message (having no parts),
whtout any namespace.

I have two questions:

--why this change? what does it signify?
--why is the empty message element out of any namespace? shouldn't it be
under the target namespace of the WSDL?

Here, getClubs is the name of the input message
ENVELOPE for 1.0:

http://schemas.xmlsoap.org/soap/envelope/";>
  
  


ENVELOPE for nightly:

http://schemas.xmlsoap.org/soap/envelope/";>
  
  

  


Thanks,

-Nirmit


-
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: [axis2]Rampart verification

2006-08-29 Thread Ruchith Fernando

Hi,

We usually add a timestamp and sign the timestamp as well. This will
ensure that this message cannot be replayed after the expiration of
the timestamp.

Thanks,
Ruchith

On 8/28/06, Jones, Alan R <[EMAIL PROTECTED]> wrote:

I am trying to make sure that Rampart is failing my spoofed SOAP
messages legitimately.

I configure my client dynamically to use Signature for OutflowSecurity
action; I run the test app, and via TCPMON I see the SOAP message was
correctly set for the service. All runs fine.  I then copy and paste the
SOAP message from TCPMON and resend it to the service from another
method in test app. I expect it to fail, to verify security is working
correctly.

My question, in order to make sure my process is legit, is:

How does the security engine fail it? The signature value in the SOAP
security header is exactly the same everytime I send the message,
whether I send it normally from the client or I copy and paste and
resend to create a failure condition. Again, it does fail it as desired
but I am not sure it is failing for the right reason. There is no
timestamp, all data going across in the SOAP header (actual or spoofed)
is exactly the same. So how does it know that the copied/pasted/spoofed
SOAP is false message?



Thanks,

Alan J



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





--
www.ruchith.org

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



[Axis2] change in envelope from 1.0 to nightly

2006-08-29 Thread Nirmit Desai

Hi,

I used to use Axis2 1.0, and now shifted to the nightlies. I always used
doc/lit style.

When I look at the envelopes being exchanged over the wire, I see that the
request messages for operations having no parameters are encoded
differently. I have put envelope sample below.

With 1.0, the request envelope for an operation having no parameter would
have an empty soap:body.

With the nighgtly of 8/24, the soap:body i non-empty, and has one empty
element corresponding to the name of the input message (having no parts),
whtout any namespace.

I have two questions:

--why this change? what does it signify?
--why is the empty message element out of any namespace? shouldn't it be
under the target namespace of the WSDL?

Here, getClubs is the name of the input message
ENVELOPE for 1.0:

http://schemas.xmlsoap.org/soap/envelope/";>
  
  


ENVELOPE for nightly:

http://schemas.xmlsoap.org/soap/envelope/";>
  
  

  


Thanks,

-Nirmit


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



AXIS2 : WSDL 2.0 implementation in Axis2

2006-08-29 Thread Gul Onural
Title: AXIS2 : WSDL 2.0 implementation in Axis2







Hi,


My understanding is that the current version of the Axis2 implemented WSDL 1.1. 

Does anyone know when the implementation of WSDL 2.0 is planned for ?


Thanks,


Gul Onural





[Axis2] broken nightly build

2006-08-29 Thread Michele Mazzucco
Hi all,

has anybody experienced problems with the latest nightly build (I've now
reverted to the nightly build of 23.08)?

Thanks,
Michele

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



Re: [Axis2] Codegen Task failing

2006-08-29 Thread Anne Thomas Manes

Axis2 1.1 is tentatively scheduled to come out at the end of September.

On 8/29/06, Nathaniel Auvil <[EMAIL PROTECTED]> wrote:

when is a point release of 2.0 coming out?



On 8/29/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> This bug has been fixed in latest SVN. Please try a nightly build.
>
> -- dims
>
> On 8/29/06, Nathaniel Auvil < [EMAIL PROTECTED]> wrote:
> > I am using Axis 2 1.0 and geting the following error when trying to use
the
> > codegen ant task
> >
> > javax.xml.stream.FactoryConfigurationError : Provider
> > com.bea.xml.stream.MXParserFactory not found
> >
> >
> > I am guessing this has something to do with axis not including a STaX
> > implementation?  Where can i get one?  Are there plans to include one in
> > axis?
> >
>
>
> --
> Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
>
>
-
> 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: [Axis2] Codegen Task failing

2006-08-29 Thread Nathaniel Auvil
when is a point release of 2.0 coming out?On 8/29/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
This bug has been fixed in latest SVN. Please try a nightly build.-- dimsOn 8/29/06, Nathaniel Auvil <
[EMAIL PROTECTED]> wrote:> I am using Axis 2 1.0 and geting the following error when trying to use the> codegen ant task>> javax.xml.stream.FactoryConfigurationError
: Provider> com.bea.xml.stream.MXParserFactory not found>>> I am guessing this has something to do with axis not including a STaX> implementation?  Where can i get one?  Are there plans to include one in
> axis?>--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: How to include an xmlbeans?

2006-08-29 Thread Anne Thomas Manes

Configure your xmlbean to generate an XML Schema definition rather
than a DTD. Then either import the schema or include it inline in the
WSDL.

Anne

On 8/29/06, ZHAO <[EMAIL PROTECTED]> wrote:

Hello,

I use WSDL2Java to generate java files, how can I include some particular
xmlbeans (a generated jar file) in the build.xml??
Thank you!
The following is my build.xml.







]>







&properties;
&paths;
 &taskdefs;
&taskdefs_post_compile;
&targets;







  







  







  
  















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



Re: [Axis2] Codegen Task failing

2006-08-29 Thread Davanum Srinivas

This bug has been fixed in latest SVN. Please try a nightly build.

-- dims

On 8/29/06, Nathaniel Auvil <[EMAIL PROTECTED]> wrote:

I am using Axis 2 1.0 and geting the following error when trying to use the
codegen ant task

javax.xml.stream.FactoryConfigurationError: Provider
com.bea.xml.stream.MXParserFactory not found


I am guessing this has something to do with axis not including a STaX
implementation?  Where can i get one?  Are there plans to include one in
axis?




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

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



[Axis2] Codegen Task failing

2006-08-29 Thread Nathaniel Auvil
I am using Axis 2 1.0 and geting the following error when trying to use the codegen ant taskjavax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not foundI am guessing this has something to do with axis not including a STaX implementation?  Where can i get one?  Are there plans to include one in axis?



How to include an xmlbeans?

2006-08-29 Thread ZHAO
Hello,I use WSDL2Java to generate java files, how can I include some particular xmlbeans (a generated jar file) in the build.xml??Thank you!The following is my build.xml.
            
        ]>
    &properties;    &paths;
    &taskdefs;    &taskdefs_post_compile;    &targets;
      
                                 output="${
build.dir}/work"   deployscope="session"   serverSide="yes"   skeletonDeploy="yes"   noimports="no"   verbose="no"
   typeMappingVersion="1.1"   testcase="no">        
                



Re: [Axis2] Service packaging how to

2006-08-29 Thread Ali Sadik Kumlali
Hi Michele,

I can use property files found under /WEB-INF/classes without any problem. 
What do you mean with "it does not work properly"? 

Regards,

Ali Sadik Kumlali

- Original Message 
From: Michele Mazzucco <[EMAIL PROTECTED]>
To: Axis user mailing list 
Sent: Tuesday, August 29, 2006 4:04:38 PM
Subject: [Axis2] Service packaging how to

Hi all,

I've got a simple question: which structure should the aar file have if
libraries and property files are included?

Is the default (i.e. classes in / and libraries in /lib) ok? And what
about the property files?
I've tried also to store classes as well as property files (i.e. log4j
configuration )in /WEB-INF/classes, libraries in /WEB-INF/lib, but it
does not work properly.

Any idea?

Thanks in advance,
Michele

-
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: Getting Invocation exception while calling my service

2006-08-29 Thread shrabank

Hi,

  I have all  the required jar files whatever is required for the 
webservice to work still i am getting the same error.
   If u want me i can list out all the jar files which i am adding to 
my project to build.Its a simple web server application having one 
servlet,many jsp and tomcat as web server.




Srinath K wrote:

All the required jar files for the server code (webservice) to work
properly

-Original Message-
From: shrabank [mailto:[EMAIL PROTECTED]

Sent: Tuesday, August 29, 2006 7:16 PM
To: axis-user@ws.apache.org
Subject: Re: Getting Invocation exception while calling my service


Hi ,

   I have all the jar files set in my classpath as well as server side.
I am building it through eclipse and client and service are in the same

machine.That means they are taking the same jar files and classpath.
  Can you specify what jar files are u talking about when u say that.
 


Srinath K wrote:
  

Check whether you have all the required jar files in the classpath at



  

the server end

-Original Message-
From: shrabank [mailto:[EMAIL PROTECTED]

Sent: Tuesday, August 29, 2006 6:56 PM
To: axis-user@ws.apache.org
Subject: Getting Invocation exception while calling my service


Hi ,

   I am trying to access my web service from the servlet and the



  

servlet

is acting as my client. But while i am trying to call my service



  

through

that servlet its throwing me java lang Invocation exception.

 I am sending my snippet of code on how i am accessing my web

service from the servlet as client.

String uri="http://com.trilliant.service";;
String servicename="SearchService";
try{
ServiceFactory serviceFactory=(ServiceFactory)

ServiceFactory.newInstance();
Service service=(Service) serviceFactory.createService(new

QName(uri,servicename));
TypeMappingRegistry regiMapping=(TypeMappingRegistry)

service.getTypeMappingRegistry();
TypeMapping map=(TypeMapping)

regiMapping.getDefaultTypeMapping();
QName deviceQName=  new

QName("http://com.trilliant.service","Device";);
map.register(Device.class,  deviceQName, new

BeanSerializerFactory(Device.class, deviceQName), new

BeanDeserializerFactory(Device.class, deviceQName));
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new

URL("http://localhost:8080/axis/services/search";));
call.setProperty(Call.SESSION_MAINTAIN_PROPERTY,
Boolean.TRUE);
call.setProperty(Call.SOAPACTION_USE_PROPERTY,
Boolean.TRUE);
call.setProperty(Call.SOAPACTION_URI_PROPERTY,

"http://com.trilliant.service";);
call.setOperationName( new QName(uri, "searchDeviceById")


);
  

dev = (com.trilliant.clientcode.Device) call.invoke(new

Object[]{ deviceId });

Please help me in resolving this problem or tell me if i have made any

mistake in the code.
Looking out for help from somebody so that i can proceed. Thanks in



  

advance. Regards




This e-mail and any files transmitted with it are for the sole use of



  

the intended recipient(s) and may contain confidential and privileged



  

information. If you are not the intended recipient or received it in



  

error, please contact the sender by reply e-mail and destroy all



  

copies of the original message. Please do not copy it for any purpose



  

or disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights



  

Reserved


The information contained in, or attached to, this e-mail, contains



  

confidential information and is intended solely for the use of the



  

individual or entity to whom they are addressed and is subject to



  

legal privilege. If you have received this e-mail in error you should



  

notify the sender immediately by reply e-mail, delete the message from



  

your system and notify your system manager. Please do not copy it for



  

any purpose, or disclose its contents to any other person. The views



  

or opinions presented in this e-mail are solely those of the author



  

and do not necessarily represent those of the company. The recipient



  

should check this e-mail and any attachments for the presence of



  

viruses. The company accepts no liability for any damage caused,



  

directly or indirectly, by any virus transmitted in this email.

www.aztecsoft.com

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




 








This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If you are not the intended recipient or received it in
error, please contact the sender by reply e-mail and destroy all c

RE: Getting Invocation exception while calling my service

2006-08-29 Thread Srinath K

All the required jar files for the server code (webservice) to work
properly

-Original Message-
From: shrabank [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 7:16 PM
To: axis-user@ws.apache.org
Subject: Re: Getting Invocation exception while calling my service


Hi ,

   I have all the jar files set in my classpath as well as server side.
I am building it through eclipse and client and service are in the same
machine.That means they are taking the same jar files and classpath.
  Can you specify what jar files are u talking about when u say that.
 
Srinath K wrote:
> Check whether you have all the required jar files in the classpath at
> the server end
>
> -Original Message-
> From: shrabank [mailto:[EMAIL PROTECTED]
>
> Sent: Tuesday, August 29, 2006 6:56 PM
> To: axis-user@ws.apache.org
> Subject: Getting Invocation exception while calling my service
>
>
> Hi ,
>
>I am trying to access my web service from the servlet and the
> servlet
>
> is acting as my client. But while i am trying to call my service
> through
>
> that servlet its throwing me java lang Invocation exception.
>
>  I am sending my snippet of code on how i am accessing my web
>
> service from the servlet as client.
>
> String uri="http://com.trilliant.service";;
> String servicename="SearchService";
> try{
> ServiceFactory serviceFactory=(ServiceFactory)
>
> ServiceFactory.newInstance();
> Service service=(Service) serviceFactory.createService(new
>
> QName(uri,servicename));
> TypeMappingRegistry regiMapping=(TypeMappingRegistry)
>
> service.getTypeMappingRegistry();
> TypeMapping map=(TypeMapping)
>
> regiMapping.getDefaultTypeMapping();
> QName deviceQName=  new
>
> QName("http://com.trilliant.service","Device";);
> map.register(Device.class,  deviceQName, new
>
> BeanSerializerFactory(Device.class, deviceQName), new
>
> BeanDeserializerFactory(Device.class, deviceQName));
> Call call = (Call) service.createCall();
> call.setTargetEndpointAddress(new
>
> URL("http://localhost:8080/axis/services/search";));
> call.setProperty(Call.SESSION_MAINTAIN_PROPERTY,
> Boolean.TRUE);
> call.setProperty(Call.SOAPACTION_USE_PROPERTY,
> Boolean.TRUE);
> call.setProperty(Call.SOAPACTION_URI_PROPERTY,
>
> "http://com.trilliant.service";);
> call.setOperationName( new QName(uri, "searchDeviceById")
);
> dev = (com.trilliant.clientcode.Device) call.invoke(new
>
> Object[]{ deviceId });
>
> Please help me in resolving this problem or tell me if i have made any
>
> mistake in the code.
> Looking out for help from somebody so that i can proceed. Thanks in
> advance. Regards
>
>
>
>
> This e-mail and any files transmitted with it are for the sole use of
> the intended recipient(s) and may contain confidential and privileged
> information. If you are not the intended recipient or received it in
> error, please contact the sender by reply e-mail and destroy all
> copies of the original message. Please do not copy it for any purpose
> or disclose its contents.
>
> Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights
> Reserved
>
>
> The information contained in, or attached to, this e-mail, contains
> confidential information and is intended solely for the use of the
> individual or entity to whom they are addressed and is subject to
> legal privilege. If you have received this e-mail in error you should
> notify the sender immediately by reply e-mail, delete the message from

> your system and notify your system manager. Please do not copy it for
> any purpose, or disclose its contents to any other person. The views
> or opinions presented in this e-mail are solely those of the author
> and do not necessarily represent those of the company. The recipient
> should check this e-mail and any attachments for the presence of
> viruses. The company accepts no liability for any damage caused,
> directly or indirectly, by any virus transmitted in this email.
>
> www.aztecsoft.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>  





This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If you are not the intended recipient or received it in
error, please contact the sender by reply e-mail and destroy all copies
of the original message. Please do not copy it for any purpose or
disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights
Reserved


The information contained in, or attached to, this e-mail, contains 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and is subject to legal privilege. If you 
have 

Re: Getting Invocation exception while calling my service

2006-08-29 Thread shrabank

Hi ,

  I have all the jar files set in my classpath as well as server side.
I am building it through eclipse and client and service are in the same 
machine.That means they are taking the same jar files and classpath.

 Can you specify what jar files are u talking about when u say that.
 
Srinath K wrote:

Check whether you have all the required jar files in the classpath at
the server end

-Original Message-
From: shrabank [mailto:[EMAIL PROTECTED]

Sent: Tuesday, August 29, 2006 6:56 PM
To: axis-user@ws.apache.org
Subject: Getting Invocation exception while calling my service


Hi ,

   I am trying to access my web service from the servlet and the servlet

is acting as my client. But while i am trying to call my service through

that servlet its throwing me java lang Invocation exception.

 I am sending my snippet of code on how i am accessing my web

service from the servlet as client.

String uri="http://com.trilliant.service";;
String servicename="SearchService";
try{
ServiceFactory serviceFactory=(ServiceFactory)

ServiceFactory.newInstance();
Service service=(Service) serviceFactory.createService(new

QName(uri,servicename));
TypeMappingRegistry regiMapping=(TypeMappingRegistry)

service.getTypeMappingRegistry();
TypeMapping map=(TypeMapping)

regiMapping.getDefaultTypeMapping();
QName deviceQName=  new

QName("http://com.trilliant.service","Device";);
map.register(Device.class,  deviceQName, new

BeanSerializerFactory(Device.class, deviceQName), new

BeanDeserializerFactory(Device.class, deviceQName));
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new

URL("http://localhost:8080/axis/services/search";));
call.setProperty(Call.SESSION_MAINTAIN_PROPERTY,
Boolean.TRUE);
call.setProperty(Call.SOAPACTION_USE_PROPERTY,
Boolean.TRUE);
call.setProperty(Call.SOAPACTION_URI_PROPERTY,

"http://com.trilliant.service";);
call.setOperationName( new QName(uri, "searchDeviceById") );
dev = (com.trilliant.clientcode.Device) call.invoke(new

Object[]{ deviceId });

Please help me in resolving this problem or tell me if i have made any

mistake in the code.
Looking out for help from somebody so that i can proceed. Thanks in
advance. Regards




This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If you are not the intended recipient or received it in
error, please contact the sender by reply e-mail and destroy all copies
of the original message. Please do not copy it for any purpose or
disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights
Reserved


The information contained in, or attached to, this e-mail, contains 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and is subject to legal privilege. If you 
have received this e-mail in error you should notify the sender immediately by 
reply e-mail, delete the message from your system and notify your system 
manager. Please do not copy it for any purpose, or disclose its contents to any 
other person. The views or opinions presented in this e-mail are solely those 
of the author and do not necessarily represent those of the company. The 
recipient should check this e-mail and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.

www.aztecsoft.com

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




  






This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient or received it in error, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
Please do not copy it for any purpose or disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved

RE: Getting Invocation exception while calling my service

2006-08-29 Thread Srinath K

Check whether you have all the required jar files in the classpath at
the server end

-Original Message-
From: shrabank [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 6:56 PM
To: axis-user@ws.apache.org
Subject: Getting Invocation exception while calling my service


Hi ,

   I am trying to access my web service from the servlet and the servlet

is acting as my client. But while i am trying to call my service through

that servlet its throwing me java lang Invocation exception.

 I am sending my snippet of code on how i am accessing my web
service from the servlet as client.

String uri="http://com.trilliant.service";;
String servicename="SearchService";
try{
ServiceFactory serviceFactory=(ServiceFactory)
ServiceFactory.newInstance();
Service service=(Service) serviceFactory.createService(new
QName(uri,servicename));
TypeMappingRegistry regiMapping=(TypeMappingRegistry)
service.getTypeMappingRegistry();
TypeMapping map=(TypeMapping)
regiMapping.getDefaultTypeMapping();
QName deviceQName=  new
QName("http://com.trilliant.service","Device";);
map.register(Device.class,  deviceQName, new
BeanSerializerFactory(Device.class, deviceQName), new
BeanDeserializerFactory(Device.class, deviceQName));
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new
URL("http://localhost:8080/axis/services/search";));
call.setProperty(Call.SESSION_MAINTAIN_PROPERTY,
Boolean.TRUE);
call.setProperty(Call.SOAPACTION_USE_PROPERTY,
Boolean.TRUE);
call.setProperty(Call.SOAPACTION_URI_PROPERTY,
"http://com.trilliant.service";);
call.setOperationName( new QName(uri, "searchDeviceById") );
dev = (com.trilliant.clientcode.Device) call.invoke(new
Object[]{ deviceId });

Please help me in resolving this problem or tell me if i have made any
mistake in the code.
Looking out for help from somebody so that i can proceed. Thanks in
advance. Regards




This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If you are not the intended recipient or received it in
error, please contact the sender by reply e-mail and destroy all copies
of the original message. Please do not copy it for any purpose or
disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights
Reserved


The information contained in, or attached to, this e-mail, contains 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and is subject to legal privilege. If you 
have received this e-mail in error you should notify the sender immediately by 
reply e-mail, delete the message from your system and notify your system 
manager. Please do not copy it for any purpose, or disclose its contents to any 
other person. The views or opinions presented in this e-mail are solely those 
of the author and do not necessarily represent those of the company. The 
recipient should check this e-mail and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.

www.aztecsoft.com

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



Getting Invocation exception while calling my service

2006-08-29 Thread shrabank

Hi ,

  I am trying to access my web service from the servlet and the servlet 
is acting as my client. But while i am trying to call my service through 
that servlet its throwing me java lang Invocation exception.


I am sending my snippet of code on how i am accessing my web 
service from the servlet as client.


   String uri="http://com.trilliant.service";;
   String servicename="SearchService";
   try{
   ServiceFactory serviceFactory=(ServiceFactory) 
ServiceFactory.newInstance();
   Service service=(Service) serviceFactory.createService(new 
QName(uri,servicename));
   TypeMappingRegistry regiMapping=(TypeMappingRegistry) 
service.getTypeMappingRegistry();
   TypeMapping map=(TypeMapping) 
regiMapping.getDefaultTypeMapping();
   QName deviceQName=  new 
QName("http://com.trilliant.service","Device";);
   map.register(Device.class,  deviceQName, new 
BeanSerializerFactory(Device.class, deviceQName), new 
BeanDeserializerFactory(Device.class, deviceQName));

   Call call = (Call) service.createCall();
   call.setTargetEndpointAddress(new 
URL("http://localhost:8080/axis/services/search";));

   call.setProperty(Call.SESSION_MAINTAIN_PROPERTY, Boolean.TRUE);
   call.setProperty(Call.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
   call.setProperty(Call.SOAPACTION_URI_PROPERTY, 
"http://com.trilliant.service";);

   call.setOperationName( new QName(uri, "searchDeviceById") );
   dev = (com.trilliant.clientcode.Device) call.invoke(new 
Object[]{ deviceId });


Please help me in resolving this problem or tell me if i have made any 
mistake in the code.

Looking out for help from somebody so that i can proceed.
Thanks in advance.
Regards




This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient or received it in error, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
Please do not copy it for any purpose or disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved

Re: Exception in thread "main" org.apache.axis2.AxisFault: java.lang.NullPointerException

2006-08-29 Thread Anne Thomas Manes

More information, please:
- WSDL
- configuration

On 8/29/06, Eric Chow <[EMAIL PROTECTED]> wrote:

What caused the following error ?



package test.client;

import java.util.Calendar;

import org.apache.axis2.databinding.ADBBean;

import test.gen.EchoserviceStub;
import test.service.xsd.Echo;
import test.service.xsd.EchoResponse;
import test.service.xsd.User;



/**
 * Client.java
 *
 * @author Chao Hoi Ka, Eric
 *
 */
public class Client {
 public static void main(String[] args) throws Exception {
 EchoserviceStub stub = new EchoserviceStub();
 Echo echo = (Echo)((ADBBean)Echo.class.newInstance());


 User u = (User)((ADBBean)User.class.newInstance());
 u.setName("Eric");
 u.setBirth(Calendar.getInstance());

 echo.setU(u);


EchoResponse resp = stub.echo(echo);
}

}





og4j:WARN No appenders could be found for logger
(org.apache.axiom.om.impl.builder.StAXOMBuilder).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.apache.axis2.AxisFault:
java.lang.NullPointerException
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
at test.gen.EchoserviceStub.echo(EchoserviceStub.java:133)
at test.client.Client.main(Client.java:40)
Caused by: java.lang.Exception: org.apache.axis2.AxisFault:
java.lang.NullPointerException; nested exception is:
org.apache.axiom.om.OMException: java.lang.NullPointerException
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136)
at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
at 
org.apache.axis2.transport.http.HTTPWorker.processRequest(HTTPWorker.java:255)
at 
org.apache.axis2.transport.http.server.SimpleConnectionThread.run(SimpleConnectionThread.java:92)
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.axiom.om.OMException: java.lang.NullPointerException
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:298)
at 
org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:584)
at 
org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:118)
at 
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:240)
at 
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:197)
at 
org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:71)
at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:130)
... 8 more
Caused by: java.lang.NullPointerException
at 
org.apache.axis2.databinding.utils.reader.WrappingXMLStreamReader.getEventType(WrappingXMLStreamReader.java:141)
at 
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:964)
at 
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:807)
at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123)
... 15 more

at org.apache.axis2.AxisFault.(AxisFault.java:159)
... 3 more

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



[Axis1.4] Problem to deserialize Bean with an ArrayList attribute

2006-08-29 Thread Laurent Berthelot
Hello all,I want to deserialize a bean with an ArrayList attribute and it seems don't work...Have you an idee to do that ?Thanks a lot !


Re: Axis2 client problem ?

2006-08-29 Thread Anne Thomas Manes

Axis2 does not support SOAP Encoding.

Anne

On 8/29/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

Can you please create a JIRA issue , by attaching service archive file
and wsdl

Thanks
Deepal

Eric Chow wrote:

> Hi Deepal,
>
> I used the codegen but also failed.
>
> If the return type is String, no problem but if I return a customer
> JavaBean, it raised the following exception:
>
>
> public class Client {
>  public static void main(String[] args) throws Exception {
> EchoserviceStub stub = new EchoserviceStub();
> Echo1 echo1 = (Echo1)Echo1.class.newInstance();
> echo1.setStr("Testing1234");
> Echo1Response resp = stub.echo1(echo1);
> System.out.println(resp.get_return());
>
> Echo echo = (Echo)Echo.class.newInstance();
> User u = (User)User.class.newInstance();
> u.setBirth(Calendar.getInstance());
> u.setName("Eric Chow");
> echo.setU(u);
>
> EchoResponse rep1 = stub.echo(echo);
> }
>
> }
>
>
> The Echo1 works fine, but Echo failed:
>
> log4j:WARN No appenders could be found for logger
> (org.apache.axiom.om.impl.builder.StAXOMBuilder).
> log4j:WARN Please initialize the log4j system properly.
> Testing1234...
> Exception in thread "main" org.apache.axis2.AxisFault:
> java.lang.NullPointerException
> at
> 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
>
> at test.gen.EchoserviceStub.echo(EchoserviceStub.java:244)
> at test.client.Client.main(Client.java:39)
> Caused by: java.lang.Exception: org.apache.axis2.AxisFault:
> java.lang.NullPointerException; nested exception is:
> org.apache.axiom.om.OMException: java.lang.NullPointerException
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
> at
> 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136)
>
> at
> 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
>
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
> at
> 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>
> at
> org.apache.axis2.transport.http.HTTPWorker.processRequest(HTTPWorker.java:255)
>
> at
> 
org.apache.axis2.transport.http.server.SimpleConnectionThread.run(SimpleConnectionThread.java:92)
>
> at
> 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>
> at
> 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axiom.om.OMException:
> java.lang.NullPointerException
> at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
>
> at
> org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:298)
> at
> org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:584)
>
> at
> org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:118)
> at
> org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:240)
>
> at
> org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:197)
>
> at
> org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:71)
> at
> 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:130)
>
> ... 8 more
> Caused by: java.lang.NullPointerException
> at
> 
org.apache.axis2.databinding.utils.reader.WrappingXMLStreamReader.getEventType(WrappingXMLStreamReader.java:141)
>
> at
> 
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:964)
>
> at
> 
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:807)
>
> at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
> at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123)
>
> ... 15 more
>
> at org.apache.axis2.AxisFault.(AxisFault.java:159)
> ... 3 more
>
>
>
>
>
> Best regards,
> Eric
>
>
> On 8/29/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
>
>> Hi Eric;
>>
>> Why dont you try to codegen , then that will generate client for you.
>>
>> Thanks
>> Deepal
>>
>> Eric Chow wrote:
>>
>> > Hello,
>> >
>> > How can I write a simple client to the following WSDL with Axis2?
>> > The parameter for QueryInv must use OMElement. How to construct the
>> > OMElement with the following WSDL ?
>> >
>> >
>> > =
>> >
>> > 
>> > http://facade.query.pi";
>> > xmlns:apachesoap="http://xml.apache.org/xml-soap";
>> > xmlns:impl="http://facade.query.pi";
>> > xmlns:intf="http://facade.query.pi";
>> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
>> > xmlns:tns1="http://inv.query.pi";
>> > xmlns:wsdl="http://s

Re: Returning null, the .net client dont get null

2006-08-29 Thread Anne Thomas Manes

You must specify that the return element is nillible:



Anne

On 8/29/06, HHDirecto. Net <[EMAIL PROTECTED]> wrote:

I have a axis 1.4 web service, My web service return an object, but when the
object is null, the .net client don't get object= null, It get
object.field1=0, object.field2="" ...

Where is the problem?
Thankss

The webservice response is this:
http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>http://interfazweb.serviciosweb.moduloingenieria.xxx.es
">

The wsdl file extracts:


 











...











...






...




...












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



RE: [Axis2] What is ths use of addReson method of A xisFault

2006-08-29 Thread Charak, Vikas
Thanks for the info.
I was expecting it to set  as well. But when I used
addReason() to set the value of fault string and looked at the XML out
put at client side, it did not set faulstring. And what I found is that
only new AxisFault(faultrsing) is setting the faultstring value. I am
using Aug-21-06 nightly build.


-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 6:51 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] What is ths use of addReson method of AxisFault

If you are using SOAP 1.2, it will set the value of the
 element (a required child of ). If you
are using SOAP 1.1, it will set the value of the  element
(a required child of ).  element is the
equivalent of the SOAP 1.1  element. Axis2 uses
terminology from SOAP 1.2 rather than SOAP 1.1 (See
http://www.w3.org/TR/soap12-part1/#soapfault).

Anne

On 8/28/06, Charak, Vikas <[EMAIL PROTECTED]> wrote:
> Hi,
>
> If I use addReason method of Axis2Fault what does it do? Or which
> element of SoapFault does it set? I am not sure if there is any
matching
> element in SoapFault of WS-I profile.
>
>
> Thanks.
> Vikas
>
>
> -
> 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]



[Axis2] Service packaging how to

2006-08-29 Thread Michele Mazzucco
Hi all,

I've got a simple question: which structure should the aar file have if
libraries and property files are included?

Is the default (i.e. classes in / and libraries in /lib) ok? And what
about the property files?
I've tried also to store classes as well as property files (i.e. log4j
configuration )in /WEB-INF/classes, libraries in /WEB-INF/lib, but it
does not work properly.

Any idea?

Thanks in advance,
Michele

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



addParameter --> I can put rubish?

2006-08-29 Thread Miguel Correia Ricardo

Hi,

I'm doing a dynamic invocation with an axis client. And I've noticed,
when I use the method addParameter(...), If i put something rubish in
the QName ("aaa", "aaa"), for example, the dynamic invocation still
works. But why? Shouldn't the qualified name mean something meaningful
in the addParameter method? In the registerTypeMapping(...) method, it
has to be.

Another example, if I in the addParameter method, put a nonsense name
in the parameter name, it doesn't work. But if I recall, if we don't
put parameter names, the SOAP protocol, puts default names like "arg1"
"arg2" etc? (Or that is because, now that I specified a name, it has
to make sense?)
It shouldn't even be necessary, to use addParameter(...) method,
because if in the Call.invoke(...) method, we put the parameter value
list, it should be automatically translated to the default name
arguments. But no, in the dynamic invocation, If don't specify,
addParameter, it doesn't work.

And well, that's all. Hope anyone can clarify these questions.

Thanks,
Miguel Ricardo

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



Returning null, the .net client dont get null

2006-08-29 Thread HHDirecto . Net
I have a axis 1.4 web service, My web service return an object, but when the object is null, the .net client don't get object= null, It get object.field1=0, object.field2="" ...Where is the problem?Thankss
The webservice response is this:
http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">http://interfazweb.serviciosweb.moduloingenieria.xxx.es
">The wsdl file extracts:
 

...


...

...
...




DEBUG Info from axis 1.4

2006-08-29 Thread smcardle

Hi all,

In axis 1.4 I get the following exception thrown when I set the logging level 
to DEBUG.

I do not think this causes any problems with the code (cant be sure as I am 
trying to debug other stuff at the moment) but it is really annoying as it 
fills my log files and detracts from the ability to trace the service loading 
process.

I think this should have been implemented another way i.e. just the message (no 
stack trace) and the message should state this can be ignored (if this is 
actually true) thus only outputting a single line in my log file.

In the mean time I will set the logger for 
org.apache.axis.encoding.ser.ArrayDeserializerFactory to be error only.



DEBUG 2006-08-29 10:43:29,369 ProjectResourceBundle (72) -- 
org.apache.axis.i18n.resource::handleGetObject(exception00)
DEBUG 2006-08-29 10:43:29,369 BaseDeserializerFactory (253) -- Exception:
java.lang.NoSuchMethodException: 
org.apache.axis.encoding.ser.ArrayDeserializerFactory.(java.lang.Class, 
javax.xml.namespace.QName)
at java.lang.Class.getConstructor0(Class.java:2647)
at java.lang.Class.getConstructor(Class.java:1629)
at org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory
(BaseDeserializerFactory.java:246)
at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping
(WSDDService.java:554)
at org.apache.axis.deployment.wsdd.WSDDService.initTMR
(WSDDService.java:253)
at org.apache.axis.deployment.wsdd.WSDDService.
(WSDDService.java:233)
at org.apache.axis.deployment.wsdd.WSDDDeployment.
(WSDDDeployment.java:192)



Regards

Steve


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



RE: Error Overloading methods

2006-08-29 Thread Chandrashekar_Sudars



No You cannot have overloaded 
methods..


From: HHDirecto.Net [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 29, 2006 1:13 PMTo: 
axis-user@ws.apache.orgSubject: Error Overloading 
methods
When I create 2 web service as overload methods (same name with 
diferent parameters) I get this error:Attempted to write duplicate schema element : 
In my webservice I need use: provider="java:RPC" style="wrapped" 
use="literal"Can axis do overload web 
service?Thanks


Error Overloading methods

2006-08-29 Thread HHDirecto . Net
When I create 2 web service as overload methods (same name with diferent parameters) I get this error:Attempted to write duplicate schema element : In my webservice I need use:
provider="java:RPC" style="wrapped" use="literal"Can axis do overload web service?Thanks


Re: Axis2 client problem ?

2006-08-29 Thread Deepal Jayasinghe
Can you please create a JIRA issue , by attaching service archive file
and wsdl

Thanks
Deepal

Eric Chow wrote:

> Hi Deepal,
>
> I used the codegen but also failed.
>
> If the return type is String, no problem but if I return a customer
> JavaBean, it raised the following exception:
>
>
> public class Client {
>  public static void main(String[] args) throws Exception {
> EchoserviceStub stub = new EchoserviceStub();
> Echo1 echo1 = (Echo1)Echo1.class.newInstance();
> echo1.setStr("Testing1234");
> Echo1Response resp = stub.echo1(echo1);
> System.out.println(resp.get_return());
>
> Echo echo = (Echo)Echo.class.newInstance();
> User u = (User)User.class.newInstance();
> u.setBirth(Calendar.getInstance());
> u.setName("Eric Chow");
> echo.setU(u);
>
> EchoResponse rep1 = stub.echo(echo);
> }
>
> }
>
>
> The Echo1 works fine, but Echo failed:
>
> log4j:WARN No appenders could be found for logger
> (org.apache.axiom.om.impl.builder.StAXOMBuilder).
> log4j:WARN Please initialize the log4j system properly.
> Testing1234...
> Exception in thread "main" org.apache.axis2.AxisFault:
> java.lang.NullPointerException
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
>
> at test.gen.EchoserviceStub.echo(EchoserviceStub.java:244)
> at test.client.Client.main(Client.java:39)
> Caused by: java.lang.Exception: org.apache.axis2.AxisFault:
> java.lang.NullPointerException; nested exception is:
> org.apache.axiom.om.OMException: java.lang.NullPointerException
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136)
>
> at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
>
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>
> at
> org.apache.axis2.transport.http.HTTPWorker.processRequest(HTTPWorker.java:255)
>
> at
> org.apache.axis2.transport.http.server.SimpleConnectionThread.run(SimpleConnectionThread.java:92)
>
> at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>
> at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axiom.om.OMException:
> java.lang.NullPointerException
> at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
>
> at
> org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:298)
> at
> org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:584)
>
> at
> org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:118)
> at
> org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:240)
>
> at
> org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:197)
>
> at
> org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:71)
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:130)
>
> ... 8 more
> Caused by: java.lang.NullPointerException
> at
> org.apache.axis2.databinding.utils.reader.WrappingXMLStreamReader.getEventType(WrappingXMLStreamReader.java:141)
>
> at
> org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:964)
>
> at
> org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:807)
>
> at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
> at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123)
>
> ... 15 more
>
> at org.apache.axis2.AxisFault.(AxisFault.java:159)
> ... 3 more
>
>
>
>
>
> Best regards,
> Eric
>
>
> On 8/29/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
>
>> Hi Eric;
>>
>> Why dont you try to codegen , then that will generate client for you.
>>
>> Thanks
>> Deepal
>>
>> Eric Chow wrote:
>>
>> > Hello,
>> >
>> > How can I write a simple client to the following WSDL with Axis2?
>> > The parameter for QueryInv must use OMElement. How to construct the
>> > OMElement with the following WSDL ?
>> >
>> >
>> > =
>> >
>> > 
>> > http://facade.query.pi";
>> > xmlns:apachesoap="http://xml.apache.org/xml-soap";
>> > xmlns:impl="http://facade.query.pi";
>> > xmlns:intf="http://facade.query.pi";
>> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
>> > xmlns:tns1="http://inv.query.pi";
>> > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>> > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
>> > xmlns: