Re: RE help deciphering error message

2007-07-18 Thread p . casenove
Axis2 resolves the EPR using different dispatcher. You should read this 
tutorial to better understand what is going on: 
http://wso2.org/library/176
wsa:Action tag is required only if you are using WSAddressing. I think 
that the tag must correspond to an operation defined in the wsdl of your 
webservice.
I'm using my own URIBasedDispatcher to find the service and operation, I'm 
not using wsAddressing.





Matt Roberts <[EMAIL PROTECTED]> 
19/07/2007 01:32
Veuillez répondre à
axis-user@ws.apache.org


A
axis-user@ws.apache.org
cc

Objet
Re: RE help deciphering error message






Hi,

So, I understand that there is a missing  tag in the ws 
addressing thing.  What I don't understand is how to fix this when I am 
using wsdl2java to generate stubs and access the service.

Actually, I don't understand where this ws-addressing thing comes from 
or goes either, but that is another question :)

Thanks,

Matt

[EMAIL PROTECTED] wrote:
> 
> Hi,
> Axis2 finds the Service at the given EPR (endpoint reference) but the 
> WSA Action (the operation to call) is null. The corresponding tag should 

> be missing.
> 
> Pierre
> 
> 
> 
> *Matt Roberts <[EMAIL PROTECTED]>*
> 
> 18/07/2007 07:43
> Veuillez répondre à
> axis-user@ws.apache.org
> 
> 
> 
> A
>axis-user@ws.apache.org
> cc
> 
> Objet
>help deciphering error message
> 
> 
> 
> 
> 
> 
> 
> 
> Hi all,
> 
> I am wondering if anyone can help decpher this error message
> 
>  [java] [EMAIL PROTECTED]
>  [java] [EMAIL PROTECTED]
>  [java] RemoteExp in main
>  [java] org.apache.axis2.AxisFault: Operation Not found EPR is
> http://yl1.mams.org.au:8080/axis2/services/PeoplePicker and WSA Action =
>  null
>  [java] at
> 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
> 
> I am trying to write a client for this "PeoplePicker" web service and I
> just keep getting this error - no matter what I try.
> 
> I am
> 1) getting the wsld
> 2) creating stubs with wsdl2java
> 3) running the test that wsdl2java creates (with a few additions to get
> past the null assertion errors :))
> 
> anyone have any idea what is going on?
> 
> matt
> 
> -
> 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]




more than 1 WSDL at once ...

2007-07-18 Thread Wim Lambrecht
hi,

Did anyone ever had the need to generate code from several WSDL's at
once (mainly because they share the same datatypes (XSD's)) ? 

I'm using the "axis2-wsdl2code-maven-plugin", but it can only handle 1
WSDL to java generation at once (and hence 1 related databinding). Idem
for the ant or command-line approach.

Alternatively: i could generate all service and databinding stuff for
every specific WSDL and merge the results, but that would be a lot of
code duplication :-( (and will take a lot of time too).

Another possibility may be to generate the databinding stuff apart (i.c.
xmlbeans) for every service, and only generate the service stuff (with a
hint to that databinding type). Is that possible BTW ?

thanks for any help/hints/alt-scenario's.

-wil-



  DISCLAIMER 
 http://www.schaubroeck.be/maildisclaimer.htm

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



[AXIS] SOAPConnectionImpl timeout

2007-07-18 Thread Jack Sprat

What does the integer value for the setTimeout method represent in the 
SOAPConnectionImpl class in Axis 1.4?  Is it milliseconds, seconds?  The 
JavaDoc says only:

set the timeout value

Not too helpful...

Thanks,
T


   
-
Got a little couch potato? 
Check out fun summer activities for kids.

[AXIOM] Undeclare default namespace

2007-07-18 Thread Xinjun Chen

Hi,

I have some problem undeclaring the default namespace in an OMElement.
I have tried the following three ways but all failed. The default namespace
is still in the OMElement.

#1:
   OMElement reqElement = ;
   reqElement.declareDefaultNamespace("");

#2:
   OMElement reqElement = ;
   reqElement.declareNamespace("", "");

#3:
   OMElement reqElement = ;
   OMFactory omFactory = reqElement.getOMFactory();
   OMNamespace ns = omFactory.createOMNamespace("", "");
   reqElement.declareNamespace(ns);

Could anyone point me out what I can do to undeclare the default namespace
in AXIOM? Thanks for your help in advance.

Regards,
Xinjun


RE: Exchange word/pdf docs using axis java service to support .NE T cl ient

2007-07-18 Thread Pantvaidya, Vishwajit
I am going ahead and trying - will let everybody know my experience.

Meanwhile 2 quick questions:
1. MIME seems to be an old standard - does .NET version 2 support it? In
that case, I may not need to use DIME.
2. Axis1 FAQ says it supports DIME attachments. Does it by itself
support it or I need to use MSFT WSE with it for that?


Thanks,

Vish.


>-Original Message-
>From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 18, 2007 1:10 PM
>To: axis-user@ws.apache.org
>Subject: Re: Exchange word/pdf docs using axis java service to support
.NE
>T cl ient
>
>Try it and see.
>
>On 7/18/07, Pantvaidya, Vishwajit <[EMAIL PROTECTED]> wrote:
>> Thanks a lot Anne. I had read that doc - but I see now that I had
>> inadvertently skipped some relevant content. Steve suggests not to
>> include the attachments parameter in the method signature in WSDL.
Won't
>> axis complain that the received request does not match the method
>> signature? I would like the WSDL to have the attachment defined.
>>
>> Also, I had already defined the following WSDL with a multipart mime
>> request consisting of an id and attachment. Axis 1.2 generated the
java
>> stubs, etc correctly for that. Will that work?
>>
>> 
>> 
>>
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>>   
>> 
>>   
>> 
>> 
>>   > type="application/msword"/>
>> 
>>   
>> 
>> 
>> 
>>
>>
>> Thanks,
>>
>> Vish.
>>
>>
>> >-Original Message-
>> >From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
>> >Sent: Wednesday, July 18, 2007 11:50 AM
>> >To: axis-user@ws.apache.org
>> >Subject: Re: Exchange word/pdf docs using axis java service to
support
>> .NE
>> >T cl ient
>> >
>> >Neither .NET 1 nor Axis 1.2 supports the WS-I Attachments profile.
You
>> >should use DIME. See
>> >http://www.mail-archive.com/axis-
>> >[EMAIL PROTECTED]/msg08732/Fear_of_Attachments.pdf
>> >for guidance.
>> >
>> >Anne
>> >
>> >On 7/17/07, Pantvaidya, Vishwajit <[EMAIL PROTECTED]> wrote:
>> >> We are using Axis-Java 1.2.1 (not Axis2) and .NET2.
>> >>
>> >>
>> >>
>> >> >-Original Message-
>> >> >From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
>> >> >Sent: Tuesday, July 17, 2007 5:08 AM
>> >> >To: axis-user@ws.apache.org
>> >> >Subject: Re: Exchange word/pdf docs using axis java service to
>> support
>> >.NET
>> >> >cl ient
>> >> >
>> >> >Please confirm: are you using Axis 1.2 or Axis2 1.2?
>> >> >And what version of .NET are you using?
>> >> >
>> >> >Anne
>> >> >
>> >> >On 7/16/07, Pantvaidya, Vishwajit <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> I need to add functionality that will enable our webservice
built
>> >using
>> >> >axis
>> >> >> java 1.2 to exchange word/pdf docs with a .NET client. I can do
it
>> >using
>> >> >> just byte[] or using attachments.
>> >> >>
>> >> >> - Should I prefer attachments if file is large? Does using
>> attachments
>> >> >mean
>> >> >> that the implementation splits the file automatically into
packets
>> >that
>> >> >are
>> >> >> individually delivered?
>> >> >>
>> >> >> - If using attachments, I would like the attachments interface
to
>> be
>> >> >visible
>> >> >> from wsdl - I guess that rules out SAAJ
>> >> >>
>> >> >> - The WS-I attachments profile
>> >> >> http://www.ws-i.org/Profiles/AttachmentsProfile-1.0.html
>> >> >> seems to recommend using XML attachment type wsi:swaRef. But
does
>> >anyone
>> >> >> know if this will work with a .NET based client. Because
elsewhere
>> I
>> >see
>> >> >> statements that DIME is the only format that .NET supports. Is
>> that
>> >true?
>> >> >>
>> >> >> - If not swaRef, can I use MIME with base64binary, etc?
>> >> >>
>> >> >>
>> >> >
>> >>
>>
>-
>> >> >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 unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: RE help deciphering error message

2007-07-18 Thread Matt Roberts

Hi,

So, I understand that there is a missing  tag in the ws 
addressing thing.  What I don't understand is how to fix this when I am 
using wsdl2java to generate stubs and access the service.


Actually, I don't understand where this ws-addressing thing comes from 
or goes either, but that is another question :)


Thanks,

Matt

[EMAIL PROTECTED] wrote:


Hi,
Axis2 finds the Service at the given EPR (endpoint reference) but the 
WSA Action (the operation to call) is null. The corresponding tag should 
be missing.


Pierre



*Matt Roberts <[EMAIL PROTECTED]>*

18/07/2007 07:43
Veuillez répondre à
axis-user@ws.apache.org



A
axis-user@ws.apache.org
cc

Objet
help deciphering error message








Hi all,

I am wondering if anyone can help decpher this error message

 [java] [EMAIL PROTECTED]
 [java] [EMAIL PROTECTED]
 [java] RemoteExp in main
 [java] org.apache.axis2.AxisFault: Operation Not found EPR is
http://yl1.mams.org.au:8080/axis2/services/PeoplePicker and WSA Action =
 null
 [java] at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)

I am trying to write a client for this "PeoplePicker" web service and I
just keep getting this error - no matter what I try.

I am
1) getting the wsld
2) creating stubs with wsdl2java
3) running the test that wsdl2java creates (with a few additions to get
past the null assertion errors :))

anyone have any idea what is going on?

matt

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



How do you turn off detail (stack trace) in Apache Axis 1.4 soap faults?

2007-07-18 Thread Yoon, Chul
I noticed that in Apache Axis 1.4, when your service throws an
exception, Apache Axis will add a  element to the soap fault
response.

 

Inside the detail element there is a stack trace and a hostname section.

 

This is behavior is a change from Apache Axis 1.1 where you didn't get
the detail section - it was merely 

 

How do I turn this undesired feature off. ??

 

I want to turn it off because it's a potential security risk and it
causes compatibility issues for some clients (SUN Java WSDP for one).

 

Surely there is some flag that turns this off.

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
This message is for the named person's use only. This communication is for
informational purposes only and has been obtained from sources believed to
be reliable, but it is not necessarily complete and its accuracy cannot be
guaranteed. It is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation of any
transaction. Moreover, this material should not be construed to contain any
recommendation regarding, or opinion concerning, any security. It may
contain confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender. You must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message if you are not the intended
recipient.  Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender is
authorized to state them to be the views of any such entity.

Securities products and services provided to Canadian investors are offered
by ITG Canada Corp. (member CIPF and IDA), an affiliate of Investment
Technology Group, Inc.

ITG Inc. and/or its affiliates reserves the right to monitor and archive
all electronic communications through its network.

ITG Inc. Member NASD, SIPC
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-


Using asynchronous messaging with Rampart (axis-users)

2007-07-18 Thread Mark H

Hi,

Sent originally to incorrect mailing list, sorry

I have a question concerning the use of Rampart while using asynchronous 
messaging in Axis 2 (version 1.2).  In short, I am having problems on the 
client side when the client receives the asynchronous response from the 
service, in that the response is secured (which is what is needed), but the 
client does not appear to be configured to receive secured messages.


The service gets the secured request, processes, and send the response back 
secured asynchronously.  However, Rampart appears to believe that the 
listener is not configured and does not process the Security header of the 
SOAP message, causing Axis to throw an AxisFault when it reaches a 
mustUnderstand on the Security header that has not been processed by 
Rampart.


I am using my own ListenerManager set on the ServiceClient so that I can 
control the port on which the client listens.  Below is the async client 
invocation of the service (the service works fine when invoked 
synchronously):


Options options = new Options();
ConfigurationContext configCntxt = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, 
null);

ListenerManager lm = new ListenerManager();
lm.init(configCntxt);
TransportInDescription listener = new SimpleHTTPServer(configCntxt, 11196);
td.setReceiver(listener);
lm.addListener(td, false);
options.setListener(listener);
options.setTransportIn(td);
options.setUseSeparateListener(true);
options.setTo(new EndPointReference(endPoint));
options.setAction(action);

options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, securityPolicy);
ServiceClient client = new ServiceClient(configCntxt, null);
client.engageModule(ADDRESSING);
client.engageModule(SECURITY);
client.setOptions(options);

client.sendReceiveNonBlocking();


Is there something that I have not configured properly?  I am not sure how 
the client's listener is expected to handle security policy.  Any help would 
be appreciated.


Thanks,

Mark

_
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507


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



Re: JMS

2007-07-18 Thread Mike Krell

Thanks for the reply Anthony.  I'm using axis 1.4 so I'm not sure if your
suggestions will help - I will compare this with what I have to see if
anything jumps out.  I've got 6 different web services using Axis 1.4 so I'm
hesitant to upgrade to Axis 2.

I have a an EJB which I use Apache Axis to create a web service.  I
use Axis' java2wsdl to create the wsdl and then wsdl2java to create
the client code.
I have everything working using HTTP however I would like to change
the transport to use JMS with persistent queues.  I've set up JBossMQ.
I've modified the my server-config.wsdd and client-config.wsdd files
for Axis to use JMS.  When running a simple test, I get the following
error message...
"The AXIS engine could not find a target service to invoke!
targetService is null"


