unsubscribe me

2005-12-08 Thread sylvain . vuillemet
unsubscribe me

Hi, help
Does anyone know to really unsubscribe ? Despite lot of attempts, I'm still
receiving tons of mails !
___
Ce message est strictement confidentiel. Son intégrité n'est pas assurée
sur Internet. Le contenu de ce message ne peut engager la responsabilité du
groupe Atos Origin. Si vous n'êtes pas destinataire du message, merci d'en
avertir immédiatement l'expéditeur et de le détruire.
Bien que les meilleurs efforts soient faits pour maintenir cette
transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à
cet égard et sa responsabilité ne saurait être engagée pour tout dommage
résultant d'un virus transmis.
This e-mail is privileged and may contain confidential information intended
only for the person(s) named above. If you receive this e-mail in error,
please notify the sender immediately by telephone or return e-mail.
Although the sender endeavours to maintain a computer virus free network,
the sender does not warrant that this transmission is virus-free and will
not be liable for any damages resulting from any virus transmitted.



Re: [Axis2] - upgrading from [Axis1.3]

2005-12-08 Thread Simon McMahon
Hi,

Looks to me like Axis2 is geared more for message passing than RPC
which Axis 1.x handled very well. Axis2 obviously has other features
that Axis 1.3 doesn't but my existing services work best as RPC. Well,
at least I could get it to work. It also looks like you need to know
AXIOM pretty well to use Axis 2.

I think I have to wait for some more Axis2 examples and 1.x backwards
compatibility before I can migrate successfully.

Thanks,

Simon.


Simon McMahon

Work: (07) 31311420
Mobile: (043) 2294180


>>> [EMAIL PROTECTED] 12/08/05 03:38pm >>>
Forwarding to the list. It was my fault to hit reply and send only to
Simon. I am not sure of the Java2WSDL satus right now. May be ajith
would know better.
Chathura

On 12/8/05, Simon McMahon <[EMAIL PROTECTED]> wrote:
> Thanks for your time to look into it. I thought my change to the
wsdl
> was too dumb to work but if I keep hacking my wsdl file without
> understanding what I am doing I am most likely going to wreck it. In
the
> schema section I changed the "soapens:string" to "xsd:string" but I
dont
> know how to convert the "array" types. Is there more documentation
that
> I should be looking into or some other way? The only wsdl sample is
> Axis2SampleDocLit.wsdl.
>
> As I understand there is no Java2WSDL for Axis2 (yet).
>
> Sorry to keep with new questions but I'm a bit lost with what to try
> next...
>
> Surely people dont create wsdl by hand so where do Axis2 compliant
> wsdls come from?
> How do I start from just a class (.java) and build the wsdl, server
&
> client for Axis2 like I did with Axis 1.3 (1.2 when I started)?
> If Web Services are to be interoperable - i.e. a Axis2 client using
an
> Axis 1.3 server - how come the WSDL doesn't work as is?
> Is this just a question of time to finish Axis2 ?
>
> Regards,
>
> Simon.
>
>
> Simon McMahon
>
> Work: (07) 31311420
> Mobile: (043) 2294180
>
>
> >>> Chathura Herath <[EMAIL PROTECTED]> 12/08/05 02:39pm >>>
> I am sorry that wouldnt work. You need to get rid of all the
soapenc:
> types in the schema section. We use xml beans for databingding it
> cannot handle soap encoding. Though you have simply change the use
> from thm encoded to literal the semantic description of your data in
> schema is still SOAP encoded.
> Chathura
>
> On 12/7/05, Simon McMahon <[EMAIL PROTECTED]> wrote:
> > Original WSDL and edited are attached. The original was generated
by
> > Axis 1.3. All I did was substitute "encoded" for "literal" and
> changed
> > nothing else.
> >
> > My understanding of all this is pretty limited although I got my
> Axis
> > 1.3 service and client to work OK.
> >
> > Your help is most appreciated.
> >
> > Cheers,
> >
> > Simon.
> >
> >
> > Simon McMahon
> >
> > Work: (07) 31311420
> > Mobile: (043) 2294180
> >
> >
> > >>> [EMAIL PROTECTED] 12/08/05 01:56pm >>>
> > Doesn't seem right. Pls attach the edited WSDL.
> > Literal means the type is fully described by schema: Encoded mean
> the
> > semantics of encoding applies. If its SOAP encoding then the
> semantics
> > of SOAP encoding is used other than xsd type.
> > Chathura
> >
> > On 12/7/05, Simon McMahon <[EMAIL PROTECTED]> wrote:
> > > Hi again,
> > >
> > > I hacked up my Axis 1.3 generated wsdl and changed all
> > >  > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> > > namespace="urn:qh" use="encoded"/>
> > > to
> > >  > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> > > namespace="urn:qh" use="literal"/>
> > > based on the WSDL2Java error
> > > : java.lang.RuntimeException: The use 'encoded' is not
> > > supported!
> > >
> > > I have no idea what that means but now WSDL2Java runs to
> completion
> > and
> > > generates a whole bunch of files.
> > >
> > > What is the difference between "encoded" and "literal"?
> > > Why is all the standard 'databinding' source plugged into my
> package
> > ?
> > > Surely this will bloat the size of every web service.
> > >
> > > Also, my original Service method:
> > > public Provider[] getProvider(String name, String
> > providerId,
> > > String orgName, String locationId, int maxResults) throws
> Exception
> > > became:
> > > /**
> > >  * Auto generated method signatures
> > >  * @param param68
> > >  */
> > >  public org.apache.axis2.om.OMElement getProvider(
> > > org.apache.axis2.om.OMElement param68) throws
> > java.rmi.RemoteException;
> > >
> > > The only bit that stayed the same is the method name. How can
the
> > > stub/skeleton for the same web service be so different?
> > > Is there more I need to do to the WSDL to make it generate a
> proper
> > > interface and skeleton service?
> > >
> > > Regards,
> > >
> > > Simon.
> > >
> > >
> > > Simon McMahon
> > >
> > > Work: (07) 31311420
> > > Mobile: (043) 2294180
> > >
> > >
> > > >>> [EMAIL PROTECTED] 12/07/05 04:29pm >>>
> > > That would be it - all the samples use "services.xml". The
> > > documentation
> > > is correct on this too. Must just 

Re: How to get database connection in my service via connection pool

2005-12-08 Thread Ken Hu
>  use a static ThreadLocal (singleton) to hold the
> connection and thus associate a Connection with the thread - the same thread
> will be used to call the service handler at which point it can call
> MyThreadSpecificConnectionHolder.get() to get the connection assigned to the
> thread back out
> 

Thanks for your suggestion.
My servlet is like the following:
---
public class CtuAxisServlet extends AxisServlet {
private static Application _app = null;

public CtuAxisServlet() {
super();
}

public void init() throws javax.servlet.ServletException {
super.init();
ServletContext sContext = this.getServletContext();
_app = (Application) sContext.getAttribute("Application");
}


private static ThreadLocal tm_app = new ThreadLocal() {
protected synchronized Object getTMApp() {
return _app ;
}
};
}
---
A method name getConnection is encapsulated in _app object which is used
to get a data connection from my connection pool.

Right now , I still don't know how to get this _app object in my service
class(A java class which is deployed onto axis as my web service).
Could you please explain more to me ? Thanks !

Ken
-- 
研發部 胡重威 Ken Hu  [EMAIL PROTECTED]

孟華科技股份有限公司
http://www.mmti.com.tw

高雄巿804鼓山區蓮海路70號
國立中山大學創新育成中心511室

電話  07-5253020
傳真  07-5252165
行動  0937083880



Re: WSDL not displayed

2005-12-08 Thread Deepal Jayasinghe

hi Iwan;

I found that bug after releasing Axis2 , any way now its fix if you have any 
chance to get source update and build the project then you can see what to 
you want .


Thanks,
Deepal

~Future is Open~

- Original Message - 
From: "Iwan Memruk" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, December 08, 2005 3:02 AM
Subject: WSDL not displayed



Hello axis-user,

 The service contains a META-INF dir with a service.wsdl file.

 During the service inspection process, the wsdl gets found OK and is
 put into a HashMap.

 In the method ArchiveReader.buildServiceGroup():


