[axis2]

2005-09-07 Thread Johan Andersson



Hello,
 
I want to find a way to define the package 
names for the xmlbeans data binding classes generated by WSDL2Java in Axis2 (not the stub/skeleton files, I already know the 
option to the generator).
 
I tried creating a .xsdconfig file and place that 
in the same folder as the WSDL but it did not work 
(no difference from having a xsdconfig or 
not).
 
Any advice on how this can be 
achieved?
 
 
Best Regards,
 
Johan


random MultiThreadTestCase failure

2005-09-07 Thread Vinay Srinivasaiah
Hello,

   I found that the functional test - MultiThreadTestCase, was failing
randomly, and wanted to get some head-start solving the problem.

The exception goes like this:

java.lang.NullPointerException
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:216)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at 
samples.addr.AddressBookSOAPBindingStub.addEntry(AddressBookSOAPBindingStub.java:180)
at 
test.wsdl.multithread.MultithreadTestCase$Run.run(MultithreadTestCase.java:87)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NullPointerException
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at 
org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Unknown 
Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown 
Source)
at 
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at 
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at 
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
... 8 more
Had 192 successes (of a possible 200)

Thanks for any pointers,
- Vinay



Question on the 'start with WSDL' approach

2005-09-07 Thread Shantanu Sen
I am looking at the 'start with wsdl' approach of
building a web service.

If I follow this approach, I can use either an editor
or any tool to build the abstract part of a WSDL -
i.e. with no binding or service elements. Ideally,
since I have defined the abstract interface I should
be able to run a tool to generate the java artifacts
and proceed from there. 

But the standard WSDL2Java tool does not generate the
java interface from the portType information unless a
binding element is added to the WSDL. The tool
generates complex types that are exchanged in the
interface methods correctly, but not the actual
interface from the portType.

I am looking for any inputs about people's experience
with the 'start with WSDL approach'. Should I hand
generate a default binding and then use the WSDL2Java
and move from there? Or is there any better option?

Thanks,
Shantanu Sen



Re: SAX or StAX?

2005-09-07 Thread Jimmy zhang



Check out vtd-xml http://vtd-xml.sf.net
It is a new XML processing APi that can accomplish 
what you described.
 
here is an article
 
http://xml.sys-con.com/read/48764.htm

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  To: axis-user@ws.apache.org 
  Sent: Thursday, August 11, 2005 11:06 
  PM
  Subject: SAX or StAX?
  
  
  Hi everybody,I’ve got 
  an SOAP-Message stored in a byte-array data:// copy the data (SOAP) from udp packetbyte[] data = "">new byte[packet.getLength()];System.arraycopy(packet.getData(), packet.getOffset(), data, 0, packet.getLength());
  Now I like to have the SOAP-Envelope of the 
  SOAP-Message. Does it make more sense to use StAX or SAX for this job (I’m 
  using Axis2)??? How would the solution (with the byte-array) be 
  realized??Thanks for your 
  help,Chris


RE: Axis and log4j

2005-09-07 Thread Sabitha








create a log4j.properties file with your
own setting and place in axis classpath.

 









From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 07,
2005 12:28 PM
To: axis-user@ws.apache.org
Subject: Axis and log4j



 


Hello, 

I
am using Axis 1.2  on WSAD 5.1.  I run the ant task for  WSDL2Java
to cretate my service, stub, skeleton from my WSDL.  I just need to know
how to integrate log4j so I can see the DEBUG messages that can be thrown by
axis.. please shed some light on this topic. Is there any good tutorial
available for this? 

Your
help is highly appreciated!








AW: Axis and log4j

2005-09-07 Thread Krenzke Thomas



Hello,
 
have a look at: 

 
http://minaret.biz/tips/tomcatLogging.html
 
 Thomas Krenzke 
SEKAS 
GmbH Baierbrunner Str. 23 D-81379 München Fon: +49 
(0) 89 74 81 340 Fax: +49 (0) 89 74 81 34 
99 URL: http://www.sekas.de 
Der Inhalt dieses E-Mails ist ausschließlich 
für den bezeichneten Adressaten 
bestimmt. Jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder  Weitergabe des Inhalts 
dieses E-Mails durch unberechtigte 
Dritte ist unzulässig. Wir bitten Sie, sich mit dem Absender des E-Mails in Verbindung zu setzen, falls Sie nicht 
der Adressat dieses E-Mails sind und 
das Material von Ihrem Computer zu löschen. 
This e-mail and any attachments are 
confidential and intended solely for the addressee. The perusal, publication, copying or dissemination of 
the contents of this e-mail by 
unauthorised third parties is prohibited. If you are not the intended recipient of this e-mail, please 
delete it and immediately notify the 
sender. 
Besuchen Sie uns auf der PRODUCTRONICA 
2005  (München 15. - 18. November 2005) -  Halle A5, 
Stand A5.419 

  -Ursprüngliche Nachricht-Von: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Gesendet: Mittwoch, 7. 
  September 2005 18:28An: axis-user@ws.apache.orgBetreff: 
  Axis and log4jHello, I am using Axis 1.2 
   on WSAD 5.1.  I run the ant task for  WSDL2Java to cretate my 
  service, stub, skeleton from my WSDL.  I just need to know how to 
  integrate log4j so I can see the DEBUG messages that can be thrown by axis.. 
  please shed some light on this topic. Is there any good tutorial available for 
  this? Your help is highly 
  appreciated!