At this point I'm not even sure that I have everything configured correctly
but there doesn't appear to be any documentation to confirm with.  My set up
is a little more advanced than the stock quote samples that come with the
Axis distribution however the sample did get me to where I am now.  I think
that it's a simple configuration issue and I was hoping for a cook book
example that I could follow.

I'm not sure if this helps you at all or not.  Thanks again for the info -
I'll see if it helps.

Mikek

On 7/18/07, Anthony Bull <[EMAIL PROTECTED]> wrote:


I set my Axis 2 instance to use Apache Active MQ using the examples on
the Axis 2 documentation.  What are your specific problems?

The steps I followed were:
1. Setup Active MQ as standard.
2. Change the axis2.xml file under the axis2 webapp context on Tomcat so
that the JMS transport receiver and sender elements were active (as
follows):



org.apache.activemq.jndi.ActiveMQInitialContextFactory

tcp://localhost:61616
TopicConnectionFactory



org.apache.activemq.jndi.ActiveMQInitialContextFactory

tcp://localhost:61616
QueueConnectionFactory



org.apache.activemq.jndi.ActiveMQInitialContextFactory

tcp://localhost:61616
QueueConnectionFactory





3. And finally installed the basic EchoXMLService I found on the Axis2
documentation example. Its a simple one class web service, where the
only different is that it specifies a JMS transport in its services.xml
file as follows:



This is a sample Web Service for JMS tests.

org.apache.axis2.jms.Echo


urn:echoOMElementNoResponse



urn:echoOMElement



  jms

myQueueConnectionFactory
dynamicQueues/TestQueue


4. I'm moving over to WebSphere MQ as the MOM provider, but haven't got
that far yet - but I assume its only a change to the JNDI properties in
axis2.xml as is the case with other JMS stuff.

cheers,
Ants.

Mike Krell wrote:
> Does anyone know how to configure JMS to be used with Axis?  I've read
> the docs and samples and I'm still struggling.  Thanks


--
Anthony
-
Anthony Bull
Senior Developer
Black Coffee Software Ltd
PO Box 10-192 The Terrace
Wellington, New Zealand

[EMAIL PROTECTED]
Ph  +64 4 472 8818
Fax +64 4 472 8811
Mobile 021 303 692
-
www.bcsoft.co.nz
---
This email may contain confidential or privileged information,
and is intended for use only by the addressee, or addressees.
If you are not the intended recipient please advise the sender
immediately and do not copy, use or disclose the contents to
any other person or organisation.
Black Coffee Software Ltd accepts no responsibility for viruses
received with this email, or to any changes made to the original
content. Any views or opinions expressed in this email may be
personal to the sender and are not necessarily those of Black
Coffee Software Ltd.
---



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




Re: JMS

2007-07-18 Thread Anthony Bull
I set my Axis 2 instance to use Apache Active MQ using the examples on 
the Axis 2 documentation.  What are your specific problems?


The steps I followed were:
1. Setup Active MQ as standard.
2. Change the axis2.xml file under the axis2 webapp context on Tomcat so 
that the JMS transport receiver and sender elements were active (as 
follows):


   class="org.apache.axis2.transport.jms.JMSListener">
   locked="false">   
   locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory
   locked="false">tcp://localhost:61616   
   locked="false">TopicConnectionFactory

   

   locked="false">   
   locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory
   locked="false">tcp://localhost:61616   
   locked="false">QueueConnectionFactory

   

  
   locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory
   locked="false">tcp://localhost:61616   
   locked="false">QueueConnectionFactory

   
   

   

3. And finally installed the basic EchoXMLService I found on the Axis2 
documentation example. Its a simple one class web service, where the 
only different is that it specifies a JMS transport in its services.xml 
file as follows:



   
   This is a sample Web Service for JMS tests.
   
   locked="false">org.apache.axis2.jms.Echo

   
   class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>

   urn:echoOMElementNoResponse
   
   
   class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>

   urn:echoOMElement
   

   
 jms
   
   locked="true">myQueueConnectionFactory
   locked="true">dynamicQueues/TestQueue



4. I'm moving over to WebSphere MQ as the MOM provider, but haven't got 
that far yet - but I assume its only a change to the JNDI properties in 
axis2.xml as is the case with other JMS stuff.


cheers,
Ants.

Mike Krell wrote:
Does anyone know how to configure JMS to be used with Axis?  I've read 
the docs and samples and I'm still struggling.  Thanks



--
Anthony
-
Anthony Bull
Senior Developer
Black Coffee Software Ltd
PO Box 10-192 The Terrace
Wellington, New Zealand

[EMAIL PROTECTED]
Ph  +64 4 472 8818
Fax +64 4 472 8811
Mobile 021 303 692
-
www.bcsoft.co.nz
---
This email may contain confidential or privileged information,
and is intended for use only by the addressee, or addressees.
If you are not the intended recipient please advise the sender
immediately and do not copy, use or disclose the contents to
any other person or organisation.
Black Coffee Software Ltd accepts no responsibility for viruses
received with this email, or to any changes made to the original
content. Any views or opinions expressed in this email may be
personal to the sender and are not necessarily those of Black
Coffee Software Ltd.
---



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



Connection reset

2007-07-18 Thread Hemanth Kumar
Hi,

We received a connection reset exception when HTTP protocol was 1.1. when we
changed it to 1.0, it worked fine. Does anyone know why it happens?

Here is the stacktrace:

org.apache.axis2.AxisFault: Connection reset
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTT
PTransportSender.java:221)
at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperatio
n.java:330)
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOpera
tion.java:294)
at
org.openuri.www.TriprewardsPartnerAccountCreateStub.triprewardsPartnerAccoun
tCreate(TriprewardsPartnerAccountCreateStub.java:151)
at
com.wyndham.features.wbr.triprewards.TestService.main(TestService.java:52)
C
aused by: org.apache.axis2.AxisFault: Connection reset
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithC
ommons(CommonsHTTPTransportSender.java:314)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTT
PTransportSender.java:201)
... 5 more

Thanks,
Hemanth


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



RE: XMLBeans binding issue

2007-07-18 Thread Anton Zhilin
axis2-soapmonitor-1.3-SNAPSHOT.jar was absent in 
axis2-SNAPSHOT-war.zip  15 244 540  17.07.2007 09:22

Антон