if (SERVICE_ELEMENT.equals(rootelementName)) {
AxisService axisService = engine.getCurrentFileItem().
getService(DescriptionBuilder.getShortFileName(
engine.getCurrentFileItem().getName()));
if (axisService == null) {
axisService = new AxisService(
new QName(DescriptionBuilder.getShortFileName(
engine.getCurrentFileItem().getName(;
engine.getCurrentFileItem().addService(axisService);
}
axisService.setParent(axisServiceGroup);

axisService.setClassLoader(engine.getCurrentFileItem().getClassLoader());
ServiceBuilder serviceBuilder = new 
ServiceBuilder(axisConfig, axisService);
AxisService service = 
serviceBuilder.populateService(services);

ArrayList serviceList = new ArrayList();
serviceList.add(service);
return serviceList;


  The debugger shows that the wsdlServices parameter of this method
  contains an entry for the service.wsdl file.

  Seems like this part has to call axisService.setWSDLDefinition() to
  assign the wsdl file to the service. But it doesn't.

  Please help me find out whether this is a bug or I am doing
  something wrong.

--
Best regards,
Iwan  mailto:[EMAIL PROTECTED]







Re: [Axis2] Axis2 0.93 doesn't find resources in .aar

2005-12-08 Thread Ajith Ranabahu
Hmm..
I guess the problem is likely to be that hibernate internally tries to
load some of its classes by itself  and picks up a wrong class
loader! I'm not an expert of Hibernate but is there a way to specify
the classloader when creating/calling hibernate methods ?On 12/9/05, Deepal Jayasinghe <[EMAIL PROTECTED]
> wrote:Hi Iwan;I just checked and it worked me as required.Thanks,
 Deepal~Future is Open~- Original Message -From: "Iwan Memruk" <[EMAIL PROTECTED]
>To: Sent: Thursday, December 08, 2005 5:42 PMSubject: [Axis2] Axis2 0.93 doesn't find resources in .aar> Hello axis-user,
>>  Axis2 version 0.93>>  ..doesn't load resources from .aar for me.>>  And so did 0.92.>>  If i deploy the resources to axis2/WEB-INF/classes, they get loaded>  OK.
>>  Someone else faced this problem?>> --> Best regards,>
Iwan  mailto:[EMAIL PROTECTED]>>-- Ajith Ranabahu


How do I create a SOAP 1.2 sevice with axis 1.3

2005-12-08 Thread sohom sen
I am trying to create a SOAP 1.2 service with Axis1.3 using wsdd.While my original wsdl had SOAP1.2 bindings, when I used wsdl2java to generate the  classes and wsdd to deploy, it creates a SOAP1.1 service.How do I create a SOAP1.2 service using wsdd?TIA,- Sohom.
	
		Yahoo! Shopping 
Find Great Deals on Holiday Gifts at Yahoo! Shopping 

Re: [Axis2] Axis2 0.93 doesn't find resources in .aar

2005-12-08 Thread Deepal Jayasinghe

Hi Iwan;

I just checked and it worked me as required.

Thanks,
Deepal

~Future is Open~

- Original Message - 
From: "Iwan Memruk" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, December 08, 2005 5:42 PM
Subject: [Axis2] Axis2 0.93 doesn't find resources in .aar



Hello axis-user,

 Axis2 version 0.93

 ..doesn't load resources from .aar for me.

 And so did 0.92.

 If i deploy the resources to axis2/WEB-INF/classes, they get loaded
 OK.
 
 Someone else faced this problem?


--
Best regards,
Iwan  mailto:[EMAIL PROTECTED]






Re: Re[2]: [Axis2] Axis2 0.93 doesn't find resources in .aar

2005-12-08 Thread Deepal Jayasinghe

Hi Iwan ;

To load your resources the right way is get the class loader from 
AxisService and using that load your resources. As an example say your 
archive file name is foo.aar then the step is as follows;
  1. If you are going to use that at the MessageReciever level , get the 
axisService from msgContext and then
  2. axisService.getClassLoader(); will give you the class loader 
corresponding to the service , and using that you can load your resources in 
archive file.


If you are in a place that you do not have a msgContext , then you have to 
get your service from AxisConfiguration and ask its class loader.


Note : Since axis2 service are isolated (they have their own class loader) , 
the resources you put into archive file can not be taken from CCL.


Thanks,
Deepal

~Future is Open~

- Original Message - 
From: "Iwan Memruk" <[EMAIL PROTECTED]>

To: "Chathura Herath" <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, December 08, 2005 8:12 PM
Subject: Re[2]: [Axis2] Axis2 0.93 doesn't find resources in .aar



Hello Chathura,

Thursday, December 8, 2005, 4:08:15 PM, you wrote:

CH> Well i am not sure whethe i got your question right, if you are
CH> talking about deploying an service then the .aar files should go to
CH> $CATALINA_HOME\webapps\axis2\WEB-INF\services

CH> or pls use our nice admin interface to upload the aar.

CH> Chathura

Thanks for your concern. Here's a more detailed explanation:

1. My application loads Hibernate config file (an XML) as a resource.
2. It works locally, e.g. when unit-testing.
3. It works when the service is deployed in the extracted form, i.e. 
classes AND

resources in axis2/WEB-INF/classes, service as a directory in
WEB-INF/services etc. My Hibernate config gets loaded OK.
4. When deployed as an .aar, the resources are not found, even though
they are included in the .aar together with the classes.

CH> On 12/8/05, Iwan Memruk <[EMAIL PROTECTED]> wrote:

Hello axis-user,

  Axis2 version 0.93

  ..doesn't load resources from .aar for me.

  And so did 0.92.

  If i deploy the resources to axis2/WEB-INF/classes, they get loaded
  OK.

  Someone else faced this problem?

--
Best regards,
 Iwan  mailto:[EMAIL PROTECTED]





CH> --
CH> Chathura Herath
CH> http://www.bloglines.com/blog/chathurah




--
Best regards,
Iwanmailto:[EMAIL PROTECTED]







Re: [Axis2] - upgrading from [Axis1.3]

2005-12-08 Thread Deepal Jayasinghe

Hi Chathura and all;

I have done java2wsdl stuff using JAM (rather than using Java repletion 
directly do generate XML schema), but I have to test that well before 
releasing any way that there in o.a.a.w.a package.


Thanks,
Deepal

~Future is Open~

- Original Message - 
From: "Chathura Herath" <[EMAIL PROTECTED]>

To: ; "Ajith Ranabahu" <[EMAIL PROTECTED]>
Sent: Thursday, December 08, 2005 11:38 AM
Subject: Re: [Axis2] - upgrading from [Axis1.3]


Forwarding to the list. It was my fault to hit reply and send only to
Simon. I am not sure of the Java2WSDL satus right now. May be ajith
would know better.
Chathura

On 12/8/05, Simon McMahon <[EMAIL PROTECTED]> wrote:

Thanks for your time to look into it. I thought my change to the wsdl
was too dumb to work but if I keep hacking my wsdl file without
understanding what I am doing I am most likely going to wreck it. In the
schema section I changed the "soapens:string" to "xsd:string" but I dont
know how to convert the "array" types. Is there more documentation that
I should be looking into or some other way? The only wsdl sample is
Axis2SampleDocLit.wsdl.

As I understand there is no Java2WSDL for Axis2 (yet).

Sorry to keep with new questions but I'm a bit lost with what to try
next...

Surely people dont create wsdl by hand so where do Axis2 compliant
wsdls come from?
How do I start from just a class (.java) and build the wsdl, server &
client for Axis2 like I did with Axis 1.3 (1.2 when I started)?
If Web Services are to be interoperable - i.e. a Axis2 client using an
Axis 1.3 server - how come the WSDL doesn't work as is?
Is this just a question of time to finish Axis2 ?

Regards,

Simon.


Simon McMahon

Work: (07) 31311420
Mobile: (043) 2294180


>>> Chathura Herath <[EMAIL PROTECTED]> 12/08/05 02:39pm >>>
I am sorry that wouldnt work. You need to get rid of all the soapenc:
types in the schema section. We use xml beans for databingding it
cannot handle soap encoding. Though you have simply change the use
from thm encoded to literal the semantic description of your data in
schema is still SOAP encoded.
Chathura

On 12/7/05, Simon McMahon <[EMAIL PROTECTED]> wrote:
> Original WSDL and edited are attached. The original was generated by
> Axis 1.3. All I did was substitute "encoded" for "literal" and
changed
> nothing else.
>
> My understanding of all this is pretty limited although I got my
Axis
> 1.3 service and client to work OK.
>
> Your help is most appreciated.
>
> Cheers,
>
> Simon.
>
>
> Simon McMahon
>
> Work: (07) 31311420
> Mobile: (043) 2294180
>
>
> >>> [EMAIL PROTECTED] 12/08/05 01:56pm >>>
> Doesn't seem right. Pls attach the edited WSDL.
> Literal means the type is fully described by schema: Encoded mean
the
> semantics of encoding applies. If its SOAP encoding then the
semantics
> of SOAP encoding is used other than xsd type.
> Chathura
>
> On 12/7/05, Simon McMahon <[EMAIL PROTECTED]> wrote:
> > Hi again,
> >
> > I hacked up my Axis 1.3 generated wsdl and changed all
> >  > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> > namespace="urn:qh" use="encoded"/>
> > to
> >  > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> > namespace="urn:qh" use="literal"/>
> > based on the WSDL2Java error
> > : java.lang.RuntimeException: The use 'encoded' is not
> > supported!
> >
> > I have no idea what that means but now WSDL2Java runs to
completion
> and
> > generates a whole bunch of files.
> >
> > What is the difference between "encoded" and "literal"?
> > Why is all the standard 'databinding' source plugged into my
package
> ?
> > Surely this will bloat the size of every web service.
> >
> > Also, my original Service method:
> > public Provider[] getProvider(String name, String
> providerId,
> > String orgName, String locationId, int maxResults) throws
Exception
> > became:
> > /**
> >  * Auto generated method signatures
> >  * @param param68
> >  */
> >  public org.apache.axis2.om.OMElement getProvider(
> > org.apache.axis2.om.OMElement param68) throws
> java.rmi.RemoteException;
> >
> > The only bit that stayed the same is the method name. How can the
> > stub/skeleton for the same web service be so different?
> > Is there more I need to do to the WSDL to make it generate a
proper
> > interface and skeleton service?
> >
> > Regards,
> >
> > Simon.
> >
> >
> > Simon McMahon
> >
> > Work: (07) 31311420
> > Mobile: (043) 2294180
> >
> >
> > >>> [EMAIL PROTECTED] 12/07/05 04:29pm >>>
> > That would be it - all the samples use "services.xml". The
> > documentation
> > is correct on this too. Must just have been M2 that got it wrong
(or
> > just me :).
> >
> > > Blind guess. Check whether the dir of the aar name is META-INF.
> > > "meta-inf" might not work
> > > Chathura
> >
> > This was also correct - "meta-inf" did not work either. It was
tough
> > to
> > get right because Wi

Re: RE: Can you have more then one client handler - using client-config.wsdd

2005-12-08 Thread GEORGE MCKINNEY
The following is a sanitized (client identification info removed ) version of 
the file we use, with a few comments. It has two handlers outgoing and one 
incoming. Hope this helps.




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

   








 


  



- Original Message -
From: "Parikh,Pratik" <[EMAIL PROTECTED]>
Date: Thursday, December 8, 2005 11:56 am
Subject: RE: Can you have more then one client handler

> 
> Is there a example for this???
> 
> Thanks,
> Parikh, Pratik
> 
> 
> -Original Message-
> From: Guy Rixon [EMAIL PROTECTED]
> 
> Sent: Thursday, December 08, 2005 1:56 AM
> To: axis-user@ws.apache.org
> Subject: RE: Can you have more then one client handler
> 
> You could try combining them into a handler chain. You could then 
> assignthe chain to handle the request.
> 
> On Wed, 7 Dec 2005, Parikh,Pratik wrote:
> 
> > Can anyone reply to this??
> >
> >
> > Thanks,
> > Parikh, Pratik
> >
> > 
> >
> > From: Parikh,Pratik [EMAIL PROTECTED]
> > Sent: Wednesday, December 07, 2005 10:02 AM
> > To: axis-user@ws.apache.org
> > Subject: Can you have more then one client handler
> >
> >
> >
> > Hi Everyone,
> >
> > I have two handler in my client stub, one for logging out 
> messages
> > to MQ and second is for CommonsHTTPSender. Now the problem I am
> 
> > running into is that it only allow me to have one handler. Is there
> 
> > anyway I can run both, please let me know?
> >
> > Thanks,
> > Pratik
> >
> > CONFIDENTIALITY NOTICE
> >
> > This message and any included attachments are from Cerner 
> Corporation
> > and are intended only for the addressee. The information 
> contained in
> 
> > this message is confidential and may constitute inside or non-public
> 
> > information under international, federal, or state securities laws.
> 
> > Unauthorized forwarding, printing, copying, distribution, or use of
> 
> > such information is strictly prohibited and may be unlawful. If you
> 
> > are not the addressee, please promptly delete this message and 
> notify
> > the sender of the delivery error by e-mail or you may call Cerner's
> 
> > corporate offices in Kansas City, Missouri, U.S.A at (+1)
> 
> > (816)221-1024.
> >  --
> >
> >
> 
> Guy Rixon [EMAIL PROTECTED]
> Institute of Astronomy   Tel: +44-1223-337542
> Madingley Road, Cambridge, UK, CB3 0HAFax: +44-1223-337523
> 
> CONFIDENTIALITY NOTICE
> 
> This message and any included attachments
> are from Cerner Corporation and are intended
> only for the addressee. The information
> contained in this message is confidential and
> may constitute inside or non-public information
> under international, federal, or state
> securities laws. Unauthorized forwarding,
> printing, copying, distribution, or use of such
> information is strictly prohibited and may be
> unlawful. If you are not the addressee, please
> promptly delete this message and notify the
> sender of the delivery error by e-mail or you
> may call Cerner's corporate offices in Kansas
> City, Missouri, U.S.A at (+1) (816)221-1024.
>  --
> 



RE: Axis handler and Java NoClassDefFoundError problem

2005-12-08 Thread Mike Straw
Title: Message



Thanks for the 
reply.  
 
#3a seemed to do 
the trick (put JAR files in the axis/WEB-INF/lib directory).   I 
put complex.jar in that directory and updated AXISCLASSPATH and CLASSPATH 
to just include complex.jar without any leading path.  Life is beautiful 
once again.
 
Mike

  
  -Original Message-From: Soactive Inc 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 11:50 
  AMTo: axis-user@ws.apache.org; 
  [EMAIL PROTECTED]Subject: Re: Axis handler and Java 
  NoClassDefFoundError problemI can think of 3 
  things:1. Make sure you have the package names correctly specified at 
  the beginning of each Java file in question.2. Its preferred that you 
  bundle up all class files within .jar files (if possible).3a) Place 
  all the necessary jar files under axis/WEB-INF/lib since it uses that as the 
  base class path for libraries  at boot time.3b) Place all the 
  necessary class files under axis/WEB-INF/classes (follow the same path as the 
  package names - so a class called a.b.C needs to be placed under 
  WEB-INF/classes/a.b) since it uses that as the base classes path for classes 
  at boot time.Hope that helps,-Arun
  On 12/8/05, Mike 
  Straw <[EMAIL PROTECTED]> 
  wrote:
  I'm 
having a problem with my Axis handler and a pesky 
JAVANoClassDefFoundError error.Here is the 
background.  I'm using Axis 1.2.1 with tomcat 5.5.9 on a 
WindowsXP machine.  I deployed a simple service, created a 
simple client application and was able to connect to that service; no 
problem.Next, I created a simple Axis handler (in package a.b) for 
use by both thesimple service and simple client, I updated client and 
server WSDD files, redeployed the server, deployed the client and added 
the handler class 
filetotomcat/axis/WEB-INF/classes/a/b/simple_handler.classand/a/b/simple_handler.class 
Everything worked great!  I was beginning to think I 
actually was smarterthan I looked ... WRONG!I needed to add 
functionality to the simple handler; functionality that wascontained in 
a JAR file called complex.jar, which had the structurex/y/*.class (i.e., 
all java code in complex.jar was in package x.y).I updated 
simple_handler, copied the resulting simple_handler.class file tothe 
appropriate directories, added complex.jar to my AXISCLASSPATH 
andCLASSPATH, restarted tomcat and reran my simple client.  My 
simple clientand the simple_handler.class invoked on the client side 
worked great. But,the simple_handler running under tomcat came back with 
the class not found error shown below (bottom of 
email).complex.jar was found by the handler when running under the 
simple client,why couldn't it be found when running under the simple 
server?  I use a .batfile to set my AXISCLASSPATH and 
CLASSPATH, so both client and tomcat should have the same 
environment.Any help is 
appreciated.Thanks,Mike Straw[EMAIL PROTECTED]... 
tomcat startup info ...INFO: Server startup in 3078 ms - 
Exception:java.lang.NoClassDefFoundError: 
x/y/complexExceptionat 
java.lang.Class.forName0(Native 
Method)at 
java.lang.Class.forName(Class.java:242)at 
org.apache.axis.utils.ClassUtils$2.run 
(ClassUtils.java:176)at 
java.security.AccessController.doPrivileged(Native 
Method)at 
org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)at 
org.apache.axis.utils.ClassUtils.forName 
(ClassUtils.java:100)atorg.apache.axis.deployment.wsdd.WSDDDeployableItem.getJavaClass(WSDDDeployableItem.java:353)atorg.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeplo 
yableItem.java:295)atorg.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)atorg.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployabl 
eItem.java:260)atorg.apache.axis.deployment.wsdd.WSDDDeployment.getHandler(WSDDDeployment.java:394)atorg.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:276)... 
lots more ...


axis SAAJ namespace prefix problem

2005-12-08 Thread Pratibha Mittal
Hi,

I was able to get the whitespace problem solved. I am using Axis 1.1 which does 
not seem to have this parameter exposed. However I was able to change the axis 
code which sets pretty xml to false so this problem does not arise anymore and 
no extra whitespaces inserted in xml.

However, I am having another problem now. Axis when serializing messages, is 
removing prefix if there is default namespace. For example, if I have the 
following:

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 
wsu:Id="TrWh0UdhOBlayXdEr4JbRQ22">2005-12-05T22:39:47Z

And if I deserialize and serialize back, Axis gives me:

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 
wsu:Id="TrWh0UdhOBlayXdEr4JbRQ22">2005-12-05T22:39:47Z

This is causing problem because we are signing the timestamp element and then 
the verification is failing since the element has been modified when we remove 
the prefixes.

Is there any way to turn this off in Axis so Axis does not remove the prefix? 
Is this bug fixed in newer version of Axis? What are the solutions to solve 
this problem? 


-pratibha



-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 14, 2005 5:09 PM
To: axis-user@ws.apache.org
Subject: Re: axis SAAJ whitespace problem

Did you try the following in the global configuration section in Axis 1.1?



Am not sure if it was even implemented in the old version of Axis.

thanks,
dims

On 11/14/05, Pratibha Mittal <[EMAIL PROTECTED]> wrote:
> Hi Dims,
>
> Thanks for your reply. Do you know if this bug fix has been back ported to 
> axis 1.1 or if not, if it is possible to do that and if so how?
>
> -pratibha
>
> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 07, 2005 9:52 PM
> To: axis-user@ws.apache.org
> Cc: [EMAIL PROTECTED]
> Subject: Re: axis SAAJ whitespace problem
>
> Pratibha,
>
> Please upgrade to latest Axis 1.3. We've fixed this problem.
>
> thanks,
> dims
>
> On 11/7/05, Pratibha Mittal <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hi,
> >
> >
> >
> > We are using Axis SAAJ implementation (version 1.1 of axis). I seem to be
> > having problem when I am serializing the SOAP envelope object to byte
> > stream. It is putting extra whitespaces and line breaks. This is causing
> > problem in verification of message when a signed message comes.
> >
> >
> >
> > The scenario is like this:
> >
> >
> >
> > A web service client signs the soap BODY, and sends to the server. The
> > server mainpulates the SOAP header (does not touch the body) using SAAJ java
> > APIs. Then the server tries to verify the soap message. For verification,
> > when it retrives the soap message, axis needs to recreate the byte stream
> > from java SOAP Envelope object since the message has been modified. However
> > the message retrieved does not have the the exact same SOAP Body. It has
> > extra whitespaces and line breaks and hence the verification fails.
> >
> >
> >
> > I was able to isolate problem in a simple test example and I can see that
> > the body gets changed when axis recreates the byte stream.
> >
> >
> >
> > Is this an Axis bug? Is it fixed in later versions? Has anybody encountered
> > similar problem? What are the options I have to solve this problem? Could
> > anybody please reply.
> >
> >
> >
> > Attached is the test program I used which gives the problem.
> >
> >
> >
> > Thanks
> >
> > Pratibha Mittal
> >
> > Oracle Corporation
> >
> >
> >
> > **
> >
> >
> >
> > public static void test() {
> >
> >   String str0 = new String(
> >
> >   " > xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"; " +
> >
> >   "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"; " +
> >
> >
> > "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"; "
> > +
> >
> >
> > "xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\";
> > " +
> >
> >
> > "soap:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\";>
> > \n" +
> >
> > "\n" +
> >
> > "   > xmlns:ns2=\"urn:Test:GetTime\">\n" +
> >
> > "  > xsi:type=\"xsd:String\">VALUE\n" +
> >
> > "  \n" +
> >
> > "\n" +
> >
> > "");
> >
> >   byte[] b0 = str0.getBytes();
> >
> >   ByteArrayInputStream inputstream = new ByteArrayInputStream(b0);
> >
> >
> >   try {
> >
> >
> >
> > Message message = new Message(inputstream, false, null);
> >
> > ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
> >
> > message.writeTo(outputStream);
> >
> > byte[] b1 = outputStream.toByteArray();
> >
> > writeByteArray(b1);
> >
> >
> >
> > SOAPEnvelope envelope = message.getSOAPPart().getEnvelope();
> >
> > SOAPHeader existingHeader = envelope.getHeader();
> >
> > if(existingHeader != null) existingHeader.detachN

Re: Superfluous namespaces and Axis (axis 1.4 nightly release)

2005-12-08 Thread Ron Reynolds
based on your first example your second example is invalid -

in your first example  is in the
"http://www.globalcrossing.com/ifo/version_1.1"; namespace

in the second it's in "http://www.globalcrossing.com/version_1.1";.

i'm betting that  and  are also in
"http://www.globalcrossing.com/ifo/version_1.1";.  check your schema and target
namespaces and make sure they are what you think they are - Axis has always
been good about keeping namespace declarations to a minimum (as long as you
get the elementFormDefault="qualified" attribute in there).

hth.
..ron.

> Hello all,
>
> I was wondering why Axis seems to add a namespace declaration to pretty
> much every element when it marshals an object.
>
> It makes the messages larger then they really need to be... I'm not
> "complaining" so much as wondering...
>
> Thanks to all ( example below )
> -Clint
>
> I keep getting return objects like:
> === xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>   
>  xmlns="http://www.globalcrossing.com/ifo/version_1.1";>
>   
> 
>xmlns:ns1="http://www.globalcrossing.com/version_1.1";>43e8e292-0f2f-4fb0
> -a587-c6cc4bc73036
...

> when this is also perfectly valid (and ~50% the size)
> === xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>   
>  xmlns="http://www.globalcrossing.com/version_1.1";>
>   
> 
>   43e8e292-0f2f-4fb0-a587-c6cc4bc73036
...



Creating SOAP 1.2 sevice with axis 1.3

2005-12-08 Thread sohom sen
I am trying to create a SOAP 1.2 service with Axis1.3 using wsdd.While my original wsdl had SOAP1.2 bindings, when I used wsdl2java to  generate the  classes and wsdd to deploy, it creates a SOAP1.1  service.How do I create a SOAP1.2 service using wsdd?TIA,  - Sohom.  
	
		Yahoo! Shopping 
Find Great Deals on Holiday Gifts at Yahoo! Shopping 

RE: Can you have more then one client handler

2005-12-08 Thread Parikh,Pratik

This is how I have it right now. I want to use chain so it actually
don't over right the MQ one, and this happens in my "Stub".

//Auditing - start
org.apache.axis.Handler reqHandler = new

com.cerner.fsi.endpoint.axis.handlers.auditing.MQLoggerHandler();
org.apache.axis.Handler respHandler = new

com.cerner.fsi.endpoint.axis.handlers.auditing.MQLoggerHandler();
_call.setClientHandlers(reqHandler, respHandler);
//Auditing - end 

// Use HttpClient to call a SOAP server. - start
org.apache.axis.transport.http.CommonsHTTPSender
reqConnectionHandler =
new org.apache.axis.transport.http.CommonsHTTPSender();
org.apache.axis.transport.http.CommonsHTTPSender
respConnectionHandler =
new org.apache.axis.transport.http.CommonsHTTPSender();

_call.setClientHandlers(reqConnectionHandler,respConnectionHandler);

// Use HttpClient to call a SOAP server. - end


Thanks,
Parikh, Pratik | Software Engineer | Cerner Corporation |
(1)-816-201-1298 | [EMAIL PROTECTED] | www.cerner.com


-Original Message-
From: iksrazal [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 08, 2005 1:06 PM
To: axis-user@ws.apache.org
Subject: Re: Can you have more then one client handler

Here's a rough example for how it works for one handler.

  //add ClientHandler to chain of events
  java.util.List list =
svc.getHandlerRegistry().getHandlerChain(portQN);
  list.add(new
javax.xml.rpc.handler.HandlerInfo(ClientHandler.class,this.handlerConfig
,null));

I guess just repeat for the second, third etc ? Not sure how the
ordering would work either. Suggest looking at the API docs.

iksrazal

Em Quinta 08 Dezembro 2005 17:56, o Parikh,Pratik escreveu:
> Is there a example for this???
>
> Thanks,
> Parikh, Pratik
>
>
> -Original Message-
> From: Guy Rixon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 08, 2005 1:56 AM
> To: axis-user@ws.apache.org
> Subject: RE: Can you have more then one client handler
>
> You could try combining them into a handler chain. You could then
> assign the chain to handle the request.
>
> On Wed, 7 Dec 2005, Parikh,Pratik wrote:
> > Can anyone reply to this??
> >
> >
> > Thanks,
> > Parikh, Pratik
> >
> > 
> >
> > From: Parikh,Pratik [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 07, 2005 10:02 AM
> > To: axis-user@ws.apache.org
> > Subject: Can you have more then one client handler
> >
> >
> >
> > Hi Everyone,
> >
> > I have two handler in my client stub, one for logging out
> > messages
> >
> > to MQ and second is for CommonsHTTPSender. Now the problem I am
> > running into is that it only allow me to have one handler. Is there
> > anyway I can run both, please let me know?
> >
> > Thanks,
> > Pratik
> >
> > CONFIDENTIALITY NOTICE
> >
> > This message and any included attachments are from Cerner
> > Corporation and are intended only for the addressee. The information

> > contained in this message is confidential and may constitute inside
> > or non-public information under international, federal, or state
securities laws.
> > Unauthorized forwarding, printing, copying, distribution, or use of
> > such information is strictly prohibited and may be unlawful. If you
> > are not the addressee, please promptly delete this message and
> > notify the sender of the delivery error by e-mail or you may call
> > Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
> > (816)221-1024.
> >  --
>
> Guy Rixon [EMAIL PROTECTED]
> Institute of AstronomyTel: +44-1223-337542
> Madingley Road, Cambridge, UK, CB3 0HAFax:
+44-1223-337523
>
> CONFIDENTIALITY NOTICE
>
> This message and any included attachments are from Cerner Corporation
> and are intended only for the addressee. The information contained in
> this message is confidential and may constitute inside or non-public
> information under international, federal, or state securities laws.
> Unauthorized forwarding, printing, copying, distribution, or use of
> such information is strictly prohibited and may be unlawful. If you
> are not the addressee, please promptly delete this message and notify
> the sender of the delivery error by e-mail or you may call Cerner's
> corporate offices in Kansas City, Missouri, U.S.A at (+1)
> (816)221-1024.
>  --

CONFIDENTIALITY NOTICE

This message and any included attachments
are from Cerner Corporation and are intended
only for the addressee. The information
contained in this message is confidential and
may constitute inside or non-public information
under international, federal, or state
securities laws. Unauthorized forwarding,
printing, copying, distribution, or use of such
information is strictly prohibited and may be
unlawful. If you are not the addressee, please
promptly delete this message

RE: Can you have more then one client handler

2005-12-08 Thread Parikh,Pratik

What does "portQN" stand for???

Thanks,
Parikh, Pratik


-Original Message-
From: iksrazal [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 08, 2005 1:06 PM
To: axis-user@ws.apache.org
Subject: Re: Can you have more then one client handler

Here's a rough example for how it works for one handler.

  //add ClientHandler to chain of events
  java.util.List list =
svc.getHandlerRegistry().getHandlerChain(portQN);
  list.add(new
javax.xml.rpc.handler.HandlerInfo(ClientHandler.class,this.handlerConfig
,null));

I guess just repeat for the second, third etc ? Not sure how the
ordering would work either. Suggest looking at the API docs.

iksrazal

Em Quinta 08 Dezembro 2005 17:56, o Parikh,Pratik escreveu:
> Is there a example for this???
>
> Thanks,
> Parikh, Pratik
>
>
> -Original Message-
> From: Guy Rixon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 08, 2005 1:56 AM
> To: axis-user@ws.apache.org
> Subject: RE: Can you have more then one client handler
>
> You could try combining them into a handler chain. You could then
> assign the chain to handle the request.
>
> On Wed, 7 Dec 2005, Parikh,Pratik wrote:
> > Can anyone reply to this??
> >
> >
> > Thanks,
> > Parikh, Pratik
> >
> > 
> >
> > From: Parikh,Pratik [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 07, 2005 10:02 AM
> > To: axis-user@ws.apache.org
> > Subject: Can you have more then one client handler
> >
> >
> >
> > Hi Everyone,
> >
> > I have two handler in my client stub, one for logging out
> > messages
> >
> > to MQ and second is for CommonsHTTPSender. Now the problem I am
> > running into is that it only allow me to have one handler. Is there
> > anyway I can run both, please let me know?
> >
> > Thanks,
> > Pratik
> >
> > CONFIDENTIALITY NOTICE
> >
> > This message and any included attachments are from Cerner
> > Corporation and are intended only for the addressee. The information

> > contained in this message is confidential and may constitute inside
> > or non-public information under international, federal, or state
securities laws.
> > Unauthorized forwarding, printing, copying, distribution, or use of
> > such information is strictly prohibited and may be unlawful. If you
> > are not the addressee, please promptly delete this message and
> > notify the sender of the delivery error by e-mail or you may call
> > Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
> > (816)221-1024.
> >  --
>
> Guy Rixon [EMAIL PROTECTED]
> Institute of AstronomyTel: +44-1223-337542
> Madingley Road, Cambridge, UK, CB3 0HAFax:
+44-1223-337523
>
> CONFIDENTIALITY NOTICE
>
> This message and any included attachments are from Cerner Corporation
> and are intended only for the addressee. The information contained in
> this message is confidential and may constitute inside or non-public
> information under international, federal, or state securities laws.
> Unauthorized forwarding, printing, copying, distribution, or use of
> such information is strictly prohibited and may be unlawful. If you
> are not the addressee, please promptly delete this message and notify
> the sender of the delivery error by e-mail or you may call Cerner's
> corporate offices in Kansas City, Missouri, U.S.A at (+1)
> (816)221-1024.
>  --

CONFIDENTIALITY NOTICE

This message and any included attachments
are from Cerner Corporation and are intended
only for the addressee. The information
contained in this message is confidential and
may constitute inside or non-public information
under international, federal, or state
securities laws. Unauthorized forwarding,
printing, copying, distribution, or use of such
information is strictly prohibited and may be
unlawful. If you are not the addressee, please
promptly delete this message and notify the
sender of the delivery error by e-mail or you
may call Cerner's corporate offices in Kansas
City, Missouri, U.S.A at (+1) (816)221-1024.
 --


Re: How to get database connection in my service via connection pool

2005-12-08 Thread Guy Rixon
Perhaps the idea here is to hide the JNDI look-up of the connection factory in
the servlet, thereby making the service code cleaner? In that case, your ideas
would still apply, but it's the ConnectionPool itself that needs to be passed
to the service, rather than the a specific connection. If the OP has a service
handler that knows about the special connection pool but not about the servlet
environment, then this would work. It might might make the service handler
testable away from the J2EE environment, which would be good.

On Thu, 8 Dec 2005, Ron Reynolds wrote:

> you mean how do you pass it forward from your servlet to your service handler?
>  i can see three ways - use a static ThreadLocal (singleton) to hold the
> connection and thus associate a Connection with the thread - the same thread
> will be used to call the service handler at which point it can call
> MyThreadSpecificConnectionHolder.get() to get the connection assigned to the
> thread back out.  OR you can put the connection into the MessageContext (which
> itself is stored in a ThreadLocal) using its setProperty()/getProperty()
> methods to pass it forward.
>
> tho in most cases its the service-handler's code that calls
> ConnectionPool.getConnection() when the connection is needed to avoid the
> overhead and additional dependency created using the above 2 methods (the
> first requires that you know that your thread's specific connection is stored
> in a singleton and the second requires that some string/key be used by both
> your servlet and your service handler).  if your service-handler doesn't need
> a connection to process the request you've created added work for yourself
> that doesn't provide any return on investment.
>
> just my $0.02 worth...
> .ron.
> > Dear All:
> >
> > I've wrote a small servlet that extends AxisServlet.
> > This home-made servlet can get database connection from our connection
> > pooling mechanism.
> >
> > The question is : When I write the java code of my service , how can I
> > get a database connection ? I find no way to send a database connection
> > to my service from my own AxisServlet.
> >
> > Any idea ?
> >
> > Ken
> > --
> > ¬ãµo³¡ ­J­««Â Ken Hu  [EMAIL PROTECTED]
> >
> > ©sµØ¬ì§ÞªÑ¥÷¦³­­¤½¥q
> > http://www.mmti.com.tw
> >
> > °ª¶¯É]804¹ª¤s°Ï½¬®ü¸ô70¸¹
> > °ê¥ß¤¤¤s¤j¾Ç³Ð·s¨|¦¨¤¤¤ß511«Ç
> >
> > ¹q¸Ü  07-5253020
> > ¶Ç¯u  07-5252165
> > ¦æ°Ê  0937083880
> >
> >
>
>

Guy Rixon   [EMAIL PROTECTED]
Institute of Astronomy  Tel: +44-1223-337542
Madingley Road, Cambridge, UK, CB3 0HA  Fax: +44-1223-337523


Re: How to get database connection in my service via connection pool

2005-12-08 Thread Ron Reynolds
you mean how do you pass it forward from your servlet to your service handler?
 i can see three ways - use a static ThreadLocal (singleton) to hold the
connection and thus associate a Connection with the thread - the same thread
will be used to call the service handler at which point it can call
MyThreadSpecificConnectionHolder.get() to get the connection assigned to the
thread back out.  OR you can put the connection into the MessageContext (which
itself is stored in a ThreadLocal) using its setProperty()/getProperty()
methods to pass it forward.

tho in most cases its the service-handler's code that calls
ConnectionPool.getConnection() when the connection is needed to avoid the
overhead and additional dependency created using the above 2 methods (the
first requires that you know that your thread's specific connection is stored
in a singleton and the second requires that some string/key be used by both
your servlet and your service handler).  if your service-handler doesn't need
a connection to process the request you've created added work for yourself
that doesn't provide any return on investment.

just my $0.02 worth...
.ron.
> Dear All:
>
> I've wrote a small servlet that extends AxisServlet.
> This home-made servlet can get database connection from our connection
> pooling mechanism.
>
> The question is : When I write the java code of my service , how can I
> get a database connection ? I find no way to send a database connection
> to my service from my own AxisServlet.
>
> Any idea ?
>
> Ken
> --
> ¬ãµo³¡ ­J­««Â Ken Hu  [EMAIL PROTECTED]
>
> ©sµØ¬ì§ÞªÑ¥÷¦³­­¤½¥q
> http://www.mmti.com.tw
>
> °ª¶¯É]804¹ª¤s°Ï½¬®ü¸ô70¸¹
> °ê¥ß¤¤¤s¤j¾Ç³Ð·s¨|¦¨¤¤¤ß511«Ç
>
> ¹q¸Ü  07-5253020
> ¶Ç¯u  07-5252165
> ¦æ°Ê  0937083880
>
>




Re: Can you have more then one client handler

2005-12-08 Thread iksrazal
Here's a rough example for how it works for one handler. 

  //add ClientHandler to chain of events
  java.util.List list = svc.getHandlerRegistry().getHandlerChain(portQN);
  list.add(new 
javax.xml.rpc.handler.HandlerInfo(ClientHandler.class,this.handlerConfig,null));

I guess just repeat for the second, third etc ? Not sure how the ordering 
would work either. Suggest looking at the API docs. 

iksrazal

Em Quinta 08 Dezembro 2005 17:56, o Parikh,Pratik escreveu:
> Is there a example for this???
>
> Thanks,
> Parikh, Pratik
>
>
> -Original Message-
> From: Guy Rixon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 08, 2005 1:56 AM
> To: axis-user@ws.apache.org
> Subject: RE: Can you have more then one client handler
>
> You could try combining them into a handler chain. You could then assign
> the chain to handle the request.
>
> On Wed, 7 Dec 2005, Parikh,Pratik wrote:
> > Can anyone reply to this??
> >
> >
> > Thanks,
> > Parikh, Pratik
> >
> > 
> >
> > From: Parikh,Pratik [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 07, 2005 10:02 AM
> > To: axis-user@ws.apache.org
> > Subject: Can you have more then one client handler
> >
> >
> >
> > Hi Everyone,
> >
> > I have two handler in my client stub, one for logging out messages
> >
> > to MQ and second is for CommonsHTTPSender. Now the problem I am
> > running into is that it only allow me to have one handler. Is there
> > anyway I can run both, please let me know?
> >
> > Thanks,
> > Pratik
> >
> > CONFIDENTIALITY NOTICE
> >
> > This message and any included attachments are from Cerner Corporation
> > and are intended only for the addressee. The information contained in
> > this message is confidential and may constitute inside or non-public
> > information under international, federal, or state securities laws.
> > Unauthorized forwarding, printing, copying, distribution, or use of
> > such information is strictly prohibited and may be unlawful. If you
> > are not the addressee, please promptly delete this message and notify
> > the sender of the delivery error by e-mail or you may call Cerner's
> > corporate offices in Kansas City, Missouri, U.S.A at (+1)
> > (816)221-1024.
> >  --
>
> Guy Rixon [EMAIL PROTECTED]
> Institute of AstronomyTel: +44-1223-337542
> Madingley Road, Cambridge, UK, CB3 0HAFax: +44-1223-337523
>
> CONFIDENTIALITY NOTICE
>
> This message and any included attachments
> are from Cerner Corporation and are intended
> only for the addressee. The information
> contained in this message is confidential and
> may constitute inside or non-public information
> under international, federal, or state
> securities laws. Unauthorized forwarding,
> printing, copying, distribution, or use of such
> information is strictly prohibited and may be
> unlawful. If you are not the addressee, please
> promptly delete this message and notify the
> sender of the delivery error by e-mail or you
> may call Cerner's corporate offices in Kansas
> City, Missouri, U.S.A at (+1) (816)221-1024.
>  --


RE: Can you have more then one client handler

2005-12-08 Thread Parikh,Pratik

Is there a example for this???

Thanks,
Parikh, Pratik


-Original Message-
From: Guy Rixon [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 08, 2005 1:56 AM
To: axis-user@ws.apache.org
Subject: RE: Can you have more then one client handler

You could try combining them into a handler chain. You could then assign
the chain to handle the request.

On Wed, 7 Dec 2005, Parikh,Pratik wrote:

> Can anyone reply to this??
>
>
> Thanks,
> Parikh, Pratik
>
> 
>
> From: Parikh,Pratik [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 07, 2005 10:02 AM
> To: axis-user@ws.apache.org
> Subject: Can you have more then one client handler
>
>
>
> Hi Everyone,
>
> I have two handler in my client stub, one for logging out messages

> to MQ and second is for CommonsHTTPSender. Now the problem I am
> running into is that it only allow me to have one handler. Is there
> anyway I can run both, please let me know?
>
> Thanks,
> Pratik
>
> CONFIDENTIALITY NOTICE
>
> This message and any included attachments are from Cerner Corporation
> and are intended only for the addressee. The information contained in
> this message is confidential and may constitute inside or non-public
> information under international, federal, or state securities laws.
> Unauthorized forwarding, printing, copying, distribution, or use of
> such information is strictly prohibited and may be unlawful. If you
> are not the addressee, please promptly delete this message and notify
> the sender of the delivery error by e-mail or you may call Cerner's
> corporate offices in Kansas City, Missouri, U.S.A at (+1)
> (816)221-1024.
>  --
>
>

Guy Rixon   [EMAIL PROTECTED]
Institute of Astronomy  Tel: +44-1223-337542
Madingley Road, Cambridge, UK, CB3 0HA  Fax: +44-1223-337523

CONFIDENTIALITY NOTICE

This message and any included attachments
are from Cerner Corporation and are intended
only for the addressee. The information
contained in this message is confidential and
may constitute inside or non-public information
under international, federal, or state
securities laws. Unauthorized forwarding,
printing, copying, distribution, or use of such
information is strictly prohibited and may be
unlawful. If you are not the addressee, please
promptly delete this message and notify the
sender of the delivery error by e-mail or you
may call Cerner's corporate offices in Kansas
City, Missouri, U.S.A at (+1) (816)221-1024.
 --


Re: unsubscribe me

2005-12-08 Thread Raffaele Viola
Plz unsubscribe me

Raffo


RE: problems using soapmonitor

2005-12-08 Thread George Papandreou
Hello again, 
As iksrazal pointed out you don't need to worry about installing it on
Cygwin.  Just install Cygwin (agreed download speed can be an issue for
someone with a slow connection) and you can launch the tool (soapmeter)
after you unarchive it somewhere on your C: drive.

Cheers,
/geo

-Original Message-
From: iksrazal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 08, 2005 10:57 AM
To: axis-user@ws.apache.org
Subject: Re: problems using soapmonitor

Off topic, but anyways...

Cygwin is a linux-like environment for windows. You can run shell scripts
because cygwin comes with a bash shell. 

Cygwin comes with a graphical installer. It downloads all of its
dependencies 'on the fly' , which can take a while aon a slow connection. 

You might want to consider using linux, if you're going to run a shell
environment anyways. 

Another alternative is to try TCPMon first - its easier in that it doesn't
require applets or be installed in the same war with axis. 

HTH,
iksrazal

Em Quinta 08 Dezembro 2005 13:17, o [EMAIL PROTECTED]
escreveu:
> Sounds good, but how di I install it in cygwin, I have little 
> experience of this,,,
>
> -Original Message-
> From: George Papandreou [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 08, 2005 3:46 PM
> To: axis-user@ws.apache.org
> Subject: RE: problems using soapmonitor
>
>
> Have you tried 'soapmeter'?
> (http://soapical.sourceforge.net/soapmeter/)
> It installed and ran as charm with no hassles.  It also has some 
> appealing visualization features you might like.  Hope its of use to you.
>
> Cheers,
> /geo
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 08, 2005 8:11 AM
> To: axis-user@ws.apache.org
> Subject: problems using soapmonitor
>
> Hello!
>
> I have been trying to use the soap monitor for some time now, but each 
> time I try to run the applet I get "The SOAP Monitor is unable to 
> communcate with the server."
>
> I have traced the error to the SOAPMonitorPage.start method, and this 
> is the error that I get:
>
> Exception! java.io.EOFException
> java.io.EOFException
>   at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown
> Source)
>   at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown
> Source)
>   at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
>   at java.io.ObjectInputStream.(Unknown Source)
>   at
> SOAPMonitorApplet$SOAPMonitorPage.start(SOAPMonitorApplet.java:368)
>   at SOAPMonitorApplet.start(SOAPMonitorApplet.java:100)
>   at sun.applet.AppletPanel.run(Unknown Source)
>   at java.lang.Thread.run(Unknown Source)
>
>
> What's wrong...? Please help!
>
> /Stefan



Axis on websphere 4

2005-12-08 Thread Olivier Mocquais RD-BIZZ

Hi,

I have some problems to install axis 1.3 on the webpshere 4 application 
server.
I have downloaded the axis 1.3 distribution and deployed the webapp on 
was 4.0

The deployment is OK and everything in the Axis Happiness Page is OK.
"The core axis libraries are present.1 wanted optional axis librar(ies) 
are missing"


BUT when I click on the List button (I want to display the web services 
list ). I have an error:/

/"Error 404: Fichier introuvable : servlet/AxisServlet"
C:\tmp\websphere\logs\44sclosrvapp01_espw1_stdout.log(2298): [08/12/05 
15:17:19:866 CET] 20c7b162 WebGroup  X SRVE0026E : [Erreur de 
servlet]-[AxisServlet]: java.lang.NoClassDefFoundError: 
org/apache/axis/transport/http/AxisServlet


Maybe, you could give me an example of the manifest file for a war file 
for was 4.0 and for an ear manifest.


Thanks.

Olivier/
/


Re: Performance When Reading Attachments

2005-12-08 Thread J . Sugrue
I never thought of that actually - interesting.

So, I guess a GSOAP client wouldn't have a problem with the GSOAP 
Streaming, but another client (such as Axis) would?

Thanks again
James




Davanum Srinivas <[EMAIL PROTECTED]> 
08/12/2005 18:02
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Re: Performance When Reading Attachments






sounds like a GSOAP streaming problem.

On 12/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Thanks Davanum.
>
> I wonder though, why I'm having my attachment problems.
> [It's possible it's coded badly!]
> Like, when I get my response from the GSOAP server, it's grand - but 
then
> the attachment streams in after it (I watched it on TCPMon ) .
> It's the waiting for the attachment that's causing my problem really -
> that's where the delay lies.
>
> James
>
>
>
>
> Davanum Srinivas <[EMAIL PROTECTED]>
> 08/12/2005 16:11
> Please respond to
> axis-user@ws.apache.org
>
>
> To
> axis-user@ws.apache.org
> cc
>
> Subject
> Re: Performance When Reading Attachments
>
>
>
>
>
>
> not yet.
>
> On 12/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Thanks
> >
> > Would you recommend Axis 2 for better attachment performance?
> > James
> >
> >
> >
> >
> > Davanum Srinivas <[EMAIL PROTECTED]>
> > 08/12/2005 12:39
> > Please respond to
> > axis-user@ws.apache.org
> >
> >
> > To
> > axis-user@ws.apache.org
> > cc
> >
> > Subject
> > Re: Performance When Reading Attachments
> >
> >
> >
> >
> >
> >
> > it is in 1.3
> >
> > On 12/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Yes - I noticed this alright.
> > >
> > > So, will stream attachments stop the "blocking" nature of attachment
> > > reading?
> > >
> > > Also, is this implemented in the Axis1.3 release, or will I have to 
go
> > > with the CVS version? Or is it Subversion now?
> > >
> > > Is there any guide as how to use the streaming method?
> > >
> > > Thanks for your help
> > > James
> > >
> > >
> > >
> > >
> > > Davanum Srinivas <[EMAIL PROTECTED]>
> > > 07/12/2005 18:17
> > > Please respond to
> > > axis-user@ws.apache.org
> > >
> > >
> > > To
> > > axis-user@ws.apache.org
> > > cc
> > >
> > > Subject
> > > Re: Performance When Reading Attachments
> > >
> > >
> > >
> > >
> > >
> > >
> > > See http://issues.apache.org/jira/browse/AXIS-2221 there is support
> > > for streaming attachments.
> > >
> > > thanks,
> > > dims
> > >
> > > On 12/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > > Hi
> > > >
> > > > Can anyone help me with this at all?
> > > >
> > > > I'm considering using the current CVS build to see if any
> improvements
> > > > have been made.
> > > >
> > > > Like, I've heard about streaming attachments - they sound good - 
if
> I
> > > can
> > > > work out how to use them.
> > > >
> > > > But this is a critical area for my application, so if anyone has 
any
> > > > performance hints for DIME attachments at all  I'd really 
appreciate
> > it.
> > > >
> > > >
> > > > James
> > > >
> > > >
> > > >
> > > >
> > > > [EMAIL PROTECTED]
> > > > 06/12/2005 14:39
> > > > Please respond to
> > > > axis-user@ws.apache.org
> > > >
> > > >
> > > > To
> > > > axis-user@ws.apache.org
> > > > cc
> > > >
> > > > Subject
> > > > Performance When Reading Attachments
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Hi
> > > >
> > > > I'm really hoping someone can finally solve this for me.
> > > >
> > > > When I receive a message with a DIME Attachement, I get my Message
> > > object
> > > > back quite quickly, but it takes ages for it to read the 
attachments
> > > from
> > > > the message.
> > > >
> > > > I considered that this could be because it's waiting for the
> > > attachments,
> > > > but unfortunatly, I can't work out how to just read the 
attachments
> > > > straight away.
> > > >
> > > > Has anyone had this problem or found the solution?
> > > >
> > > > I am using Axis for my client, and someone else is using a C++ 
GSOAP
> > > > client, and they get the data in no time.
> > > > So any help in improving attachement performance would be
> appreciated
> > .
> > > >
> > > >
> > > > Thanks
> > > > James
> > > >
> > > >
> > > > This email is intended solely for the use of the named 
addressee(s).
> > Any
> > > > unauthorised disclosure, copying or distribution of the 
confidential
> > > > information contained therein, or the taking of any action based 
on
> > it,
> > > is
> > > > prohibited. The sender disclaims any liability for the integrity 
of
> > this
> > > > email. Legally binding declarations must be in written form.
> > > >
> > > >
> > >
> > >
> > > --
> > > Davanum Srinivas : http://wso2.com/blogs/
> > >
> > >
> > > This email is intended solely for the use of the named addressee(s).
> Any
> > > unauthorised disclosure, copying or distribution of the confidential
> > > information contained therein, or the taking of any action based on
> it,
> > is
> > > prohibited. The sender disclaims any liability for the integrity of
> this
> > > email. Legally bi

Re: Performance When Reading Attachments

2005-12-08 Thread Davanum Srinivas
sounds like a GSOAP streaming problem.

On 12/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Thanks Davanum.
>
> I wonder though, why I'm having my attachment problems.
> [It's possible it's coded badly!]
> Like, when I get my response from the GSOAP server, it's grand - but then
> the attachment streams in after it (I watched it on TCPMon ) .
> It's the waiting for the attachment that's causing my problem really -
> that's where the delay lies.
>
> James
>
>
>
>
> Davanum Srinivas <[EMAIL PROTECTED]>
> 08/12/2005 16:11
> Please respond to
> axis-user@ws.apache.org
>
>
> To
> axis-user@ws.apache.org
> cc
>
> Subject
> Re: Performance When Reading Attachments
>
>
>
>
>
>
> not yet.
>
> On 12/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Thanks
> >
> > Would you recommend Axis 2 for better attachment performance?
> > James
> >
> >
> >
> >
> > Davanum Srinivas <[EMAIL PROTECTED]>
> > 08/12/2005 12:39
> > Please respond to
> > axis-user@ws.apache.org
> >
> >
> > To
> > axis-user@ws.apache.org
> > cc
> >
> > Subject
> > Re: Performance When Reading Attachments
> >
> >
> >
> >
> >
> >
> > it is in 1.3
> >
> > On 12/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Yes - I noticed this alright.
> > >
> > > So, will stream attachments stop the "blocking" nature of attachment
> > > reading?
> > >
> > > Also, is this implemented in the Axis1.3 release, or will I have to go
> > > with the CVS version? Or is it Subversion now?
> > >
> > > Is there any guide as how to use the streaming method?
> > >
> > > Thanks for your help
> > > James
> > >
> > >
> > >
> > >
> > > Davanum Srinivas <[EMAIL PROTECTED]>
> > > 07/12/2005 18:17
> > > Please respond to
> > > axis-user@ws.apache.org
> > >
> > >
> > > To
> > > axis-user@ws.apache.org
> > > cc
> > >
> > > Subject
> > > Re: Performance When Reading Attachments
> > >
> > >
> > >
> > >
> > >
> > >
> > > See http://issues.apache.org/jira/browse/AXIS-2221 there is support
> > > for streaming attachments.
> > >
> > > thanks,
> > > dims
> > >
> > > On 12/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > > Hi
> > > >
> > > > Can anyone help me with this at all?
> > > >
> > > > I'm considering using the current CVS build to see if any
> improvements
> > > > have been made.
> > > >
> > > > Like, I've heard about streaming attachments - they sound good - if
> I
> > > can
> > > > work out how to use them.
> > > >
> > > > But this is a critical area for my application, so if anyone has any
> > > > performance hints for DIME attachments at all  I'd really appreciate
> > it.
> > > >
> > > >
> > > > James
> > > >
> > > >
> > > >
> > > >
> > > > [EMAIL PROTECTED]
> > > > 06/12/2005 14:39
> > > > Please respond to
> > > > axis-user@ws.apache.org
> > > >
> > > >
> > > > To
> > > > axis-user@ws.apache.org
> > > > cc
> > > >
> > > > Subject
> > > > Performance When Reading Attachments
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Hi
> > > >
> > > > I'm really hoping someone can finally solve this for me.
> > > >
> > > > When I receive a message with a DIME Attachement, I get my Message
> > > object
> > > > back quite quickly, but it takes ages for it to read the attachments
> > > from
> > > > the message.
> > > >
> > > > I considered that this could be because it's waiting for the
> > > attachments,
> > > > but unfortunatly, I can't work out how to just read the attachments
> > > > straight away.
> > > >
> > > > Has anyone had this problem or found the solution?
> > > >
> > > > I am using Axis for my client, and someone else is using a C++ GSOAP
> > > > client, and they get the data in no time.
> > > > So any help in improving attachement performance would be
> appreciated
> > .
> > > >
> > > >
> > > > Thanks
> > > > James
> > > >
> > > >
> > > > This email is intended solely for the use of the named addressee(s).
> > Any
> > > > unauthorised disclosure, copying or distribution of the confidential
> > > > information contained therein, or the taking of any action based on
> > it,
> > > is
> > > > prohibited. The sender disclaims any liability for the integrity of
> > this
> > > > email. Legally binding declarations must be in written form.
> > > >
> > > >
> > >
> > >
> > > --
> > > Davanum Srinivas : http://wso2.com/blogs/
> > >
> > >
> > > This email is intended solely for the use of the named addressee(s).
> Any
> > > unauthorised disclosure, copying or distribution of the confidential
> > > information contained therein, or the taking of any action based on
> it,
> > is
> > > prohibited. The sender disclaims any liability for the integrity of
> this
> > > email. Legally binding declarations must be in written form.
> > >
> > >
> >
> >
> > --
> > Davanum Srinivas : http://wso2.com/blogs/
> >
> >
> > This email is intended solely for the use of the named addressee(s). Any
> > unauthorised disclosure, copying or distribution of the confidential
> > information contained therein, or the taking of any action based on it,
> is
> > prohibited. The sender discla

Re: Deserializing complex/nested types

2005-12-08 Thread Davanum Srinivas
Hehe :)

On 12/8/05, Martin, Imme <[EMAIL PROTECTED]> wrote:
> Hey Dims,
>
> thank you very much for your help - I think I just needed this simple kick in 
> the ass to actually look at the stubs I already had in front of my eyes for 
> the past two days...
> Also, taking a WSDL which is actually _correct_ helps as well ;)
>
> So: thanks again,
> Best regards,
> Martin
>
>
>
> -Ursprüngliche Nachricht-
> Von: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 8. Dezember 2005 14:29
> An: axis-user@ws.apache.org
> Betreff: Re: Deserializing complex/nested types
>
> Please run wsdl2java against your wsdl and review the generated code,
> especially stubs and wsdd. You will be able to cut and paste from
> there to get this working.
>
> thanks,
> dims
>
> On 12/8/05, Martin, Imme <[EMAIL PROTECTED]> wrote:
> > Hallo all,
> >
> > this most probably is a stupid or at least simple question: How can I
> > deserialize a complex Object which is returned from a Webservice
> > implemented in .NET into some nice Java Object?
> >
> > My scenario looks as follows:
> >
> > // The Environment
> > I am running Apache Axis 1.3, Build date Oct. 5th, 2005
> >
> > // The Service
> > I have a service, implemented in C# on some IIS machine. This service
> > returns a complex BusinessPartnerElements object. This object consists
> > of several sub-objects like Person which itself consists of Name,
> > Firstname, Tile and Sex which are Strings.
> >
> > // The Client
> > The Java Client only wants to call the service and retrieve the
> > BusinessPartnerElements object. Nothing more so far. Calling the service
> > works and I received a SOAP response which looks pretty good to me:
> >
> > 
> > 
> >
> > http://schemas.xmlsoap.org/soap/envelope/";
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> >
> > 
> >  > xmlns="http://sap.com/composite/prototype/webshop";>
> > 123456
> > 
> > myCorp
> > Inc
> > 
> > 
> > John
> > Doe
> > Phd
> > male
> > 
> > 
> > 555 3535
> > 01
> >
> > 0001-01-01
> >
> > 0001-01-01
> > 
> > 
> >  > protocolCode="SMTP">[EMAIL PROTECTED]
> >
> > 0001-01-01
> >
> > 0001-01-01
> > 
> > 
> >
> > http://www.mycorp.com/jdoe
> > 
> > 
> > London
> > NW23
> > Abbey Road
> > 4
> >
> > 0001-01-01
> >
> > 0001-01-01
> > 
> > 
> > 
> > 
> > 
> >
> > From the WSDL file, I was able to create a bunch of Java proxy classes
> > which can hold the BusinessPartnerElements Object. In order to tell Axis
> > how to map the received stuff, I thought it would be enough to do
> > something like this:
> >
> > 
> >
> > String endpoint = "http://p122851/WebService1/ShopService.asmx";;
> > Service service = new Service();
> >
> > Call call = (Call) service.createCall();
> > call.setTargetEndpointAddress(new java.net.URL(endpoint));
> > call.setOperationName(new
> > QName("http://sap.com/composite/prototype/webshop";,
> > "BusinessPartnerRetrieveIn"));
> > call.setSOAPActionURI("http://sap.com/composite/prototype/webshop/Busine
> > ssPartnerRetrieveIn");
> >
> > // take care about the type mapping...
> > qn = new QName( "urn:BusinessPartnerRetrieveIn",
> > "BusinessPartnerElements" );  // BTW: it does not matter hat values are
> > given for qn - the Exception remains the same :(
> > BeanSerializerFactory bsf = new
> > BeanSerializerFactory(BusinessPartnerElements.class, qn);
> > BeanDeserializerFactory bdsf = new
> > BeanDeserializerFactory(BusinessPartnerElements.class, qn);
> >
> > call.registerTypeMapping(BusinessPartnerElements.class, qn, bsf, bdsf);
> > call.setReturnType( qn ); // Return type is our bean
> > BusinessPartnerElements pbe = (BusinessPartnerElements)call.invoke(new
> > Object[] {});
> >
> > 
> >
> > But unfortunately, this throws an Exception:
> >
> > 
> >
> > org.xml.sax.SAXException: Invalid element in
> > .BusinessPartnerElements - CompanyName
> >
> > 
> >
> > This CompanyName Elements which SAX is complaining about is the first
> > non-complex Object [String] of the first somplex sub-object,
> > Organization. The BusinessPartnerElements Object looks somethig like
> > this:
> >
> > BusinessPartnerElements
> > '--> ID (String)
> > '--> Organization (complex)
> > _ _ _'--> Compa

AW: Deserializing complex/nested types

2005-12-08 Thread Martin, Imme
Hey Dims, 

thank you very much for your help - I think I just needed this simple kick in 
the ass to actually look at the stubs I already had in front of my eyes for the 
past two days... 
Also, taking a WSDL which is actually _correct_ helps as well ;)

So: thanks again, 
Best regards, 
Martin



-Ursprüngliche Nachricht-
Von: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. Dezember 2005 14:29
An: axis-user@ws.apache.org
Betreff: Re: Deserializing complex/nested types

Please run wsdl2java against your wsdl and review the generated code,
especially stubs and wsdd. You will be able to cut and paste from
there to get this working.

thanks,
dims

On 12/8/05, Martin, Imme <[EMAIL PROTECTED]> wrote:
> Hallo all,
>
> this most probably is a stupid or at least simple question: How can I
> deserialize a complex Object which is returned from a Webservice
> implemented in .NET into some nice Java Object?
>
> My scenario looks as follows:
>
> // The Environment
> I am running Apache Axis 1.3, Build date Oct. 5th, 2005
>
> // The Service
> I have a service, implemented in C# on some IIS machine. This service
> returns a complex BusinessPartnerElements object. This object consists
> of several sub-objects like Person which itself consists of Name,
> Firstname, Tile and Sex which are Strings.
>
> // The Client
> The Java Client only wants to call the service and retrieve the
> BusinessPartnerElements object. Nothing more so far. Calling the service
> works and I received a SOAP response which looks pretty good to me:
>
> 
> 
>
> http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>
> 
>  xmlns="http://sap.com/composite/prototype/webshop";>
> 123456
> 
> myCorp
> Inc
> 
> 
> John
> Doe
> Phd
> male
> 
> 
> 555 3535
> 01
>
> 0001-01-01
>
> 0001-01-01
> 
> 
>  protocolCode="SMTP">[EMAIL PROTECTED]
>
> 0001-01-01
>
> 0001-01-01
> 
> 
>
> http://www.mycorp.com/jdoe
> 
> 
> London
> NW23
> Abbey Road
> 4
>
> 0001-01-01
>
> 0001-01-01
> 
> 
> 
> 
> 
>
> From the WSDL file, I was able to create a bunch of Java proxy classes
> which can hold the BusinessPartnerElements Object. In order to tell Axis
> how to map the received stuff, I thought it would be enough to do
> something like this:
>
> 
>
> String endpoint = "http://p122851/WebService1/ShopService.asmx";;
> Service service = new Service();
>
> Call call = (Call) service.createCall();
> call.setTargetEndpointAddress(new java.net.URL(endpoint));
> call.setOperationName(new
> QName("http://sap.com/composite/prototype/webshop";,
> "BusinessPartnerRetrieveIn"));
> call.setSOAPActionURI("http://sap.com/composite/prototype/webshop/Busine
> ssPartnerRetrieveIn");
>
> // take care about the type mapping...
> qn = new QName( "urn:BusinessPartnerRetrieveIn",
> "BusinessPartnerElements" );  // BTW: it does not matter hat values are
> given for qn - the Exception remains the same :(
> BeanSerializerFactory bsf = new
> BeanSerializerFactory(BusinessPartnerElements.class, qn);
> BeanDeserializerFactory bdsf = new
> BeanDeserializerFactory(BusinessPartnerElements.class, qn);
>
> call.registerTypeMapping(BusinessPartnerElements.class, qn, bsf, bdsf);
> call.setReturnType( qn ); // Return type is our bean
> BusinessPartnerElements pbe = (BusinessPartnerElements)call.invoke(new
> Object[] {});
>
> 
>
> But unfortunately, this throws an Exception:
>
> 
>
> org.xml.sax.SAXException: Invalid element in
> .BusinessPartnerElements - CompanyName
>
> 
>
> This CompanyName Elements which SAX is complaining about is the first
> non-complex Object [String] of the first somplex sub-object,
> Organization. The BusinessPartnerElements Object looks somethig like
> this:
>
> BusinessPartnerElements
> '--> ID (String)
> '--> Organization (complex)
> _ _ _'--> CompanyName (String)
> _ _ _'--> LegalForm (String)
> '--> Person (complex)
> _ _ _'--> Firstname (String)
> .
> .
> .
>
> So, Axis does not have an issue with the ID thing but stumbles over the
> complex sub-types. My Idea was to somehow tell Axis about these complex
> sub-types and how to map them, just like I did with the root element
> [see code above] but I si

Re: problems using soapmonitor

2005-12-08 Thread iksrazal
Off topic, but anyways...

Cygwin is a linux-like environment for windows. You can run shell scripts 
because cygwin comes with a bash shell. 

Cygwin comes with a graphical installer. It downloads all of its dependencies 
'on the fly' , which can take a while aon a slow connection. 

You might want to consider using linux, if you're going to run a shell 
environment anyways. 

Another alternative is to try TCPMon first - its easier in that it doesn't 
require applets or be installed in the same war with axis. 

HTH,
iksrazal

Em Quinta 08 Dezembro 2005 13:17, o [EMAIL PROTECTED] escreveu:
> Sounds good, but how di I install it in cygwin, I have little experience of
> this,,,
>
> -Original Message-
> From: George Papandreou [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 08, 2005 3:46 PM
> To: axis-user@ws.apache.org
> Subject: RE: problems using soapmonitor
>
>
> Have you tried 'soapmeter'?
> (http://soapical.sourceforge.net/soapmeter/)
> It installed and ran as charm with no hassles.  It also has some appealing
> visualization features you might like.  Hope its of use to you.
>
> Cheers,
> /geo
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 08, 2005 8:11 AM
> To: axis-user@ws.apache.org
> Subject: problems using soapmonitor
>
> Hello!
>
> I have been trying to use the soap monitor for some time now, but each time
> I try to run the applet I get "The SOAP Monitor is unable to communcate
> with the server."
>
> I have traced the error to the SOAPMonitorPage.start method, and this is
> the error that I get:
>
> Exception! java.io.EOFException
> java.io.EOFException
>   at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown
> Source)
>   at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown
> Source)
>   at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
>   at java.io.ObjectInputStream.(Unknown Source)
>   at
> SOAPMonitorApplet$SOAPMonitorPage.start(SOAPMonitorApplet.java:368)
>   at SOAPMonitorApplet.start(SOAPMonitorApplet.java:100)
>   at sun.applet.AppletPanel.run(Unknown Source)
>   at java.lang.Thread.run(Unknown Source)
>
>
> What's wrong...? Please help!
>
> /Stefan


Re: Axis handler and Java NoClassDefFoundError problem

2005-12-08 Thread Soactive Inc
I can think of 3 things:

1. Make sure you have the package names correctly specified at the beginning of each Java file in question.

2. Its preferred that you bundle up all class files within .jar files (if possible).

3a) Place all the necessary jar files under axis/WEB-INF/lib since it
uses that as the base class path for libraries  at boot time.

3b) Place all the necessary class files under axis/WEB-INF/classes
(follow the same path as the package names - so a class called a.b.C
needs to be placed under WEB-INF/classes/a.b) since it uses that as the
base classes path for classes at boot time.

Hope that helps,
-ArunOn 12/8/05, Mike Straw <[EMAIL PROTECTED]> wrote:
I'm having a problem with my Axis handler and a pesky JAVANoClassDefFoundError error.Here is the background.  I'm using Axis 1.2.1 with tomcat 5.5.9 on a WindowsXP machine.  I deployed a simple service, created a simple client
application and was able to connect to that service; no problem.Next, I created a simple Axis handler (in package a.b) for use by both thesimple service and simple client, I updated client and server WSDD files,
redeployed the server, deployed the client and added the handler class filetotomcat/axis/WEB-INF/classes/a/b/simple_handler.classand/a/b/simple_handler.class
Everything worked great!  I was beginning to think I actually was smarterthan I looked ... WRONG!I needed to add functionality to the simple handler; functionality that wascontained in a JAR file called 
complex.jar, which had the structurex/y/*.class (i.e., all java code in complex.jar was in package x.y).I updated simple_handler, copied the resulting simple_handler.class file tothe appropriate directories, added 
complex.jar to my AXISCLASSPATH andCLASSPATH, restarted tomcat and reran my simple client.  My simple clientand the simple_handler.class invoked on the client side worked great. But,the simple_handler running under tomcat came back with the class not found
error shown below (bottom of email).complex.jar was found by the handler when running under the simple client,why couldn't it be found when running under the simple server?  I use a .batfile to set my AXISCLASSPATH and CLASSPATH, so both client and tomcat should
have the same environment.Any help is appreciated.Thanks,Mike Straw[EMAIL PROTECTED]... tomcat startup info ...INFO: Server startup in 3078 ms
- Exception:java.lang.NoClassDefFoundError: x/y/complexExceptionat java.lang.Class.forName0(Native Method)at java.lang.Class.forName(Class.java:242)at org.apache.axis.utils.ClassUtils$2.run
(ClassUtils.java:176)at java.security.AccessController.doPrivileged(Native Method)at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)at org.apache.axis.utils.ClassUtils.forName
(ClassUtils.java:100)atorg.apache.axis.deployment.wsdd.WSDDDeployableItem.getJavaClass(WSDDDeployableItem.java:353)atorg.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeplo
yableItem.java:295)atorg.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)atorg.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployabl
eItem.java:260)atorg.apache.axis.deployment.wsdd.WSDDDeployment.getHandler(WSDDDeployment.java:394)atorg.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeploy
ableItem.java:276)... lots more ...


Re: [axis2 v0.93] configuration context - class cast exception

2005-12-08 Thread Chathura Herath
Done
Pls take a checkout or apply the patch at
http://issues.apache.org/jira/browse/AXIS2-325
Thanks
Chathura

On 12/8/05, Chathura Herath <[EMAIL PROTECTED]> wrote:
> Think its bug, pls open a JIRA. This particular method in Line 147 has
> not been update after we inserted the service group context. Second
> method would work because it has been updated.
> THanks
> Chathura
>
> On 12/8/05, Diego <[EMAIL PROTECTED]> wrote:
> > Hi everybody!
> >
> > I'm using axis2 v0.93.
> >
> > With the following code:
> >
> > public class AstrodasServerMessageReceiver extends
> > AbstractInOutSyncMessageReceiver {
> >
> >  public void invokeBusinessLogic(MessageContext
> > msgContext,MessageContext newMsgContext) throws AxisFault {
> >  try {
> >  OperationContext operationContext =
> > msgContext.getOperationContext(); // line 41, the one that causes the
> > ClassCastException
> >  ConfigurationContext configurationContext =
> > operationContext.getEngineContext();
> >
> > ...
> >
> >
> > I get the following exception:
> >
> >
> > java.lang.ClassCastException
> >  at
> > org.apache.axis2.context.OperationContext.getEngineContext(OperationContext.java:147)
> >  at
> > org.astrodas.ws.server.AstrodasServerMessageReceiver.invokeBusinessLogic(AstrodasServerMessageReceiver.java:41)
> >  at
> > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:36)
> >  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:158)
> >  at
> > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:211)
> >  at
> > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:181)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >  at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> >  at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> >  at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> >  at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> >  at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> >  at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> >  at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> >  at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> >  at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
> >  at
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
> >  at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
> >  at
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> >  at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> >  at java.lang.Thread.run(Thread.java:552)
> >
> >
> > Whereas this code executes fine:
> >
> > public class AstrodasServerMessageReceiver extends
> > AbstractInOutSyncMessageReceiver {
> >
> >  public void invokeBusinessLogic(MessageContext
> > msgContext,MessageContext newMsgContext) throws AxisFault {
> >  try {
> >  OperationContext operationContext =
> > msgContext.getOperationContext();
> >  ServiceContext serviceContext =
> > operationContext.getServiceContext();
> >  ConfigurationContext configurationContext =
> > serviceContext.getConfigurationContext();
> >
> > ...
> >
> >
> > In the API specification it is written not to use the class
> > ServiceContext since "it might not live up to your expectation".
> >
> > Am I doing something wrong?
> >
> > Thanks!
> >
> > Diego
> >
>
>
> --
> Chathura Herath
> http://www.bloglines.com/blog/chathurah
>


--
Chathura Herath
http://www.bloglines.com/blog/chathurah


Re: R: Web service with Attachment Problem

2005-12-08 Thread Wade Chandler
Comments inline...

--- Brosca Diana <[EMAIL PROTECTED]> wrote:

> Hello Wade 
> Firstly thanks for your help. 
> Then, I'm trying to implement a web service with a
> WSDL as you have
> indicated. 
> 
> The type: 
> 
> http://www.w3.org/2001/XMLSchema
>  "
> targetNamespace="
>
http://vbl.wservices.nomadic.atosorigin.com/ReceiverFileServiceInput
>

> "
> elementFormDefault="qualified">
> 
> 
> 
>  
>  type="xsd:string"
> default="Your document name"/> 
>  type="xsd:string"/> 
>  type="xsd:base64Binary"/> 
>  
>  
>  
> 
> 
> 
> become in java: 
> 
> 
> public class NodeDocument  implements
> java.io.Serializable { 
> private java.lang.String name; 
> private java.lang.String type; 
> private byte[] content; 
> 
> public NodeDocument() { 
> } 
> 
> .. 
> } 
> 
> 
> I haven't a Object type but a byte[] type. Can I use
> the
> javax.activation.DataHandler again? 
> 
You have to change the byte[] to Object.  Then you'll
have to modify the equals method if it generated one
for you.  You will also have to add activation.jar and
mail.jar to your web-app/axis server.


> Moreover, how I can read the attachment in the
> ReceiverFileBindingImplClass 
>  that implements the web service? 
> 
> 
> public class ReceiverFileBindingImpl implements
>
com.atosorigin.nomadic.wservices.ReceiverFilewebservice.ReceiverFilePort
> Type{
> 
> public java.lang.String
>
receiverFileOperation(com.atosorigin.nomadic.wservices.vbl.ReceiverFileS
> erviceInput.NodeDocument in) throws
> java.rmi.RemoteException,
>
com.atosorigin.nomadic.wservices.vbl.FaultMessages.FaultMessage
> {
> 
> 
> return null; 
> } 
> 
> } 
> 
> Have you a example of this? 

Yes.  You will do something like this method which I
use to dump the attachments off into FileDataSources
on the remote sideI do this because I process info
in other threads after the axis call has finished and
the ManagedMemoryDataSource gets cleaned up by axis,
so the data is lost if you do processing later and
don't dump to some temporary spacethis is an
example from some stuff I'm doing for
www.exchangenetwork.net for the state of South
Carolina...it's in production and working fine.

/**
 *Method used to dump ManagedMemoryDataSources off
into a temp file.  This is needed because
 *these types of files will not be available after
the axis web service is called.  This is important
mainly
 *for submits because they will be operating on
data in a thread after the call has went away.  This
means
 *we have to put the data some where safe before
we try to process it or return the transaction id. 
This method
 *moves the data into temp submit files which are
marked to be deleted when the jvm exits.
 [EMAIL PROTECTED] documents the node documents to replace
the ManagedMemoryDataSources for.
 [EMAIL PROTECTED] Throwable thrown on any error
 */
public static void
submitPrepNodeDocuments(gov.epa.cdx.axis.v10.vo.NodeDocument[]
documents)
throws Throwable {
log.debug("[submitPrepNodeDocuments] entering
method");
if( documents != null && documents.length > 0
) {
log.debug("[submitPrepNodeDocuments] there
are documents available");
log.debug("[submitPrepNodeDocuments]
preparing to loop documents");
for(int i = 0; i < documents.length; i++)
{
NodeDocument doc = documents[i];
if( doc != null ) {
   
log.debug("[submitPrepNodeDocuments] doc " + i + "
isn't null");
Object content = doc.getContent();
if( content != null ) {
   
log.debug("[submitPrepNodeDocuments] the document
content is not null");
if( content instanceof
AttachmentPart ) {
   
log.debug("[submitPrepNodeDocuments] the document
content is of type AttachmentPart");
AttachmentPart part =
(AttachmentPart)content;
   
log.debug("[submitPrepNodeDocuments] getting
attachments DataHandler and setting content to that
type");
content =
part.getDataHandler();
}
if( content instanceof
DataHandler ) {
   
log.debug("[submitPrepNodeDocuments] content is of
type DataHandler");
if( content != null ) {
   
log.debug("[submitPrepNodeDocuments] content as
DataHandler is not null");
   
log.debug("[submitPrepNodeDocuments] setting content
to the DataHandler's DataSource");
content =
((DataHandler)content).getDataSource();
if( content 

Connection Problem!!!

2005-12-08 Thread Le, Hung D.
Title: Connection Problem!!!






Hello,

Would anybody help this problem? I’ve tried to run example6 in the axis1_3 with Tomcat 5.0 but not succeed. The web service deployed successful (I can view the WSDL file from web browser) but when I call (I used the class Main as a client to call the service), I got the error as follow: 

Exception in thread "main" junit.framework.AssertionFailedError: Remote Exception caught: java.net.ConnectException: Connection refused: connect

at samples.userguide.example6.Main.main(Main.java:34).

It’s weir because the error only happened when I tried to call the web service from different machine (on the same network, no firewall or port blocked nor anything). It worked fine if I called the service from the same machine that host the service. I run the sample “stock” and it worked, that proved that there was no firewall between these 2 machines. 

What should I do to solve this problem?

Thanks a lot.

HL 




Axis handler and Java NoClassDefFoundError problem

2005-12-08 Thread Mike Straw
I'm having a problem with my Axis handler and a pesky JAVA
NoClassDefFoundError error.

Here is the background.  I'm using Axis 1.2.1 with tomcat 5.5.9 on a Windows
XP machine.  I deployed a simple service, created a simple client
application and was able to connect to that service; no problem.

Next, I created a simple Axis handler (in package a.b) for use by both the
simple service and simple client, I updated client and server WSDD files,
redeployed the server, deployed the client and added the handler class file
to

tomcat/axis/WEB-INF/classes/a/b/simple_handler.class
and
/a/b/simple_handler.class

Everything worked great!  I was beginning to think I actually was smarter
than I looked ... WRONG!


I needed to add functionality to the simple handler; functionality that was
contained in a JAR file called complex.jar, which had the structure
x/y/*.class (i.e., all java code in complex.jar was in package x.y).

I updated simple_handler, copied the resulting simple_handler.class file to
the appropriate directories, added complex.jar to my AXISCLASSPATH and
CLASSPATH, restarted tomcat and reran my simple client.  My simple client
and the simple_handler.class invoked on the client side worked great. But,
the simple_handler running under tomcat came back with the class not found
error shown below (bottom of email).

complex.jar was found by the handler when running under the simple client,
why couldn't it be found when running under the simple server?  I use a .bat
file to set my AXISCLASSPATH and CLASSPATH, so both client and tomcat should
have the same environment.

Any help is appreciated.



Thanks,

Mike Straw
[EMAIL PROTECTED]



... tomcat startup info ...
INFO: Server startup in 3078 ms
- Exception:
java.lang.NoClassDefFoundError: x/y/complexException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getJavaClass(WSDDDeployab
leItem.java:353)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeplo
yableItem.java:295)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeploy
ableItem.java:274)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployabl
eItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getHandler(WSDDDeployment.jav
a:394)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeploy
ableItem.java:276)

... lots more ...




Re: Performance When Reading Attachments

2005-12-08 Thread J . Sugrue
Thanks Davanum. 

I wonder though, why I'm having my attachment problems. 
[It's possible it's coded badly!] 
Like, when I get my response from the GSOAP server, it's grand - but then 
the attachment streams in after it (I watched it on TCPMon ) . 
It's the waiting for the attachment that's causing my problem really - 
that's where the delay lies. 

James




Davanum Srinivas <[EMAIL PROTECTED]> 
08/12/2005 16:11
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Re: Performance When Reading Attachments






not yet.

On 12/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Thanks
>
> Would you recommend Axis 2 for better attachment performance?
> James
>
>
>
>
> Davanum Srinivas <[EMAIL PROTECTED]>
> 08/12/2005 12:39
> Please respond to
> axis-user@ws.apache.org
>
>
> To
> axis-user@ws.apache.org
> cc
>
> Subject
> Re: Performance When Reading Attachments
>
>
>
>
>
>
> it is in 1.3
>
> On 12/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Yes - I noticed this alright.
> >
> > So, will stream attachments stop the "blocking" nature of attachment
> > reading?
> >
> > Also, is this implemented in the Axis1.3 release, or will I have to go
> > with the CVS version? Or is it Subversion now?
> >
> > Is there any guide as how to use the streaming method?
> >
> > Thanks for your help
> > James
> >
> >
> >
> >
> > Davanum Srinivas <[EMAIL PROTECTED]>
> > 07/12/2005 18:17
> > Please respond to
> > axis-user@ws.apache.org
> >
> >
> > To
> > axis-user@ws.apache.org
> > cc
> >
> > Subject
> > Re: Performance When Reading Attachments
> >
> >
> >
> >
> >
> >
> > See http://issues.apache.org/jira/browse/AXIS-2221 there is support
> > for streaming attachments.
> >
> > thanks,
> > dims
> >
> > On 12/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Hi
> > >
> > > Can anyone help me with this at all?
> > >
> > > I'm considering using the current CVS build to see if any 
improvements
> > > have been made.
> > >
> > > Like, I've heard about streaming attachments - they sound good - if 
I
> > can
> > > work out how to use them.
> > >
> > > But this is a critical area for my application, so if anyone has any
> > > performance hints for DIME attachments at all  I'd really appreciate
> it.
> > >
> > >
> > > James
> > >
> > >
> > >
> > >
> > > [EMAIL PROTECTED]
> > > 06/12/2005 14:39
> > > Please respond to
> > > axis-user@ws.apache.org
> > >
> > >
> > > To
> > > axis-user@ws.apache.org
> > > cc
> > >
> > > Subject
> > > Performance When Reading Attachments
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi
> > >
> > > I'm really hoping someone can finally solve this for me.
> > >
> > > When I receive a message with a DIME Attachement, I get my Message
> > object
> > > back quite quickly, but it takes ages for it to read the attachments
> > from
> > > the message.
> > >
> > > I considered that this could be because it's waiting for the
> > attachments,
> > > but unfortunatly, I can't work out how to just read the attachments
> > > straight away.
> > >
> > > Has anyone had this problem or found the solution?
> > >
> > > I am using Axis for my client, and someone else is using a C++ GSOAP
> > > client, and they get the data in no time.
> > > So any help in improving attachement performance would be 
appreciated
> .
> > >
> > >
> > > Thanks
> > > James
> > >
> > >
> > > This email is intended solely for the use of the named addressee(s).
> Any
> > > unauthorised disclosure, copying or distribution of the confidential
> > > information contained therein, or the taking of any action based on
> it,
> > is
> > > prohibited. The sender disclaims any liability for the integrity of
> this
> > > email. Legally binding declarations must be in written form.
> > >
> > >
> >
> >
> > --
> > Davanum Srinivas : http://wso2.com/blogs/
> >
> >
> > This email is intended solely for the use of the named addressee(s). 
Any
> > unauthorised disclosure, copying or distribution of the confidential
> > information contained therein, or the taking of any action based on 
it,
> is
> > prohibited. The sender disclaims any liability for the integrity of 
this
> > email. Legally binding declarations must be in written form.
> >
> >
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
>
> This email is intended solely for the use of the named addressee(s). Any
> unauthorised disclosure, copying or distribution of the confidential
> information contained therein, or the taking of any action based on it, 
is
> prohibited. The sender disclaims any liability for the integrity of this
> email. Legally binding declarations must be in written form.
>
>


--
Davanum Srinivas : http://wso2.com/blogs/


This email is intended solely for the use of the named addressee(s). Any 
unauthorised disclosure, copying or distribution of the confidential 
information contained therein, or the taking of any action based on it, is 
prohibited. The sender disclaims any liability for the integrity of this 
email. Legally binding declarations mu

Re: [axis2 v0.93] configuration context - class cast exception

2005-12-08 Thread Chathura Herath
Think its bug, pls open a JIRA. This particular method in Line 147 has
not been update after we inserted the service group context. Second
method would work because it has been updated.
THanks
Chathura

On 12/8/05, Diego <[EMAIL PROTECTED]> wrote:
> Hi everybody!
>
> I'm using axis2 v0.93.
>
> With the following code:
>
> public class AstrodasServerMessageReceiver extends
> AbstractInOutSyncMessageReceiver {
>
>  public void invokeBusinessLogic(MessageContext
> msgContext,MessageContext newMsgContext) throws AxisFault {
>  try {
>  OperationContext operationContext =
> msgContext.getOperationContext(); // line 41, the one that causes the
> ClassCastException
>  ConfigurationContext configurationContext =
> operationContext.getEngineContext();
>
> ...
>
>
> I get the following exception:
>
>
> java.lang.ClassCastException
>  at
> org.apache.axis2.context.OperationContext.getEngineContext(OperationContext.java:147)
>  at
> org.astrodas.ws.server.AstrodasServerMessageReceiver.invokeBusinessLogic(AstrodasServerMessageReceiver.java:41)
>  at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:36)
>  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:158)
>  at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:211)
>  at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:181)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>  at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>  at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
>  at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
>  at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
>  at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>  at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>  at java.lang.Thread.run(Thread.java:552)
>
>
> Whereas this code executes fine:
>
> public class AstrodasServerMessageReceiver extends
> AbstractInOutSyncMessageReceiver {
>
>  public void invokeBusinessLogic(MessageContext
> msgContext,MessageContext newMsgContext) throws AxisFault {
>  try {
>  OperationContext operationContext =
> msgContext.getOperationContext();
>  ServiceContext serviceContext =
> operationContext.getServiceContext();
>  ConfigurationContext configurationContext =
> serviceContext.getConfigurationContext();
>
> ...
>
>
> In the API specification it is written not to use the class
> ServiceContext since "it might not live up to your expectation".
>
> Am I doing something wrong?
>
> Thanks!
>
> Diego
>


--
Chathura Herath
http://www.bloglines.com/blog/chathurah


Re: Performance When Reading Attachments

2005-12-08 Thread Davanum Srinivas
not yet.

On 12/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Thanks
>
> Would you recommend Axis 2 for better attachment performance?
> James
>
>
>
>
> Davanum Srinivas <[EMAIL PROTECTED]>
> 08/12/2005 12:39
> Please respond to
> axis-user@ws.apache.org
>
>
> To
> axis-user@ws.apache.org
> cc
>
> Subject
> Re: Performance When Reading Attachments
>
>
>
>
>
>
> it is in 1.3
>
> On 12/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Yes - I noticed this alright.
> >
> > So, will stream attachments stop the "blocking" nature of attachment
> > reading?
> >
> > Also, is this implemented in the Axis1.3 release, or will I have to go
> > with the CVS version? Or is it Subversion now?
> >
> > Is there any guide as how to use the streaming method?
> >
> > Thanks for your help
> > James
> >
> >
> >
> >
> > Davanum Srinivas <[EMAIL PROTECTED]>
> > 07/12/2005 18:17
> > Please respond to
> > axis-user@ws.apache.org
> >
> >
> > To
> > axis-user@ws.apache.org
> > cc
> >
> > Subject
> > Re: Performance When Reading Attachments
> >
> >
> >
> >
> >
> >
> > See http://issues.apache.org/jira/browse/AXIS-2221 there is support
> > for streaming attachments.
> >
> > thanks,
> > dims
> >
> > On 12/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Hi
> > >
> > > Can anyone help me with this at all?
> > >
> > > I'm considering using the current CVS build to see if any improvements
> > > have been made.
> > >
> > > Like, I've heard about streaming attachments - they sound good - if I
> > can
> > > work out how to use them.
> > >
> > > But this is a critical area for my application, so if anyone has any
> > > performance hints for DIME attachments at all  I'd really appreciate
> it.
> > >
> > >
> > > James
> > >
> > >
> > >
> > >
> > > [EMAIL PROTECTED]
> > > 06/12/2005 14:39
> > > Please respond to
> > > axis-user@ws.apache.org
> > >
> > >
> > > To
> > > axis-user@ws.apache.org
> > > cc
> > >
> > > Subject
> > > Performance When Reading Attachments
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi
> > >
> > > I'm really hoping someone can finally solve this for me.
> > >
> > > When I receive a message with a DIME Attachement, I get my Message
> > object
> > > back quite quickly, but it takes ages for it to read the attachments
> > from
> > > the message.
> > >
> > > I considered that this could be because it's waiting for the
> > attachments,
> > > but unfortunatly, I can't work out how to just read the attachments
> > > straight away.
> > >
> > > Has anyone had this problem or found the solution?
> > >
> > > I am using Axis for my client, and someone else is using a C++ GSOAP
> > > client, and they get the data in no time.
> > > So any help in improving attachement performance would be appreciated
> .
> > >
> > >
> > > Thanks
> > > James
> > >
> > >
> > > This email is intended solely for the use of the named addressee(s).
> Any
> > > unauthorised disclosure, copying or distribution of the confidential
> > > information contained therein, or the taking of any action based on
> it,
> > is
> > > prohibited. The sender disclaims any liability for the integrity of
> this
> > > email. Legally binding declarations must be in written form.
> > >
> > >
> >
> >
> > --
> > Davanum Srinivas : http://wso2.com/blogs/
> >
> >
> > This email is intended solely for the use of the named addressee(s). Any
> > unauthorised disclosure, copying or distribution of the confidential
> > information contained therein, or the taking of any action based on it,
> is
> > prohibited. The sender disclaims any liability for the integrity of this
> > email. Legally binding declarations must be in written form.
> >
> >
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
>
> This email is intended solely for the use of the named addressee(s). Any
> unauthorised disclosure, copying or distribution of the confidential
> information contained therein, or the taking of any action based on it, is
> prohibited. The sender disclaims any liability for the integrity of this
> email. Legally binding declarations must be in written form.
>
>


--
Davanum Srinivas : http://wso2.com/blogs/


Re: Async web service

2005-12-08 Thread Jason Cwik
Yes, you can use WSDL2Java to generate classes for input-only
operations.  You'll probably also want to pick up the
WS-Addressing extensions for Axis 1.3:

http://cvs.apache.org/viewcvs.cgi/ws-addressing/
It can also be found as the addressing-1.0.jar from the WSS4J "otherjars" distribution: http://ws.apache.org/wss4j/On 12/6/05, 
Brosca Diana <[EMAIL PROTECTED]> wrote:
















Hello 

I'm implementing a asynchronous web service: in
the wsdl I have only the input. 

Can I use the  JAVA2WSDL tool for generate the class
that implements the service?

 

Thanks in advance

Diana

 

 










[axis2 v0.93] configuration context - class cast exception

2005-12-08 Thread Diego

Hi everybody!

I'm using axis2 v0.93.

With the following code:

public class AstrodasServerMessageReceiver extends 
AbstractInOutSyncMessageReceiver {


public void invokeBusinessLogic(MessageContext 
msgContext,MessageContext newMsgContext) throws AxisFault {

try {
OperationContext operationContext = 
msgContext.getOperationContext(); // line 41, the one that causes the 
ClassCastException
ConfigurationContext configurationContext = 
operationContext.getEngineContext();


...


I get the following exception:


java.lang.ClassCastException
at 
org.apache.axis2.context.OperationContext.getEngineContext(OperationContext.java:147)
at 
org.astrodas.ws.server.AstrodasServerMessageReceiver.invokeBusinessLogic(AstrodasServerMessageReceiver.java:41)
at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:36)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:158)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:211)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:181)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

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


Whereas this code executes fine:

public class AstrodasServerMessageReceiver extends 
AbstractInOutSyncMessageReceiver {


public void invokeBusinessLogic(MessageContext 
msgContext,MessageContext newMsgContext) throws AxisFault {

try {
OperationContext operationContext = 
msgContext.getOperationContext();
ServiceContext serviceContext = 
operationContext.getServiceContext();
ConfigurationContext configurationContext = 
serviceContext.getConfigurationContext();


...


In the API specification it is written not to use the class 
ServiceContext since "it might not live up to your expectation".


Am I doing something wrong?

Thanks!

Diego


RE: problems using soapmonitor

2005-12-08 Thread Stefan . Freyhult
Sounds good, but how di I install it in cygwin, I have little experience of
this,,,

-Original Message-
From: George Papandreou [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 08, 2005 3:46 PM
To: axis-user@ws.apache.org
Subject: RE: problems using soapmonitor


Have you tried 'soapmeter'?
(http://soapical.sourceforge.net/soapmeter/)
It installed and ran as charm with no hassles.  It also has some appealing
visualization features you might like.  Hope its of use to you.

Cheers,
/geo 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 08, 2005 8:11 AM
To: axis-user@ws.apache.org
Subject: problems using soapmonitor

Hello!

I have been trying to use the soap monitor for some time now, but each time
I try to run the applet I get "The SOAP Monitor is unable to communcate with
the server."

I have traced the error to the SOAPMonitorPage.start method, and this is the
error that I get:

Exception! java.io.EOFException
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown
Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown
Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.(Unknown Source)
at
SOAPMonitorApplet$SOAPMonitorPage.start(SOAPMonitorApplet.java:368)
at SOAPMonitorApplet.start(SOAPMonitorApplet.java:100)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


What's wrong...? Please help!

/Stefan
<>

Re: Sub-set of axis jars

2005-12-08 Thread meghan . pietila
On 12/8/05, Guy Rixon ([EMAIL PROTECTED]) wrote:

"Is it possible to leave some of the Axis jars out of an application? If I
have
a client that doesn't use SAAJ or JAX-RPC, can I leave out those jars? How
about in a service?"

Guy,

I've left quite a few of the Axis jars (as required for building Axis) out
of my client application.  Don't have a service, so I can't speak for that.

The user documentation for 1.2.1 (the version I'm running) specifies:
axis.jar, commons-discovery.jar, commons-logging.jar, jaxrpc.jar, saaj.jar,
log4j-1.2.8.jar.  I'm fairly certain I've run my client with only those
JARs (in a J2EE environment, so I didn't need mail-api or activation.jar).

In my client, it was not possible to run without saaj.jar or jaxrpc.jar.
Perhaps if you were using Axis only for the Transport, and not for the
marshalling/unmarshalling (although then it seems you lose most of the
benefit...)

Meghan

_
Meghan Pietila
Java Middleware Architect
Sales & Service Management Program
US Bank - Gold 4
(651) 205-0904
(651) 610-1697 pager
[EMAIL PROTECTED]


--
Electronic Privacy Notice. This e-mail, and any attachments, contains 
information that is, or may be, covered by electronic communications privacy 
laws, and is also confidential and proprietary in nature. If you are not the 
intended recipient, please be advised that you are legally prohibited from 
retaining, using, copying, distributing, or otherwise disclosing this 
information in any manner. Instead, please reply to the sender that you have 
received this communication in error, and then immediately delete it. Thank you 
in advance for your cooperation.
==



Re: Performance When Reading Attachments

2005-12-08 Thread J . Sugrue
Thanks 

Would you recommend Axis 2 for better attachment performance?
James




Davanum Srinivas <[EMAIL PROTECTED]> 
08/12/2005 12:39
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Re: Performance When Reading Attachments






it is in 1.3

On 12/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Yes - I noticed this alright.
>
> So, will stream attachments stop the "blocking" nature of attachment
> reading?
>
> Also, is this implemented in the Axis1.3 release, or will I have to go
> with the CVS version? Or is it Subversion now?
>
> Is there any guide as how to use the streaming method?
>
> Thanks for your help
> James
>
>
>
>
> Davanum Srinivas <[EMAIL PROTECTED]>
> 07/12/2005 18:17
> Please respond to
> axis-user@ws.apache.org
>
>
> To
> axis-user@ws.apache.org
> cc
>
> Subject
> Re: Performance When Reading Attachments
>
>
>
>
>
>
> See http://issues.apache.org/jira/browse/AXIS-2221 there is support
> for streaming attachments.
>
> thanks,
> dims
>
> On 12/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > Can anyone help me with this at all?
> >
> > I'm considering using the current CVS build to see if any improvements
> > have been made.
> >
> > Like, I've heard about streaming attachments - they sound good - if I
> can
> > work out how to use them.
> >
> > But this is a critical area for my application, so if anyone has any
> > performance hints for DIME attachments at all  I'd really appreciate 
it.
> >
> >
> > James
> >
> >
> >
> >
> > [EMAIL PROTECTED]
> > 06/12/2005 14:39
> > Please respond to
> > axis-user@ws.apache.org
> >
> >
> > To
> > axis-user@ws.apache.org
> > cc
> >
> > Subject
> > Performance When Reading Attachments
> >
> >
> >
> >
> >
> >
> > Hi
> >
> > I'm really hoping someone can finally solve this for me.
> >
> > When I receive a message with a DIME Attachement, I get my Message
> object
> > back quite quickly, but it takes ages for it to read the attachments
> from
> > the message.
> >
> > I considered that this could be because it's waiting for the
> attachments,
> > but unfortunatly, I can't work out how to just read the attachments
> > straight away.
> >
> > Has anyone had this problem or found the solution?
> >
> > I am using Axis for my client, and someone else is using a C++ GSOAP
> > client, and they get the data in no time.
> > So any help in improving attachement performance would be appreciated 
.
> >
> >
> > Thanks
> > James
> >
> >
> > This email is intended solely for the use of the named addressee(s). 
Any
> > unauthorised disclosure, copying or distribution of the confidential
> > information contained therein, or the taking of any action based on 
it,
> is
> > prohibited. The sender disclaims any liability for the integrity of 
this
> > email. Legally binding declarations must be in written form.
> >
> >
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
>
> This email is intended solely for the use of the named addressee(s). Any
> unauthorised disclosure, copying or distribution of the confidential
> information contained therein, or the taking of any action based on it, 
is
> prohibited. The sender disclaims any liability for the integrity of this
> email. Legally binding declarations must be in written form.
>
>


--
Davanum Srinivas : http://wso2.com/blogs/


This email is intended solely for the use of the named addressee(s). Any 
unauthorised disclosure, copying or distribution of the confidential 
information contained therein, or the taking of any action based on it, is 
prohibited. The sender disclaims any liability for the integrity of this 
email. Legally binding declarations must be in written form.



RE: problems using soapmonitor

2005-12-08 Thread George Papandreou
Have you tried 'soapmeter'?
(http://soapical.sourceforge.net/soapmeter/)
It installed and ran as charm with no hassles.  It also has some appealing
visualization features you might like.  Hope its of use to you.

Cheers,
/geo 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 08, 2005 8:11 AM
To: axis-user@ws.apache.org
Subject: problems using soapmonitor

Hello!

I have been trying to use the soap monitor for some time now, but each time
I try to run the applet I get "The SOAP Monitor is unable to communcate with
the server."

I have traced the error to the SOAPMonitorPage.start method, and this is the
error that I get:

Exception! java.io.EOFException
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown
Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown
Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.(Unknown Source)
at
SOAPMonitorApplet$SOAPMonitorPage.start(SOAPMonitorApplet.java:368)
at SOAPMonitorApplet.start(SOAPMonitorApplet.java:100)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


What's wrong...? Please help!

/Stefan



RE: WS Transactions

2005-12-08 Thread Brian Dillon (ext. 944)
Iksrazal,

Thanks. I found the Kandula site but what there doesn't seem to be is any
release (not even a beta), so I am still stuck looking for something.

Thanks,

Brian 

-Original Message-
From: iksrazal [mailto:[EMAIL PROTECTED] 
Sent: 08 December 2005 10:23
To: axis-user@ws.apache.org
Subject: Re: WS Transactions

There's Apache Kandula2 from googles summer of code, but I haven't used it
yey. 

http://wiki.apache.org/ws/SummerOfCode/2005

HTH,
iksrazal

Em Quinta 08 Dezembro 2005 08:57, o Brian Dillon (ext. 944) escreveu:
> Hi,
>
> Is there any WS Transaction support in Axis 2 ? If not does anyone 
> know of an implementation of WS Transaction which can be integrated 
> with either Axis 1.2 or Axis 2 ?
>
> Thanks,
>
> Brian Dillon
>
> **
> The information contained in this e-mail is confidential, may be 
> privileged and is intended only for the user of the recipient named above.
> If you are not the intended recipient or a representative of the 
> intended recipient, you have received this e-mail in error and must 
> not copy, use or disclose the contents of this e-mail to anybody else.  
> If you have received this e-mail in error, please notify the sender 
> immediately by return e-mail and permanently delete the copy you received.
> This e-mail has been swept for computer viruses.  However, you should 
> carry out your own virus checks.
> Registered in Ireland, No. 205721.  http://www.FINEOS.com
> **


Re: [Axis2] Axis2 0.93 doesn't find resources in .aar

2005-12-08 Thread iksrazal
Just a quick comment. This is a known problem that some people on the dev list 
are working on. 

In the meantime, this is how I deploy, using spring/hibernate etc . 

AAR: 

 .
./SWALoginEndpoint.aar
./META-INF
./META-INF/MANIFEST.MF
./META-INF/SWALoginEndpoint.wsdl
./META-INF/services.xml
./com
./com/siemens
./com/siemens/swa
./com/siemens/swa/plugins
./com/siemens/swa/plugins/webservices
./com/siemens/swa/plugins/webservices/autodispatch
./com/siemens/swa/plugins/webservices/autodispatch/SWALoginEndpointSkeleton.class

All wsdl2java generated files go into a jar in WEB-INF/lib, except 
SWALoginEndpointSkeleton.class , and your *CallbackHandler if you change/use 
it. 

All dependencies go under WEB-INF/lib or WEB-INF/classes . 

This hopefully will get worked out soon, as hot deploy becomes an issue if 
there are dependencies in WEB-INF/lib and/or WEB-INF/classes . 

HTH, 
iksrazal

Em Quinta 08 Dezembro 2005 12:12, o Iwan Memruk escreveu:
> Hello Chathura,
>
> Thursday, December 8, 2005, 4:08:15 PM, you wrote:
>
> CH> Well i am not sure whethe i got your question right, if you are
> CH> talking about deploying an service then the .aar files should go to
> CH> $CATALINA_HOME\webapps\axis2\WEB-INF\services
>
> CH> or pls use our nice admin interface to upload the aar.
>
> CH> Chathura
>
> Thanks for your concern. Here's a more detailed explanation:
>
> 1. My application loads Hibernate config file (an XML) as a resource.
> 2. It works locally, e.g. when unit-testing.
> 3. It works when the service is deployed in the extracted form, i.e.
> classes AND resources in axis2/WEB-INF/classes, service as a directory in
> WEB-INF/services etc. My Hibernate config gets loaded OK.
> 4. When deployed as an .aar, the resources are not found, even though
> they are included in the .aar together with the classes.
>
> CH> On 12/8/05, Iwan Memruk <[EMAIL PROTECTED]> wrote:
> >> Hello axis-user,
> >>
> >>   Axis2 version 0.93
> >>
> >>   ..doesn't load resources from .aar for me.
> >>
> >>   And so did 0.92.
> >>
> >>   If i deploy the resources to axis2/WEB-INF/classes, they get loaded
> >>   OK.
> >>
> >>   Someone else faced this problem?
> >>
> >> --
> >> Best regards,
> >>  Iwan  mailto:[EMAIL PROTECTED]
>
> CH> --
> CH> Chathura Herath
> CH> http://www.bloglines.com/blog/chathurah


RE: Axis 1.3 Serializaiton of derived types

2005-12-08 Thread McMullin, Gregg E.
FYI:

  I verified that this works in 1.2.1 but not in 1.3 or 1.4.
Is work still being done on 1.3 or 1.4?

 thanks,
 
  Gregg


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 9:39 AM
To: axis-user@ws.apache.org
Subject: RE: Axis 1.3 Serializaiton of derived types

Chirstophe
  
  Don't mean to hijack your thread.  I have the exact same
issue.  I don't really have the ability to go back to 1.2.1
to resolve this issue, but I may be able to adjust the schema.
I'd rather not, but if it my only choice I will.  I've modified
your sample just a bit.  If the following was the initial schema
that needed to be changed, how should/could it be changed?  Should
I implement a  in my RequestMessage, where the choices are
either "CommandRequestPayload" or "AltCommandRequestPayload"?  Also,
note that this issue occurs even if the abstract flag is not set.

 Thanks

 Gregg


  

  


 
  

  



  

  


  

  



  

  


  

  


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 06, 2005 6:08 PM
To: axis-user@ws.apache.org
Subject: RE: Axis 1.3 Serializaiton of derived types

I have the same issue as well.  Does anyone know if it is 
resolved?  If not, is the solution to go back to 1.2.1?
Thanks for any feedback.

 Gregg

>Yes, I have regenerated the code with the 1.4 drop.

>Christophe

> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 29, 2005 11:57 AM
> To: axis-user@ws.apache.org
> Subject: Re: Axis 1.3 Serialization of derived types
> 
> did you re-generate the code using 1.4? or just dropped in the jars?
> could u please log a bug with your wsdl (from which you create the
> service) and the test client (that works with the generated code?)
> 
> thanks,
> dims
> 
> On 11/29/05, Christophe Roudet <[EMAIL PROTECTED]> wrote:
> > I have just tested with axis-bin-1_4.zip and it does not fix the
> problem.
> >
> > Chirstophe
> >
> > > -Original Message-
> > > From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, November 29, 2005 10:23 AM
> > > To: Dovholuk, Clint
> > > Cc: axis-user@ws.apache.org
> > > Subject: Re: Axis 1.3 Serialization of derived types
> > >
> > > Nightlies are here:
> > > http://cvs.apache.org/dist/axis/nightly/
> > >
> > > thanks,
> > > dims
> > >
> > > On 11/29/05, Dovholuk, Clint <[EMAIL PROTECTED]>
> wrote:
> > > > would I need to get it from svn and build on my own or is it in the
> > > > nightly drops?
> > > >
> > > > Thanks,
> > > > cwd
> > > >
> > > > -Original Message-
> > > > From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> > > > Sent: Tuesday, November 29, 2005 10:02 AM
> > > > To: axis-user@ws.apache.org
> > > > Subject: Re: Axis 1.3 Serialization of derived types
> > > >
> > > > I think This has been fixed in latest SVN.
> > > >
> > > > -- dims
> > > >
> > > > On 11/29/05, Dovholuk, Clint <[EMAIL PROTECTED]>
> wrote:
> > > > > Christophe,
> > > > >
> > > > > I personally had to switch back to 1.2.1 as this is a definite
> issue
> > > > > with 1.3.
> > > > >
> > > > > I've not had time to create a test case and submit a bug to jira
> > > > > though so I don't know if a bug is out there addressing this or
> not...
> > > > >
> > > > > -Clint
> > > > >
> > > > >
> > > > >
> > > > > -Original Message-
> > > > > From: Christophe Roudet [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, November 28, 2005 5:48 PM
> > > > > To: axis-user@ws.apache.org
> > > > > Subject: Axis 1.3 Serialization of derived types
> > > > >
> > > > > I am using Axis 1.3 rpc/encoded.
> > > > >
> > > > > I have problem with the serialization of derived types:
> > > > >
> > > > > In the wsdl:
> > > > >
> > > > > 
> > > > >   
> > > > > 
> > > > > 
> > > > >   
> > > > >  
> > > > >
> > > > >  
> > > > >
> > > > > 
> > > > >   
> > > > >  
> > > > >
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >> > > > type="tns:Parameters"/>
> > > > >
> > > > >  
> > > > >   
> > > > > 
> > > > >
> > > > >
> > > > > When sending a message containing a CommandRequestPayload I got:
> > > > >
> > > > > ?xml version="1.0" encoding="UTF-8"?>
> > > > > > > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> > > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> > > > >   
> > > > >   > > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> > > > > xmlns:ns1="http://www.activia.net/CCP";>
> > > > >  > > > > xmlns:ns2="http://www.activia.net/CCP/types";>
> > > > >
> > > > >   0
> > > > >   313
> > > > >xsi:type="xsd:long">0
> > > > >
> > > > > 

Re: Re[2]: [Axis2] Axis2 0.93 doesn't find resources in .aar

2005-12-08 Thread Yves Langisch
This was an answer from Deepal from a similar posting:

The correct way is get the ServiceDescription from , MessageContxt and
then 
you can get the correct classloader for that service (which has all you
lib 
files) from serviceDescription
ClassLoader cl = sd.getClassLoader();
 
next you can load the properties you want.

Yves

On Thu, 2005-12-08 at 16:12 +0200, Iwan Memruk wrote:
> Hello Chathura,
> 
> Thursday, December 8, 2005, 4:08:15 PM, you wrote:
> 
> CH> Well i am not sure whethe i got your question right, if you are
> CH> talking about deploying an service then the .aar files should go to
> CH> $CATALINA_HOME\webapps\axis2\WEB-INF\services
> 
> CH> or pls use our nice admin interface to upload the aar.
> 
> CH> Chathura
> 
> Thanks for your concern. Here's a more detailed explanation:
> 
> 1. My application loads Hibernate config file (an XML) as a resource.
> 2. It works locally, e.g. when unit-testing.
> 3. It works when the service is deployed in the extracted form, i.e. classes 
> AND
> resources in axis2/WEB-INF/classes, service as a directory in
> WEB-INF/services etc. My Hibernate config gets loaded OK.
> 4. When deployed as an .aar, the resources are not found, even though
> they are included in the .aar together with the classes.
> 
> CH> On 12/8/05, Iwan Memruk <[EMAIL PROTECTED]> wrote:
> >> Hello axis-user,
> >>
> >>   Axis2 version 0.93
> >>
> >>   ..doesn't load resources from .aar for me.
> >>
> >>   And so did 0.92.
> >>
> >>   If i deploy the resources to axis2/WEB-INF/classes, they get loaded
> >>   OK.
> >>
> >>   Someone else faced this problem?
> >>
> >> --
> >> Best regards,
> >>  Iwan  mailto:[EMAIL PROTECTED]
> >>
> >>
> 
> 
> CH> --
> CH> Chathura Herath
> CH> http://www.bloglines.com/blog/chathurah
> 
> 
> 
> 



Re[2]: [Axis2] Axis2 0.93 doesn't find resources in .aar

2005-12-08 Thread Iwan Memruk
Hello Chathura,

Thursday, December 8, 2005, 4:08:15 PM, you wrote:

CH> Well i am not sure whethe i got your question right, if you are
CH> talking about deploying an service then the .aar files should go to
CH> $CATALINA_HOME\webapps\axis2\WEB-INF\services

CH> or pls use our nice admin interface to upload the aar.

CH> Chathura

Thanks for your concern. Here's a more detailed explanation:

1. My application loads Hibernate config file (an XML) as a resource.
2. It works locally, e.g. when unit-testing.
3. It works when the service is deployed in the extracted form, i.e. classes AND
resources in axis2/WEB-INF/classes, service as a directory in
WEB-INF/services etc. My Hibernate config gets loaded OK.
4. When deployed as an .aar, the resources are not found, even though
they are included in the .aar together with the classes.

CH> On 12/8/05, Iwan Memruk <[EMAIL PROTECTED]> wrote:
>> Hello axis-user,
>>
>>   Axis2 version 0.93
>>
>>   ..doesn't load resources from .aar for me.
>>
>>   And so did 0.92.
>>
>>   If i deploy the resources to axis2/WEB-INF/classes, they get loaded
>>   OK.
>>
>>   Someone else faced this problem?
>>
>> --
>> Best regards,
>>  Iwan  mailto:[EMAIL PROTECTED]
>>
>>


CH> --
CH> Chathura Herath
CH> http://www.bloglines.com/blog/chathurah




-- 
Best regards,
 Iwanmailto:[EMAIL PROTECTED]



Re: [Axis2] Axis2 0.93 doesn't find resources in .aar

2005-12-08 Thread Chathura Herath
Well i am not sure whethe i got your question right, if you are
talking about deploying an service then the .aar files should go to
$CATALINA_HOME\webapps\axis2\WEB-INF\services

or pls use our nice admin interface to upload the aar.

Chathura

On 12/8/05, Iwan Memruk <[EMAIL PROTECTED]> wrote:
> Hello axis-user,
>
>   Axis2 version 0.93
>
>   ..doesn't load resources from .aar for me.
>
>   And so did 0.92.
>
>   If i deploy the resources to axis2/WEB-INF/classes, they get loaded
>   OK.
>
>   Someone else faced this problem?
>
> --
> Best regards,
>  Iwan  mailto:[EMAIL PROTECTED]
>
>


--
Chathura Herath
http://www.bloglines.com/blog/chathurah


Re: axis2 wsdl2java issue

2005-12-08 Thread Chathura Herath
>  BTW Axis2 does not have codegen support for out-bound MEPS so my guess is
> that there will be that even if the code generation is successful, it might
> not work.

I suppose you mean, on the fly code generation wouldnt work for
out-Only. But in this case we can have awoek around. Out only client
side is equivalent to In-Only serverside. So if you change the wsdl
accordingly it should work.
Chathura

>
>
>
>
> On 12/7/05, Stuart, Jay Cameron <[EMAIL PROTECTED]> wrote:
> >
> > Chathura,
> >
> > As you suspected, they are named differently.  I will try the
> > scond approach and let you know how that goes.  On a side note, when I
> > use the eclipse plugin with the latest version of eclipse I get a
> > java.lang.reflect.InvocationTargetExecelption.  I get
> this error on 2
> > different machines.
> >
> > -- Jay
> >
> >
> > -Original Message-
> > From: Chathura Herath [mailto:[EMAIL PROTECTED] ]
> > Sent: Wednesday, December 07, 2005 11:21 AM
> > To: axis-user@ws.apache.org
> > Subject: Re: axis2 wsdl2java issue
> >
> > Hi Jay,
> > >  There is a WSDL for the ASYNC Request and
> > > then the one you have seen for the response.  I myself, am still
> > trying
> > > to make sense of it all.
> > I think i got a little insight of what you are trying to do. So let me
> > suggest something that might work for you. (Anyway i am not convinced
> > the was they have decouples the ASYNC Request and Responce. Sync Async
> > is nothing to do with MEP, its merely a programming model.)
> >
> > I see two ways of getting out of the trouble. Either way you need to
> > edit the WSDLs before you code generate. I would suggest option 1 is
> > better, But looking at the WSDL i got a feeling you might not be able
> > to do it.
> >
> > 1)THis can only be done if the two WSDLs have the same Operation Name
> > for the ASYNC Request and ASYNC Responce. IF they do Collapse both the
> > WSDLs and write one with an In-Out MEP. Basically put both input and
> > output MessageReferences for the porttype/operation amd
> > binding/bindingoperation. THen codegenerate with Axis2 with async
> > option and for the clientside.
> >
> >
> > 2)Understan this, the MEP in the WSDL that you sent is Out-Only for
> > the server. SO if you are going to receive the responce you are at the
> > clien side and it will be an incomming messageto you. So you can
> > consider yourself to be a In-Only Service that receives a message from
> > the 3rd party. For the third party it is a Out message, but for you it
> > ll be a In-Message . Axis2 handles this elegently. Change the WSDL for
> > it to become a In-Only service, by having only input parameter in the
> > porttype/operation and bindingoperation. Code generate a serverside.
> > Now service you generated would listen to the otu message from the
> > third party
> > Thanks
> > Chathura.
> >
> > >
> > > -- Jay
> > >
> > > -Original Message-
> > > From: Chathura Herath [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, December 06, 2005 9:26 PM
> > > To: axis-user@ws.apache.org
> > > Subject: Re: axis2 wsdl2java issue
> > >
> > > Hi Jay,
> > > I attached a wsdl from which you can code generate.
> > >
> > > If you are looking for Notification implementation Axis2 does not
> > > support neither BaseNotification nor BrockeredNotification as yet.
> > >
> > > But if you simple want to send a message out to a given enpoint at
> > > your discression write a In-only service and generate the client side.
> > >
> > > Why did you come up with a Out-only MEP???
> > > Chathura
> > >
> > >
> > > On 12/6/05, Stuart, Jay Cameron <[EMAIL PROTECTED]> wrote:
> > > > Hi Herath,
> > > >
> > > > Thanks for your help in this matter.  The WSDL in question
> > is
> > > > one that is generated automatically from PeopleSoft.  I did notice
> > the
> > > > problem which you just specified.  Here are the 2 definitions:
> > > >
> > > >
> > > > 
> > > > 
> > > >  > > > maxOccurs="1"
> > > > minOccurs="0"
> > > > name="AUDIT_ACTN"
> > > > type="AUDIT_ACTNType"/>
> > > > 
> > > >  > > type="xsd:string"
> > > > use="required"/>
> > > > 
> > > >
> > > > AND
> > > >
> > > > 
> > > > 
> > > >  > > > type="FieldTypesLANGUAGE_CDType"/>
> > > >  > > > type="FieldTypesAUDIT_ACTNType"/>
> > > >  > > > type="FieldTypesBASE_LANGUAGE_CDType"/>
> > > >  > > > type="FieldTypesMSG_SEQ_FLGType"/>
> > > >  > > > type="FieldTypesPROCESS_INSTANCEType"/>
> > > >  > > > type="FieldTypesPUBLISH_RULE_IDType"/>
> > > >  > > > type="FieldTypesMSGNODENAMEType"/>
> > > > 
> > > >  > > type="xsd:string"
> > > > use="required"/>
> > > > 
> > > >
> > > >
> >

Re: Deserializing complex/nested types

2005-12-08 Thread Davanum Srinivas
Please run wsdl2java against your wsdl and review the generated code,
especially stubs and wsdd. You will be able to cut and paste from
there to get this working.

thanks,
dims

On 12/8/05, Martin, Imme <[EMAIL PROTECTED]> wrote:
> Hallo all,
>
> this most probably is a stupid or at least simple question: How can I
> deserialize a complex Object which is returned from a Webservice
> implemented in .NET into some nice Java Object?
>
> My scenario looks as follows:
>
> // The Environment
> I am running Apache Axis 1.3, Build date Oct. 5th, 2005
>
> // The Service
> I have a service, implemented in C# on some IIS machine. This service
> returns a complex BusinessPartnerElements object. This object consists
> of several sub-objects like Person which itself consists of Name,
> Firstname, Tile and Sex which are Strings.
>
> // The Client
> The Java Client only wants to call the service and retrieve the
> BusinessPartnerElements object. Nothing more so far. Calling the service
> works and I received a SOAP response which looks pretty good to me:
>
> 
> 
>
> http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>
> 
>  xmlns="http://sap.com/composite/prototype/webshop";>
> 123456
> 
> myCorp
> Inc
> 
> 
> John
> Doe
> Phd
> male
> 
> 
> 555 3535
> 01
>
> 0001-01-01
>
> 0001-01-01
> 
> 
>  protocolCode="SMTP">[EMAIL PROTECTED]
>
> 0001-01-01
>
> 0001-01-01
> 
> 
>
> http://www.mycorp.com/jdoe
> 
> 
> London
> NW23
> Abbey Road
> 4
>
> 0001-01-01
>
> 0001-01-01
> 
> 
> 
> 
> 
>
> From the WSDL file, I was able to create a bunch of Java proxy classes
> which can hold the BusinessPartnerElements Object. In order to tell Axis
> how to map the received stuff, I thought it would be enough to do
> something like this:
>
> 
>
> String endpoint = "http://p122851/WebService1/ShopService.asmx";;
> Service service = new Service();
>
> Call call = (Call) service.createCall();
> call.setTargetEndpointAddress(new java.net.URL(endpoint));
> call.setOperationName(new
> QName("http://sap.com/composite/prototype/webshop";,
> "BusinessPartnerRetrieveIn"));
> call.setSOAPActionURI("http://sap.com/composite/prototype/webshop/Busine
> ssPartnerRetrieveIn");
>
> // take care about the type mapping...
> qn = new QName( "urn:BusinessPartnerRetrieveIn",
> "BusinessPartnerElements" );  // BTW: it does not matter hat values are
> given for qn - the Exception remains the same :(
> BeanSerializerFactory bsf = new
> BeanSerializerFactory(BusinessPartnerElements.class, qn);
> BeanDeserializerFactory bdsf = new
> BeanDeserializerFactory(BusinessPartnerElements.class, qn);
>
> call.registerTypeMapping(BusinessPartnerElements.class, qn, bsf, bdsf);
> call.setReturnType( qn ); // Return type is our bean
> BusinessPartnerElements pbe = (BusinessPartnerElements)call.invoke(new
> Object[] {});
>
> 
>
> But unfortunately, this throws an Exception:
>
> 
>
> org.xml.sax.SAXException: Invalid element in
> .BusinessPartnerElements - CompanyName
>
> 
>
> This CompanyName Elements which SAX is complaining about is the first
> non-complex Object [String] of the first somplex sub-object,
> Organization. The BusinessPartnerElements Object looks somethig like
> this:
>
> BusinessPartnerElements
> '--> ID (String)
> '--> Organization (complex)
> _ _ _'--> CompanyName (String)
> _ _ _'--> LegalForm (String)
> '--> Person (complex)
> _ _ _'--> Firstname (String)
> .
> .
> .
>
> So, Axis does not have an issue with the ID thing but stumbles over the
> complex sub-types. My Idea was to somehow tell Axis about these complex
> sub-types and how to map them, just like I did with the root element
> [see code above] but I simply don't know _HOW_ All I read in the Axis
> Wiki is that Axis *can* handle these complex return types but I never
> found a description _how_. Also, the axis guides only respond with some
> Objects which only consist of simple types themselves. I really hope
> that you can help me with this since it really is a very important topic
> for me...
>
> If you have any questions, feel free to ask, I will provide code and
> whatever you need. Also, I could send you a postcard or even home-made
> cookies 

problems using soapmonitor

2005-12-08 Thread Stefan . Freyhult
Hello!

I have been trying to use the soap monitor for some time now, but each time
I try to run the applet I get 
"The SOAP Monitor is unable to communcate with the server."

I have traced the error to the SOAPMonitorPage.start method, and this is the
error that I get:

Exception! java.io.EOFException
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown
Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown
Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.(Unknown Source)
at
SOAPMonitorApplet$SOAPMonitorPage.start(SOAPMonitorApplet.java:368)
at SOAPMonitorApplet.start(SOAPMonitorApplet.java:100)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


What's wrong...? Please help!

/Stefan


Re: Multiple parts in SOAP binding

2005-12-08 Thread Anne Thomas Manes
Can I assume you're using document style?
In that case you may have at most one body part in your message. 
(That's the whole idea -- you're sending a document, not RPC parameters.)
You need to define a wrapper element that contains your two login parameters.

AnneOn 12/7/05, David Bainbridge (dbainbri) <[EMAIL PROTECTED]> wrote:





Does Axis2 support 
[currently or planned] multiple parts in the messages and soap bindings? I am 
attempting this with version 0.93 of Axis2 and getting a null pointer exception 
when invoking WSDL2Java on the WSDL. I have attached the 
WSDL.
 
The relevant 
portions of the WSDL are the following, with the lines is question 
highlighted ...
 
 1: 
 2:  

 3:  

 4: 
 
 5: 
 6:  
 7:  
 8:    

 9:  

10:  
11:    
12:  
13:>
 
It 
appears that the addition of the additional "part" element in the 
message [line 3] causes the [initial] null pointer exception when invoking 
WSDL2Java.
 
cheers,
/dkb




Re: Performance When Reading Attachments

2005-12-08 Thread Davanum Srinivas
it is in 1.3

On 12/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Yes - I noticed this alright.
>
> So, will stream attachments stop the "blocking" nature of attachment
> reading?
>
> Also, is this implemented in the Axis1.3 release, or will I have to go
> with the CVS version? Or is it Subversion now?
>
> Is there any guide as how to use the streaming method?
>
> Thanks for your help
> James
>
>
>
>
> Davanum Srinivas <[EMAIL PROTECTED]>
> 07/12/2005 18:17
> Please respond to
> axis-user@ws.apache.org
>
>
> To
> axis-user@ws.apache.org
> cc
>
> Subject
> Re: Performance When Reading Attachments
>
>
>
>
>
>
> See http://issues.apache.org/jira/browse/AXIS-2221 there is support
> for streaming attachments.
>
> thanks,
> dims
>
> On 12/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > Can anyone help me with this at all?
> >
> > I'm considering using the current CVS build to see if any improvements
> > have been made.
> >
> > Like, I've heard about streaming attachments - they sound good - if I
> can
> > work out how to use them.
> >
> > But this is a critical area for my application, so if anyone has any
> > performance hints for DIME attachments at all  I'd really appreciate it.
> >
> >
> > James
> >
> >
> >
> >
> > [EMAIL PROTECTED]
> > 06/12/2005 14:39
> > Please respond to
> > axis-user@ws.apache.org
> >
> >
> > To
> > axis-user@ws.apache.org
> > cc
> >
> > Subject
> > Performance When Reading Attachments
> >
> >
> >
> >
> >
> >
> > Hi
> >
> > I'm really hoping someone can finally solve this for me.
> >
> > When I receive a message with a DIME Attachement, I get my Message
> object
> > back quite quickly, but it takes ages for it to read the attachments
> from
> > the message.
> >
> > I considered that this could be because it's waiting for the
> attachments,
> > but unfortunatly, I can't work out how to just read the attachments
> > straight away.
> >
> > Has anyone had this problem or found the solution?
> >
> > I am using Axis for my client, and someone else is using a C++ GSOAP
> > client, and they get the data in no time.
> > So any help in improving attachement performance would be appreciated .
> >
> >
> > Thanks
> > James
> >
> >
> > This email is intended solely for the use of the named addressee(s). Any
> > unauthorised disclosure, copying or distribution of the confidential
> > information contained therein, or the taking of any action based on it,
> is
> > prohibited. The sender disclaims any liability for the integrity of this
> > email. Legally binding declarations must be in written form.
> >
> >
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
>
> This email is intended solely for the use of the named addressee(s). Any
> unauthorised disclosure, copying or distribution of the confidential
> information contained therein, or the taking of any action based on it, is
> prohibited. The sender disclaims any liability for the integrity of this
> email. Legally binding declarations must be in written form.
>
>


--
Davanum Srinivas : http://wso2.com/blogs/


Passing opaque message datatypes with Axis... ????

2005-12-08 Thread tfennelly
 Hi there.

I may be trying to do something that's either not supported by Axis, or perhaps 
isn't even supported by XML Schema, WSDL etc.

I've got a Service message that's defined in a POJO as follows:
public Account getAccount(AccountIdentifier);

AccountIdentifier is an opaque data type.  I've got concrete implementations of 
AccountIdentifer as follows:

   1. AccountNumberIdentifier: Has a single property called "accountNumber", 
type long (xsd:long).
   2. AccountGUIDIdentifier: Has a single property called "accountGUID", type 
String (xsd:string).

So, I'm trying to construct my wsdl such that the "getAccount" message supports 
passing extensions of the AccountIdentifier type i.e. AccountNumberIdentifier, 
AccountGUIDIdentifier and whatever else may come along in the future?  I've 
attached the schema for these types at the bottom of this mail.

So, my questions:

   1. Is what I'm trying to do possible from a webservices/wsdl/axis 
perspective?
   2. If possible, how do I construct the  and  parts of my 
wsdl.  Is there a way of saying something like "any:AccountIdentifier"?

Please excuse my ignorance if this is a daft idea!

Regards & thank you.

Tom.

 Types Schema  - perhaps my problems lie here! 
===





























-
Find the home of your dreams with eircom net property
Sign up for email alerts now http://www.eircom.net/propertyalerts




[Axis2] Axis2 0.93 doesn't find resources in .aar

2005-12-08 Thread Iwan Memruk
Hello axis-user,

  Axis2 version 0.93

  ..doesn't load resources from .aar for me.

  And so did 0.92.

  If i deploy the resources to axis2/WEB-INF/classes, they get loaded
  OK.
  
  Someone else faced this problem?

-- 
Best regards,
 Iwan  mailto:[EMAIL PROTECTED]



Axis2C Milestone Release M0.2 Released

2005-12-08 Thread Damitha Kumarage
Hi All,

The second  milestone release of Axis2C, M0.2  has been released and could be downloaded at

http://www.apache.org/dist/ws/axis2c/

We have been able to improve OM module since the last release and PHP binding for
OM module is in place.

Following features are included

1. Improved OM module
2. libxml2 parser support
3. PHP binding for OM module
4. Some test cases for PHP binding
5. Many memory leaks fixes

We welcome your early feedback on this implementation.


Best Regards
Damitha



Re: WS Transactions

2005-12-08 Thread iksrazal
There's Apache Kandula2 from googles summer of code, but I haven't used it 
yey. 

http://wiki.apache.org/ws/SummerOfCode/2005

HTH,
iksrazal

Em Quinta 08 Dezembro 2005 08:57, o Brian Dillon (ext. 944) escreveu:
> Hi,
>
> Is there any WS Transaction support in Axis 2 ? If not does anyone know of
> an implementation of WS Transaction which can be integrated with either
> Axis 1.2 or Axis 2 ?
>
> Thanks,
>
> Brian Dillon
>
> **
> The information contained in this e-mail is confidential, may be
> privileged and is intended only for the user of the recipient named above.
> If you are not the intended recipient or a representative of the intended
> recipient, you have received this e-mail in error and must not copy, use
> or disclose the contents of this e-mail to anybody else.  If you have
> received this e-mail in error, please notify the sender immediately
> by return e-mail and permanently delete the copy you received.
> This e-mail has been swept for computer viruses.  However, you should
> carry out your own virus checks.
> Registered in Ireland, No. 205721.  http://www.FINEOS.com
> **


Re: WSDL not displayed

2005-12-08 Thread Iwan Memruk
Hello axis-user,

  I forgot to mention: it is Axis2 0.93 on Tomcat

IM> Hello axis-user,

IM>   The service contains a META-INF dir with a service.wsdl file.

IM>   During the service inspection process, the wsdl gets found OK and is
IM>   put into a HashMap.

IM>   In the method ArchiveReader.buildServiceGroup():

>> if (SERVICE_ELEMENT.equals(rootelementName)) {
>> AxisService axisService = engine.getCurrentFileItem().
>> getService(DescriptionBuilder.getShortFileName(
>>
>> engine.getCurrentFileItem().getName()));
>> if (axisService == null) {
>> axisService = new AxisService(
>> new
>> QName(DescriptionBuilder.getShortFileName(
>>
>> engine.getCurrentFileItem().getName(;
>>
>> engine.getCurrentFileItem().addService(axisService);
>> }
>> axisService.setParent(axisServiceGroup);
>>
>> axisService.setClassLoader(engine.getCurrentFileItem().getClassLoader());
>> ServiceBuilder serviceBuilder = new
>> ServiceBuilder(axisConfig, axisService);
>> AxisService service =
>> serviceBuilder.populateService(services);
>> ArrayList serviceList = new ArrayList();
>> serviceList.add(service);
>> return serviceList;

IM>The debugger shows that the wsdlServices parameter of this method
IM>contains an entry for the service.wsdl file.

IM>Seems like this part has to call
IM> axisService.setWSDLDefinition() to
IM>assign the wsdl file to the service. But it doesn't.

IM>Please help me find out whether this is a bug or I am doing
IM>something wrong.




-- 
Best regards,
 Iwanmailto:[EMAIL PROTECTED]



WSDL not displayed

2005-12-08 Thread Iwan Memruk
Hello axis-user,

  The service contains a META-INF dir with a service.wsdl file.

  During the service inspection process, the wsdl gets found OK and is
  put into a HashMap.

  In the method ArchiveReader.buildServiceGroup():

> if (SERVICE_ELEMENT.equals(rootelementName)) {
> AxisService axisService = engine.getCurrentFileItem().
> getService(DescriptionBuilder.getShortFileName(
> engine.getCurrentFileItem().getName()));
> if (axisService == null) {
> axisService = new AxisService(
> new QName(DescriptionBuilder.getShortFileName(
> engine.getCurrentFileItem().getName(;
> engine.getCurrentFileItem().addService(axisService);
> }
> axisService.setParent(axisServiceGroup);
> 
> axisService.setClassLoader(engine.getCurrentFileItem().getClassLoader());
> ServiceBuilder serviceBuilder = new ServiceBuilder(axisConfig, 
> axisService);
> AxisService service = serviceBuilder.populateService(services);
> ArrayList serviceList = new ArrayList();
> serviceList.add(service);
> return serviceList;

   The debugger shows that the wsdlServices parameter of this method
   contains an entry for the service.wsdl file.

   Seems like this part has to call axisService.setWSDLDefinition() to
   assign the wsdl file to the service. But it doesn't.

   Please help me find out whether this is a bug or I am doing
   something wrong.

-- 
Best regards,
 Iwan  mailto:[EMAIL PROTECTED]



Serializer/DeSerializer + Language independency

2005-12-08 Thread Artur Kraft

Hello Folks,
seems to be a basic question, but I'm not sure though. I'm having a
complex datatype for exchanging data in my webservice. Now I have to
define a serializer/deserializer for it. My question is: by defining a
serializer/deserializer, isn't the programming language independency
broken? or do I have to define the deserializer for each possibly
supported language?, since you have to alter the client code as well...
?

kind regards
Artur Kraft



WS Transactions

2005-12-08 Thread Brian Dillon (ext. 944)
Hi,

Is there any WS Transaction support in Axis 2 ? If not does anyone know of
an implementation of WS Transaction which can be integrated with either Axis
1.2 or Axis 2 ?

Thanks,

Brian Dillon

**
The information contained in this e-mail is confidential, may be 
privileged and is intended only for the user of the recipient named above.  
If you are not the intended recipient or a representative of the intended 
recipient, you have received this e-mail in error and must not copy, use 
or disclose the contents of this e-mail to anybody else.  If you have 
received this e-mail in error, please notify the sender immediately 
by return e-mail and permanently delete the copy you received.  
This e-mail has been swept for computer viruses.  However, you should 
carry out your own virus checks. 
Registered in Ireland, No. 205721.  http://www.FINEOS.com
**



Sub-set of axis jars

2005-12-08 Thread Guy Rixon
Is it possible to leave some of the Axis jars out of an application? If I have
a client that doesn't use SAAJ or JAX-RPC, can I leave out those jars? How
about in a service?

Guy Rixon   [EMAIL PROTECTED]
Institute of Astronomy  Tel: +44-1223-337542
Madingley Road, Cambridge, UK, CB3 0HA  Fax: +44-1223-337523


Re: Performance When Reading Attachments

2005-12-08 Thread J . Sugrue
Yes - I noticed this alright.

So, will stream attachments stop the "blocking" nature of attachment 
reading? 

Also, is this implemented in the Axis1.3 release, or will I have to go 
with the CVS version? Or is it Subversion now?

Is there any guide as how to use the streaming method?

Thanks for your help 
James




Davanum Srinivas <[EMAIL PROTECTED]> 
07/12/2005 18:17
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Re: Performance When Reading Attachments






See http://issues.apache.org/jira/browse/AXIS-2221 there is support
for streaming attachments.

thanks,
dims

On 12/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi
>
> Can anyone help me with this at all?
>
> I'm considering using the current CVS build to see if any improvements
> have been made.
>
> Like, I've heard about streaming attachments - they sound good - if I 
can
> work out how to use them.
>
> But this is a critical area for my application, so if anyone has any
> performance hints for DIME attachments at all  I'd really appreciate it.
>
>
> James
>
>
>
>
> [EMAIL PROTECTED]
> 06/12/2005 14:39
> Please respond to
> axis-user@ws.apache.org
>
>
> To
> axis-user@ws.apache.org
> cc
>
> Subject
> Performance When Reading Attachments
>
>
>
>
>
>
> Hi
>
> I'm really hoping someone can finally solve this for me.
>
> When I receive a message with a DIME Attachement, I get my Message 
object
> back quite quickly, but it takes ages for it to read the attachments 
from
> the message.
>
> I considered that this could be because it's waiting for the 
attachments,
> but unfortunatly, I can't work out how to just read the attachments
> straight away.
>
> Has anyone had this problem or found the solution?
>
> I am using Axis for my client, and someone else is using a C++ GSOAP
> client, and they get the data in no time.
> So any help in improving attachement performance would be appreciated .
>
>
> Thanks
> James
>
>
> This email is intended solely for the use of the named addressee(s). Any
> unauthorised disclosure, copying or distribution of the confidential
> information contained therein, or the taking of any action based on it, 
is
> prohibited. The sender disclaims any liability for the integrity of this
> email. Legally binding declarations must be in written form.
>
>


--
Davanum Srinivas : http://wso2.com/blogs/


This email is intended solely for the use of the named addressee(s). Any 
unauthorised disclosure, copying or distribution of the confidential 
information contained therein, or the taking of any action based on it, is 
prohibited. The sender disclaims any liability for the integrity of this 
email. Legally binding declarations must be in written form.



How to get database connection in my service via connection pool

2005-12-08 Thread Ken Hu
Dear All:

I've wrote a small servlet that extends AxisServlet.
This home-made servlet can get database connection from our connection
pooling mechanism.

The question is : When I write the java code of my service , how can I
get a database connection ? I find no way to send a database connection
to my service from my own AxisServlet.

Any idea ?

Ken
-- 
研發部 胡重威 Ken Hu  [EMAIL PROTECTED]

孟華科技股份有限公司
http://www.mmti.com.tw

高雄巿804鼓山區蓮海路70號
國立中山大學創新育成中心511室

電話  07-5253020
傳真  07-5252165
行動  0937083880



Deserializing complex/nested types

2005-12-08 Thread Martin, Imme
Hallo all, 

this most probably is a stupid or at least simple question: How can I
deserialize a complex Object which is returned from a Webservice
implemented in .NET into some nice Java Object? 

My scenario looks as follows: 

// The Environment
I am running Apache Axis 1.3, Build date Oct. 5th, 2005

// The Service
I have a service, implemented in C# on some IIS machine. This service
returns a complex BusinessPartnerElements object. This object consists
of several sub-objects like Person which itself consists of Name,
Firstname, Tile and Sex which are Strings. 

// The Client
The Java Client only wants to call the service and retrieve the
BusinessPartnerElements object. Nothing more so far. Calling the service
works and I received a SOAP response which looks pretty good to me: 




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


http://sap.com/composite/prototype/webshop";>
123456

myCorp
Inc


John
Doe
Phd
male


555 3535
01

0001-01-01

0001-01-01


[EMAIL PROTECTED]

0001-01-01

0001-01-01



http://www.mycorp.com/jdoe


London
NW23
Abbey Road
4

0001-01-01

0001-01-01






>From the WSDL file, I was able to create a bunch of Java proxy classes
which can hold the BusinessPartnerElements Object. In order to tell Axis
how to map the received stuff, I thought it would be enough to do
something like this: 



String endpoint = "http://p122851/WebService1/ShopService.asmx";;
Service service = new Service();

Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperationName(new
QName("http://sap.com/composite/prototype/webshop";,
"BusinessPartnerRetrieveIn"));
call.setSOAPActionURI("http://sap.com/composite/prototype/webshop/Busine
ssPartnerRetrieveIn");

// take care about the type mapping...
qn = new QName( "urn:BusinessPartnerRetrieveIn",
"BusinessPartnerElements" );  // BTW: it does not matter hat values are
given for qn - the Exception remains the same :(
BeanSerializerFactory bsf = new
BeanSerializerFactory(BusinessPartnerElements.class, qn);
BeanDeserializerFactory bdsf = new
BeanDeserializerFactory(BusinessPartnerElements.class, qn);

call.registerTypeMapping(BusinessPartnerElements.class, qn, bsf, bdsf);
call.setReturnType( qn ); // Return type is our bean
BusinessPartnerElements pbe = (BusinessPartnerElements)call.invoke(new
Object[] {});



But unfortunately, this throws an Exception: 



org.xml.sax.SAXException: Invalid element in
.BusinessPartnerElements - CompanyName



This CompanyName Elements which SAX is complaining about is the first
non-complex Object [String] of the first somplex sub-object,
Organization. The BusinessPartnerElements Object looks somethig like
this: 
 
BusinessPartnerElements
'--> ID (String)
'--> Organization (complex)
_ _ _'--> CompanyName (String)
_ _ _'--> LegalForm (String)
'--> Person (complex)
_ _ _'--> Firstname (String)
.
.
.

So, Axis does not have an issue with the ID thing but stumbles over the
complex sub-types. My Idea was to somehow tell Axis about these complex
sub-types and how to map them, just like I did with the root element
[see code above] but I simply don't know _HOW_ All I read in the Axis
Wiki is that Axis *can* handle these complex return types but I never
found a description _how_. Also, the axis guides only respond with some
Objects which only consist of simple types themselves. I really hope
that you can help me with this since it really is a very important topic
for me...

If you have any questions, feel free to ask, I will provide code and
whatever you need. Also, I could send you a postcard or even home-made
cookies if that motivates you ;)

I thank you very, very much for helping me!

Cheers, 
Martin


Re: Creating a WS client, where to start?

2005-12-08 Thread Håkon T Sønderland

Dies Koper wrote:

Hello Håkon,

pretty please does help. Did you look at Axis' JUnit tests?

test\wsdl\stubheaders


Do you mean the JUnit tests that WSDL2Java generates with the
-t option? If so, then yes I did look at them, there is no reference
to the header there.

In my limited view of the world the WSDL2Java ought to have generated
stubs where the "Header" object is a parameter to the methods (this
according to the FAQ).  This does not happen (it seems).

I checked with a tool I downloaded (Stylus free trial) which seems
to understand where the header goes so I was able to test that the
web-service I try to use works.

I think I'll try something like this:

Header header
   = new Header(user,pass,subuser,custid,version);
InfoXML service = new InfoXMLLocator();
InfoXMLSoap port = service.getInfoXMLSoap();
Stub stub = (Stub)port;
stub.setHeader("https://www.creditinform.no/creditinform.standardwebservice.ws2005207/InfoXML","Header",header);
ReportPersonResponseReportPersonResult person
  = port.reportPerson("", strSocSecNumber, "", "", "", "", "");
MessageElement[] message = person.get_any();

Does this look like it could work?

Håkon

--
We shall fight on the beaches,
we shall fight on the landing grounds,
we shall fight in the fields and in the streets,
we shall fight in the hills;
we shall never surrender
http://www.getfirefox.com/


Re: Newbie Question

2005-12-08 Thread Indra Syafruddin
I have tried the code, it returns error, that I need to add
call.addParameter() method.

I have added call.addParameter("arg1",qn,ParameterMode.IN).

but it returns "premature end of file" error



On 12/8/05, Martin, Imme <[EMAIL PROTECTED]> wrote:
> Hallo Indra,
>
> I think you need to tell axis about the object you receive from the service
> in order to map it correctly. Therefore, try to do something like this:
>
> 
>
> qn = new QName( "", "" );
>
> // create a new serielizer and deserializer for the Java Bean into
> // which you want Axis to map the received Object
> BeanSerializerFactory bsf = new BeanSerializerFactory(.class,
> qn);
> BeanDeserializerFactory bdsf = new
> BeanDeserializerFactory(.class, qn);
>
> // register the serializer/deserializer with your call object
> call.registerTypeMapping(BusinessPartnerElements.class, qn, bsf, bdsf);
>
> // tell the call about the  return type thing
> call.setReturnType( qn );
>
> // call the service
>  yjb = ()call.invoke(new Object[] {});
>
> 
>
>
> I hope this helps. Unfortunately, I don't have a book recommendation since I
> am still looking for a good reference myself :)
> But what really helped me were the guides at ws.apache.org/axis but I guess
> you read those already ;)
>
> Good luck,
> Martin
>
>
> -Ursprüngliche Nachricht-
> Von: Indra Syafruddin [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 8. Dezember 2005 05:43
> An: axis-user@ws.apache.org
> Betreff: Newbie Question
>
> Hello, I am new in using Axis
> I have one newbie question, can Axis return Object?
>
> I tried to make web services that returns Vector (with String value),
> it runs ok.
> But when I put Object in the Vector and return it, there's always error :
>
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode:
>  faultString: org.xml.sax.SAXParseException: Premature end of file.
> ...
>
> do anyone know how to solve the problem?
>
> plus, do anyone know any axis book or tutorial I can download?
>
> thanks
>


--
Indra Syafruddin
personal : [EMAIL PROTECTED]; [EMAIL PROTECTED]
business : [EMAIL PROTECTED]