Re: [Axis2] Problem running wsdl2java on wsdl with multiple imports

2007-03-06 Thread Amila Suriarachchi

The problem was you had two complex types contain same element name
eg.

   
  










and











I fixed this by generating a unique suffix. Please check with a nightly
build


--
Amila Suriarachchi,
WSO2 Inc.


Re: Axis2 1.1.1 WSDL2JAVA - Not generating java classes for

2007-03-06 Thread Amila Suriarachchi

On 3/7/07, Jess Fisher <[EMAIL PROTECTED]> wrote:


From the attached wsdl file:wsrp_v1_interfaces.wsdl, the following are
defined:





But, when running Axis2's WSDL2Java, the corresponding java classes (for
the wsdl:portType) are not created.
Using Axis 1.4's WSDL2Java, the corresposing java classes were generated.



using axis2 you can not generate the code for portTypes. The reason for this
is the skelton and  and stub interfaces depends on the binding. Why you need
to generate the code for a port type?

I run the WSDL2Java against wsrp_service.wsdl first which imports

wsrp_v1_bindings.wsdl which then imports wsrp_v1_interfaces.wsdl.

Is this a bug?



no I  believe.

If yes, does anybody know of the bug ID ? I cannot find it in JIRA.

Or is there a WSDL2Java option I need to set to generate java classes for
the portType, specifically?



if you do not have specified any parts or namespace ( in rpc) in soap:body
(in your binding)  and generate the code with parameters -ss -sd -ssi  and
with any binding (-d adb, -d jibx, -d xmlbeans, -d jaxbri) I think you can
get what you need. It simply generates the skelton, skelton interface and
the service.xml.