###

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/


Thomas, Krenzke (E-Mail).vcf
Description: Binary data


Axis and log4j

2005-09-07 Thread raj . x . arunmugan

Hello,

I am using Axis 1.2  on WSAD 5.1.  I run the ant task for  WSDL2Java to cretate my service, stub, skeleton from my WSDL.  I just need to know how to integrate log4j so I can see the DEBUG messages that can be thrown by axis.. please shed some light on this topic. Is there any good tutorial available for this?

Your help is highly appreciated!

Re: method overloading

2005-09-07 Thread Eran Chinthaka



thilina madu wrote:

1.Is it possible to overload methods? Becouse normally we pass the 
data to methods as omelement where there we don't specify the data 
type.so ,If it is like that how we process on data(float and int) 
within that method.


This is called Data Binding, just a reminder :-)

 


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





Problem with session management

2005-09-07 Thread Jesús Daniel Blázquez Carazo



I am trying to session management using a servlet 
client on jboss server.
 
The deploy.wsdd in server 
 



name="TerregovService" 
xmlns="http://xml.apache.org/axis/wsdd/"
targetNamespace="http://localhost:8080/TerregovService"
xmlns:trights="http://localhost:8080/TerregovService"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

















































 
and works well because in SOAP header contains session 
value, but  the client does not put session value in SOAP 
request.
 
The client.wsdd is generated automatically with org.apache.axis.utils.Admin client deploy.wsdd:
 

















































































 
My question is: It's enough with this or it is necesary to 
do something more?
My client invoke stub generated with WSLD2Java classes. I 
think is a problem with AxisEngine configuration in client part but I do not 
know sure.
Thanks for your future answers.


Attachment upload Client to Server

2005-09-07 Thread Stefan Schuster

Hi everybody,

how can I send an attachment from the client to an server without
using the DataHandler in the method signature? I tried
to get the MessageContext (getCurrentMessageContext()), but it
returns null.

How can I obtain an messageContext to set the attachment to an
message in the client?

Thanks in advance,

Stefan



How to registering dynamic type mappings while invoking a WS call

2005-09-07 Thread Anup Nair
Hello In the Axis1.x version the Call interface provided mechanism to register dynamic type binding which is absent in the new Axis2 version.How can I dynamically register  type mappings using Axis2 Please guide me how to do this.
 Previously I was using the wsdd file which was replicated on the client as well as server side, and by registering the type mapping from the client side in the call, I was able to circumvent the need to use wsdl2java at the client side. Now if I want to acheive the same behaviour, could you please suggest a way out. 
 ThanksAnup Nair


Session management

2005-09-07 Thread Clarence Dahlin








Hi,

 

I’m thinking about the best way of handling
sessions for the project I’m working on. 

I know that most (all?) toolkits handle sessions in
the SOAP Header. Correct me if I’m wrong. In spite of this, my first
approach was to send session data within the SOAP message. The application on
the server side (web service) would then handle the session.

 

What are the benefits of letting the toolkits handle
sessions? Is it much faster and scalable because it doesn’t have to “look
in” the SOAP envelope perhaps?

Which is the most common approach to session
management?

 

What are the drawbacks of using the “session in
message” approach?

 

I would like to be as independent of toolkits as possible.
Though I’d like the client developers to be able to use Axis and other
for easy developing (WSDL2Java).

 

It seems like a client needs to run the client side
framework of Axis to use sessions in SOAP Headers. Is this correct? If so, it
would be a problem for me in this project.

 

We are using the WSDL as an API. I’d like
everything to be defined in the WSDL or the imported XML Schemas. This is one
of the reasons why I didn’t choose the SOAP header approach to begin
with.

 

Kind regards,

Clarence

 








DIME Attachment

2005-09-07 Thread Jérôme PICARD

Hello,

I want to upload a document to a webservice with DIME attachment.

Do you have some example or tutorial about it ?

Thanks,

Regards,
Jérôme.


RE: Throwing custom exceptions

2005-09-07 Thread Chris Nappin
See samples\faults in the Axis 1.2.1 distribution for some examples, and
look through the archive (the last week or so) for this mailing list for
other details of creating custom exceptions.