> -Original Message-
> From: robert lazarski [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 19, 2007 12:14 AM
> To: axis-user@ws.apache.org
> Subject: Re: XMLBeans binding issue
> 
> Might be an issue with the nightlies. Are you using the axis2.war from
> the nightlies? Do you have axis2-soapmonitor-1.3-SNAPSHOT.jar and that
> is where you are getting the applet classes from?
> 
> Thanks,
> Robert
> 
> On 7/18/07, Anton Zhilin <[EMAIL PROTECTED]> wrote:
> > I just receive error page.
> >
> > HTTP Status 503 - Servlet SOAPMonitorService is currently unavailable
> > type Status report
> > message Servlet SOAPMonitorService is currently unavailable
> > description The requested service (Servlet SOAPMonitorService is
> currently
> > unavailable) is not currently available.
> > Apache Tomcat/4.1.31
> >
> > I configured it as usual (in 1.2 it works).
> > SOAPMonitorApplet*.class was copied from 1.2 distribution, because
> > WEB-INF/lib/axis2-soapmonitor-*.jar  is absent ("You can directly get
> the
> > compiled applet classes from the WEB-INF/lib/axis2-soapmonitor-*.jar
> which
> > is inside the extracted axis2.war." in manual). I'm I wrong?
> >
> > Configs are attached.
> >
> > Anton.
> >
> > > -Original Message-
> > > From: robert lazarski [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, July 18, 2007 11:46 PM
> > > To: axis-user@ws.apache.org
> > > Subject: Re: XMLBeans binding issue
> > >
> > > What problem did you have with the soap monitor ?
> > >
> > > Robert
> > >
> > > On 7/18/07, Anton Zhilin <[EMAIL PROTECTED]> wrote:
> > > > Thank you very much! It seams to work!
> > > >
> > > > The only problem now is I can't make SOAP-monitor in SNAPSHOT to
> work.
> > > So I
> > > > need some time to test everything with another tool.
> > > >
> > > > I hope this fix will be in next version.
> > > >
> > > > A.
> > > >
> > > > > please try nightly it should work with unqualified as well.
> > > > >
> > > > > thanks,
> > > > > dims
> > > > >
> > > > >
> > > > > --
> > > > > Davanum Srinivas :: http://davanum.wordpress.com
> > > >
> > > > >
> > > > > On 7/17/07, Anton Zhilin <[EMAIL PROTECTED]> wrote:
> > > > > > Hello,
> > > > > >
> > > > > > Can somebody tell me, is possible to set up Axis2 Web-Service
> based
> > > on
> > > > > > existing WSDL, if WSDL has an attribute
> > > > > elementFormDefault="UNqualified"?
> > > > > >
> > > > > > I now the "decision", that works: turn the attribute to
> > > > > > elementFormDefault="qualified". But I have predefined WSDL and
> MUST
> > > have
> > > > > > "unqualified" value.
> > > > > >
> > > > > > Similar questions arisen many times, but the only remedy was
> > > > > > elementFormDefault="qualified".
> > > > > > (The last time it seems was
> > > > > > http://www.mail-archive.com/axis-
> [EMAIL PROTECTED]/msg26184.html)
> > > > > >
> > > > > > Is there decision for XMLBeans? Other bindings? Or I should use
> > > > > different
> > > > > > framework?
> > > > > >
> > > > > > I use XMLBeans binding, Axis2 1.2, JDK 1.4.2_15, Tomcat 4.1.
> > > > > >
> > > > > > Thanks in advance,
> > > > > > Anton
> > > > > >
> > > > > >
> > > > > >
> > > > > > 
> 
> > > -
> > > > > > 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 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: XMLBeans binding issue

2007-07-18 Thread robert lazarski

Might be an issue with the nightlies. Are you using the axis2.war from
the nightlies? Do you have axis2-soapmonitor-1.3-SNAPSHOT.jar and that
is where you are getting the applet classes from?

Thanks,
Robert

On 7/18/07, Anton Zhilin <[EMAIL PROTECTED]> wrote:

I just receive error page.

HTTP Status 503 - Servlet SOAPMonitorService is currently unavailable
type Status report
message Servlet SOAPMonitorService is currently unavailable
description The requested service (Servlet SOAPMonitorService is currently
unavailable) is not currently available.
Apache Tomcat/4.1.31

I configured it as usual (in 1.2 it works).
SOAPMonitorApplet*.class was copied from 1.2 distribution, because
WEB-INF/lib/axis2-soapmonitor-*.jar  is absent ("You can directly get the
compiled applet classes from the WEB-INF/lib/axis2-soapmonitor-*.jar which
is inside the extracted axis2.war." in manual). I'm I wrong?

Configs are attached.

Anton.

> -Original Message-
> From: robert lazarski [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 18, 2007 11:46 PM
> To: axis-user@ws.apache.org
> Subject: Re: XMLBeans binding issue
>
> What problem did you have with the soap monitor ?
>
> Robert
>
> On 7/18/07, Anton Zhilin <[EMAIL PROTECTED]> wrote:
> > Thank you very much! It seams to work!
> >
> > The only problem now is I can't make SOAP-monitor in SNAPSHOT to work.
> So I
> > need some time to test everything with another tool.
> >
> > I hope this fix will be in next version.
> >
> > A.
> >
> > > please try nightly it should work with unqualified as well.
> > >
> > > thanks,
> > > dims
> > >
> > >
> > > --
> > > Davanum Srinivas :: http://davanum.wordpress.com
> >
> > >
> > > On 7/17/07, Anton Zhilin <[EMAIL PROTECTED]> wrote:
> > > > Hello,
> > > >
> > > > Can somebody tell me, is possible to set up Axis2 Web-Service based
> on
> > > > existing WSDL, if WSDL has an attribute
> > > elementFormDefault="UNqualified"?
> > > >
> > > > I now the "decision", that works: turn the attribute to
> > > > elementFormDefault="qualified". But I have predefined WSDL and MUST
> have
> > > > "unqualified" value.
> > > >
> > > > Similar questions arisen many times, but the only remedy was
> > > > elementFormDefault="qualified".
> > > > (The last time it seems was
> > > > http://www.mail-archive.com/axis-user@ws.apache.org/msg26184.html)
> > > >
> > > > Is there decision for XMLBeans? Other bindings? Or I should use
> > > different
> > > > framework?
> > > >
> > > > I use XMLBeans binding, Axis2 1.2, JDK 1.4.2_15, Tomcat 4.1.
> > > >
> > > > Thanks in advance,
> > > > Anton
> > > >
> > > >
> > > >
> > > > 
> -
> > > > 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 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: Incorrect handling of boolean elements on POJO web service

2007-07-18 Thread Brian Neate
Thanks that answers my question perfectly.
Brian 

-Original Message-
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 17, 2007 10:41 PM
To: axis-user@ws.apache.org
Subject: Re: Incorrect handling of boolean elements on POJO web service

Hi Brian ,

The issues is fixed in Axis2 1.3 release and we have done a 1.3 RC1 [1]
please try it and see.

Thanks
Deepal

[1] : http://people.apache.org/~deepal/axis2/1.3-RC1/
> Hey guys,
>  
> I'm trying to use axis2 1.1.1 to expose a POJO as a webservice.  I'm 
> having a problem though because it seems that ADB doesn't support 
> boolean elements with a value of 1.  Any time you try to submit a 
> request with 1 for a boolean element (which should resolve to true) 
> you get false for that argument in the java class.  I think I have 
> tracked the problem down to the SimpleTypeMapper class and the 
> following lines of code at line 98:
>  
> else if (name.equals(W_BOOLEAN)) {
> return Boolean.valueOf(text);
>  
> What I was wondering is:  Is there any simple way to override this 
> behaviour so that a boolean element with a value of 1 will be 
> intepreted as true?  And am I on the right track with what needs to be

> fixed?
>  
> Thanks,
> Brian



-
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: Exchange word/pdf docs using axis java service to support .NE T cl ient

2007-07-18 Thread Anne Thomas Manes

Try it and see.

On 7/18/07, Pantvaidya, Vishwajit <[EMAIL PROTECTED]> wrote:

Thanks a lot Anne. I had read that doc - but I see now that I had
inadvertently skipped some relevant content. Steve suggests not to
include the attachments parameter in the method signature in WSDL. Won't
axis complain that the received request does not match the method
signature? I would like the WSDL to have the attachment defined.

Also, I had already defined the following WSDL with a multipart mime
request consisting of an id and attachment. Axis 1.2 generated the java
stubs, etc correctly for that. Will that work?












  

  


  

  





Thanks,

Vish.


>-Original Message-
>From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 18, 2007 11:50 AM
>To: axis-user@ws.apache.org
>Subject: Re: Exchange word/pdf docs using axis java service to support
.NE
>T cl ient
>
>Neither .NET 1 nor Axis 1.2 supports the WS-I Attachments profile. You
>should use DIME. See
>http://www.mail-archive.com/axis-
>[EMAIL PROTECTED]/msg08732/Fear_of_Attachments.pdf
>for guidance.
>
>Anne
>
>On 7/17/07, Pantvaidya, Vishwajit <[EMAIL PROTECTED]> wrote:
>> We are using Axis-Java 1.2.1 (not Axis2) and .NET2.
>>
>>
>>
>> >-Original Message-
>> >From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
>> >Sent: Tuesday, July 17, 2007 5:08 AM
>> >To: axis-user@ws.apache.org
>> >Subject: Re: Exchange word/pdf docs using axis java service to
support
>.NET
>> >cl ient
>> >
>> >Please confirm: are you using Axis 1.2 or Axis2 1.2?
>> >And what version of .NET are you using?
>> >
>> >Anne
>> >
>> >On 7/16/07, Pantvaidya, Vishwajit <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >>
>> >>
>> >> I need to add functionality that will enable our webservice built
>using
>> >axis
>> >> java 1.2 to exchange word/pdf docs with a .NET client. I can do it
>using
>> >> just byte[] or using attachments.
>> >>
>> >> - Should I prefer attachments if file is large? Does using
attachments
>> >mean
>> >> that the implementation splits the file automatically into packets
>that
>> >are
>> >> individually delivered?
>> >>
>> >> - If using attachments, I would like the attachments interface to
be
>> >visible
>> >> from wsdl - I guess that rules out SAAJ
>> >>
>> >> - The WS-I attachments profile
>> >> http://www.ws-i.org/Profiles/AttachmentsProfile-1.0.html
>> >> seems to recommend using XML attachment type wsi:swaRef. But does
>anyone
>> >> know if this will work with a .NET based client. Because elsewhere
I
>see
>> >> statements that DIME is the only format that .NET supports. Is
that
>true?
>> >>
>> >> - If not swaRef, can I use MIME with base64binary, etc?
>> >>
>> >>
>> >
>>
>-
>> >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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: XMLBeans binding issue

2007-07-18 Thread Anton Zhilin
I just receive error page.

HTTP Status 503 - Servlet SOAPMonitorService is currently unavailable
type Status report
message Servlet SOAPMonitorService is currently unavailable
description The requested service (Servlet SOAPMonitorService is currently
unavailable) is not currently available.
Apache Tomcat/4.1.31

I configured it as usual (in 1.2 it works).
SOAPMonitorApplet*.class was copied from 1.2 distribution, because
WEB-INF/lib/axis2-soapmonitor-*.jar  is absent ("You can directly get the
compiled applet classes from the WEB-INF/lib/axis2-soapmonitor-*.jar which
is inside the extracted axis2.war." in manual). I'm I wrong? 

Configs are attached.

Anton.

> -Original Message-
> From: robert lazarski [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 18, 2007 11:46 PM
> To: axis-user@ws.apache.org
> Subject: Re: XMLBeans binding issue
> 
> What problem did you have with the soap monitor ?
> 
> Robert
> 
> On 7/18/07, Anton Zhilin <[EMAIL PROTECTED]> wrote:
> > Thank you very much! It seams to work!
> >
> > The only problem now is I can't make SOAP-monitor in SNAPSHOT to work.
> So I
> > need some time to test everything with another tool.
> >
> > I hope this fix will be in next version.
> >
> > A.
> >
> > > please try nightly it should work with unqualified as well.
> > >
> > > thanks,
> > > dims
> > >
> > >
> > > --
> > > Davanum Srinivas :: http://davanum.wordpress.com
> >
> > >
> > > On 7/17/07, Anton Zhilin <[EMAIL PROTECTED]> wrote:
> > > > Hello,
> > > >
> > > > Can somebody tell me, is possible to set up Axis2 Web-Service based
> on
> > > > existing WSDL, if WSDL has an attribute
> > > elementFormDefault="UNqualified"?
> > > >
> > > > I now the "decision", that works: turn the attribute to
> > > > elementFormDefault="qualified". But I have predefined WSDL and MUST
> have
> > > > "unqualified" value.
> > > >
> > > > Similar questions arisen many times, but the only remedy was
> > > > elementFormDefault="qualified".
> > > > (The last time it seems was
> > > > http://www.mail-archive.com/axis-user@ws.apache.org/msg26184.html)
> > > >
> > > > Is there decision for XMLBeans? Other bindings? Or I should use
> > > different
> > > > framework?
> > > >
> > > > I use XMLBeans binding, Axis2 1.2, JDK 1.4.2_15, Tomcat 4.1.
> > > >
> > > > Thanks in advance,
> > > > Anton
> > > >
> > > >
> > > >
> > > > 
> -
> > > > 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]



http://java.sun.com/dtd/web-app_2_3.dtd";>


Apache-Axis2

AxisServlet
Apache-Axis Servlet
org.apache.axis2.transport.http.AxisServlet










1


AxisAdminServlet
Apache-Axis AxisAdmin Servlet (Web Admin)

org.apache.axis2.transport.http.AxisAdminServlet


AxisServlet
/servlet/AxisServlet



AxisServlet
*.jws



AxisServlet
/services/*



AxisAdminServlet
/axis2-admin/*


   
  index.jsp
  index.html
  /axis2-web/index.jsp



  404
  /axis2-web/Error/error404.jsp



500
/axis2-web/Error/error500.jsp


  

   SOAPMonitorService
   SOAPMonitorService
   
 org.apache.axis2.soapmonitor.servlet.SOAPMonitorService
   
   1



SOAPMonitorService
/SOAPMonitor









true
false
false
false





3



false





false

admin
axis2

























false
























 
http://www.w3.org/2004/08/wsdl/in-only";
 class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
http://www.w3.org/2004/08/wsdl/in-out";
 class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
http://www.w3.org/2006/01/wsdl/in-only";
 class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
http://www.w3.org/2006/01/wsdl/in-out";
   

Multiple network interface

2007-07-18 Thread Ali, Haneef
Hi,

In my machine I have multiple network interface. (i.e) I have installed
vmware so it shows multiple network interfaces.  How to make axis2 get
the IP address of the correct intefaces?

Ex:  Code from org.apache.axis2.transport.http.sever.HTTPUtils.java

public static String getIpAddress() throws SocketException {
Enumeration e = NetworkInterface.getNetworkInterfaces();
String address = "127.0.0.1";

while (e.hasMoreElements()) {
NetworkInterface netface = (NetworkInterface)
e.nextElement();
Enumeration addresses = netface.getInetAddresses();

while (addresses.hasMoreElements()) {
InetAddress ip = (InetAddress) addresses.nextElement();
if (!ip.isLoopbackAddress() &&
isIP(ip.getHostAddress())) {
return ip.getHostAddress();
}
}
}

return address;
}


This code returns the first available intefaces ipaddress which may not
be the desired ip address? Is there a configuration setting to fix this?

You will have the same problem if you have both lan and wireless
connections. 

Haneef

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



Re: XMLBeans binding issue

2007-07-18 Thread robert lazarski

What problem did you have with the soap monitor ?

Robert

On 7/18/07, Anton Zhilin <[EMAIL PROTECTED]> wrote:

Thank you very much! It seams to work!

The only problem now is I can't make SOAP-monitor in SNAPSHOT to work. So I
need some time to test everything with another tool.

I hope this fix will be in next version.

A.

> please try nightly it should work with unqualified as well.
>
> thanks,
> dims
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com

>
> On 7/17/07, Anton Zhilin <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > Can somebody tell me, is possible to set up Axis2 Web-Service based on
> > existing WSDL, if WSDL has an attribute
> elementFormDefault="UNqualified"?
> >
> > I now the "decision", that works: turn the attribute to
> > elementFormDefault="qualified". But I have predefined WSDL and MUST have
> > "unqualified" value.
> >
> > Similar questions arisen many times, but the only remedy was
> > elementFormDefault="qualified".
> > (The last time it seems was
> > http://www.mail-archive.com/axis-user@ws.apache.org/msg26184.html)
> >
> > Is there decision for XMLBeans? Other bindings? Or I should use
> different
> > framework?
> >
> > I use XMLBeans binding, Axis2 1.2, JDK 1.4.2_15, Tomcat 4.1.
> >
> > Thanks in advance,
> > Anton
> >
> >
> >
> > -
> > 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: Exchange word/pdf docs using axis java service to support .NE T cl ient

2007-07-18 Thread Pantvaidya, Vishwajit
Thanks a lot Anne. I had read that doc - but I see now that I had
inadvertently skipped some relevant content. Steve suggests not to
include the attachments parameter in the method signature in WSDL. Won't
axis complain that the received request does not match the method
signature? I would like the WSDL to have the attachment defined.

Also, I had already defined the following WSDL with a multipart mime
request consisting of an id and attachment. Axis 1.2 generated the java
stubs, etc correctly for that. Will that work?












  

  


  

  





Thanks,

Vish.


>-Original Message-
>From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 18, 2007 11:50 AM
>To: axis-user@ws.apache.org
>Subject: Re: Exchange word/pdf docs using axis java service to support
.NE
>T cl ient
>
>Neither .NET 1 nor Axis 1.2 supports the WS-I Attachments profile. You
>should use DIME. See
>http://www.mail-archive.com/axis-
>[EMAIL PROTECTED]/msg08732/Fear_of_Attachments.pdf
>for guidance.
>
>Anne
>
>On 7/17/07, Pantvaidya, Vishwajit <[EMAIL PROTECTED]> wrote:
>> We are using Axis-Java 1.2.1 (not Axis2) and .NET2.
>>
>>
>>
>> >-Original Message-
>> >From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
>> >Sent: Tuesday, July 17, 2007 5:08 AM
>> >To: axis-user@ws.apache.org
>> >Subject: Re: Exchange word/pdf docs using axis java service to
support
>.NET
>> >cl ient
>> >
>> >Please confirm: are you using Axis 1.2 or Axis2 1.2?
>> >And what version of .NET are you using?
>> >
>> >Anne
>> >
>> >On 7/16/07, Pantvaidya, Vishwajit <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >>
>> >>
>> >> I need to add functionality that will enable our webservice built
>using
>> >axis
>> >> java 1.2 to exchange word/pdf docs with a .NET client. I can do it
>using
>> >> just byte[] or using attachments.
>> >>
>> >> - Should I prefer attachments if file is large? Does using
attachments
>> >mean
>> >> that the implementation splits the file automatically into packets
>that
>> >are
>> >> individually delivered?
>> >>
>> >> - If using attachments, I would like the attachments interface to
be
>> >visible
>> >> from wsdl - I guess that rules out SAAJ
>> >>
>> >> - The WS-I attachments profile
>> >> http://www.ws-i.org/Profiles/AttachmentsProfile-1.0.html
>> >> seems to recommend using XML attachment type wsi:swaRef. But does
>anyone
>> >> know if this will work with a .NET based client. Because elsewhere
I
>see
>> >> statements that DIME is the only format that .NET supports. Is
that
>true?
>> >>
>> >> - If not swaRef, can I use MIME with base64binary, etc?
>> >>
>> >>
>> >
>>
>-
>> >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]



NullPointerException when processing answer

2007-07-18 Thread Vincent Giguere

Hi, 

I am deploying a web service through Axis2 embedded within a web
application, with the implementing bean being provided through Spring.

The implementing bean is being called and the call goes through. However, I
am experiencing a NullPointerException without much information when Axis2
processes the response back.

As an alternative, I have removed the Spring Integration and directly
provided a serviceClass parameter to Axis2. This yields to the same error.

In order for you to follow the included information below, The call being
made is:
GetAnonymousLocationResponse 
Location.getAnonymousLocation(GetAnonymousLocationRequest arequest)


I am using axis2 1.2. Here are my dependencies (excertp from maven pom.xml)

org.apache.ws.commons.axiom
axiom-api
1.2.4


org.apache.axis2
axis2
1.2
   

org.apache.axis2
axis2-adb
1.2


org.apache.axis2
axis2-kernel
1.2


org.apache.axis2
axis2-xmlbeans
1.2


org.apache.axis2
axis2-spring
1.2


org.apache.axis2
axis2-jibx
1.2
   


The services.xml is: 


Please Type your service description here

http://www.w3.org/2004/08/wsdl/in-only";
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
http://www.w3.org/2004/08/wsdl/in-out";
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />

org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier
locationServiceImpl




This is the WSDL (NOT generated on the fly because of the Spring
integration)
 http://service.ibsp.adapter.emx.confidential.com";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:xsd="http://service.ibsp.adapter.emx.confidential.com/xsd";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
targetNamespace="http://service.ibsp.adapter.emx.confidential.com";>http://www.w3.org/2001/XMLSchema";
xmlns:ax27="http://responses.service.ibsp.adapter.emx.confidential.com/xsd";
xmlns:ax28="http://service.ibsp.adapter.emx.confidential.com/xsd";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://responses.service.ibsp.adapter.emx.confidential.com/xsd";>
http://service.ibsp.adapter.emx.confidential.com/xsd";
/>







http://www.w3.org/2001/XMLSchema";
xmlns:ax26="http://requests.service.ibsp.adapter.emx.confidential.com/xsd";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://requests.service.ibsp.adapter.emx.confidential.com/xsd";>













http://responses.service.ibsp.adapter.emx.confidential.com/xsd";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:ns0="http://requests.service.ibsp.adapter.emx.confidential.com/xsd";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://service.ibsp.adapter.emx.confidential.com/xsd";>










































http://www.w3.org/2006/05/addressing/wsdl";
wsaw:Action="urn:getAnonymousLocation"
message="ns:getAnonymousLocationMessage" />http://www.w3.org/2006/05/addressing/wsdl";
message="ns:getAnonymousLocationResponseMessage"
wsaw:Action="urn:getAnonymousLocation"
/>http://schemas.xmlsoap.org/soap/http"; style="document"
/>http://schemas.xmlsoap.org/soap/http"; style="document"
/>http://localhost:8080/axis2/services/LocationService";
/>http://localhost:8080/axis2/services/LocationService";
/>



Here is my stack trace

- Exception occurred while trying to invoke service method
getAnonymousLocation
org.apache.axiom.om.OMException: java.lang.NullPointerException
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:211)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:315)
at
org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:608)
at
org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:577)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:114)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:236)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:192)
at
org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java

RE: XMLBeans binding issue

2007-07-18 Thread Anton Zhilin
Thank you very much! It seams to work! 

The only problem now is I can't make SOAP-monitor in SNAPSHOT to work. So I
need some time to test everything with another tool.  

I hope this fix will be in next version.

A.

> please try nightly it should work with unqualified as well.
>
> thanks,
> dims
>
>
> -- 
> Davanum Srinivas :: http://davanum.wordpress.com

> 
> On 7/17/07, Anton Zhilin <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > Can somebody tell me, is possible to set up Axis2 Web-Service based on
> > existing WSDL, if WSDL has an attribute
> elementFormDefault="UNqualified"?
> >
> > I now the "decision", that works: turn the attribute to
> > elementFormDefault="qualified". But I have predefined WSDL and MUST have
> > "unqualified" value.
> >
> > Similar questions arisen many times, but the only remedy was
> > elementFormDefault="qualified".
> > (The last time it seems was
> > http://www.mail-archive.com/axis-user@ws.apache.org/msg26184.html)
> >
> > Is there decision for XMLBeans? Other bindings? Or I should use
> different
> > framework?
> >
> > I use XMLBeans binding, Axis2 1.2, JDK 1.4.2_15, Tomcat 4.1.
> >
> > Thanks in advance,
> > Anton
> >
> >
> >
> > -
> > 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: Exchange word/pdf docs using axis java service to support .NE T cl ient

2007-07-18 Thread Anne Thomas Manes

Neither .NET 1 nor Axis 1.2 supports the WS-I Attachments profile. You
should use DIME. See
http://www.mail-archive.com/[EMAIL PROTECTED]/msg08732/Fear_of_Attachments.pdf
for guidance.

Anne

On 7/17/07, Pantvaidya, Vishwajit <[EMAIL PROTECTED]> wrote:

We are using Axis-Java 1.2.1 (not Axis2) and .NET2.



>-Original Message-
>From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, July 17, 2007 5:08 AM
>To: axis-user@ws.apache.org
>Subject: Re: Exchange word/pdf docs using axis java service to support .NET
>cl ient
>
>Please confirm: are you using Axis 1.2 or Axis2 1.2?
>And what version of .NET are you using?
>
>Anne
>
>On 7/16/07, Pantvaidya, Vishwajit <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>> I need to add functionality that will enable our webservice built using
>axis
>> java 1.2 to exchange word/pdf docs with a .NET client. I can do it using
>> just byte[] or using attachments.
>>
>> - Should I prefer attachments if file is large? Does using attachments
>mean
>> that the implementation splits the file automatically into packets that
>are
>> individually delivered?
>>
>> - If using attachments, I would like the attachments interface to be
>visible
>> from wsdl - I guess that rules out SAAJ
>>
>> - The WS-I attachments profile
>> http://www.ws-i.org/Profiles/AttachmentsProfile-1.0.html
>> seems to recommend using XML attachment type wsi:swaRef. But does anyone
>> know if this will work with a .NET based client. Because elsewhere I see
>> statements that DIME is the only format that .NET supports. Is that true?
>>
>> - If not swaRef, can I use MIME with base64binary, etc?
>>
>>
>
>-
>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]



AxisFault caused by : java.lang.InstantiationException

2007-07-18 Thread albert quinn

 Hi again !! :

 Many hours after my last posts, I'm back. I've been learning about
Ant, then I've created a new project in Eclipse and I've copied the
"pojoguide" sample. I've changed the lines :



adaptacion pojoguide.rar
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Trust file for .Net/C# client

2007-07-18 Thread Srinivasa Rao K
Hi
  
 We are using .jks trust file for java clients. How to provide a trust file
 for .Net/C# client?
   
  Thanks,
  Srini

   
-
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.

Re: Strange Error when deploying web services as war file in Tomcat 5.5

2007-07-18 Thread Karma Yogi

I have narrowed down the problem further.

One of my wsdls refers to a xsd file and when packaged inside a war file the
loader is unable to open that xsd even though it is present at the same
location as the wsdl.

   ERROR - WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
faultCode=OTHER_ERROR:
An error occurred trying to resolve schema referenced at 'common.xsd'.:
java.io.FileNotFoundException:
This file was not found: file:/C:/abcd/tomcat55/bin/common.xsd
   at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)

This is how the xsd is referenced in my wsdl

http://abcd.com/wsdl/common";
 schemaLocation="common.xsd" />


How do I convey the fact that the common.xsd can be found in the same
location as the wsdl ?

Yogi

On 7/18/07, Karma Yogi <[EMAIL PROTECTED]> wrote:


I tried that too Haneef, but still get the same error. :(

Yogi



On 7/18/07, Ali, Haneef <[EMAIL PROTECTED] > wrote:
>
> Create a file called wsdl.list and add the name of the wsdl to it. The
> wsdl along with wsdl.list should be in meta-inf of your service archive
> file.
>
> Thanks,
> Haneef
>
>
>
> 
>
> From: Karma Yogi [mailto: [EMAIL PROTECTED]
> Sent: Wednesday, July 18, 2007 10:48 AM
> To: axis-user@ws.apache.org
> Subject: Strange Error when deploying web services as war file in Tomcat
>
> 5.5
>
>
>
> Guys,
>
>In addition to yesterday's question, here are some more problems that
> are driving me crazy.
>
> 1) The webapp with my service works perfectly when deployed in exploded
> format, but the same thing stops working when I have it deployed as a
> war file. (This is very important that I do it this way because the
> webservices are embedded in my webapp)
> 2) I have tried adding the original wsdl files in the META-INF of each
> service, kept the services as expanded directories within the
> WEB-INF/services folder, tried the .aar file with the services.list
> approach, but all the time I get 'The service cannot be found for the
> endpoint reference '
>
> Is there a specific flag that I can turn on to detect the service end
> points (in the log) when my web app comes up without having to deploy
> the entire axis web app. I cannot do that because I am embedding axis2
> inside another app.
>
> Any help from the gurus will be appreciated.
>
> Thanks,
> Yogi
>
> -- Forwarded message --
> From: Karma Yogi < [EMAIL PROTECTED] 
> >
> Date: Jul 17, 2007 11:00 AM
> Subject: End point reference error and extra logging
> To: axis-user@ws.apache.org
>
> Folks,
>
>   I would like some guidance on two issues that I am encountering.
>
> 1) My web service works very fine on my local server, but the same thing
> deployed on a different server comes up with the error
> ' org.apache.axis2.AxisFault: The service cannot be found for the
> endpoint reference (EPR)
> http://blahblah:8080/somecontext/services/MyWebService'
> What are the causes of such an error.
>
> 2) How do I enable axis2 logging. I am using a commons bridge that I
> built for the logging within my webapp and would like to redirect all
> axis2 logs using that bridge. ?
>
> Any help is appreciated.
>
> Thanks,
> Yogi
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



Re: Strange Error when deploying web services as war file in Tomcat 5.5

2007-07-18 Thread Karma Yogi

I tried that too Haneef, but still get the same error. :(

Yogi



On 7/18/07, Ali, Haneef <[EMAIL PROTECTED]> wrote:


Create a file called wsdl.list and add the name of the wsdl to it. The
wsdl along with wsdl.list should be in meta-inf of your service archive
file.

Thanks,
Haneef





From: Karma Yogi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 18, 2007 10:48 AM
To: axis-user@ws.apache.org
Subject: Strange Error when deploying web services as war file in Tomcat
5.5



Guys,

   In addition to yesterday's question, here are some more problems that
are driving me crazy.

1) The webapp with my service works perfectly when deployed in exploded
format, but the same thing stops working when I have it deployed as a
war file. (This is very important that I do it this way because the
webservices are embedded in my webapp)
2) I have tried adding the original wsdl files in the META-INF of each
service, kept the services as expanded directories within the
WEB-INF/services folder, tried the .aar file with the services.list
approach, but all the time I get 'The service cannot be found for the
endpoint reference '

Is there a specific flag that I can turn on to detect the service end
points (in the log) when my web app comes up without having to deploy
the entire axis web app. I cannot do that because I am embedding axis2
inside another app.

Any help from the gurus will be appreciated.

Thanks,
Yogi

-- Forwarded message --
From: Karma Yogi < [EMAIL PROTECTED] 
>
Date: Jul 17, 2007 11:00 AM
Subject: End point reference error and extra logging
To: axis-user@ws.apache.org

Folks,

  I would like some guidance on two issues that I am encountering.

1) My web service works very fine on my local server, but the same thing
deployed on a different server comes up with the error
' org.apache.axis2.AxisFault: The service cannot be found for the
endpoint reference (EPR)
http://blahblah:8080/somecontext/services/MyWebService'
What are the causes of such an error.

2) How do I enable axis2 logging. I am using a commons bridge that I
built for the logging within my webapp and would like to redirect all
axis2 logs using that bridge. ?

Any help is appreciated.

Thanks,
Yogi





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




Re: WSDL2C

2007-07-18 Thread Mustafa Cavus

Hi,

I use "axis.sh" this scipt includes all library-files, but it don't works. I
get the same exception. It coudn't be?

2007/7/18, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:


 I think you will have to include all the jar files in that directory
instead of just only the containing directory. You can look in any batch
file script for a command to include a set of files instead of explicitly
specifying every one of them.

-Madhav

 --
*From:* Mustafa Cavus [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, July 18, 2007 5:16 PM
*To:* axis-user@ws.apache.org
*Subject:* WSDL2C

Hello,

I have a problem wit WSDL2C.

I have read in the manual that I must add the CLASSPATH to the enviroment
variables, before I can use WSDL2C. I have added this:
CLASSPATH=/path-to-the-library/lib
export CLASSPATH

But I have always the same error if I want to generate stub and skeleton
with WSDL2C with the following command:

java org.apache.axis2.wsdl.WSDL2C -uri myArithmetik.wsdl -ss -sd -d adb -u

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis2/wsdl/WSDL2C

Thanks

M. Cavus




WSDL2C

2007-07-18 Thread Mustafa Cavus

Hi,

I have find this on axis2/java:
...They include axis2.bat (or axis2.sh), which enables you to easily execute
a Java command without having to manually add all the Axis2 jar files to the
classpath, java2wsdl.bat (and .sh) and wsdl2java.bat (and .sh), which enable
you to easily generate Java code from a WSDL file and vice versa, and
axis2server.bat (and sh), a simple Web server that enables you to build
Axis2's capability to send and receive messages into your own application...

axis2.sh includes all *.jar-Files I need. If I use the command:
axis2.sh org.apache.axis2.wsdl.WSDL2C -uri ./meinArithmetik.wsdl -ss -sd -d
adb -u

I get the same exception:
Using AXIS2_HOME:   /home/Now/Axis/axis2c
Using JAVA_HOME:   /usr/java/jre1.6.0_02
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis2/wsdl/WSDL2C

I don't understand this. The classpath was added and the library was loaded,
why java don't found this???

Thanks

M. Cavus


Re: Timeout Request Problem

2007-07-18 Thread Sez Sez

Ok. I try to explain me better.

We create a project to connect to webservice. This is publicated by a Provider. 
So, we only create the client side.  We test our project against this provider.

Out client have setTimeout(3). The problem is when provider read de request 
and don't response. Later 10 minutes we have a exception. We want that the 
client abort the communication with server, when the server don't response in 
30 seconds. We want that axis timeout break the comunication.

We have the client in our container, and we can change properties, but we 
cann't change the provider server properties.


Some idea???

Thanks!!!



- Mensaje original 
De: "Walker, Jeff" <[EMAIL PROTECTED]>
Para: axis-user@ws.apache.org
Enviado: jueves, 12 de julio, 2007 14:56:54
Asunto: RE: Timeout Request Problem

Are you running in a container?
The 10 mins may be some sort fo default http response timeout in your 
container, or http server. Can you give us more information, such as, the exact 
layout of what your doing?

I believe the setTimeout(3) is for the clientside, not the server side. It 
is how long the client will wait for a response before giving up. But I think 
the serverside can also have a timeout, else it drops back to the default 
timeout (which I suspect is the 10 mins your seeing). (Not sure why the client 
didn't timoeut at 3ms first).
This is just a guess..
-jeff


-Original Message-
From: Sez Sez [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 12, 2007 3:56 AM
To: axis-user@ws.apache.org
Subject: Re: Timeout Request Problem

Hi!

Somebody can helps me?? I don't found information in your mailing list.

It's a big problem, because we only are the client of this webservice and it's 
a big problem 10 of timeout.

Thanks!

Sergi

- Mensaje original 
De: Sez Sez <[EMAIL PROTECTED]>
Para: axis-user@ws.apache.org
Enviado: martes, 10 de julio, 2007 12:15:45
Asunto: Timeout Request Problem

Hi people!

I am working with Axis 1.3. I am testing timeouts with my project.

I tried to send a request to unknow Ip. Axis response timeout correct, in 30 
seconds. I defined setTimeout(3); in the Stub Class.

But, I write a small server, that read all request and it doesn't response 
never. I run my application with axis, and the timeout was 10 minutes!

Where can I change this request timeout???

Thanks!
Sergi





__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

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






   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

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






   

Sé un Mejor Amante del Cine 
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

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



JMS

2007-07-18 Thread Mike Krell

Does anyone know how to configure JMS to be used with Axis?  I've read the
docs and samples and I'm still struggling.  Thanks


RE: Strange Error when deploying web services as war file in Tomcat 5.5

2007-07-18 Thread Ali, Haneef
Create a file called wsdl.list and add the name of the wsdl to it. The
wsdl along with wsdl.list should be in meta-inf of your service archive
file.  

Thanks,
Haneef

 



From: Karma Yogi [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 18, 2007 10:48 AM
To: axis-user@ws.apache.org
Subject: Strange Error when deploying web services as war file in Tomcat
5.5



Guys,

   In addition to yesterday's question, here are some more problems that
are driving me crazy.

1) The webapp with my service works perfectly when deployed in exploded
format, but the same thing stops working when I have it deployed as a
war file. (This is very important that I do it this way because the
webservices are embedded in my webapp) 
2) I have tried adding the original wsdl files in the META-INF of each
service, kept the services as expanded directories within the
WEB-INF/services folder, tried the .aar file with the services.list
approach, but all the time I get 'The service cannot be found for the
endpoint reference ' 

Is there a specific flag that I can turn on to detect the service end
points (in the log) when my web app comes up without having to deploy
the entire axis web app. I cannot do that because I am embedding axis2
inside another app. 

Any help from the gurus will be appreciated.

Thanks,
Yogi

-- Forwarded message --
From: Karma Yogi < [EMAIL PROTECTED] 
>
Date: Jul 17, 2007 11:00 AM
Subject: End point reference error and extra logging
To: axis-user@ws.apache.org

Folks,

  I would like some guidance on two issues that I am encountering.

1) My web service works very fine on my local server, but the same thing
deployed on a different server comes up with the error
' org.apache.axis2.AxisFault: The service cannot be found for the
endpoint reference (EPR)
http://blahblah:8080/somecontext/services/MyWebService'
What are the causes of such an error. 

2) How do I enable axis2 logging. I am using a commons bridge that I
built for the logging within my webapp and would like to redirect all
axis2 logs using that bridge. ?

Any help is appreciated.

Thanks,
Yogi





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



Strange Error when deploying web services as war file in Tomcat 5.5

2007-07-18 Thread Karma Yogi

Guys,

  In addition to yesterday's question, here are some more problems that are
driving me crazy.

1) The webapp with my service works perfectly when deployed in exploded
format, but the same thing stops working when I have it deployed as a war
file. (This is very important that I do it this way because the webservices
are embedded in my webapp)
2) I have tried adding the original wsdl files in the META-INF of each
service, kept the services as expanded directories within the
WEB-INF/services folder, tried the .aar file with the
services.listapproach, but all the time I get 'The service cannot be
found for the
endpoint reference '

Is there a specific flag that I can turn on to detect the service end points
(in the log) when my web app comes up without having to deploy the entire
axis web app. I cannot do that because I am embedding axis2 inside another
app.

Any help from the gurus will be appreciated.

Thanks,
Yogi

-- Forwarded message --
From: Karma Yogi <[EMAIL PROTECTED]>
Date: Jul 17, 2007 11:00 AM
Subject: End point reference error and extra logging
To: axis-user@ws.apache.org

Folks,

 I would like some guidance on two issues that I am encountering.

1) My web service works very fine on my local server, but the same thing
deployed on a different server comes up with the error
' org.apache.axis2.AxisFault: The service cannot be found for the endpoint
reference (EPR) http://blahblah:8080/somecontext/services/MyWebService'
What are the causes of such an error.

2) How do I enable axis2 logging. I am using a commons bridge that I built
for the logging within my webapp and would like to redirect all axis2 logs
using that bridge. ?

Any help is appreciated.

Thanks,
Yogi


jms

2007-07-18 Thread Mike Krell

Does anyone know how to configure JMS with Axis?  I'm using 1.4 and can't
seem to get it going.  I've looked at the docs and samples but still
struggling.  Thanks


Re: WSDL2C

2007-07-18 Thread Mustafa Cavus

Hi,

I haven't a file "axis.jar". Why It doesn't works if I add the CLASSPATH
variable to the enviroment variables? I have tested if java search in this
directory and it was successful. What is the problem?

Thanks

m. cavus

2007/7/18, Nanjappa B K <[EMAIL PROTECTED]>:


 Hi,

Point your classpath to axis.jar. Also you have to set all the
other additional jars required for WSDL2C in the classpath.



Alternatively, you can copy all the jars required for WSDL2C
into a folder and unjar them, set "." in the classpath, copy the wsdl file
into that folder and run the WSDL2C command.



Regards,

Nanjappa


 --

*From:* Mustafa Cavus [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, July 18, 2007 5:16 PM
*To:* axis-user@ws.apache.org
*Subject:* WSDL2C



Hello,

I have a problem wit WSDL2C.

I have read in the manual that I must add the CLASSPATH to the enviroment
variables, before I can use WSDL2C. I have added this:
CLASSPATH=/path-to-the-library/lib
export CLASSPATH

But I have always the same error if I want to generate stub and skeleton
with WSDL2C with the following command:

java org.apache.axis2.wsdl.WSDL2C -uri myArithmetik.wsdl -ss -sd -d adb -u

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis2/wsdl/WSDL2C

Thanks

M. Cavus



soapenv:Client

2007-07-18 Thread Steve Kruse
Hi All,

 

I'm trying to get an axis2 web service working but can't seem to get
past this error.  I have generated the code thru axis2's wsdl2java and
built and deployed it, but when I try to send something to it I get the
following stack trace thru using the SOAPMonitor.  Any help would be
greatly appreciated.

 

Thanks,

Steve

 

http://schemas.xmlsoap.org/soap/envelope/";>
soapenv:Clientorg.apa
che.xmlbeans.impl.values.XmlComplexContentImpl cannot be cast to
peoiws5.mdiapps.soap.HandleTrackInfoLiteEventDocumentorg.apache.axis2.AxisFault:
org.apache.xmlbeans.impl.values.XmlComplexContentImpl cannot be cast to
peoiws5.mdiapps.soap.HandleTrackInfoLiteEventDocument

at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:404)

at
com.am.service.xmlbeans.TrackLiteDataHandlerWSServiceMessageReceiverInOu
t.fromOM(TrackLiteDataHandlerWSServiceMessageReceiverInOut.java:322)
;

at
com.am.service.xmlbeans.TrackLiteDataHandlerWSServiceMessageReceiverInOu
t.invokeBusinessLogic(TrackLiteDataHandlerWSServiceMessageReceiverInOut.
java:42)

at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusine
ssLogic(AbstractInOutSyncMessageReceiver.java:42)

at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessa
geReceiver.java:95)

at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)

at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques
t(HTTPTransportUtils.java:233)

at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:118)


at
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:210)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:174)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:108)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
51)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87
0)

at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:665)

at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:528)

at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:81)

at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:685)

at java.lang.Thread.run(Thread.java:619)

Caused by: java.lang.ClassCastException:
org.apache.xmlbeans.impl.values.XmlComplexContentImpl cannot be cast to
peoiws5.mdiapps.soap.HandleTrackInfoLiteEventDocument

at
peoiws5.mdiapps.soap.HandleTrackInfoLiteEventDocument$Factory.parse(Hand
leTrackInfoLiteEventDocument.java:128)

at
com.am.service.xmlbeans.TrackLiteDataHandlerWSServiceMessageReceiverInOu
t.fromOM(TrackLiteDataHandlerWSServiceMessageReceiverInOut.java:220)
;

... 22 more



 

 



Problems with Exception and Enum

2007-07-18 Thread Darren Clarke
Hello

I've built an Axis2 service which is consumed by a C# application and this
was working fine until I added a few new methods that require Enum
parameters or which return exceptions, both of which are causing WSDL
errors.


In the case of the Exceptions (e.g. in this case my SystemException extends
java.lang.Exception), the generated WSDL looks like this:

  [snip]
  http://lgp.evolvegaming.com/xsd";>
  http://util.java/xsd"/>
  
  
  
  
  
  
  
  
[snip]

and the MS WSDL parser (wsdl.exe) gives me the following schema validation
error:

Schema item 'complexType' named 'SystemException' from namespace
'http://lgp.evolvegaming.com/xsd' is invalid. Undefined complexType
'http://www.w3.org/2001/XMLSchema:Exception' is used as a base for complex
type extension.


The Enum problem is very similar - the generated WSDL looks like this (in
this example for my GameType enum):

[snip]


   
  
 

 
  
   


and the parser gives me the following schema validation error:

Schema item 'complexType' named 'GameType' from namespace
'http://lgp.evolvegaming.com/xsd' is invalid. Undefined complexType
'http://www.w3.org/2001/XMLSchema:Enum' is used as a base for complex type
extension.


It seems a similar problem in both cases - the types are trying to extend
from bases  and  where the xs namespace is defined at
the very top of the WSDL as:
http://www.w3.org/2001/XMLSchema"; [snip]>

but the parser is unable to resolve these two base-types.


Is this a known problem?  I've found a few things on the web regarding Enum
problems in general, but nothing about the problem with Exceptions.  Am I
doing something wrong, or is this a problem for which there's a workaround?

BTW I'm using Axis2 v1.2.  I've tried to distil the important bits from the
WSDL, but can supply the full doc (or the Java interface code) if it helps.

Thanks
Darren



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



RE: Axis2 1.2 SOAPMonitor

2007-07-18 Thread Michael.Davis
Also, tcpmonitor looks just like the soapmonitor and it's very easy to use.
 
http://ws.apache.org/commons/tcpmon/
 

cheers,
md
  

-Original Message-
From: Co Braspenning [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 18, 2007 6:52 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 1.2 SOAPMonitor


Hi Madhav, 

You can use the stand alone SOAPUI program for this purpose, i think.
SOAPUI can be found on SourceForge.

Co

Op 18-jul-2007, om 12:46 heeft < [EMAIL PROTECTED]> < [EMAIL PROTECTED]> het 
volgende geschreven:


Hi,
 
Can we use soap monitor without any web app container (Tomcat etc.). I mean the 
module archive 'soapmonitor-1.2.mar' is already present in 
'C:\axis2-1.2\repository\modules' directory? I'm using the 'axis2server.bat' 
command to start the axis server (Axis2 1.2).
 
Thanks, 
Madhav 





RE: axis problem with (re)deployment of ear in jboss 4.0.5

2007-07-18 Thread BOUCHEZ Romain
Hi again,
 
Sorry to disturb you, but anybody has encounterd this error :
java.lang.LinkageError: loader constraints violated when linking
javax/xml/soap/SOAPMessage class
at
org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.
java:500)
 
I don't know where to search!
 
thanks,
Romain




From: BOUCHEZ Romain 
Sent: Tuesday, July 17, 2007 4:58 PM
To: axis-user@ws.apache.org
Subject: axis problem with (re)deployment of ear in jboss 4.0.5


 
Hi,
 
I have problem with the deployment of my application using axis:
 
At the begining it's ok, my application works and I can create object
with WS. But when I replace the .ear in the deploy/ folder, it doesn't
work anymore.
 
In jboss logs, I can see that the application is undeployed then
deployed. But when I want use my application I have this error :
 
2007-07-17 15:13:07,328 DEBUG [org.jboss.deployment.MainDeployer] End
deployment start on package: ads20-app-2.0.ear
2007-07-17 15:13:07,328 DEBUG [org.jboss.deployment.MainDeployer]
Deployed package:
file:/opt/jboss-4.0.5.GA/server/video/deploy/ads20-app-2.0.ear
2007-07-17 15:14:37,031 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/ads20-
ws].[AxisServlet]] Servlet.service() for servlet AxisServlet threw
exception
java.lang.LinkageError: loader constraints violated when linking
javax/xml/soap/SOAPMessage class
at
org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.
java:500)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(WSDDD
eployment.java:503)
at
org.apache.axis.configuration.FileProvider.getDeployedServices(FileProvi
der.java:296)
at
org.apache.axis.transport.http.AxisServlet.reportAvailableServices(AxisS
ervlet.java:482)
at
org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j
ava:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:175)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:432)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:74)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnecti
onValve.java:156)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorker
Thread.java:112)
at java.lang.Thread.run(Thread.java:595)
2007-07-17 15:14:40,131 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/ads20-
ws].[AxisServlet]] Servlet.service() for servlet AxisServlet threw
exception
java.lang.LinkageError: loader constraints violated when linking
javax/xml/soap/SOAPMessage class
at
org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.
java:500)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(WSDDD
eployment.java:503)
at
org.apache.axis.configuration.FileProvider.getDeployedServices(FileProvi
der.java:296)
at
org.apache.axis.transport.http.AxisServlet.reportAvailableServices(AxisS
ervlet.java:482)
at
org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j
ava:327)
at javax.

Re: a bug in the "Axis 2 Service Archiver" Eclipse plugin?

2007-07-18 Thread albert quinn

 Hi Lahiru !! :

 Many thanks for spending your time with my newbie questions, too.
I'm using the "Axis2_Service_Archiver_1.0.0". Thanks for the
screenshot and the zipped project, I've tried it and it worked with
your project, but when I try with my own project (doing exactly same
things I've done to use the plugin with your project) it fails and I
don't know why.

 I think there is a problem when the plugin fails to find the class
once, I think it stores something somewhere and then it fails again
and again...

 After spending many hours with that not finding anything, I'm trying
now with Ant, but I've found a new problem reported on my last post...
:(

 MANY thanks again for your time. I apologize again for this
questions :(. Regards :


Albert



2007/7/18, Lahiru Sandakith <[EMAIL PROTECTED]>:

Hi Albert,

please tell us the version of the plugin that you are using.

using version 1.2.1, I was able to successfully go through smoothly with
eclipse service archive plugin.

I am attaching a TestProject that I have used and also the screenshot load
the class.

Thanks

Lahiru




On 7/18/07, albert quinn < [EMAIL PROTECTED]> wrote:
>
>   Hi !! :
>
>   I've not got answer to my last post "POJO Web Service yes or not
> question", but I haven't given up and keep on trying things. I think
> there is a bug in the "Axis 2 Service Archiver" Eclipse plugin. I'll
> try to explain it :
>
>   I've created a new Eclipse project with differente folder for source
> and classes. In the "src" folder I've created the "code.prueba"
> package where I've put the " StockQuoteService.java" example from the
> Axis 2 quick start guide. Then I've used the "Axis 2 code generator"
> Eclipse plugin to generate a WSDL from it. The I've used the plugin
> again to generate the client and server code. Then I've run the "Axis
> 2 Service Archiver" choosing the bin folder of my new project, Next,
> "Skip WSDL" option, Next, Next (no jar files needed), "Generate the
> service xml automatically", Next, then nothing happens... I can't see
> the next plugin screen but no errors are showed... long life to the
> user-friendly software  ;)
>
>   If I choose "Cancel" and run the "Axis 2 Service Archiver" again,
> then, when I push the "Next" button to see the first plugin Screen...
> nothing happens, but if I push the "Next" button again, then I can see
> the first plugin screen... and then I can keep on till the "Generate
> the service xml automatically" screen, then I push "Next" button and
> again... nothing happens... no errors reported...
>
>
-
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



--
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F
-
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] ConcurrentModificationException on Statefu ll WebService

2007-07-18 Thread Jochen Zink
Thanks,

okay, I will try a nightly build and give you a feedback.

Thanks for the fast reply!




> -Ursprüngliche Nachricht-
> Von: axis-user@ws.apache.org
> Gesendet: 18.07.07 15:32:16
> An: axis2 
> Betreff: Re: [Axis2] ConcurrentModificationException on Statefull WebService


> 
> Dims,
> 
> yes, you worked around JIRA 1053 (see the comments on the bug page), but
> that problem was on the client side -- this is on the server side.
> 
> Michele
> 
> On Wed, 2007-07-18 at 09:23 -0400, Davanum Srinivas wrote:
> > Jochen,
> > 
> > Please try a nightly build. I remember fixing at least one of these
> > Concurrent Exception
> > 
> > thanks,
> > dims
> > 
> > On 7/18/07, Jochen Zink <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > >
> > > I'm using Axis2 1.1.1 with WS-Addressing module engaged.
> > >
> > > I have a statefull Webservice (scope="sopasession") which receives binary 
> > > Documents from clients.
> > >
> > > At the moment I try to build a stress test with JMeter. 100 clients are 
> > > calling the service. Some calls fails with the following message:
> > > ERROR [AxisServlet] java.util.ConcurrentModificationException
> > >
> > > There is no StackTrace or ErrorMessage included. I figured out, that this 
> > > Exception is cached on line 285 of AxisServlet class. But I don't know 
> > > where the problem is. I'm pretty sure, that this Exception does not come 
> > > from my ServiceClass. I surround every javaCode with try {...} 
> > > catch(Exception e) and inside the ServiceClass is nothing which can be 
> > > accessed from different threads. No static content or something else.
> > >
> > > I figured out, that the problem mostly happened, after axis destroys a 
> > > service instance (or a couple of service instances)
> > >
> > > 1. Service clients calls the service
> > > 2. The configured timeout of service lifetime runs out, for some clients
> > > 3. Another(!) clients calls the service. -> 
> > > ConcurrentModificationException
> > >
> > > Only in Stress Situations (ca 100 clients) some ServiceCalls end up with 
> > > a ConcurrentModificationException happens.
> > >
> > > Is there any problem known?
> > >
> > > I just find two JIRA entry's, but I'm not sure if these entries pointing 
> > > to my problem:
> > > http://issues.apache.org/jira/browse/AXIS2-2662
> > > http://issues.apache.org/jira/browse/AXIS2-1053
> > >
> > > Thanks a lot!
> > >
> > > ___
> > > Jetzt neu! Schuetzen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
> > > kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00
> > >
> > >
> > > -
> > > 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]
> 
> 


_
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=0066


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



Sharing Schemas Across Services

2007-07-18 Thread Alejandro Calbazana

Hello,

I just wanted to ping the group and ask what general practice is 
regarding sharing schema types across services. 

I have a set of services that all rely on common types such as general 
faults types and canonical schema for orders, line items, and 
customers.  I am curious how people are sharing schema from a source 
control perspective (particularly SVN).  I can see a couple of ways of 
doing this:


- Allocate a common project in an SCM that contains common schemas, then 
refer to this project in the dependent project (using externals in SVN, 
for example).

- Create local copies of common schema in the target project.
- Point your dependency to a web service/URL instance that houses the 
common types.


Are there others?  What works best for you?

Thanks!

Al


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



Re: [Axis2] ConcurrentModificationException on Statefull WebService

2007-07-18 Thread Michele Mazzucco
Dims,

yes, you worked around JIRA 1053 (see the comments on the bug page), but
that problem was on the client side -- this is on the server side.

Michele

On Wed, 2007-07-18 at 09:23 -0400, Davanum Srinivas wrote:
> Jochen,
> 
> Please try a nightly build. I remember fixing at least one of these
> Concurrent Exception
> 
> thanks,
> dims
> 
> On 7/18/07, Jochen Zink <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I'm using Axis2 1.1.1 with WS-Addressing module engaged.
> >
> > I have a statefull Webservice (scope="sopasession") which receives binary 
> > Documents from clients.
> >
> > At the moment I try to build a stress test with JMeter. 100 clients are 
> > calling the service. Some calls fails with the following message:
> > ERROR [AxisServlet] java.util.ConcurrentModificationException
> >
> > There is no StackTrace or ErrorMessage included. I figured out, that this 
> > Exception is cached on line 285 of AxisServlet class. But I don't know 
> > where the problem is. I'm pretty sure, that this Exception does not come 
> > from my ServiceClass. I surround every javaCode with try {...} 
> > catch(Exception e) and inside the ServiceClass is nothing which can be 
> > accessed from different threads. No static content or something else.
> >
> > I figured out, that the problem mostly happened, after axis destroys a 
> > service instance (or a couple of service instances)
> >
> > 1. Service clients calls the service
> > 2. The configured timeout of service lifetime runs out, for some clients
> > 3. Another(!) clients calls the service. -> ConcurrentModificationException
> >
> > Only in Stress Situations (ca 100 clients) some ServiceCalls end up with a 
> > ConcurrentModificationException happens.
> >
> > Is there any problem known?
> >
> > I just find two JIRA entry's, but I'm not sure if these entries pointing to 
> > my problem:
> > http://issues.apache.org/jira/browse/AXIS2-2662
> > http://issues.apache.org/jira/browse/AXIS2-1053
> >
> > Thanks a lot!
> >
> > ___
> > Jetzt neu! Schuetzen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
> > kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00
> >
> >
> > -
> > 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] ConcurrentModificationException on Statefull WebService

2007-07-18 Thread Davanum Srinivas

Jochen,

Please try a nightly build. I remember fixing at least one of these
Concurrent Exception

thanks,
dims

On 7/18/07, Jochen Zink <[EMAIL PROTECTED]> wrote:

Hello,

I'm using Axis2 1.1.1 with WS-Addressing module engaged.

I have a statefull Webservice (scope="sopasession") which receives binary 
Documents from clients.

At the moment I try to build a stress test with JMeter. 100 clients are calling 
the service. Some calls fails with the following message:
ERROR [AxisServlet] java.util.ConcurrentModificationException

There is no StackTrace or ErrorMessage included. I figured out, that this 
Exception is cached on line 285 of AxisServlet class. But I don't know where 
the problem is. I'm pretty sure, that this Exception does not come from my 
ServiceClass. I surround every javaCode with try {...} catch(Exception e) and 
inside the ServiceClass is nothing which can be accessed from different 
threads. No static content or something else.

I figured out, that the problem mostly happened, after axis destroys a service 
instance (or a couple of service instances)

1. Service clients calls the service
2. The configured timeout of service lifetime runs out, for some clients
3. Another(!) clients calls the service. -> ConcurrentModificationException

Only in Stress Situations (ca 100 clients) some ServiceCalls end up with a 
ConcurrentModificationException happens.

Is there any problem known?

I just find two JIRA entry's, but I'm not sure if these entries pointing to my 
problem:
http://issues.apache.org/jira/browse/AXIS2-2662
http://issues.apache.org/jira/browse/AXIS2-1053

Thanks a lot!

___
Jetzt neu! Schuetzen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00


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





--
Davanum Srinivas :: http://davanum.wordpress.com

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



[Axis2] ConcurrentModificationException on Statefull WebService

2007-07-18 Thread Jochen Zink
Hello,

I'm using Axis2 1.1.1 with WS-Addressing module engaged. 

I have a statefull Webservice (scope="sopasession") which receives binary 
Documents from clients.

At the moment I try to build a stress test with JMeter. 100 clients are calling 
the service. Some calls fails with the following message:
ERROR [AxisServlet] java.util.ConcurrentModificationException

There is no StackTrace or ErrorMessage included. I figured out, that this 
Exception is cached on line 285 of AxisServlet class. But I don't know where 
the problem is. I'm pretty sure, that this Exception does not come from my 
ServiceClass. I surround every javaCode with try {...} catch(Exception e) and 
inside the ServiceClass is nothing which can be accessed from different 
threads. No static content or something else.

I figured out, that the problem mostly happened, after axis destroys a service 
instance (or a couple of service instances)

1. Service clients calls the service
2. The configured timeout of service lifetime runs out, for some clients
3. Another(!) clients calls the service. -> ConcurrentModificationException

Only in Stress Situations (ca 100 clients) some ServiceCalls end up with a 
ConcurrentModificationException happens.

Is there any problem known?

I just find two JIRA entry's, but I'm not sure if these entries pointing to my 
problem:
http://issues.apache.org/jira/browse/AXIS2-2662
http://issues.apache.org/jira/browse/AXIS2-1053

Thanks a lot!

___
Jetzt neu! Schuetzen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate 
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00


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



RE: WSDL2C

2007-07-18 Thread Nanjappa B K
Hi,

Point your classpath to axis.jar. Also you have to set all the
other additional jars required for WSDL2C in the classpath.

 

Alternatively, you can copy all the jars required for WSDL2C
into a folder and unjar them, set "." in the classpath, copy the wsdl file
into that folder and run the WSDL2C command.

 

Regards,

Nanjappa

 

  _  

From: Mustafa Cavus [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 18, 2007 5:16 PM
To: axis-user@ws.apache.org
Subject: WSDL2C

 

Hello,

I have a problem wit WSDL2C.

I have read in the manual that I must add the CLASSPATH to the enviroment
variables, before I can use WSDL2C. I have added this:
CLASSPATH=/path-to-the-library/lib
export CLASSPATH 

But I have always the same error if I want to generate stub and skeleton
with WSDL2C with the following command:

java org.apache.axis2.wsdl.WSDL2C -uri myArithmetik.wsdl -ss -sd -d adb -u

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis2/wsdl/WSDL2C

Thanks 

M. Cavus



Re: Unexpected subelement error using useOriginalWsdl in Axis2

2007-07-18 Thread Mike Patton
Jose,
   
  Does your OutputData class extend a java collection object or similar data 
type? If so, then this is why you are getting such an error. You should return 
a single element; even if you have an array or so to return, wrap that in a 
property of another class and return that other type instead.
  Hope that helps.
   
  Mike
   
   
   
   
   
   
  

Jose Luis Alba <[EMAIL PROTECTED]> wrote:
  Hi,

- I'm using Axis2 1.2

I've create a POJO test web service that resides in package 
dev.axis2.ws.service and uses in/out bean data from package dev.axis2.ws.data. 

The interface is:

package dev.axis2.ws.service;

import dev.axis2.ws.data.InputData;
import dev.axis2.ws.data.OutputData;

public interface TestService {
public OutputData testData(InputData input);
}

1) When I use automatic wsdl generation from Axis (in the services.xml file) 
all goes well. Here is the SOAP response of the execution:

http://www.w3.org/2003/05/soap-envelope";>
  
http://service.ws.axis2.dev/xsd";>
  
http://data.ws.axis2.dev/xsd";>datos de entrada
  
  
  


2) Things goes wrong when I use the parameter useOriginalWsdl in the 
services.xml file. Here the services.xml file:


  
http://www.w3.org/2004/08/wsdl/in-only";
  class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
http://www.w3.org/2004/08/wsdl/in-out";
  class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
  
  dev.axis2.ws.service.TestServiceImpl
  true
  true


The SOAP response I receive in the client side is:

http://www.w3.org/2003/05/soap-envelope";>
  
http://service.ws.axis2.dev/xsd";>
  
datos de entrada
  

  


In this case the namespace for the data element (it should map to 
http://data.ws.axis2.dev/xsd)  is missing and the client throws and Unexpected 
subelement exception.

I have tried:

- Axis2 1.2
- Axis2 1.1.1
- Axis2 last snapshot
- Using the wsdl generated automatically
- Using the wsld generated by axis2 tools (ant task and by command line)

In all cases the behavior is the same: Unexpeted subelement and the missing 
namespace in the response message.

Could you help me please? Thanks in advance!

Jose Luis



-
  
Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden! .


   
-
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection. 

Re: a bug in the "Axis 2 Service Archiver" Eclipse plugin?

2007-07-18 Thread albert quinn

 Hi again david !!! :

 Many, many, MANY thanks for spending time helping me!. I
apologize for all these newbie questions!!. I'll try to answer all the
newbie questions if a become an advanced user!!.

 I've been doing what you told me... so I've learning about Ant and
now I'm trying with Ant. I've created a project in Eclipse with these
files :

org.testing.MyTestingService
org.testing.client.MyTestingServiceRPCClient
org.testing.data.External
org.testing.data.Internal

(External and Internal are the same as in the previous posts, External
class has a boolean field, a String field and a Internal field.
Internal has a String field. Those fields are private and I've getters
and setters for those fields). MyTestingService has only one method
called "retExternal" with only this code inside :

 return new External("external message", true, new Internal
("internal message"));

I've created a "services.xml" and a "build.xml" to generate the ".aar"
file to deploy the service and to compile the RPC client. The Ant
tasks complete successfully. Then I've deployed the service and I've
tried it requesting this URL from my browser :
http://localhost:8080/axis2/services/MyTestingService/retExternal

 All seems to work because I get this answer :


 
   true
   external message
   
 internal message
   
 


Then I tried my RPC client wich has this code :

package org.testing.client;

import javax.xml.namespace.QName;
import org.apache.axis2.AxisFault;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.rpc.client.RPCServiceClient;
import org.testing.data.*;

public class MyTestingServiceRPCClient {

 public static void main(String[] args) {
   try {
   RPCServiceClient serviceClient = new RPCServiceClient();
   Options options = serviceClient.getOptions();
   EndpointReference targetEPR = new
EndpointReference("http://localhost:8080/axis2/services/MyTestingService";);
   options.setTo(targetEPR);
   QName op = new QName("http://testing.org/xsd";, "retExternal");
   Object[] opArgs = new Object[] { };
   Class[] returnTypes = new Class[] { External.class };
   Object[] response = serviceClient.invokeBlocking(op, opArgs,
returnTypes)
   External result = (External) response[0];
   if (result == null)
   System.out.println("ERROR !!! return == null");
   else {
System.out.println("Happy ending !!!. It returned :");
System.out.println("exMessage : " + result.getExMessage());
System.out.println("error : " + result.isError());
Internal internal = result.getInternal();
if(internal == null)
  System.out.println("ERROR !!! internal == null");
else
  System.out.println("internal message  : " + 
internal.getInternal());
  }

 } catch(AxisFault fault) {
 System.out.println("ERROR !!! AxisFault.");
 fault.printStackTrace();
 } catch(Exception e) {
 System.out.println("ERROR !!! Exception.");
 e.printStackTrace();
 }
}
}

When I run this client I get this Exception :

ERROR !!! AxisFault.
org.apache.axis2.AxisFault: org.testing.data.External
at 
org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:28)
at 
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:370)
at 
org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:676)
at 
org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:624)
at 
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:560)
at 
org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:99)
at 
org.testing.client.MyTestingServiceRPCClient.main(MyTestingServiceRPCClient.java:29)
Caused by: java.lang.InstantiationException: org.testing.data.External
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at 
org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:26)
... 6 more

 It seems a problem deserializing the org.testing.data.External class
but I don't know what to do to fix the problem. Any idea of what could
i do to get this working?

 Thanks in advance if anybody could help me.


2007/7/18, david <[EMAIL PROTECTED]>:

Hello Albert, The StockQuoteService sample was designed to be built and run 
from the command-line. Try to setup you new StockQuoteService from the 
command-line (using ANT). HTH, David.

albert quinn wrote ..
>   Hi !! :
>
>   I've not got answer to my last post "POJO Web Service yes or not
> question", but I haven't given up and keep on trying things. I think
> there is a bug in the "Axis 2 Service Archiver" Eclipse plugin. I'll
> try to explain it :
>
>   I've created a new Eclipse project with differente folder for source
> and classes. In the "src" folder I've cre

RE: WSDL2C

2007-07-18 Thread ranjan.madhav
I think you will have to include all the jar files in that directory
instead of just only the containing directory. You can look in any batch
file script for a command to include a set of files instead of
explicitly specifying every one of them.
 
-Madhav



From: Mustafa Cavus [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 18, 2007 5:16 PM
To: axis-user@ws.apache.org
Subject: WSDL2C


Hello,

I have a problem wit WSDL2C.

I have read in the manual that I must add the CLASSPATH to the
enviroment variables, before I can use WSDL2C. I have added this:
CLASSPATH=/path-to-the-library/lib
export CLASSPATH 

But I have always the same error if I want to generate stub and skeleton
with WSDL2C with the following command:

java org.apache.axis2.wsdl.WSDL2C -uri myArithmetik.wsdl -ss -sd -d adb
-u
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis2/wsdl/WSDL2C

Thanks 

M. Cavus




Re: OutofMemoryError thrown from Axis class

2007-07-18 Thread Tammy Dugan
I had the same problem. I had to return large soap xml (100 MB or more). 
Take a look at this thread:


[AXIOM] How to serialize axiom document without building objects 



http://marc.info/?l=axis-user&m=118313995713856&w=2

I was able to stream the xml from a database as well as stream it as it 
was being created.


Hope this helps.

Tammy

Nanjappa B K wrote:


Hi,
I am trying to access a webservice method from a stand alone program. 
I get correct results for smaller requests, but when I request for a 
large dataset I get OutofMemoryError.
I tried profiling the heap areas of both the client and the server and 
found them to be normal.
I guess axis is not able to handle such a large dataset(the xml 
generated might be around 8Mb in this case) .


Is there a limit on the message size that can be processed by Axis? Is 
there any limitation on the maximum size of a soap message? If true, 
any idea on how to increase this limit?
I would highly appreciate any suggestions or pointers regarding this. 
Thank You.


 

 


Regards,

Nanjappa



--
Tammy Dugan
Computer Programmer

Regenstrief Institute, Inc.
Medical Informatics
Health Information and Translational Sciences (HITS) Building
410 West 10th Street, Suite 2000
Indianapolis, IN 46202
Main: 317.423.5500
Fax: 317.423.5695
IU campus mail address: HS, 2000

(317) 423 - 5541

Confidentiality Notice: The contents of this message and any files transmitted 
with it may contain confidential and/or privileged information and are intended 
solely for the use of the named addressee(s). Additionally, the information 
contained herein may have been disclosed to you from medical records with 
confidentiality protected by federal and state laws. Federal regulations and 
State laws prohibit you from making further disclosure of such information 
without the specific written consent of the person to whom the information 
pertains or as otherwise permitted by such regulations. A general authorization 
for the release of medical or other information is not sufficient for this 
purpose.

If you have received this message in error, please notify the sender by return 
e-mail and delete the original message. Any retention, disclosure, copying, 
distribution or use of this information by anyone other than the intended 
recipient is strictly prohibited.



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



Re: Use SOAP-Service to query database

2007-07-18 Thread Joe Nathan


Oliver Hirschi-2 wrote:
> 
> Is there a generic framework for doing that?
> 
SOAP means platform and programming language neutral,
which means it supports limited data types. Obvious choice
is String. To return data, one obvious choice is envelop into
XML string and return it! So your clients should understand
your xml string.

regards.

-- 
View this message in context: 
http://www.nabble.com/Use-SOAP-Service-to-query-database-tf4097472.html#a11667149
Sent from the Axis - User mailing list archive at Nabble.com.


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



WSDL2C

2007-07-18 Thread Mustafa Cavus

Hello,

I have a problem wit WSDL2C.

I have read in the manual that I must add the CLASSPATH to the enviroment
variables, before I can use WSDL2C. I have added this:
CLASSPATH=/path-to-the-library/lib
export CLASSPATH

But I have always the same error if I want to generate stub and skeleton
with WSDL2C with the following command:

java org.apache.axis2.wsdl.WSDL2C -uri myArithmetik.wsdl -ss -sd -d adb -u

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis2/wsdl/WSDL2C

Thanks

M. Cavus


Re: [axis2] SwA problem (DataHandler/DataSource problem)

2007-07-18 Thread Radek Adamiak

I don't know if this will help you but there is another way. with
org.apache.axiom.attachments.ByteArrayDataSource but you
will have to transform your text data into bytes and then transform them
into ByteArrayDataSource.


Thanx, this is what I need!

zolv

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



Re: Axis2 1.2 SOAPMonitor

2007-07-18 Thread Co Braspenning

Hi Madhav,

You can use the stand alone SOAPUI program for this purpose, i think.
SOAPUI can be found on SourceForge.

Co

Op 18-jul-2007, om 12:46 heeft <[EMAIL PROTECTED]>  
<[EMAIL PROTECTED]> het volgende geschreven:



Hi,

Can we use soap monitor without any web app container (Tomcat  
etc.). I mean the module archive 'soapmonitor-1.2.mar' is already  
present in 'C:\axis2-1.2\repository\modules' directory? I'm using  
the 'axis2server.bat' command to start the axis server (Axis2 1.2).


Thanks,
Madhav




Axis2 1.2 SOAPMonitor

2007-07-18 Thread ranjan.madhav
Hi,
 
Can we use soap monitor without any web app container (Tomcat etc.). I
mean the module archive 'soapmonitor-1.2.mar' is already present in
'C:\axis2-1.2\repository\modules' directory? I'm using the
'axis2server.bat' command to start the axis server (Axis2 1.2).
 
Thanks, 
Madhav 



RE: [axis2] SwA problem (DataHandler/DataSource problem)

2007-07-18 Thread Jorge Fernandez

Hi Zolv,


I don't know if this will help you but there is another way. with  
org.apache.axiom.attachments.ByteArrayDataSource but you will have to transform 
your text data into bytes and then transform them into ByteArrayDataSource. 
There is an example in axis2 distribution to attach a file with SwA.

Regards,

Jorge Fernández


Radek Adamiak <[EMAIL PROTECTED]> escribió: Hi

I have found many tutorials and samples how to insert file attachment
into SOAP message using Axis2:
http://wso2.org/library/1148
http://ws.apache.org/axis2/1_2/mtom-guide.html
...
but I didn't find how to put as attachment simple text using SwA (not
MTOM with encoding into Base64).

Esentially, I don't know how to instantiate class DataSource. There
are only FileDataSource and URLDataSource classes and I didn't find
any other ways to put attachment into message, only those ones.

Thx for eventual reply
zolv

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




-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

Re: a bug in the "Axis 2 Service Archiver" Eclipse plugin?

2007-07-18 Thread david
Hello Albert, The StockQuoteService sample was designed to be built and run 
from the command-line. Try to setup you new StockQuoteService from the 
command-line (using ANT). HTH, David.

albert quinn wrote ..
>   Hi !! :
> 
>   I've not got answer to my last post "POJO Web Service yes or not
> question", but I haven't given up and keep on trying things. I think
> there is a bug in the "Axis 2 Service Archiver" Eclipse plugin. I'll
> try to explain it :
> 
>   I've created a new Eclipse project with differente folder for source
> and classes. In the "src" folder I've created the "code.prueba"
> package where I've put the "StockQuoteService.java" example from the
> Axis 2 quick start guide. Then I've used the "Axis 2 code generator"
> Eclipse plugin to generate a WSDL from it. The I've used the plugin
> again to generate the client and server code. Then I've run the "Axis
> 2 Service Archiver" choosing the bin folder of my new project, Next,
> "Skip WSDL" option, Next, Next (no jar files needed), "Generate the
> service xml automatically", Next, then nothing happens... I can't see
> the next plugin screen but no errors are showed... long life to the
> user-friendly software  ;)
> 
>   If I choose "Cancel" and run the "Axis 2 Service Archiver" again,
> then, when I push the "Next" button to see the first plugin Screen...
> nothing happens, but if I push the "Next" button again, then I can see
> the first plugin screen... and then I can keep on till the "Generate
> the service xml automatically" screen, then I push "Next" button and
> again... nothing happens... no errors reported...
> 
> -
> 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] logging configuration for each service (classloading)

2007-07-18 Thread Michele Mazzucco
On Wed, 2007-07-18 at 12:19 +0200, Fred Hauschel wrote:
> does anybody uses different loggings for different services?

Fred,

I do (and I guess many others). Simply put the log4j.properties into
your .aar (or .mar) file.


Michele


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



[axis2] logging configuration for each service (classloading)

2007-07-18 Thread Fred Hauschel

Hey all,
does anybody uses different loggings for different services?

To log the axis2 information, i need to choose the logger in
"WEB-INF\classes\commons-logging.properties".
But i also nedd the commons-logging.jar "WEB-INF\lib" If i use Log4j, it
will find my "WEB-INF\classes\og4j.properties" and "WEB-INF\lib\log4j.jar" .

So it is impossible to use "private static final Log LOG = LogFactory.getLog
(xyz.class);" because the factory always will use the global configured
(classloaded) Logfactory!!

In a ServiceLifeCycle implementation, it is possible to load a different
property file an recall the "PropertyConfigurator.configure(url);" but this
will change the configuration from the axis2 classloader and not the config
from my service classloader! because log4j was loaded from axis2.

I I try a workarround: use simplelog in axis2 and log4j in my services, so
it will fail because "private static final Log LOG = LogFactory.getLog(
xyz.class);" will return the logger spezified in "WEB-INF\classes\commons-
logging.properties" and not my log4jlogger that have been configured in my
ServiceLifeCycle Class ;-(


heelllp!
Fredy


Client Handler for only one Service (clint-config.wsdd)

2007-07-18 Thread Markus Knoop
Hello,

first i must say, i'm new in the development of Web
Services, but it's important for me to solve this
problem.

I tried to add the SimpleSessionHandler into the
request and response flow into my own
client-config.wsdd. I tried this way:

http://xml.apache.org/axis/wsdd/";
   
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>

 

  
  

  



But this didn't work, the client did't use the
SimpleSessionHandler and make a new request without an
id. When i add the handler into the flow of the
globalConfiguration, then it works, but for all
services.  The name of the service equals the name on
serverside. I didn't see my mistake.

Thanks for answers,
Markus Knoop


  __  Die etwas anderen Infos rund um das 
Thema Reisen. BE A BETTER WELTENBUMMLER!  www.yahoo.de/clever

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



Re: hot deployment configuration

2007-07-18 Thread Deepal Jayasinghe
Hi ranjan,

Nope at the moment you can not do that , please create a JIRA request so
that we will fix the issue for the next release.

Thanks
Deepal
> Hi,
>  
> Can we configure the time interval which Axis2 takes to poll on it's
> repository directory for any modifications in .aar files?
>  
> Thanks,
> Madhav


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



problem in calling Axis2 service from java client

2007-07-18 Thread ranjan.madhav
Hi,
 
Can someone help me find out the error in this simple client program?
I'm using axis2server.bat included in the Axis2 1.2 distribution on
WinXp SP2.
 
I'm getting the following exception:
Exception in thread "main" org.apache.axis2.AxisFault: Exception
occurred while trying to invoke service method getEmployeeInfo
 at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java
:434)
 at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:373)
 at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)
 at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520
)
 at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:500
)
 at
org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceCl
ient.java:97)
 at ws.example.ServiceTest1.main(ServiceTest1.java:28)

when I try to run the following client code ('Employee' is a simple java
bean):

package ws.example;

import javax.xml.namespace.QName;
import org.apache.axis2.AxisFault;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.rpc.client.RPCServiceClient;
import com.bt.ds.ws.Employee;

/**
 * 1. Request-Response, Blocking Client
 */
public class ServiceTest1
{
 public static void main(String[] args) throws AxisFault
 {
  RPCServiceClient rpcServiceClient = null;
  Options options = null;
  Object[] response = null;
  EndpointReference endpointReference = new
EndpointReference("http://localhost:8080/axis2/services/EmployeeInfoImpl
");
  rpcServiceClient = new RPCServiceClient();
  options = rpcServiceClient.getOptions();
  options.setTo(endpointReference);
  rpcServiceClient.setOptions(options);
  QName name = new QName("http://ws.ds.bt.com";, "getEmployeeInfo");
  Object[] objArgs = { 7369 };
  Class[] returnTypes = new Class[] { Employee.class };
  response = rpcServiceClient.invokeBlocking(name, objArgs,
returnTypes);
  Employee employee = (Employee) response[0];
 }
}


for which the wsdl (@ the URL
http://localhost:8080/axis2/services/EmployeeInfoImpl?wsdl )is:

http://ws.ds.bt.com";
xmlns:ns1="http://org.apache.axis2/xsd";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:ns0="http://ws.ds.bt.com/xsd";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
targetNamespace="http://ws.ds.bt.com";>
  EmployeeInfoImpl 
 
 http://ws.ds.bt.com/xsd";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://ws.ds.bt.com/xsd";>
 
 
 
   
  
  
  
 
 
 
   
  
  
  
   
 
 
   
   
   
   
   
   
  
  
  
  
 
   
  
 
   
  
 
 
  http://www.w3.org/2006/05/addressing/wsdl";
message="axis2:getEmployeeInfoMessage" wsaw:Action="urn:getEmployeeInfo"
/> 
   
  
  
 
  http://schemas.xmlsoap.org/soap/http";
style="document" /> 
 
   
 
   
  
 
   
  
  
  
 
  http://schemas.xmlsoap.org/soap/http";
style="document" /> 
 
  

 
   
  
 
   
  
  
  
 
   
 
   
 
   
  
 
   
  
  
  
 
 
  http://10.73.81.152:8080/axis2/services/EmployeeInfoImpl"; /> 
  
 
  http://10.73.81.152:8080/axis2/services/EmployeeInfoImpl"; /> 
  
 
  http://10.73.81.152:8080/axis2/services/EmployeeInfoImpl"; /> 
  
  
  

Thanks, 
Radha Ranjan Madhav 
BT India Pvt. Ltd. 
6th Floor, Tower B, RMZ Infinity | Old Madras Road 
Bangalore - 560009 

 


hot deployment configuration

2007-07-18 Thread ranjan.madhav
Hi,
 
Can we configure the time interval which Axis2 takes to poll on it's
repository directory for any modifications in .aar files?
 
Thanks, 
Madhav 



[axis2] SwA problem (DataHandler/DataSource problem)

2007-07-18 Thread Radek Adamiak

Hi

I have found many tutorials and samples how to insert file attachment
into SOAP message using Axis2:
http://wso2.org/library/1148
http://ws.apache.org/axis2/1_2/mtom-guide.html
...
but I didn't find how to put as attachment simple text using SwA (not
MTOM with encoding into Base64).

Esentially, I don't know how to instantiate class DataSource. There
are only FileDataSource and URLDataSource classes and I didn't find
any other ways to put attachment into message, only those ones.

Thx for eventual reply
zolv

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




OutofMemoryError thrown from Axis class

2007-07-18 Thread Nanjappa B K
Hi,
I am trying to access a webservice method from a stand alone program. I get
correct results for smaller requests, but when I request for a large dataset
I get OutofMemoryError. 
I tried profiling the heap areas of both the client and the server and found
them to be normal.
I guess axis is not able to handle such a large dataset(the xml generated
might be around 8Mb in this case) .

Is there a limit on the message size that can be processed by Axis? Is there
any limitation on the maximum size of a soap message? If true, any idea on
how to increase this limit?
I would highly appreciate any suggestions or pointers regarding this. Thank
You.

 

 

Regards,

Nanjappa



a bug in the "Axis 2 Service Archiver" Eclipse plugin?

2007-07-18 Thread albert quinn

 Hi !! :

 I've not got answer to my last post "POJO Web Service yes or not
question", but I haven't given up and keep on trying things. I think
there is a bug in the "Axis 2 Service Archiver" Eclipse plugin. I'll
try to explain it :

 I've created a new Eclipse project with differente folder for source
and classes. In the "src" folder I've created the "code.prueba"
package where I've put the "StockQuoteService.java" example from the
Axis 2 quick start guide. Then I've used the "Axis 2 code generator"
Eclipse plugin to generate a WSDL from it. The I've used the plugin
again to generate the client and server code. Then I've run the "Axis
2 Service Archiver" choosing the bin folder of my new project, Next,
"Skip WSDL" option, Next, Next (no jar files needed), "Generate the
service xml automatically", Next, then nothing happens... I can't see
the next plugin screen but no errors are showed... long life to the
user-friendly software  ;)

 If I choose "Cancel" and run the "Axis 2 Service Archiver" again,
then, when I push the "Next" button to see the first plugin Screen...
nothing happens, but if I push the "Next" button again, then I can see
the first plugin screen... and then I can keep on till the "Generate
the service xml automatically" screen, then I push "Next" button and
again... nothing happens... no errors reported...

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



Re: Unexpected subelement error using useOriginalWsdl in Axis2

2007-07-18 Thread Deepal Jayasinghe
Hi Jose ,
Please have a look at Axis2 1.3 RC1 release , I think we have fixed the
issue there.

http://people.apache.org/~deepal/axis2/1.3-RC1/

Thanks
Deepal
> Hi,
>
> - I'm using Axis2 1.2
>
> I've create a POJO test web service that resides in package
> dev.axis2.ws.service and uses in/out bean data from package
> dev.axis2.ws.data.
>
> The interface is:
>
> package dev.axis2.ws.service;
>
> import dev.axis2.ws.data.InputData;
> import dev.axis2.ws.data.OutputData;
>
> public interface TestService {
> public OutputData testData(InputData input);
> }
>
> 1) When I use automatic wsdl generation from Axis (in the services.xml
> file) all goes well. Here is the SOAP response of the execution:
>
> http://www.w3.org/2003/05/soap-envelope";>
>   
> http://service.ws.axis2.dev/xsd";>
>   
> http://data.ws.axis2.dev/xsd";>datos de entrada
>   
>   
>   
> 
>
> 2) Things goes wrong when I use the parameter useOriginalWsdl in the
> services.xml file. Here the services.xml file:
>
> 
>   
>mep="http://www.w3.org/2004/08/wsdl/in-only";
>   class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
>mep="http://www.w3.org/2004/08/wsdl/in-out";
>   class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
>   
>name="ServiceClass">dev.axis2.ws.service.TestServiceImpl
>   true
>name="modifyUserWSDLPortAddress">true
> 
>
> The SOAP response I receive in the client side is:
>
> http://www.w3.org/2003/05/soap-envelope";>
>   
> http://service.ws.axis2.dev/xsd";>
>   
> datos de entrada
>   
> 
>   
> 
>
> In this case the namespace for the data element (it should map to
> http://data.ws.axis2.dev/xsd)  is missing and the client throws and
> Unexpected subelement exception.
>
> I have tried:
>
> - Axis2 1.2
> - Axis2 1.1.1
> - Axis2 last snapshot
> - Using the wsdl generated automatically
> - Using the wsld generated by axis2 tools (ant task and by command line)
>
> In all cases the behavior is the same: Unexpeted subelement and the
> missing namespace in the response message.
>
> Could you help me please? Thanks in advance!
>
> Jose Luis
>
>
> 
>
> Sé un Mejor Amante del Cine
> ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
> .



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



Unexpected subelement error using useOriginalWsdl in Axis2

2007-07-18 Thread Jose Luis Alba
Hi,

- I'm using Axis2 1.2

I've create a POJO test web service that resides in package 
dev.axis2.ws.service and uses in/out bean data from package dev.axis2.ws.data. 

The interface is:

package dev.axis2.ws.service;

import dev.axis2.ws.data.InputData;
import dev.axis2.ws.data.OutputData;

public interface TestService {
public OutputData testData(InputData input);
}

1) When I use automatic wsdl generation from Axis (in the services.xml file) 
all goes well. Here is the SOAP response of the execution:

http://www.w3.org/2003/05/soap-envelope";>
  
http://service.ws.axis2.dev/xsd";>
  
http://data.ws.axis2.dev/xsd";>datos de entrada
  
  
  


2) Things goes wrong when I use the parameter useOriginalWsdl in the 
services.xml file. Here the services.xml file:


  
http://www.w3.org/2004/08/wsdl/in-only";
  class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
http://www.w3.org/2004/08/wsdl/in-out";
  class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
  
  dev.axis2.ws.service.TestServiceImpl
  true
  true


The SOAP response I receive in the client side is:

http://www.w3.org/2003/05/soap-envelope";>
  
http://service.ws.axis2.dev/xsd";>
  
datos de entrada
  

  


In this case the namespace for the data element (it should map to 
http://data.ws.axis2.dev/xsd)  is missing and the client throws and Unexpected 
subelement exception.

I have tried:

- Axis2 1.2
- Axis2 1.1.1
- Axis2 last snapshot
- Using the wsdl generated automatically
- Using the wsld generated by axis2 tools (ant task and by command line)

In all cases the behavior is the same: Unexpeted subelement and the missing 
namespace in the response message.

Could you help me please? Thanks in advance!

Jose Luis



   
-

Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!.


[Axis2] SOAPEnvelope from an input stream / OMElement ?

2007-07-18 Thread Angel Todorov

Hi guys,

We have the requirement to receive the SOAP response as an input stream ,
and thus I would like to create an instance of a SOAPEnvelope given an
InputStream. I have been looking at the AXIOM impl code (soap.*) as well as
the MessageContext's implementation, but found no obvious way to do that,
without significant rewriting of many parts.

The problem is that I don't want Axis2 to write it's own SOAPEnvelope and
body tags - I already have the whole SOAP message (not only the payload) ,
with all namespaces and stuff constructed in the tags , I just want to take
that whole soap envelope and create a SOAPEnvelope out of it.

Is there any simple way to do that ? Thanks.

Creating a SOAPEnvelope instance from an already existing OMElement would
also work.

Regards,
Angel