(I've used -ss, -g, -d adb, -ssi)


Thanks.


--
Need Mail bonding?
Go to the Yahoo! Mail 
Q&Afor
 great
tips from Yahoo! 
Answersusers.
 --0-1424838073-1173226094=:65510--


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





--
Amila Suriarachchi,
WSO2 Inc.


Re: [Axis2] Axis2 without wrapping the response

2007-03-06 Thread Amila Suriarachchi

On 3/7/07, Florian Wachs <[EMAIL PROTECTED]> wrote:


Thanks for your fast answser.
I´m creating a small QuizService (I´m quite new to axis2) and still have
the following problem:
My little webservice is based on POJO´s and I get the service running.
But my problem is that Axis2 is "wrapping" my response objects.
For example I defined a method getQuestion() which should deliver a
QuizQuestion-Object. But when I´m using a client , the following is not
possible:
QuizService service = new QuizService();
QuizQuestion question = service.getQuestion();

instead I have to do the following:
QuizService service = new QuizService();
QuizQuestion question = service.getQuestion().get_return();
This is quite a problem because I know it is possible with wsdl2java and
the option -uw to generate a unwrapped stub but my .Net 2.0 Client
doesn´t care about that.


How did you generate your .Net client? if you generate it using the wsdl
file generated by the axis2 server then it should support it.


Is it possible to configure Axis2 to not show this behavior or do I have

to create my own wsdl file ?



if you generate a wsdl with a POJO always the response (return of the java
method) is wrapped from the Operaton name + Response and another name called
return. So if you want to change this (i.e remove return part) then you have
to write the wsdl your own and generate the service and client from it.




--
Amila Suriarachchi,
WSO2 Inc.


Re: MTOM Attachments and PushbackInputStream

2007-03-06 Thread Thilina Gunarathne

Hi Derek,
It's great that you started to nail down the attachment performance
issues.. I've also started to do some refactorings to the Attachments
handling classes..  I still have some test cases failing., which means
it'll take some more time to get the changes in..

Let's crack this together :)... I'll also do some profiling to get more clues..

~Thilina

On 3/7/07, Derek Clayton <[EMAIL PROTECTED]> wrote:

Hi Davanum

Unfortunately, the server is in .NET so I would only be able to provide the
client and some other sample data which alone might not be useful.

However, I did some research in to the Axis2 and Axiom source using a client
that was trying to read a ~1.8M binary attachment (XOP/MTOM).  It was taking
just over 3 seconds to read in and save the file.   I finally tracked down
that 98% of the time involved was occuring in the Class:

org.apache.axiom.attachments.MIMEBodyPartInputStream specifically in the
read() method at the line:

// read the next value from stream
int value = inStream.read();

The inStream is a PushbackInputStream.  On a simple isolated test (i.e.
plain old java reading from the file system) I tested reading in the file
using a BufferedInputStream vs a PushbackInputStream.  It took 31 ms for the
BufferedInputStream and a whopping 1047 ms for the PushbackInputStream. (I
know there are reasons for the use of PushbackInputStream)

I thought I had found the reason why it was slow and even in the Axiom
source just before it creates the PushbackInputStream it states in the Class
org.apache.axiom.attachments.Attachments:

// do we need to wrap InputStream from a BufferedInputStream before
// wrapping from PushbackStream

So I changed the source to first wrap in a BufferedInputStream however there
was no change in performance.  The immediate Underlying InputStream is a
org.apache.commons.httpclient.AutoCloseInputStream and whatever it might
wrap (etc) I'm not sure.

So basically I'm still not sure about what's going on.  PushbackInputStream
is definitely a lot slower because it does not do any buffered reads.
However, I don't know why the performance wasn't improved when I wrapped it
in a BufferedInputStream.  I was unable in my investigative time to find out
any other InputStreams that might have ultimately been wrapped by the
PushbackInputStream.

Derek


>From: "Davanum Srinivas" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: axis-user@ws.apache.org
>Subject: Re: MOTM and Encoding/Decoding
>Date: Thu, 1 Mar 2007 14:07:25 -0500
>
>Derek,
>
>Could you please log a JIRA bug and upload the sample code? Let's try
>to create the scenario on our boxes...
>
>thanks,
>dims
>
>On 3/1/07, Derek Clayton <[EMAIL PROTECTED]> wrote:
>>Thank you for the very fast response.
>>
>> >If possible please post us some numbers of the time comparison. Make
>> >sure to avoid the System.out part when doing the comparison (this
>> >encoding takes time :( )...
>>
>>First let me explain the setup.  The two machines are identical
>>hardware...Pentium 4 2.8GHz with 1Gig memory.  Software differs since
>>these
>>are two different developer machines.
>>
>>Machine 1 acts as the client and is written in Java using Axis2.  It sends
>>an Excel file to Machine 2.  When it receives the XML file back (see next
>>paragraph) is simply saves it as a file.
>>
>>Machine 2 acts as the server and is using .NET.  It receives an Excel file
>>as binary, saves that file, uses an ActiveX control to read in the file
>>and
>>parse it to generate an XML representation of the data.  It then sends
>>that
>>XML back to the Machine 1 in the SOAP response.
>>
>>I haven't written an isolated test but this setup would favor Java/Axis2
>>anyway since Machine 2 is having to do actual work in addition to reading
>>the binary file.
>>
>>For smaller Excel files the times are quite reasonable.
>>
>>Test 1
>>--
>>For a 302K send and a 922K response.
>>
>>Time to send and receive response:  1.6 secs.
>>Time to read response: 6 secs.
>>
>>It is taking about 3 times longer which is reasonable since the file size
>>is
>>3x as large even though the server is doing a lot more work than the
>>client.
>>
>>However, as the files get large the performance begins to break down.
>>
>>Test 2
>>--
>>For a 1.4M send and a 5.4M response.
>>
>>Time to send and receive response:  3 secs.
>>Time to read response: 37 secs.
>>
>>37 seconds to read the 5.4M binary file seems like a long time.  As well
>>you
>>can see that the server processed a larger file (1.4M) in half the time as
>>did the client in Test 1.  For even larger files the difference becomes
>>greater.
>>
>>Test 3
>>--
>>For a 8.5M and a 32M response.
>>
>>Time to send and receive response:  18 secs.
>>Time to read response: 220 secs.
>>
>>Here you can see the .NET is reading the 8.5M (along with parsing it and
>>generating XML) in 18 secs compared to where Java/Axis2 took 37 secs to
>>simply read

Re: Services.xml

2007-03-06 Thread Charitha Kankanamge

Hi Roshan,

Have a look at the following

http://ws.apache.org/axis2/1_1_1/axis2config.html#Service_Configuration

regards
Charitha

Punnoose, Roshan wrote:


Hi,

Is there a web page describing all the options possible for
services.xml? (Or maybe an xsd?)

Roshan Punnoose
Phone: 301-497-6039

 


-
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: No implementation defined for org.apache.commons.logging.LogFactory

2007-03-06 Thread Brennan Spies
Try

 

-Dorg.apache.commons.logging.LogFactory=
org.apache.commons.logging.impl.LogFactoryImpl

 

(or a more specific factory, if you wish)

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 06, 2007 3:48 AM
To: axis-user@ws.apache.org
Subject: No implementation defined for org.apache.commons.logging.LogFactory

 

Hi,

I wonder if anyone can help with the following problem we are having using
axis:

We have a simple piece of code to call a webservice. This works fine when we
run the program
from the command line (java -cp ... prog.class).

However, we put the same code into a db2 stored procedure, compile, deploy
and then call the stored procedure and we get the
following error:

java.lang.ExceptionInInitializerError
at org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.(Service.java:113)
at
com.cdyne.ws.EmailVerNoTestEmailLocator.(EmailVerNoTestEmailLocator.ja
va:18)
at
com.cdyne.ws.EmailVerNoTestEmailSoapProxy._initEmailVerNoTestEmailSoapProxy(
EmailVerNoTestEmailSoapProxy.java:13)
at
com.cdyne.ws.EmailVerNoTestEmailSoapProxy.(EmailVerNoTestEmailSoapProx
y.java:8)
at PROCEDUR5.PROC5(PROCEDUR5.java:18)
Caused by: org.apache.commons.discovery.DiscoveryException: No
implementation defined for org.apache.commons.logging.LogFactory


The classpath is exactly the same in both cases and in both cases we are
running on the same server with the same jvm.

Any suggestions ?

Best regards,

John.

=
John Enevoldson

Pulsen Application AB

Direct: +46 (0)33 17 18 72
Email: [EMAIL PROTECTED] 



Re: Field mean in msg with DIME attachment

2007-03-06 Thread Glen Mazza
http://www.cse.ohio-state.edu/cgi-bin/rfc/rfc2616.html?  Search on each
heading (content-type, accept, etc.), you would like a definition for.

Glen

Am Mittwoch, den 07.03.2007, 03:36 +0100 schrieb Pierpaolo Pagnoni:
> I've build a ws to send an attachments by DIME protocol.
> I've sniffed the messages with tcpmon but i don't understand what mean the 
> following fields maked with -??-
> 
> -OK- POST /axis/services/AttachServiceMine HTTP/1.0
> -??- Content-Type: application/dime
> -??- Accept: application/soap+xml, application/dime, 
> -??- multipart/related, text/*
> -OK- User-Agent: Axis/1.4
> -OK- Host: 127.0.0.1:9090
> -OK- Cache-Control: no-cache
> -OK- Pragma: no-cache
> -??- SOAPAction: ""
> -OK- Content-Length: 416924
> 
> Regards
> Pierpaolo
> 
> 
> --
> Leggi GRATIS le tue mail con il telefonino i-mode™ di Wind
> http://i-mode.wind.it
> 
> 
> 
> -
> 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]



Field mean in msg with DIME attachment

2007-03-06 Thread Pierpaolo Pagnoni
I've build a ws to send an attachments by DIME protocol.
I've sniffed the messages with tcpmon but i don't understand what mean the 
following fields maked with -??-

-OK- POST /axis/services/AttachServiceMine HTTP/1.0
-??- Content-Type: application/dime
-??- Accept: application/soap+xml, application/dime,
-??- multipart/related, text/*
-OK- User-Agent: Axis/1.4
-OK- Host: 127.0.0.1:9090
-OK- Cache-Control: no-cache
-OK- Pragma: no-cache
-??- SOAPAction: ""
-OK- Content-Length: 416924

Regards
Pierpaolo


--
Leggi GRATIS le tue mail con il telefonino i-mode™ di Wind
http://i-mode.wind.it



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



Re: XML Request & Response using WSDL2Java (AXIS)

2007-03-06 Thread Glen Mazza
I don't know if you've gotten an answer to this yet--but *worst* case, I
think you can go through the source code of Apache TCPMon (google) for
pointers.  TCPMon is a small application that outputs both the request
and response of SOAP messages, so, clearly, it knows how to retrieve the
information you're looking for.

Glen

Am Dienstag, den 06.03.2007, 14:41 -0500 schrieb Jaya Pattaswamy:
> Hi,
> 
> Can anybody help me in telling how to get a SOAP request & response
> through axis api. Actually I have developed a web service client using
> wsdl2java utility, but i need to access the actual soap response to be
> logged and stored into the database.
> 
>  
> 
> So what i'm looking for is a some kind of help which should direct me
> getting the actual soap response.
> 
>  
> 
> Any help would be highly appreciated.
> 
>  
> 
> -- 
> 
> Regards
> 
> 
> SunCom is the wireless company that's committed to doing things differently. 
> 
> Things we want you to know.
> 
> This e-mail and any files transmitted with it are confidential and are 
> intended solely for the use of the individual or entity to whom they are 
> addressed. This communication may contain material protected by the 
> attorney-client privilege. If you are not the intended recipient or the 
> person responsible for delivering the e-mail to the intended recipient, be 
> advised that you have received this e-mail in error and that any use, 
> dissemination, forwarding, printing or copying of this e-mail is strictly 
> prohibited.


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



A matter of understanding

2007-03-06 Thread Daniel Kasmeroglu

Hi there,
I've got an issue and I've got a workaround for this. I simply want to 
understand what's wrong.
My project provides a simple service which allows to return an attribute within 
a XML file. This
is the way the API is looking:

  String getAttribute( String xmldoc );

It is also specified that the input and the output of this function MUST be 
UTF-8 encoded. My
problem occures when it comes to using this service with PHP. When I'm using 
the Axis2 Client
I can pull in my XML document in UTF-8 and retrieve the attribute value as 
UTF-8 encoded (as expecteD).
But when I'm using PHP (5.2) the service gets a decoded String (in effect non 
UTF-8) so the XML
parser claims an invalid UTF-8 byte sequence since the encoding for the parsing 
process is still
specified in the document.
I can workaround this when I'm using PHP by simply encoding the document a 
second time and decoding
the result.

   What I don't understand is: WHY ?

Why is it necessary to encode the message (which already comes in UTF-8) a second time before I'm 
invoking the SOAP request using PHP.

I would appreciate if anyone could give me an answer on this issue ?
The people I'm discussing about this issue do claim that PHP behaves perfectly 
correct and since I'm
no SOAP expert I'm not sure whether they're right or not. But at least I want 
to understand this
behaviour.
A corresponding project (with additional infos) can be downloaded at:

http://www.kasisoft.net/getattr.zip (something about 50k).

Thanks for the help.

Ciao
Kasimir


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



Re: < but no > in calling .NET Service from axis2

2007-03-06 Thread Dennis Sosnoski
This is not a problem. < characters in data need to be replace with the 
< entity because they would otherwise be interpreted as the start of 
a tag. > characters, on the other hand, are only significant once you've 
seen a < and are in a tag. That's why XML requires < characters to be 
replaced, but not > characters.


 - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



william kinney wrote:

Hello,

For some reason when i call a .NET service from axis2, the <
characters get replaced with <, but the > does NOT get replaced
with >.  e.g.:

23320312

I do not understand why. This is happening with ServiceClient in
axis2-1.1.1, but also if I use soapUI 1.7, the free soap client.
The web service owner says they are not having the problem in reading
their own web service.

Anyone run into anything similar?

Thanks!

William

-
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 Client performance issue - AxisConfiguration Caching

2007-03-06 Thread aravind1001

Curtis,

I faced the same problem. It also leaks around 250KB per call. Though I
couldn't figure out the root set that is holding references to a lot
of OMElementImpl and OMTextImpl objects.  The JVM was also crashing
every few days. Change the code generated to cache the
ConfigurationContext and the performance+memory leak disappears. In a
local loopback test the time taken to answer a request went down from
1.5s to around 20~50ms.

Cheers

Aravind


On 3/6/07, sean curtis <[EMAIL PROTECTED]> wrote:

When running some recent tests against our webserver that contains our client 
code, it seems that the client causes a huge bottleneck in performance. Perhaps 
we have it configured incorrectly, but doing some initial looking at the source 
code, the question came up:

When using the following code:

ConfigurationContext configContext = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(getAxis2RepositoryPath(),
 getAxis2ConfigFileLocation());

does this actually cause a re-parse, reconfigure of the axis2.xml file on each 
call? If so, that seems to point to a massive performance bottleneck in saying 
we have to parse a basically static file every time we want to call our 
services.

As I said, we might have it configured incorrectly, but this came up as a 
possible issue. Can anyone shed light? Is there a setting we can use to let it 
cache this configuration?

thanks







No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail

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



< but no > in calling .NET Service from axis2

2007-03-06 Thread william kinney

Hello,

For some reason when i call a .NET service from axis2, the <
characters get replaced with <, but the > does NOT get replaced
with >.  e.g.:

23320312

I do not understand why. This is happening with ServiceClient in
axis2-1.1.1, but also if I use soapUI 1.7, the free soap client.
The web service owner says they are not having the problem in reading
their own web service.

Anyone run into anything similar?

Thanks!

William

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



Axis2 1.1.1 WSDL2JAVA - Not generating java classes for

2007-03-06 Thread Jess Fisher
>From the attached wsdl file:wsrp_v1_interfaces.wsdl, the following are defined:
  
  
  
  
   
  But, when running Axis2's WSDL2Java, the corresponding java classes (for the 
wsdl:portType) are not created.
  Using Axis 1.4's WSDL2Java, the corresposing java classes were generated.
   
  I run the WSDL2Java against wsrp_service.wsdl first which imports 
wsrp_v1_bindings.wsdl which then imports wsrp_v1_interfaces.wsdl.
   
  Is this a bug? If yes, does anybody know of the bug ID ? I cannot find it in 
JIRA.
  Or is there a WSDL2Java option I need to set to generate java classes for the 
portType, specifically? (I've used -ss, -g, -d adb, -ssi)
   
  Thanks.
   

 
-
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.



http://schemas.xmlsoap.org/wsdl/";

  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  >



  
http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified">

  


  






  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  






  

  
  

  

  

  
  

  

  

  
  

  

  

  
  

  

  

  
  

  

  

  
  

  

  

  
  

  

  

  
  

  

  

  
  

  

  

  
  

  

  

  
  

  

  

  
  

  

  

  
  

  

  

  
  

  

  

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  



  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  



  
  
  
  
  
  



  
  
  
  
  

  

  

  
  
  
  

  

  

  
  
  
  



  
  
  
  



  
  
  
  
  

  

  

  
  
  
  
  
  
  
  
  



  
  
  
  
  
  
  
  
  



  
  
  
  
  
  



  
  
  
  
  
  
  
  
  



  
  
  
  
  
  
  
  
  



  
  
  
  
  
  
  
  
  

  





http://schemas.xmlsoap.org/wsdl/";

  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";>

  

  

  http://my.service:8080/WSRPService"/>


  http://my.service:8080/WSRPService"/>


  http://my.service:8080/WSRPService"/>


  http://my.service:8080/WSRPService"/>

  



wsrp_v1_bindings.wsdl
Description: 2998720566-wsrp_v1_bindings.wsdl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Axis2 Client performance issue - AxisConfiguration Caching

2007-03-06 Thread Davanum Srinivas

You can cache configContext  itself!

-- dims

On 3/6/07, sean curtis <[EMAIL PROTECTED]> wrote:

When running some recent tests against our webserver that contains our client 
code, it seems that the client causes a huge bottleneck in performance. Perhaps 
we have it configured incorrectly, but doing some initial looking at the source 
code, the question came up:

When using the following code:

ConfigurationContext configContext = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(getAxis2RepositoryPath(),
 getAxis2ConfigFileLocation());

does this actually cause a re-parse, reconfigure of the axis2.xml file on each 
call? If so, that seems to point to a massive performance bottleneck in saying 
we have to parse a basically static file every time we want to call our 
services.

As I said, we might have it configured incorrectly, but this came up as a 
possible issue. Can anyone shed light? Is there a setting we can use to let it 
cache this configuration?

thanks







No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail

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





--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

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



Axis2 Client performance issue - AxisConfiguration Caching

2007-03-06 Thread sean curtis
When running some recent tests against our webserver that contains our client 
code, it seems that the client causes a huge bottleneck in performance. Perhaps 
we have it configured incorrectly, but doing some initial looking at the source 
code, the question came up:

When using the following code:

ConfigurationContext configContext = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(getAxis2RepositoryPath(),
 getAxis2ConfigFileLocation());

does this actually cause a re-parse, reconfigure of the axis2.xml file on each 
call? If so, that seems to point to a massive performance bottleneck in saying 
we have to parse a basically static file every time we want to call our 
services.

As I said, we might have it configured incorrectly, but this came up as a 
possible issue. Can anyone shed light? Is there a setting we can use to let it 
cache this configuration?

thanks





 

No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail

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



Re: MTOM Attachments and PushbackInputStream

2007-03-06 Thread Derek Clayton

Hi Davanum

Unfortunately, the server is in .NET so I would only be able to provide the 
client and some other sample data which alone might not be useful.


However, I did some research in to the Axis2 and Axiom source using a client 
that was trying to read a ~1.8M binary attachment (XOP/MTOM).  It was taking 
just over 3 seconds to read in and save the file.   I finally tracked down 
that 98% of the time involved was occuring in the Class:


org.apache.axiom.attachments.MIMEBodyPartInputStream specifically in the 
read() method at the line:


   // read the next value from stream
   int value = inStream.read();

The inStream is a PushbackInputStream.  On a simple isolated test (i.e. 
plain old java reading from the file system) I tested reading in the file 
using a BufferedInputStream vs a PushbackInputStream.  It took 31 ms for the 
BufferedInputStream and a whopping 1047 ms for the PushbackInputStream. (I 
know there are reasons for the use of PushbackInputStream)


I thought I had found the reason why it was slow and even in the Axiom 
source just before it creates the PushbackInputStream it states in the Class 
org.apache.axiom.attachments.Attachments:


   // do we need to wrap InputStream from a BufferedInputStream before
   // wrapping from PushbackStream

So I changed the source to first wrap in a BufferedInputStream however there 
was no change in performance.  The immediate Underlying InputStream is a 
org.apache.commons.httpclient.AutoCloseInputStream and whatever it might 
wrap (etc) I'm not sure.


So basically I'm still not sure about what's going on.  PushbackInputStream 
is definitely a lot slower because it does not do any buffered reads.  
However, I don't know why the performance wasn't improved when I wrapped it 
in a BufferedInputStream.  I was unable in my investigative time to find out 
any other InputStreams that might have ultimately been wrapped by the 
PushbackInputStream.


Derek



From: "Davanum Srinivas" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Subject: Re: MOTM and Encoding/Decoding
Date: Thu, 1 Mar 2007 14:07:25 -0500

Derek,

Could you please log a JIRA bug and upload the sample code? Let's try
to create the scenario on our boxes...

thanks,
dims

On 3/1/07, Derek Clayton <[EMAIL PROTECTED]> wrote:

Thank you for the very fast response.

>If possible please post us some numbers of the time comparison. Make
>sure to avoid the System.out part when doing the comparison (this
>encoding takes time :( )...

First let me explain the setup.  The two machines are identical
hardware...Pentium 4 2.8GHz with 1Gig memory.  Software differs since 
these

are two different developer machines.

Machine 1 acts as the client and is written in Java using Axis2.  It sends
an Excel file to Machine 2.  When it receives the XML file back (see next
paragraph) is simply saves it as a file.

Machine 2 acts as the server and is using .NET.  It receives an Excel file
as binary, saves that file, uses an ActiveX control to read in the file 
and
parse it to generate an XML representation of the data.  It then sends 
that

XML back to the Machine 1 in the SOAP response.

I haven't written an isolated test but this setup would favor Java/Axis2
anyway since Machine 2 is having to do actual work in addition to reading
the binary file.

For smaller Excel files the times are quite reasonable.

Test 1
--
For a 302K send and a 922K response.

Time to send and receive response:  1.6 secs.
Time to read response: 6 secs.

It is taking about 3 times longer which is reasonable since the file size 
is
3x as large even though the server is doing a lot more work than the 
client.


However, as the files get large the performance begins to break down.

Test 2
--
For a 1.4M send and a 5.4M response.

Time to send and receive response:  3 secs.
Time to read response: 37 secs.

37 seconds to read the 5.4M binary file seems like a long time.  As well 
you

can see that the server processed a larger file (1.4M) in half the time as
did the client in Test 1.  For even larger files the difference becomes
greater.

Test 3
--
For a 8.5M and a 32M response.

Time to send and receive response:  18 secs.
Time to read response: 220 secs.

Here you can see the .NET is reading the 8.5M (along with parsing it and
generating XML) in 18 secs compared to where Java/Axis2 took 37 secs to
simply read and save a 5.4M file in Test 2.

I know this is an informal test case.  But is 37 seconds to read a 5.4M
binary attachment with no decoding similar to the experience of others?

Thanks!

Derek

_
Don't waste time standing in line—try shopping online. Visit Sympatico / 
MSN

Shopping today! http://shopping.sympatico.msn.ca


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

RE: Installation Problems

2007-03-06 Thread Glen Mazza
5.5.what?  Again, check to make sure you are running the latest
production release of the 5.5 series (which would be 5.5.20, according
to here[1]).  You may wish to test with Tomcat 6.0 or 5.5.20 on
*another* machine as well to see if you can isolate the problem
(computer, Axis, Tomcat)--any computer will do.

Note, with Tomcat at least, version numbering is not splitting hairs--I
was having a vexing problem once with 5.0.27 that was completely fixed
by upgrading to the then-current 5.0.28.  That last digit frequently
makes a world of difference.

Glen

[1] http://tomcat.apache.org/

Am Dienstag, den 06.03.2007, 16:00 -0500 schrieb Callner, David A.:
> Tomcat5.5
> 
>  
> 
> -Original Message-
> From: Glen Mazza [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 06, 2007 2:33 PM
> To: axis-user@ws.apache.org
> Subject: RE: Installation Problems
> 
> I don't think you mentioned the precise version of Tomcat that you're
> running.  Are you running the *very latest* production release in the
> 5.0.x or 5.5.x series?  If not, that could easily be the problem--test
> with the latest production release and find out.
> 
> What happens when you run it on Tomcat 6 (or 5.5 if you're running
> 5.0)--very same error or does it work on that version?  This will help
> in isolating the problem to either Tomcat or Axis2.
> 
> Glen
> 
> 
> Am Dienstag, den 06.03.2007, 12:02 -0500 schrieb Callner, David A.:
> > No I cannot access the axis2 page.  This is where the exception is
> > thrown.  All I've done is taken the axis2.war file and deployed it in
> > the webapps directory.  Tomcat is working fine with other webapps
> that
> > I've deployed.  I've just tried to deploy the axis2.war.  That's it.
> 
> > 
> > -Original Message-
> > From: Glen Mazza [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, March 06, 2007 11:58 AM
> > To: axis-user@ws.apache.org
> > Subject: Re: Installation Problems
> > 
> > Can you access the Axis2 administration application at (something
> like)
> > http://localhost:8080/axis2?
> > 
> > If yes, this may be more of a Tomcat manager webapp error than a
> Axis2
> > one.  It appears that the Tomcat manager is trying to display an
> > error500.jsp internal server error message but its JSP compiler is
> > failing, perhaps due to the "Too many open files" message.  I would
> > google on Tomcat and "too many open files" to see if something is
> > relevant for your problem.  The Tomcat user list might also be of
> help.
> > 
> > Glen
> > 
> > 
> > Am Dienstag, den 06.03.2007, 09:50 -0500 schrieb Callner, David A.:
> > > I downloaded the axis2.war file and installed it in my
> > tomcat5/webapps
> > > directory.  The axis2 directory shows up in the manager view for
> > > tomcat.  When I click on the axis2 page I get an compile error.
> This
> > > is the error I'm getting in the catalina.out file.  I have Tomcat5
> > > with java1.5.  Does anybody have any ideas what this might be?
> > >  
> > > Mar 6, 2007 9:43:10 AM org.apache.jasper.compiler.Compiler
> > > generateClass
> > > SEVERE: Error compiling file:
> > >
> >
> /usr/share/tomcat5/work/Catalina/localhost/axis2//org/apache/jsp/axis2_
> > 002dweb/Error/error500_jsp.java
> > > [javac] Compiling 1 source file
> > >  
> > >
> >
> /usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_0
> > 02dweb/Error/error500_jsp.java:7:
> > > error while writing
> org.apache.jsp.axis2_002dweb.Error.error500_jsp:
> > >
> >
> /usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_0
> > 02dweb/Error/error500_jsp.class
> > > (Too many open files)
> > > (source unavailable)
> > > 1 error
> > >  
> > > 
> > >  
> > >  
> > > David Callner
> > > Senior Software Systems Engineer
> > > The MITRE Corporation
> > > Center for Advanced Aviation System Development
> > > 7515 Colshire Dr.
> > > McLean, VA. 22102
> > > [EMAIL PROTECTED] 
> > > 703.983.6431 (work) 
> > >  
> > 
> > 
> > -
> > 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]



XML equivalent of object in client classes

2007-03-06 Thread Sampige, Srinivas
Hi 

 

I have built a webservice client using WSDL2JAVA. The tool created the
java classes for the types (XSDs) specified in the WSDL. I am trying to
figure out how to have those objects return the XML equivalent of the
data?

 

For example -

 

postSchedule(Schedule schedule)is the webservice operation; with
Schedule specified as an XSD in the WSDL.  The WSDL2JAVA has created the
Schedule class as part of the client.  At the client side I will be
doing the following -

 

Schedule schedule = new Schedule();

schedule.setName("John");

...

...

serviceProxImpl.postSchedule(schedule)';

 

//now the requirement is extract XML equivalent of schedule; how do I do
that?

schedule. ? ..what method to call for getting the XML equivalent?

 

 

Thanks in advance

Srini



Unresolved Externals When Building Axis

2007-03-06 Thread David Miller
Hello,

I am not sure if this is the correct list for my question, so if I
should be posting to the developer mailing list, just let me know and I
will re-post.

I am trying to make a debug build of Axis 1.6b on VC6 (WinXP SP2).  I
have run VCVARS32.BAT at the command prompt, and when I run ant against
the build.xml file, I get the following output...

C:\Dev\Apache\axis-c-1.6b-Win32-trace-src>ant
Buildfile: build.xml

pre-init:

set-platform-specifics:

checkIfDebug:

initialize:

build:

compile:

compileClient:

compileAxisClient:

buildVersionResource:
 [copy] Copying 1 file to
C:\Dev\Apache\axis-c-1.6b-Win32-trace-src\build
   [cc] Starting dependency analysis for 130 files.
   [cc] 130 files are up to date.
   [cc] 0 files to be recompiled from dependency analysis.
   [cc] 0 total files to be compiled.
   [cc] Starting link
   [cc]Creating library axis_client.lib and object
axis_client.exp
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: __thiscall
std::basic_string,class std::allocator
>::basic_string,class std::allocator >(void)"
([EMAIL PROTECTED]
[EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED])
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: __thiscall
std::basic_string,class std::allocator
>::basic_string,class std::allocator >(char const *)"
(__imp_??0?$basic_s
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL 
PROTECTED]@Z)
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: __thiscall
std::basic_string,class std::allocator
>::basic_string,class std::allocator >(unsigned int,char)"
(__imp_??0?$ba
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL 
PROTECTED]@Z)
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::b
asic_string,class
std::al
locator >(unsigned short const *)"
([EMAIL PROTECTED]
[EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]@Z)
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::b
asic_string,class
std::al
locator >(unsigned int,unsigned short)"
(__imp_??0?$basic_string
@[EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]@Z)
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: bool __thiscall
std::basic_istream >::_Ipfx(bool)"
([EMAIL PROTECTED]@DU?$char_
[EMAIL PROTECTED]@std@@@std@@[EMAIL PROTECTED])
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: void __thiscall
std::basic_streambuf >::_Unlock(void)"
([EMAIL PROTECTED]@D
[EMAIL PROTECTED]@std@@@std@@QAEXXZ)
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: void __thiscall
std::basic_streambuf >::_Lock(void)"
([EMAIL PROTECTED]@DU?$c
[EMAIL PROTECTED]@std@@@std@@QAEXXZ)
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: void __thiscall
std::locale::facet::_Register
(void)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@QAEXXZ)
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: __thiscall bad_cast::bad_cast(char
const *)"
(__imp_??0bad_cast@@[EMAIL PROTECTED]@Z)
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: static unsigned int __cdecl
std::ctype:
:_Getcat(class std::locale::facet const * *)"
([EMAIL PROTECTED]@[EMAIL PROTECTED]@@SAI
[EMAIL PROTECTED]@2@@Z)
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: class std::locale::facet const *
__thiscall s
td::locale::_Getfacet(unsigned int)const "
([EMAIL PROTECTED]@std@@QBEPBVf
[EMAIL PROTECTED]@[EMAIL PROTECTED])
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: __thiscall
std::_Lockit::_Lockit(int)" (__imp
[EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z)
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: void __thiscall
std::basic_ostream >::_Osfx(void)"
([EMAIL PROTECTED]@DU?$char_
[EMAIL PROTECTED]@std@@@std@@QAEXXZ)
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) public: bool __thiscall
std::basic_istream >::_Ipfx(bool)"
([EMAIL PROTECTED]
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@std@@[EMAIL PROTECTED])
   [cc] PlatformSpecificWindows.obj : error LNK2001: unresolved
external sym
bol "__declspec(dllimport) 

[Axis2]Problem installing eclipse plugins for Code Gen & Service Archiver

2007-03-06 Thread lee hanu

I am using eclipse 3.1 and axis2 1.1.1. I am trying to install the axis2
plugins for eclipse. I deleted a the old plugin files as instructed in the
readme.txt file and copied the latest plugin files to the eclipse/plugins
folder and I get the following error when I try to start the plugin from
eclipse.

"Plug-in Axis2_Codegen_Wizard was unable to load class
org.apache.axis2.tool.codegen.eclipse.CodeGenWizard."

Can someone help with this installation. I was able to use eclipse plugin
with earlier versions.

Thanks

-- 
View this message in context: 
http://www.nabble.com/-Axis2-Problem-installing-eclipse-plugins-for-Code-Gen---Service-Archiver-tf3358450.html#a9341485
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re:access to attachments with streams

2007-03-06 Thread Pierpaolo Pagnoni
Look at the example "attachment" in AXIS 1.4 distribution.
I've realized a web service snooping in this example

Bye
Pierpaolo

> Hello,
>
> how can I get access to SOAP attachments with streams? I want to create an 
> attachment part with a data handler that has a stream as data source.
> Do you have a code snippet that demonstrates this?
>
> Thank you in advance.
>
> Regards,
> Manuel
>
> --
> "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
> Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 


--
Con Prometeo prestiti senza spese fino a 31.000 Euro!
http://click.libero.it/webnation06marz07



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



RE: Installation Problems

2007-03-06 Thread Callner, David A.
Tomcat5.5

 

-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 06, 2007 2:33 PM
To: axis-user@ws.apache.org
Subject: RE: Installation Problems

I don't think you mentioned the precise version of Tomcat that you're
running.  Are you running the *very latest* production release in the
5.0.x or 5.5.x series?  If not, that could easily be the problem--test
with the latest production release and find out.

What happens when you run it on Tomcat 6 (or 5.5 if you're running
5.0)--very same error or does it work on that version?  This will help
in isolating the problem to either Tomcat or Axis2.

Glen


Am Dienstag, den 06.03.2007, 12:02 -0500 schrieb Callner, David A.:
> No I cannot access the axis2 page.  This is where the exception is
> thrown.  All I've done is taken the axis2.war file and deployed it in
> the webapps directory.  Tomcat is working fine with other webapps
that
> I've deployed.  I've just tried to deploy the axis2.war.  That's it.

> 
> -Original Message-
> From: Glen Mazza [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 06, 2007 11:58 AM
> To: axis-user@ws.apache.org
> Subject: Re: Installation Problems
> 
> Can you access the Axis2 administration application at (something
like)
> http://localhost:8080/axis2?
> 
> If yes, this may be more of a Tomcat manager webapp error than a
Axis2
> one.  It appears that the Tomcat manager is trying to display an
> error500.jsp internal server error message but its JSP compiler is
> failing, perhaps due to the "Too many open files" message.  I would
> google on Tomcat and "too many open files" to see if something is
> relevant for your problem.  The Tomcat user list might also be of
help.
> 
> Glen
> 
> 
> Am Dienstag, den 06.03.2007, 09:50 -0500 schrieb Callner, David A.:
> > I downloaded the axis2.war file and installed it in my
> tomcat5/webapps
> > directory.  The axis2 directory shows up in the manager view for
> > tomcat.  When I click on the axis2 page I get an compile error.
This
> > is the error I'm getting in the catalina.out file.  I have Tomcat5
> > with java1.5.  Does anybody have any ideas what this might be?
> >  
> > Mar 6, 2007 9:43:10 AM org.apache.jasper.compiler.Compiler
> > generateClass
> > SEVERE: Error compiling file:
> >
>
/usr/share/tomcat5/work/Catalina/localhost/axis2//org/apache/jsp/axis2_
> 002dweb/Error/error500_jsp.java
> > [javac] Compiling 1 source file
> >  
> >
>
/usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_0
> 02dweb/Error/error500_jsp.java:7:
> > error while writing
org.apache.jsp.axis2_002dweb.Error.error500_jsp:
> >
>
/usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_0
> 02dweb/Error/error500_jsp.class
> > (Too many open files)
> > (source unavailable)
> > 1 error
> >  
> > 
> >  
> >  
> > David Callner
> > Senior Software Systems Engineer
> > The MITRE Corporation
> > Center for Advanced Aviation System Development
> > 7515 Colshire Dr.
> > McLean, VA. 22102
> > [EMAIL PROTECTED] 
> > 703.983.6431 (work) 
> >  
> 
> 
> -
> 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]



[AXIS2] How send Fault messages in Axis2?

2007-03-06 Thread Jose Benjamin Perez Soto

Hello,

The example of Axis2 of handlingfault is good, but when it is wanted to show
in the navigator not deploy, it rather sends the following message:


   Unable to generate WSDL for this service
   
   If you wish Axis2 to automatically generate the WSDL, then
please use one of the RPC message receivers for the
service(s)/operation(s) in services.xml. If you have added a custom WSDL in
the META-INF directory, then  please  make sure that the name of
the service in services.xml (/serviceGroup/service/@name) is the same as in
the custom wsdl's service name (/wsdl:definitions/wsdl:service/@name).
   


but this example comes with his wsdl, and when is generated it the code with
plugin of Axis2 for IDEA works well. I want to do just like example and I
want shows the wsdl, so that I must generate code with wsdl that shows to
me.

This to generate wsdl when is modified it in services.xml of the following
way:

1) with this it works well, but it does not show wsdl in the navigator

   http://www.w3.org/2004/08/wsdl/in-out";
class="example.BankServiceMessageReceiverInOut"/>


2) with this it works bad, but it show wsdl in the navigator

   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"/>


I want to work of the first form, but I want shows wsdl to me in the
navigator.

Thanks,

Ben


[Axis2] Axis2 without wrapping the response

2007-03-06 Thread Florian Wachs

Thanks for your fast answser.
I´m creating a small QuizService (I´m quite new to axis2) and still have
the following problem:
My little webservice is based on POJO´s and I get the service running.
But my problem is that Axis2 is "wrapping" my response objects.
For example I defined a method getQuestion() which should deliver a
QuizQuestion-Object. But when I´m using a client , the following is not
possible:
QuizService service = new QuizService();
QuizQuestion question = service.getQuestion();

instead I have to do the following:
QuizService service = new QuizService();
QuizQuestion question = service.getQuestion().get_return();
This is quite a problem because I know it is possible with wsdl2java and
the option -uw to generate a unwrapped stub but my .Net 2.0 Client
doesn´t care about that.
Is it possible to configure Axis2 to not show this behavior or do I have
to create my own wsdl file ?

Thanks


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



Services.xml

2007-03-06 Thread Punnoose, Roshan
Hi,

Is there a web page describing all the options possible for
services.xml? (Or maybe an xsd?)

Roshan Punnoose
Phone: 301-497-6039

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Installation Problems

2007-03-06 Thread Inder Dhillon
Hello

I am using the latest version of Tomcat i.e. Tomcat 6.0

Inder


-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 06, 2007 3:33 PM
To: axis-user@ws.apache.org
Subject: RE: Installation Problems

I don't think you mentioned the precise version of Tomcat that you're
running.  Are you running the *very latest* production release in the
5.0.x or 5.5.x series?  If not, that could easily be the problem--test
with the latest production release and find out.

What happens when you run it on Tomcat 6 (or 5.5 if you're running
5.0)--very same error or does it work on that version?  This will help
in isolating the problem to either Tomcat or Axis2.

Glen


Am Dienstag, den 06.03.2007, 12:02 -0500 schrieb Callner, David A.:
> No I cannot access the axis2 page.  This is where the exception is
> thrown.  All I've done is taken the axis2.war file and deployed it in
> the webapps directory.  Tomcat is working fine with other webapps that
> I've deployed.  I've just tried to deploy the axis2.war.  That's it.  
> 
> -Original Message-
> From: Glen Mazza [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 06, 2007 11:58 AM
> To: axis-user@ws.apache.org
> Subject: Re: Installation Problems
> 
> Can you access the Axis2 administration application at (something like)
> http://localhost:8080/axis2?
> 
> If yes, this may be more of a Tomcat manager webapp error than a Axis2
> one.  It appears that the Tomcat manager is trying to display an
> error500.jsp internal server error message but its JSP compiler is
> failing, perhaps due to the "Too many open files" message.  I would
> google on Tomcat and "too many open files" to see if something is
> relevant for your problem.  The Tomcat user list might also be of help.
> 
> Glen
> 
> 
> Am Dienstag, den 06.03.2007, 09:50 -0500 schrieb Callner, David A.:
> > I downloaded the axis2.war file and installed it in my
> tomcat5/webapps
> > directory.  The axis2 directory shows up in the manager view for
> > tomcat.  When I click on the axis2 page I get an compile error.  This
> > is the error I'm getting in the catalina.out file.  I have Tomcat5
> > with java1.5.  Does anybody have any ideas what this might be?
> >  
> > Mar 6, 2007 9:43:10 AM org.apache.jasper.compiler.Compiler
> > generateClass
> > SEVERE: Error compiling file:
> >
> /usr/share/tomcat5/work/Catalina/localhost/axis2//org/apache/jsp/axis2_
> 002dweb/Error/error500_jsp.java
> > [javac] Compiling 1 source file
> >  
> >
> /usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_0
> 02dweb/Error/error500_jsp.java:7:
> > error while writing org.apache.jsp.axis2_002dweb.Error.error500_jsp:
> >
> /usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_0
> 02dweb/Error/error500_jsp.class
> > (Too many open files)
> > (source unavailable)
> > 1 error
> >  
> > 
> >  
> >  
> > David Callner
> > Senior Software Systems Engineer
> > The MITRE Corporation
> > Center for Advanced Aviation System Development
> > 7515 Colshire Dr.
> > McLean, VA. 22102
> > [EMAIL PROTECTED] 
> > 703.983.6431 (work) 
> >  
> 
> 
> -
> 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]



XML Request & Response using WSDL2Java (AXIS)

2007-03-06 Thread Jaya Pattaswamy
Hi,

Can anybody help me in telling how to get a SOAP request & response
through axis api. Actually I have developed a web service client using
wsdl2java utility, but i need to access the actual soap response to be
logged and stored into the database.

 

So what i'm looking for is a some kind of help which should direct me
getting the actual soap response.

 

Any help would be highly appreciated.

 

-- 

Regards


SunCom is the wireless company that's committed to doing things differently. 

Things we want you to know.

This e-mail and any files transmitted with it are confidential and are intended 
solely for the use of the individual or entity to whom they are addressed. This 
communication may contain material protected by the attorney-client privilege. 
If you are not the intended recipient or the person responsible for delivering 
the e-mail to the intended recipient, be advised that you have received this 
e-mail in error and that any use, dissemination, forwarding, printing or 
copying of this e-mail is strictly prohibited.


Sending Derived types to Webservice doesn't work

2007-03-06 Thread David Elliott
This note is a continuation of "Issue with Axis when sending abstract class to 
.NET webservice"
I have change my .NET Web Service and no longer has any abstracts.  It looks 
like

public class Person{   public string name;   public Address address;}
 
public class Address{
}
 
public class HomeAddress : Address{   public string houseNumber;}
I let Axis generate the Java proxy class and I call the .NET service in the 
Java client as such:

IEmployeeServiceProxy service = new IEmployeeServiceProxy();
HomeAddress homeAddress = new HomeAddress();homeAddress.setHouseNumber("456 
Long and Winding Road");
 
person = new Person();person.setName( "Bob the Builder" 
);person.setAddress(homeAddress);
 
newPerson = service.getPerson( person );
For all 3 tests below, NO CHANGES were made to the .NET Webservice.
Test 1: Run as isIf I examine the SOAP Request Message I see  
with no data.
 
- SoapRequest at 3/6/2007 2:35:41 PM -http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>  

  Bob the Builder  
  
 
Test 2: If I open the Java Proxy Class Person.java and changepublic 
data.emp.Address getAddress() {return address;}topublic 
data.emp.HomeAddress getAddress() {return (HomeAddress)address;}
then this goes into the service 
 456 Long and Winding Road
and this comes out
  456 Long and 
Winding Roadhowever the getAddress() method now 
returns null when trying to print in the Java client
Test 3:Put getAddress() back to original code and 

Change all instances fromdata.emp.Addresstodata.emp.HomeAddress
The correct data structure is passed in
  456 
Long and Winding Road
recieved 
  456 Long and 
Winding Road
and printed out successfully.
Printing Returned Data...

Name: Bob the Builder
Addr: 456 Long and Winding Road
 
Any thoughts are welcomed.
Dave
 
 
_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy! 
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

RE: Installation Problems

2007-03-06 Thread Glen Mazza
I don't think you mentioned the precise version of Tomcat that you're
running.  Are you running the *very latest* production release in the
5.0.x or 5.5.x series?  If not, that could easily be the problem--test
with the latest production release and find out.

What happens when you run it on Tomcat 6 (or 5.5 if you're running
5.0)--very same error or does it work on that version?  This will help
in isolating the problem to either Tomcat or Axis2.

Glen


Am Dienstag, den 06.03.2007, 12:02 -0500 schrieb Callner, David A.:
> No I cannot access the axis2 page.  This is where the exception is
> thrown.  All I've done is taken the axis2.war file and deployed it in
> the webapps directory.  Tomcat is working fine with other webapps that
> I've deployed.  I've just tried to deploy the axis2.war.  That's it.  
> 
> -Original Message-
> From: Glen Mazza [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 06, 2007 11:58 AM
> To: axis-user@ws.apache.org
> Subject: Re: Installation Problems
> 
> Can you access the Axis2 administration application at (something like)
> http://localhost:8080/axis2?
> 
> If yes, this may be more of a Tomcat manager webapp error than a Axis2
> one.  It appears that the Tomcat manager is trying to display an
> error500.jsp internal server error message but its JSP compiler is
> failing, perhaps due to the "Too many open files" message.  I would
> google on Tomcat and "too many open files" to see if something is
> relevant for your problem.  The Tomcat user list might also be of help.
> 
> Glen
> 
> 
> Am Dienstag, den 06.03.2007, 09:50 -0500 schrieb Callner, David A.:
> > I downloaded the axis2.war file and installed it in my
> tomcat5/webapps
> > directory.  The axis2 directory shows up in the manager view for
> > tomcat.  When I click on the axis2 page I get an compile error.  This
> > is the error I'm getting in the catalina.out file.  I have Tomcat5
> > with java1.5.  Does anybody have any ideas what this might be?
> >  
> > Mar 6, 2007 9:43:10 AM org.apache.jasper.compiler.Compiler
> > generateClass
> > SEVERE: Error compiling file:
> >
> /usr/share/tomcat5/work/Catalina/localhost/axis2//org/apache/jsp/axis2_
> 002dweb/Error/error500_jsp.java
> > [javac] Compiling 1 source file
> >  
> >
> /usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_0
> 02dweb/Error/error500_jsp.java:7:
> > error while writing org.apache.jsp.axis2_002dweb.Error.error500_jsp:
> >
> /usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_0
> 02dweb/Error/error500_jsp.class
> > (Too many open files)
> > (source unavailable)
> > 1 error
> >  
> > 
> >  
> >  
> > David Callner
> > Senior Software Systems Engineer
> > The MITRE Corporation
> > Center for Advanced Aviation System Development
> > 7515 Colshire Dr.
> > McLean, VA. 22102
> > [EMAIL PROTECTED] 
> > 703.983.6431 (work) 
> >  
> 
> 
> -
> 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]



logging not pretty printing all messages

2007-03-06 Thread teknokrat

I am using Axis 1.4 and I have a client-config.wsdd file containing

  
  
   

   
  
  
 
  
  
 
  
   


I notices that the in message is pretty printed but not the out message. 
is there a problem here? what is the correct format?


Also, the value of the file location does not seem to accept system 
variable such as ${user.home} etc. Is there a way to set the file 
location to a variable?


thanks


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



[Axis2] Problem running wsdl2java on wsdl with multiple imports

2007-03-06 Thread footh
I am trying to run wsdl2java on this wsdl:

http://ws.xwebservices.com/XWebBlog/V2/XWebBlog.wsdl

which contains a schema import which in turn contains
its own schema import.  When running wsdl2java from
the command line I receive the stack trace below. 
Might anyone have an idea of why it is failing?

Retrieving schema at 'XWebBlog.xsd', relative to
'http://ws.xwebservices.com/XWebBlog/V2/XWebBlog.wsdl'.
Retrieving schema at 'Blog.xsd', relative to
'http://ws.xwebservices.com/XWebBlog/V2/XWebBlog.xsd'.
Exception in thread "Main Thread"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
at
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at
org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:52)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:177)
... 2 more
Caused by: java.lang.reflect.InvocationTargetException
at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:49)
... 3 more
Caused by:
org.apache.axis2.schema.SchemaCompilationException:
java.lang.NullPointerException
at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:257)
at
org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:72)
... 5 more
Caused by: java.lang.NullPointerException
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:489)
at
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1488)
at
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1454)
at
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:950)
at
org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:909)
at
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:864)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:527)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:489)
at
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1488)
at
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1450)
at
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:950)
at
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:883)
at
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:866)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:527)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:499)
at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:336)
at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:318)
at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:248)
... 6 more



 

Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091

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



RE: Installation Problems

2007-03-06 Thread Callner, David A.
No I cannot access the axis2 page.  This is where the exception is
thrown.  All I've done is taken the axis2.war file and deployed it in
the webapps directory.  Tomcat is working fine with other webapps that
I've deployed.  I've just tried to deploy the axis2.war.  That's it.  

-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 06, 2007 11:58 AM
To: axis-user@ws.apache.org
Subject: Re: Installation Problems

Can you access the Axis2 administration application at (something like)
http://localhost:8080/axis2?

If yes, this may be more of a Tomcat manager webapp error than a Axis2
one.  It appears that the Tomcat manager is trying to display an
error500.jsp internal server error message but its JSP compiler is
failing, perhaps due to the "Too many open files" message.  I would
google on Tomcat and "too many open files" to see if something is
relevant for your problem.  The Tomcat user list might also be of help.

Glen


Am Dienstag, den 06.03.2007, 09:50 -0500 schrieb Callner, David A.:
> I downloaded the axis2.war file and installed it in my
tomcat5/webapps
> directory.  The axis2 directory shows up in the manager view for
> tomcat.  When I click on the axis2 page I get an compile error.  This
> is the error I'm getting in the catalina.out file.  I have Tomcat5
> with java1.5.  Does anybody have any ideas what this might be?
>  
> Mar 6, 2007 9:43:10 AM org.apache.jasper.compiler.Compiler
> generateClass
> SEVERE: Error compiling file:
>
/usr/share/tomcat5/work/Catalina/localhost/axis2//org/apache/jsp/axis2_
002dweb/Error/error500_jsp.java
> [javac] Compiling 1 source file
>  
>
/usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_0
02dweb/Error/error500_jsp.java:7:
> error while writing org.apache.jsp.axis2_002dweb.Error.error500_jsp:
>
/usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_0
02dweb/Error/error500_jsp.class
> (Too many open files)
> (source unavailable)
> 1 error
>  
> 
>  
>  
> David Callner
> Senior Software Systems Engineer
> The MITRE Corporation
> Center for Advanced Aviation System Development
> 7515 Colshire Dr.
> McLean, VA. 22102
> [EMAIL PROTECTED] 
> 703.983.6431 (work) 
>  


-
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: Installation Problems

2007-03-06 Thread Glen Mazza
Can you access the Axis2 administration application at (something like)
http://localhost:8080/axis2?

If yes, this may be more of a Tomcat manager webapp error than a Axis2
one.  It appears that the Tomcat manager is trying to display an
error500.jsp internal server error message but its JSP compiler is
failing, perhaps due to the "Too many open files" message.  I would
google on Tomcat and "too many open files" to see if something is
relevant for your problem.  The Tomcat user list might also be of help.

Glen


Am Dienstag, den 06.03.2007, 09:50 -0500 schrieb Callner, David A.:
> I downloaded the axis2.war file and installed it in my tomcat5/webapps
> directory.  The axis2 directory shows up in the manager view for
> tomcat.  When I click on the axis2 page I get an compile error.  This
> is the error I'm getting in the catalina.out file.  I have Tomcat5
> with java1.5.  Does anybody have any ideas what this might be?
>  
> Mar 6, 2007 9:43:10 AM org.apache.jasper.compiler.Compiler
> generateClass
> SEVERE: Error compiling file:
> /usr/share/tomcat5/work/Catalina/localhost/axis2//org/apache/jsp/axis2_002dweb/Error/error500_jsp.java
> [javac] Compiling 1 source file
>  
> /usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_002dweb/Error/error500_jsp.java:7:
> error while writing org.apache.jsp.axis2_002dweb.Error.error500_jsp:
> /usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_002dweb/Error/error500_jsp.class
> (Too many open files)
> (source unavailable)
> 1 error
>  
> 
>  
>  
> David Callner
> Senior Software Systems Engineer
> The MITRE Corporation
> Center for Advanced Aviation System Development
> 7515 Colshire Dr.
> McLean, VA. 22102
> [EMAIL PROTECTED] 
> 703.983.6431 (work) 
>  


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



Re: Response SOAP and WSA action

2007-03-06 Thread David Illsley

Hi,
It depends on how you're configuring Axis2. You can either add a
wsaw:Action attribute in your wsdl or an outputActionMapping element
to the operation configuration in your services.xml

David

On 06/03/07, Punnoose, Roshan <[EMAIL PROTECTED]> wrote:

Hi,

How do I set up the response of a web service to have a specific SOAP
action or a WSA action String?

Roshan Punnoose
Phone: 301-497-6039


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





--
David Illsley - IBM Web Services Development

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



RE: [Axis 1.4.x] Strategies for handling exceptions

2007-03-06 Thread Rasile, Rob
Hey Joshua... here's what I've done:

 

First, some context for the example:  I'm using session management (soap
sessions) and by default (ie. without a fault handler) axis2 returns an
axis fault when an invalid soap session id is sent from a client
request.  Basically I needed to return a formatted error response with
an error code and other information the conforms to the service
agreements we have with our clients.  In other words it was unacceptable
that I return a raw axis fault.

 

My solution was based on this:

Axis2 has a pretty cool execution cycle, which breaks down into four
execution 'flows' - in INFLOW, the INFAULTFLOW, the OUTFLOW, and the
OUTFAULTFLOW.   When a SOAP message is received, the axis2 engine starts
processing in the INFLOW... but if a fault occurs during processing then
execution passes to the INFAULTFLOW.  Similarly the OUTFLOW and
OUTFAULTFLOW handle the processing of the outbound SOAP response.  Each
flow in itself is comprised of one or more 'phases' of execution.  A
phase then defines handler classes that are invoked during execution of
the phase.  Phase handlers conform to a contract (ie. they extend an
axis2 AbstractHandler and implement and Axis2 handler).  Essentially a
phase handler needs to implement the method:

 

 public InvocationResponse invoke(MessageContext context) throws
AxisFault { ... }

 

The Axis2 engine then basically reads the flow information from the
axis2.xml configuration file and invokes the specified phases/handlers
at runtime by iterating through the handlers and calling the 'invoke'
method.  Notice that you'll have access to the MessageContext within the
handler. 

 

What this all means is that you can add your own custom phases and
handlers to these flows.  Your handler just needs to implement the
invoke method described above.  In my case I added a phase to the
OUTFAULTFLOW.  By the time the engine invokes my handler the message
context it passes contains an axis fault.  I simply create a new SOAP
envelope with the response I want to send and set it to the message
context (and by doing so overwrite the SOAP envelope with the axis
fault). 

 

Here's my handler implementation (note I haven't included all the
methods for the jibx conversion of my response type to xml - basically
the point is that you just need to create your own SOAP envelope).

 

 

package com.ws.axis2.faults;

import org.apache.axiom.om.OMAbstractFactory;

import org.apache.axiom.soap.SOAP11Constants;

import org.apache.axiom.soap.SOAP12Constants;

import org.apache.axiom.soap.SOAPFactory;

import org.apache.axis2.AxisFault;

import org.apache.axis2.context.MessageContext;

import org.apache.axis2.context.OperationContext;

import org.apache.axis2.engine.Handler;

import org.apache.axis2.handlers.AbstractHandler;

import org.apache.axis2.i18n.Messages;

import org.apache.log4j.Level;

import org.apache.log4j.Logger;

 

public class MyFaultHandler extends AbstractHandler implements
Handler {

private String name; 

static Logger logger;

static {

logger = Logger.getLogger(MyFaultHandler.class);

}



/* (non-Javadoc)

 * @see
org.apache.axis2.engine.Handler#invoke(org.apache.axis2.context.MessageC
ontext)

 */

public InvocationResponse invoke(MessageContext msgContext) throws
AxisFault {

// TODO Auto-generated method stub



try {

// find the error that caused this axis fault by extracting
it from the existing msgContext SOAP envelope

String err =
msgContext.getEnvelope().getBody().getFault().getText();

 

// log the error

logger.error(err);

 

// create a new SOAP envelope and create it's contents

org.apache.axiom.soap.SOAPEnvelope envelope = null;

 

// I'm using jibx data binding to create my own response
type and format as XML

MyResponseType response = null;

response = new MyResponseType ();

response.setMajorCode(3);

MyErrorType error = new
MyErrorType();

error.setCode(303);

error.set_value("My error
message.");

response.addError(error);



// add my custom error response to
the SOAP envelope 

envelope =
toEnvelope(OMAbstractFactory.getSOAP11Factory(),

response,
false);

 

// set the msgContext's envelope to
the one I just created

msgContext.setEnvelope(envelope);



} catch (Exception

Re: [AXIS2]WSDL2JAVA & ExtensionMapper Questions

2007-03-06 Thread P Floyd
 Amila, I am using Axis2.1.1.1 and here are the options I am using for the 
build.  
            Thanks for your response. Srini 
--- On Mon 03/05, Amila Suriarachchi < [EMAIL PROTECTED] > wrote:From: 
Amila Suriarachchi [mailto: [EMAIL PROTECTED]: axis-user@ws.apache.org, [EMAIL 
PROTECTED]: Tue, 6 Mar 2007 09:50:54 +0530Subject: Re: [AXIS2]WSDL2JAVA & 
ExtensionMapper Questions
On 3/6/07, P Floyd <[EMAIL PROTECTED]> wrote:




Did anyone get a chance to look at my questions?? Any 
comments/questions/suggestions will help.Thanks,Srini
what is the axis2 version you use? and what are the options you used to 
generate the code?Can you please test with an axis2 nightly build and if the 
error still exists,log a jira with your wsdl and schema?-- Amila 
Suriarachchi,WSO2 Inc.


___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


Response SOAP and WSA action

2007-03-06 Thread Punnoose, Roshan
Hi,

How do I set up the response of a web service to have a specific SOAP
action or a WSA action String?

Roshan Punnoose
Phone: 301-497-6039

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Installation Problems

2007-03-06 Thread Callner, David A.
I downloaded the axis2.war file and installed it in my tomcat5/webapps
directory.  The axis2 directory shows up in the manager view for
tomcat.  When I click on the axis2 page I get an compile error.  This
is the error I'm getting in the catalina.out file.  I have Tomcat5 with
java1.5.  Does anybody have any ideas what this might be?
 
Mar 6, 2007 9:43:10 AM org.apache.jasper.compiler.Compiler
generateClass
SEVERE: Error compiling file:
/usr/share/tomcat5/work/Catalina/localhost/axis2//org/apache/jsp/axis2_
002dweb/Error/error500_jsp.java
[javac] Compiling 1 source file
 
/usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_0
02dweb/Error/error500_jsp.java:7:
error while writing org.apache.jsp.axis2_002dweb.Error.error500_jsp:
/usr/share/tomcat5/work/Catalina/localhost/axis2/org/apache/jsp/axis2_0
02dweb/Error/error500_jsp.class
(Too many open files)
(source unavailable)
1 error
 

 
 
David Callner
Senior Software Systems Engineer
The MITRE Corporation
Center for Advanced Aviation System Development
7515 Colshire Dr.
McLean, VA. 22102
[EMAIL PROTECTED]   
703.983.6431 (work) 
 


Re: AW: sesion managment, scope=soapsession

2007-03-06 Thread Davanum Srinivas

Thanks a ton Rob for tracking this problem down. Thanks Josef for your
patience :) I fixed the default axis2.xml and updated the comment
there.

thanks,
dims

On 3/6/07, Stadelmann Josef <[EMAIL PROTECTED]> wrote:

Hi Rob,
Hi Deepal

Thank you very much Rob, what you write below is the solution to my problem.
JIRA AXIS2-1991 must remain open until this is fixed in documentation and in 
AXIS2.XML or in code or both or vice versa.

I have adjusted AXIS2.XML ConfigContextTimeoutInterval to 3 (now expresing 
a timeout in milliseconds) and all clients running in
parallel threads are now working very fine in scope=soapsession.

This error has costed me weeks of work including communication and 
missunderstandings with others. Rob, thank you very much again.

Josef Stadelmann




-Ursprüngliche Nachricht-
Von: Rasile, Rob [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 5. März 2007 20:34
An: axis-user@ws.apache.org
Betreff: RE: AW: sesion managment, scope=soapsession


I've been having the same issue.  I traced through the axis2 source and found 
the following:

1) Axis2 has a ConfigContextTimeoutInterval parameter in axis2.xml that by 
default is set to 30 with a comment stating this is in seconds.
2) Whenever the axis2.apache.axis2.context.ConfigurationContext registers a new 
ServiceGroupContext (resgisterServiceGroupContext), it adds the servicegroupid to a 
hashmap (serviceGroupContextMap), then "cleans-up" the hashmap using the 
following logic:

A timeout has occurred if currentTime - serviceGroupContext.getLastTouchedTime() 
> ConfigContextTimeoutInterval

The issue is that currentTime and lastTouchedTime are measured in millisecs 
(they are longs), whereas ConfigContextTimeout is treated as seconds (simply 
because the value in the axis2.xml is entered as secs). Therefore axis2 always 
thinks that context has timed-out and removes it.

My solution was to modify the axis2.xml ConfigContextTimeoutInterval
(ie. multiply it by 1000).  Looks like this was intended to be millisecs based 
on these lines of code from ConfigurationContext:

// current time out interval is 30 secs. Need to make this configurable
private long serviceGroupContextTimoutInterval = 30 * 1000;

I think that in the implementation of the configurable timeout the 
documentation just didn't get updated.


-Original Message-
From: Stadelmann Josef [mailto:[EMAIL PROTECTED]
Sent: Monday, March 05, 2007 11:28 AM
To: axis-user@ws.apache.org
Subject: AW: AW: sesion managment, scope=soapsession

Hi Deepal,

See my coment below +++>

-Ursprüngliche Nachricht-
Von: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 12. Dezember 2006 06:37
An: axis-user@ws.apache.org
Betreff: Re: AW: sesion managment, scope=soapsession


Hi  Stadelmann ;

>
>My client #1 runs continously, and sends arround 40 msg a second to the server.
>When the second client starts, cline t#1 is still sending messages and so we do
>not have a time-out condition. client #1 never times out.
>
>BUT as I decribe, using the code shown, when client #2 starts 
MyService.destroy()
>is called followed by MyService.init() which has the effect that client #1 
fails
>thereafter with an "invalid group context id exception"
>
>
hmmm, can you please help me to re-create the problem. If you can send
me the sample services and clients that will be very helpful for me to
fix the issue.

>
>I would appreciate an example on how to have a scenario as I describe.
>When I read literature about tomcat, retriving a session object from the
>clients request object, it seems that internals are figuring out which client
>is calling and the rigth session object which acts as data store for the
>session is returned/created.
>
>How is that with AXIS2-1.1?
>
>
Will write a sample soon .
+++> Do you have an example now showing how to maintain statefull session 
objects?




>When the MyService Object gets created I store the creation time for the
>instance in a instance variable. And when multiple clients run without
>scope=soapsession set, all clients return the same time stamp. So that
>means for me! client #1 makes axis2 creating a first instance of a class,
>and places the creation timestamp.
>
>
That can not happen , there should be a separate service impl class for
each client, Im 100% sure about that since I have tested that. :)

+++> and what happens if the service class or variables such as the
time stamp are defined static. I have just now read a book about the Java Nativ 
Interface


The Java programming language supports two kinds of fields. Each instance of a
class has its own copy of instance fields of the class, whereas all instances of
a class share the static fields of a class.


I think this answers why my time stamp, which was implemented as a static field,
returnes to each client the same date/time, the time it was last overwritten
when a instance gets created.


NOTE: Instances migth still be separate and be running in different threads but
as long

Re: Axis and Apache XML-RPC api

2007-03-06 Thread Oscar
Many thanks Anne for your reply.

Kind regards, 
Oscar 

El vie, 02-03-2007 a las 09:12 -0500, Anne Thomas Manes escribió:
> See inline ...
> 
> On 3/1/07, Oscar <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I'm a newbie in web services and after lots of reading I'm trying to
> > evaluate Apache Axis and Apache XML-RPC api.
> >
> > The following questions come to my mind:
> >
> > 1- does Axis make any use of xml-rpc internally?
> 
> No.
> 
> > 2- does an Apache XML-RPC based web service peform better than a
> > web service based on the Axis framework?
> 
> No.
> 
> > 3- is Apache XML-RPC commonly used? (since there doesn´t seem to
> > be much documentation available on the web).
> 
> No.
> 
> > Thank you very much in advance for any sort of help or directions.
> >
> > Kind regards,
> > Oscar Diaz
> >
> >
> >
> > __
> > 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]
> >
> >
> 
> -
> 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

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



Re: [AXIS2] Using PKCS#11-compliant keystore

2007-03-06 Thread Davanum Srinivas

Antonio,

I've CC'ed rampart-dev@ mailing list. Please join the discussion there.

thanks,
dims

On 3/6/07, Antonio Borrelli <[EMAIL PROTECTED]> wrote:

Hi all,

i'm trying to use the rampart module to secure my Web Service realized
with axis2 engine.
I reach it using a jks keystore build by java keytool, but now i want
to realize another step using a keystore compliant to PKCS#11 (i want
to read my private key and/or my X.509  certificate from a smart-card
or any other hardware-security-module).

Does it exists a rampart feature by which is possible to do it?
Is a right way changing the security provider in the security.properties?

All the tip are welcome!

Bye bye,

All the best

/@nborrell

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





--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

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



[AXIS2] Using PKCS#11-compliant keystore

2007-03-06 Thread Antonio Borrelli

Hi all,

i'm trying to use the rampart module to secure my Web Service realized
with axis2 engine.
I reach it using a jks keystore build by java keytool, but now i want
to realize another step using a keystore compliant to PKCS#11 (i want
to read my private key and/or my X.509  certificate from a smart-card
or any other hardware-security-module).

Does it exists a rampart feature by which is possible to do it?
Is a right way changing the security provider in the security.properties?

All the tip are welcome!

Bye bye,

All the best

/@nborrell

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



Re: [Axis 1.4.x] Strategies for handling exceptions

2007-03-06 Thread Joshua White

Rob,

That sounds pretty cool.  Would you mind posting a small example?

Thanks,

Joshua


On 3/5/07, Rasile, Rob <[EMAIL PROTECTED]> wrote:


 One way is to create your own custom fault module (with a fault handler)
and add it to the in-fault/out-fault flow execution chain (which are
comprised of phases).  Within your custom fault handler you can intercept
the axis fault (which by that time is in the message context) and replace it
with something more to your liking (which is what I do).  If you look at the
axis2.xml you'll see these flows and the corresponding phases defined – as
well as where you can add your own phases/handlers.  If you'd like an
example on how to do this let me know and I'll post something tomorrow.


 --

*From:* Joshua White [mailto:[EMAIL PROTECTED]
*Sent:* Monday, March 05, 2007 9:26 PM
*To:* axis-user@ws.apache.org
*Subject:* [Axis 1.4.x] Strategies for handling exceptions



Hello,



I am looking for some examples on how to best handle checked and unchecked
exceptions.  Is there a "best" way to map to soap faults to return an
intelligent message to your client?  I have not seen many much documentation
or examples about this.  Any help you would be appreciated.



Regards,



Joshua



No implementation defined for org.apache.commons.logging.LogFactory

2007-03-06 Thread john . enevoldson

Hi,

I wonder if anyone can help with the following problem we are having using
axis:

We have a simple piece of code to call a webservice. This works fine when
we run the program
from the command line (java -cp ... prog.class).

However, we put the same code into a db2 stored procedure, compile, deploy
and then call the stored procedure and we get the
following error:

java.lang.ExceptionInInitializerError
at
org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.(Service.java:113)
at
com.cdyne.ws.EmailVerNoTestEmailLocator.(EmailVerNoTestEmailLocator.java:18)
at
com.cdyne.ws.EmailVerNoTestEmailSoapProxy._initEmailVerNoTestEmailSoapProxy(EmailVerNoTestEmailSoapProxy.java:13)
at
com.cdyne.ws.EmailVerNoTestEmailSoapProxy.(EmailVerNoTestEmailSoapProxy.java:8)
at PROCEDUR5.PROC5(PROCEDUR5.java:18)
Caused by: org.apache.commons.discovery.DiscoveryException: No
implementation defined for org.apache.commons.logging.LogFactory


The classpath is exactly the same in both cases and in both cases we are
running on the same server with the same jvm.

Any suggestions ?

Best regards,

John.

=
John Enevoldson

Pulsen Application AB

Direct: +46 (0)33 17 18 72
Email:  [EMAIL PROTECTED]

[axis2] Can I pass WS implementation data to MessageReceiverInOut.invokeBusinessLogic?

2007-03-06 Thread Rainer Menzner

Hi,

in the MessageReceiverInOut.invokeBusinessLogic() I want extend the 
location where any exceptions are caught, and I want to log the 
xcp-message along with some further information, so that no exception 
can slip through even if the client ignores a SOAP fault. My plan is to 
edit the method invokeBusinessLogic and to use the Log4j in order to log 
the exception messages. However I have no idea how I can pass any data 
from my service implementation code to this location. I have considered 
to "misuse" the MessageContext and to attach an additional object which 
bears implementation information I need to have available at that place, 
but I did not find a way to do so.


Could anyone tell me

- if this is possible at all

- if there are more elegant approaches to this in Axis2

- and, if this would be thread-safe if it is possible at all.


I would appreciate any comments,

Cheers,
-Rainer

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



Re: [Rampart] How i can install it on Axis2 1.1.1 ?

2007-03-06 Thread Ruchith Fernando

Please use rampart-dev@ws.apache.org for rampart related posts.

Thanks,
Ruchith

On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi!
The readme file of Rampart tell me of to run "ant" in the sample directory to 
install the module on Axis2.
I would to know if there is another way like to put his .jar files in the lib 
dorectory of Axis for example.
Thank you



--
Con Prometeo prestiti senza spese fino a 31.000 Euro!
http://click.libero.it/webnation06marz07



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





--
www.ruchith.org
www.wso2.org

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



Re: [Rampart] How i can install it on Axis2 1.1.1 ?

2007-03-06 Thread Ruchith Fernando

Hi,

You can simply copy the .jar files in the "lib" directory (Other than
the axiom-*.jar files) into the main "lib" dir of axis2. And then copy
the module (.mar) files as required.

Thanks,
Ruchith

On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi!
The readme file of Rampart tell me of to run "ant" in the sample directory to 
install the module on Axis2.
I would to know if there is another way like to put his .jar files in the lib 
dorectory of Axis for example.
Thank you



--
Con Prometeo prestiti senza spese fino a 31.000 Euro!
http://click.libero.it/webnation06marz07



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





--
www.ruchith.org
www.wso2.org

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



Re: Support of Asynchronous call in Apache Axis 1.1

2007-03-06 Thread Deepak Sharma

Thanks for the information guys!

On 3/5/07, Doug Davis <[EMAIL PROTECTED]> wrote:



I thought his question was limited to Axis 1.1 - Axis 1.4 and higher does
support it.

thanks
-Doug
__
STSM  |  Web Services Architect  |  IBM Software Group
(919) 254-6905  |  IBM T/L 444-6905  |  [EMAIL PROTECTED]


  *"Rémy Sanlaville" <[EMAIL PROTECTED]>*

03/05/2007 08:04 AM   Please respond to
axis-user@ws.apache.org

   To
axis-user@ws.apache.org  cc
  Subject
Re: Support of Asynchronous call in Apache Axis 1.1




Hi,

It seems it is not:
"Axis 1.x does not have the concept of asynchronous Web service invocation
and it is completely bound to request-response invocations, but in Axis2 it
is the other way round."*
**
http://www-128.ibm.com/developerworks/webservices/library/ws-soa-axis2-1/*

Rémy

2007/3/5, Deepak Sharma <[EMAIL PROTECTED] <[EMAIL PROTECTED]>>:
Hi Guys,

I need to know whether Apache Axis 1.1 suports Asynchronous call.

Thanks in advance,
Deepak







--

   \|/
 | ~ ~ |
(- 0 0 -)
#--oOOo--(_)--oOOo---#

  It's better to burn out, than to fade away.
  A great leader never sets himself above his followers except in carrying
responsibilites.
 Oooo.
#--.oooO-()--#
  ()   )  /
  \


[Rampart] How i can install it on Axis2 1.1.1 ?

2007-03-06 Thread [EMAIL PROTECTED]
Hi!
The readme file of Rampart tell me of to run "ant" in the sample directory to 
install the module on Axis2.
I would to know if there is another way like to put his .jar files in the lib 
dorectory of Axis for example.
Thank you
 


--
Con Prometeo prestiti senza spese fino a 31.000 Euro!
http://click.libero.it/webnation06marz07



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



access to attachments with streams

2007-03-06 Thread Manuel Ernstberger
Hello,

how can I get access to SOAP attachments with streams? I want to create an 
attachment part with a data handler that has a stream as data source.
Do you have a code snippet that demonstrates this?

Thank you in advance.

Regards,
Manuel

-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out

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



How to access Servlet Context in Handler/Provider class

2007-03-06 Thread sarvu gopa
Hi all,

Anybody can help how to access Servlet context from my
Handler/Provider class.  I want to share some data among some
servlets across irrespective of client sessions.

Thanks in advance

Sarvu


Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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



Re: WS-Addressing SOAP binding question

2007-03-06 Thread Jim Alateras

David Illsley wrote:

No you don't, you just need to confugure the client to 'use a separate
listener' and the runtime will do the rest.

See the EchoBlockingDualClient sample described at [1]


thxs for the link David. I will follow up

cheers



David

[1] http://ws.apache.org/axis2/1_1_1/userguide-samples.html

On 05/03/07, Jim Alateras <[EMAIL PROTECTED]> wrote:

Callner, David A. wrote:
> No problem
>
are there any examples of such a scenario?

How does this work? Do I need to specify something in the binding
section indicating that the response will be sent asynchronously and in
a separate connection to that of the request.

cheers

> -Original Message-
> From: Jim Alateras [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 05, 2007 1:41 PM
> To: axis-user@ws.apache.org
> Subject: Re: WS-Addressing SOAP binding question
>
> David Illsley wrote:
>> Hi,
>> What do you mean by support?
> Hi David. If i have a request reply operation that is bound to
> SOAP/HTTP
> and I supply a non-anonymous URI  for the ReplyTo address can I get
> behaviour specified in 5.2.1 below.
>
> Will the generated stubs and skeletons work?
>
> cheers
> 
>> David
>>
>> On 05/03/07, Jim Alateras <[EMAIL PROTECTED]> wrote:
>>> I was wondering whether axis2 supports the following WS-Addressing
> SOAP
>>> Binding requirements from
>>> (http://www.w3.org/TR/2006/REC-ws-addr-soap-20060509/)
>>>
>>>
>>>
>>> 5.2 Use of Non-Anonymous Addresses in SOAP Response Endpoints
>>> 5.2.1 SOAP 1.1/HTTP
>>>
>>> When "http://www.w3.org/2005/08/addressing/anonymous"; is not
> specified
>>> for the response endpoint, then the message SHOULD be part of a
> binding
>>> that supports not returning a SOAP envelope in the HTTP response
> (e.g.
>>> see [SOAP 1.1 Request Optional Response HTTP Binding]). Any response
>>> message SHOULD be sent using a separate connection and using the
> address
>>> value specified by response endpoint. Note that other specifications
> MAY
>>> define special URIs that have other behaviors (similar to the
> anonymous
>>> URI).
>>> 5.2.2 SOAP 1.2
>>>
>>> When "http://www.w3.org/2005/08/addressing/anonymous"; is not
> specified
>>> for the response endpoint, then any response SHOULD NOT be the
>>> http://www.w3.org/2003/05/soap/mep/OutboundMessage property of the
> same
>>> instance of the SOAP request-response MEP [SOAP 1.2 Adjuncts]. For
>>> instance, a SOAP 1.2 HTTP binding that supports a one-way MEP could
> put
>>> the reply message in a separate one-way MEP and a separate HTTP
> request.
>>> As in SOAP 1.1/HTTP, note that other specifications MAY define
> special
>>> URIs that have other behaviors (similar to the anonymous URI)
>>>
>>> cheers
>>> 
>>>
>>>
> -
>>> 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: WS-Addressing SOAP binding question

2007-03-06 Thread David Illsley

No you don't, you just need to confugure the client to 'use a separate
listener' and the runtime will do the rest.

See the EchoBlockingDualClient sample described at [1]

David

[1] http://ws.apache.org/axis2/1_1_1/userguide-samples.html

On 05/03/07, Jim Alateras <[EMAIL PROTECTED]> wrote:

Callner, David A. wrote:
> No problem
>
are there any examples of such a scenario?

How does this work? Do I need to specify something in the binding
section indicating that the response will be sent asynchronously and in
a separate connection to that of the request.

cheers

> -Original Message-
> From: Jim Alateras [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 05, 2007 1:41 PM
> To: axis-user@ws.apache.org
> Subject: Re: WS-Addressing SOAP binding question
>
> David Illsley wrote:
>> Hi,
>> What do you mean by support?
> Hi David. If i have a request reply operation that is bound to
> SOAP/HTTP
> and I supply a non-anonymous URI  for the ReplyTo address can I get
> behaviour specified in 5.2.1 below.
>
> Will the generated stubs and skeletons work?
>
> cheers
> 
>> David
>>
>> On 05/03/07, Jim Alateras <[EMAIL PROTECTED]> wrote:
>>> I was wondering whether axis2 supports the following WS-Addressing
> SOAP
>>> Binding requirements from
>>> (http://www.w3.org/TR/2006/REC-ws-addr-soap-20060509/)
>>>
>>>
>>>
>>> 5.2 Use of Non-Anonymous Addresses in SOAP Response Endpoints
>>> 5.2.1 SOAP 1.1/HTTP
>>>
>>> When "http://www.w3.org/2005/08/addressing/anonymous"; is not
> specified
>>> for the response endpoint, then the message SHOULD be part of a
> binding
>>> that supports not returning a SOAP envelope in the HTTP response
> (e.g.
>>> see [SOAP 1.1 Request Optional Response HTTP Binding]). Any response
>>> message SHOULD be sent using a separate connection and using the
> address
>>> value specified by response endpoint. Note that other specifications
> MAY
>>> define special URIs that have other behaviors (similar to the
> anonymous
>>> URI).
>>> 5.2.2 SOAP 1.2
>>>
>>> When "http://www.w3.org/2005/08/addressing/anonymous"; is not
> specified
>>> for the response endpoint, then any response SHOULD NOT be the
>>> http://www.w3.org/2003/05/soap/mep/OutboundMessage property of the
> same
>>> instance of the SOAP request-response MEP [SOAP 1.2 Adjuncts]. For
>>> instance, a SOAP 1.2 HTTP binding that supports a one-way MEP could
> put
>>> the reply message in a separate one-way MEP and a separate HTTP
> request.
>>> As in SOAP 1.1/HTTP, note that other specifications MAY define
> special
>>> URIs that have other behaviors (similar to the anonymous URI)
>>>
>>> cheers
>>> 
>>>
>>>
> -
>>> 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]





--
David Illsley - IBM Web Services Development

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



Axis2: How to use arbitrary Java classes as method parameters

2007-03-06 Thread Ines Dannehl
Hi all,

 

I use Axis2 version 1.1.1 and I try to create a webservice with a method
that takes my own java class as a parameter.

How can I do this? The generated code contains OMElement types instead
of my class types. 

 

Can anybody help me please?

 

Regards

Ines

 



Re: [Axis2] axs2 and attachments

2007-03-06 Thread holodok

Thank you very much. Now everything is working nice.
-- 
View this message in context: 
http://www.nabble.com/axs2-and-attachments-tf3348698.html#a9327982
Sent from the Axis - User mailing list archive at Nabble.com.


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