Another link you may find useful is
http://www.gridlab.org/WorkPackages/wp-5/guide/faults.html 

Cheers,

  Chris.

-Original Message-
From: Jarmo Doc [mailto:[EMAIL PROTECTED] 
Sent: 06 September 2005 22:03
To: axis-user@ws.apache.org
Subject: Throwing custom exceptions

I can't locate any simple documentation or examples about how to
generate 
custom exceptions (e.g. if I want user-defined content in the exception
e.g. 
France) or how to get the exception description into
my 
WSDL using java2wsdl.  I'm surprised that the samples that ship with
Axis 
1.2.1 have zero examples (whcih may be an indication that I'm looking
for 
the wrong thing, of course).

So, to get me started in the right direction ... am I correct in
thinking 
that my web service should throw AxisFault (and play about with
'details' or 
'subcode'?) rather than Exception or SOAPException or
SOAPFaultException?

_
Express yourself instantly with MSN Messenger! Download today - it's
FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



 
CONFIDENTIALITY & PRIVILEGE NOTICE

This e-mail is confidential to its intended recipient. It may also be 
privileged. Neither the confidentiality nor any privilege attaching to this 
e-mail is waived lost or destroyed by reason that it has been mistakenly 
transmitted to a person or entity other than its intended recipient. If you are 
not the intended recipient please notify us immediately by telephone or fax at 
the numbers provided above or e-mail by Reply To Author and return the printed 
e-mail to us by post at our expense. We believe, but do not warrant, that this 
e-mail and any attachments are virus-free, but you should check. We may monitor 
traffic data of both business and personal e-mails. We are not liable for any 
opinions expressed by the sender where this is a non-business e-mail. If you do 
not receive all the message, or if you have difficulty with the transmission, 
please telephone us immediately.


AW: goes out of memory again

2005-09-07 Thread Wolters, Oliver
Title: Nachricht



Hi,
 
I had 
a similar problem a few weeks ago: I have to send a very big multi-dimensional 
array as a resultset to my clients. To avoid an "OutOfMemory"-Exception on both 
- the client and the server - I have written the webservice "interface" like 
this:
 
void 
setDataBlockSize( int );   // Set the number 
of datarows to return in one query
void 
loadData();  
// This makes the Query and buffers the result from the 
database
bool 
hasNextData()    
// Let the client now, if there's another data block
myData 
getNextDataBlock()   // Get the next data 
block
 
The 
Client now makes:
 
setDataBlockSize( X ); // You should have a 
"MAX_BLOCK_SIZE" defined that the client should not exceed
 
loadData( "This could be a query parameter" 
);
 
while( 
hasNextData() ){
    DataBlock myData = 
getNextDataBlock();
    
    // Do something with your 
data
}
 
As you 
can see the service has a state in this implementation. So you have to use 
sessions in this case! But this all works fine for me: I'm able to query 10MB of 
data without getting an "OutOfMemory".
 
Regards
Oliver

  
  -Ursprüngliche Nachricht-Von: Anil Jnm 
  [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 7. September 2005 
  09:00An: axis-user@ws.apache.orgBetreff: Re: goes out of 
  memory again
  I think this has to be handled outside of AXIS. I think you should 
  restrict the client from accessing all the records in one shot. Typically 
  there should be some kind of restriction on the records 
  returned. 
   
  On 9/6/05, MUHAMMAD 
  IQBAL <[EMAIL PROTECTED]> wrote: 
  Hi 
All ,Thanks a lot Jim T.I am using AXIS Web Services that is 
involved in quering data from a huge database, serilized that data in 
XML format using XMBeans and then parse inDOM Element and sent this xml 
response to the client.XML data parsing and every thing is going 
well but when my services sentthis xml response to client it goes out of 
memory -  Java Heap. I am in need to send response in 
parts instead of whole huge Document, isthere any way in AXIS that a 
method can return response in parts withseveral attampt?can any 
one tell me the solution ?Thanks and 
regards,Iqbal


Re: goes out of memory again

2005-09-07 Thread Anil Jnm
I think this has to be handled outside of AXIS. I think you should restrict the client from accessing all the records in one shot. Typically there should be some kind of restriction on the records returned. 

 
On 9/6/05, MUHAMMAD IQBAL <[EMAIL PROTECTED]> wrote:
Hi All ,Thanks a lot Jim T.I am using AXIS Web Services that is involved in quering data from a huge
database, serilized that data in XML format using XMBeans and then parse inDOM Element and sent this xml response to the client.XML data parsing and every thing is going well but when my services sentthis xml response to client it goes out of memory -  Java Heap.
I am in need to send response in parts instead of whole huge Document, isthere any way in AXIS that a method can return response in parts withseveral attampt?can any one tell me the solution ?
Thanks and regards,Iqbal