axis2-codegen - AxisServiceBasedMultiLanguageEmitter

2008-10-28 Thread [EMAIL PROTECTED]
Hello,

I’m trying to modify the TemplateSkeleton.xsl to automatically 
generate code that handles SOAP headers.

When I attempted to address the output SOAP header with the following 
XPATH:

 

output/[EMAIL PROTECTED]'soap_header']/@type

 

I obtained an empty string. Replacing the TemplateSkeleton with an 
identity transformation, I obtained:

 

output

   param location=body name=
toupperResponse opname=toupper shorttype=ToupperResponse type=it.
namespace.ToupperResponse

   qname localname=
toupperResponse nsuri=http://www.namespace.it/

   /param

/output

 

Then, inspecting source code I found this commented line in 
AxisServiceBasedMultiLanguageEmitter.java:

 

//addHeaderOperations(soapHeaderOutputParameterList, 
axisOperation, false);

 

If I cancel the comment, the identity transformation returns:

 

output

   param location=body name=
toupperResponse opname=toupper shorttype=ToupperResponse type= it.
namespace.ToupperResponse

   qname localname=
toupperResponse nsuri=http://www.namespace.it/

   /param

   param location=soap_header 
name=ResponseHeader type= http://www.namespace.it.ResponseHeader/

/output

 

In this case the output SOAP header is correctly reported.

Is there a reason why for this comment? Is it correct to avoid it to 
obtain an output SOAP header?

 

Thanks, Luca.



___Crea dei 
fantastici PhotoBook. Sconto del 20% per tutto il mese di Ottobre.Ancora per 
pochi giorni. Affrettati. http://photo.tiscali.it/

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



Re: Solaris 10 - undefined symbol on tools/md5/src

2008-09-29 Thread [EMAIL PROTECTED]

MARK n SAHAN thanks a lot






Mark T. wrote:
 
 Hey all,
 
 I am running into an undefined symbol when trying to comple the axis2c
 source.   I am running on Solaris 10 with the following configure line. 
 Any
 help would be appreciated.  Thanks
 
 -Mark
 
 
 
 ./configure --prefix=${AXIS2C_HOME} CFLAGS=-m64 -O2 -D_LARGEFILE64_SOURCE
 -ansi -Wall -Werror -Wno-implicit-function-declaration -R/usr/sfw/lib/64
 CXXFLAGS=-m64 -O2
 
 
 
 Here is the make error
 
 
 
 Making all in tools/md5
 
 Making all in src
 
 /bin/bash ../../../libtool --tag=CC --mode=link gcc  -m64 -O2
 -D_LARGEFILE64_SOURCE -ansi -Wall -Werror
 -Wno-implicit-function-declaration
 -R/usr/sfw/lib/64 -D_LARGEFILE64_SOURCE -ansi -Wall -Werror
 -Wno-implicit-function-declaration -g -DAXIS2_SVR_MULTI_THREADED  
 -lpthread
 -o md5  md5.o ../../../util/src/libaxutil.la -lz -ldl
 
 gcc -m64 -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Werror
 -Wno-implicit-function-declaration -D_LARGEFILE64_SOURCE -ansi -Wall
 -Werror
 -Wno-implicit-function-declaration -g -DAXIS2_SVR_MULTI_THREADED -o
 .libs/md5 md5.o  ../../../util/src/.libs/libaxutil.so -lpthread -lz -ldl
 -R/opt/installs/axis2c-1.3.0/lib -R/usr/sfw/lib/64
 
 Undefined   first referenced
 
  symbol in file
 
 bind../../../util/src/.libs/libaxutil.so
 
 recv../../../util/src/.libs/libaxutil.so
 
 send../../../util/src/.libs/libaxutil.so
 
 getsockname ../../../util/src/.libs/libaxutil.so
 
 accept  ../../../util/src/.libs/libaxutil.so
 
 listen  ../../../util/src/.libs/libaxutil.so
 
 gethostbyname   ../../../util/src/.libs/libaxutil.so
 
 socket  ../../../util/src/.libs/libaxutil.so
 
 setsockopt  ../../../util/src/.libs/libaxutil.so
 
 connect ../../../util/src/.libs/libaxutil.so
 
 getpeername ../../../util/src/.libs/libaxutil.so
 
 inet_addr   ../../../util/src/.libs/libaxutil.so
 
 inet_ntoa   ../../../util/src/.libs/libaxutil.so
 
 shutdown../../../util/src/.libs/libaxutil.so
 
 ld: fatal: Symbol referencing errors. No output written to .libs/md5
 
 collect2: ld returned 1 exit status
 
 *** Error code 1
 
 make: Fatal error: Command failed for target `md5'
 
 Current working directory
 /import/installs/products/apache/axis/axis2c-src-1.3.0/tools/md5/src
 
 *** Error code 1
 
 The following command caused the error:
 
 failcom='exit 1'; \
 
 for f in x $MAKEFLAGS; do \
 
   case $f in \
 
 *=* | --[!k]*);; \
 
 *k*) failcom='fail=yes';; \
 
   esac; \
 
 done; \
 
 dot_seen=no; \
 
 target=`echo all-recursive | sed s/-recursive//`; \
 
 list='src'; for subdir in $list; do \
 
   echo Making $target in $subdir; \
 
   if test $subdir = .; then \
 
 dot_seen=yes; \
 
 local_target=$target-am; \
 
   else \
 
 local_target=$target; \
 
   fi; \
 
   (cd $subdir  make  $local_target) \
 
   || eval $failcom; \
 
 done; \
 
 if test $dot_seen = no; then \
 
   make  $target-am || exit 1; \
 
 fi; test -z $fail
 
 make: Fatal error: Command failed for target `all-recursive'
 
 Current working directory
 /import/installs/products/apache/axis/axis2c-src-1.3.0/tools/md5
 
 *** Error code 1
 
 The following command caused the error:
 
 failcom='exit 1'; \
 
 for f in x $MAKEFLAGS; do \
 
   case $f in \
 
 *=* | --[!k]*);; \
 
 *k*) failcom='fail=yes';; \
 
   esac; \
 
 done; \
 
 dot_seen=no; \
 
 target=`echo all-recursive | sed s/-recursive//`; \
 
 list='util  axiom neethi src  include ides tools/tcpmon tools/md5'; for
 subdir in $list; do \
 
   echo Making $target in $subdir; \
 
   if test $subdir = .; then \
 
 dot_seen=yes; \
 
 local_target=$target-am; \
 
   else \
 
 local_target=$target; \
 
   fi; \
 
   (cd $subdir  make  $local_target) \
 
   || eval $failcom; \
 
 done; \
 
 if test $dot_seen = no; then \
 
   make  $target-am || exit 1; \
 
 fi; test -z $fail
 
 make: Fatal error: Command failed for target `all-recursive'
 
 Current working directory
 /import/installs/products/apache/axis/axis2c-src-1.3.0
 
 *** Error code 1
 
 make: Fatal error: Command failed for target `all'
 
 

-- 
View this message in context: 
http://www.nabble.com/Solaris-10---undefined-symbol-on-tools-md5-src-tp17065316p19724989.html
Sent from the Axis - C++ - User mailing list archive at Nabble.com.


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



Soap Fault and generated class Exception (wsdl2java)

2008-07-23 Thread [EMAIL PROTECTED]
 Hi, Im' using Axis2 1.4 and I can't seem to manage correctly Soap Faults.
This an excerpt from my wsdl:

xsd:element name=FaultMessage type=xsd:string/

wsdl:message name=AuthFault
  wsdl:part name=Message element=tns:FaultMessage /
/wsdl:message

!--portType section--
wsdl:operation name=MyOperation
  wsdl:input message=tns:MyOperationIn /
  wsdl:output message=tns:MyOperationOut /
  wsdl:fault name=AuthFault message=tns:AuthFault /
/wsdl:operation

!-- binding section--
wsdl:operation name=MyOperation
  soap:operation soapAction=urn:mycompany:myservice:MyOperation /
  wsdl:input
soap:body use=literal parts=parameters /
  /wsdl:input
  wsdl:output
soap:body use=literal parts=response/
  /wsdl:output
  wsdl:fault name=AuthFault
soap:fault name=AuthFault use=literal/
  /wsdl:fault
/wsdl:operation

wsdl2java (ADB binding) generates the class AuthFault, but when I throw this 
Exception inside MyOperation service method the following is the SOAP message 
sent:

?xml version='1.0' encoding='UTF-8'?
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
soapenv:Fault
  faultcodesoapenv:Server/faultcode
  faultstringAuthFault/faultstring
  detail /
/soapenv:Fault
  /soapenv:Body
/soapenv:Envelope

The exception specific field is missing, and the client stub won't catch an 
AuthFault exception (I am forced to catch a generic RemoteException and search 
for the string AuthFault in its message field)

Another (less significant) undesired result is that axis logs the fault at 
[ERROR] level: in order to avoid that should I set axis log to [FATAL] or there 
is another way?

I can't figure out what's wrong with my code. Thanks a lot for any help (and 
sorry if it's something obvious).

Alessandro


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



MSVCR80

2008-04-04 Thread [EMAIL PROTECTED]

Hello,

I am a newbe to axis2c. I would like to run the example 
axis2_http_server.exe as a first step.


I have downloaded the binary distribution and followed the steps on 
http://ws.apache.org/axis2/c/docs/installationguide.html#win_binary


In step 2.1.3 (Running the binaries) I have set and verified 
AXIS2C_HOME  and the PATH variable and now try to run axis2_http_server.exe


Then an error message This application failed to start because 
MSVR80.dll was not found appears in a dialog box.


Simply copying this file to the library path does  not really help 
because then a different error appears.


I have repeated the procedure on a different PC with exactlty identical 
results.


I searched the mailing list, and found some hits on MSVCR80 but was 
not able to resolve the problem.


Does anywone know what to do?

Regard,
Nanne



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



Re: Build Failure Axis2 1.3

2008-03-10 Thread [EMAIL PROTECTED]
Leon;

What did you do?

Did you put an exclude in the pom.xml file that forced the two tests not
to run?

Thanks!

Jeff Wells

Original Message:
-
From: Leon Searl [EMAIL PROTECTED]
Date: Mon, 10 Mar 2008 10:10:20 -0500
To: axis-user@ws.apache.org
Subject: Re: Build Failure Axis2 1.3


Hi Jeffery,

I ran into this same exact test failure.
I changed the maven .../modules/kernel/pom.xml to skip these two tests.

leon


Jeffrey Wells wrote:
 All;
  
 I am new to axis2 and I have been trying to build the 1.3 version on my 
 Linux Fedora Core 6 O.S. with maven 2.0.8 and jdk 1.5.
  
 Compilation goes well but package/install fails with these errors.  I 
 was wondering if any one else has run into this problem in the past and 
 if so, what was done to fix it.
  
 Thank you.
  
 Jeff Wells
  
 Running 
 org.apache.axis2.rpc.complex.ComplexDataTypesComplexDataTypesSOAP11Test
 1 [main] INFO org.apache.axis2.deployment.DeploymentEngine  - No 
 services directory was found under 
 /mnt/home/wells/axis213/modules/integration/target/test-resources/samples.
 90 [main] INFO org.apache.axis2.deployment.ModuleDeployer  - Deploying 
 module: addressing-1.3
 Server started on port .252 [HttpListener--1] INFO 
 org.apache.axis2.transport.http.server.DefaultConnectionListener  - 
 Listening on port 
 [SimpleHTTPServer] Stop called
 81501 [main] INFO 
 org.apache.axis2.transport.http.server.SimpleHttpServer  - Shut down 
 connection listener
 81510 [main] INFO 
 org.apache.axis2.transport.http.server.SimpleHttpServer  - Shut down 
 HTTP processors
 84514 [main] INFO 
 org.apache.axis2.transport.http.server.SimpleHttpServer  - Force shut 
 down HTTP processors
 84515 [main] INFO 
 org.apache.axis2.transport.http.server.SimpleHttpServer  - HTTP protocol 
 handler shut down
 Tests run: 37, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 85.237 
 sec  FAILURE!
  
 Running org.apache.axis2.rpc.complex.ComplexDataTypesDocLitBareTest
 0 [main] INFO org.apache.axis2.deployment.DeploymentEngine  - No 
 services directory was found under 
 /mnt/home/wells/axis213/modules/integration/target/test-resources/samples.
 89 [main] INFO org.apache.axis2.deployment.ModuleDeployer  - Deploying 
 module: addressing-1.3
 Server started on port .253 [HttpListener--1] INFO 
 org.apache.axis2.transport.http.server.DefaultConnectionListener  - 
 Listening on port 
 [SimpleHTTPServer] Stop called
 75042 [main] INFO 
 org.apache.axis2.transport.http.server.SimpleHttpServer  - Shut down 
 connection listener
 75051 [main] INFO 
 org.apache.axis2.transport.http.server.SimpleHttpServer  - Shut down 
 HTTP processors
 78057 [main] INFO 
 org.apache.axis2.transport.http.server.SimpleHttpServer  - Force shut 
 down HTTP processors
 78058 [main] INFO 
 org.apache.axis2.transport.http.server.SimpleHttpServer  - HTTP protocol 
 handler shut down
 Tests run: 34, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 78.78 
 sec  FAILURE!

-- 
Leon S. Searl, Software Research Engineer
Information and Telecommunication Technology Center, University of Kansas
Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612
Ph: 785-864-7820 Fax: 785-864-0387
http://www.ittc.ku.edu

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


myhosting.com - Premium Microsoft® Windows® and Linux web and application
hosting - http://link.myhosting.com/myhosting



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



R: embedding axis2 inside webapp

2008-02-11 Thread [EMAIL PROTECTED]

Hi,

I found and tried this:

http://www.nabble.com/Axis-2-deployment-as-part-of-existing-web-application-td15265119.html

it work but I don’t know if there are any limitation about this solution!!


 
_
Tiscali.Fax: ricevi gratis sulla tua email e invii a 12 cent per pagina senza 
scatto alla risposta


Axis 2 deployment as part of existing web application

2008-02-04 Thread [EMAIL PROTECTED]

Hi, 

I need a webservices that access may webapplication library so i embed the 
service in my webapplication like a post found in this mailinglist. 


1)   copy the web.xml that was in the book example

2)   copy the WEB-INF/conf/axis2.xml file from the axis2.war file

3)   put my services.xml and wsdl file in
WEB-INF/services/MyService/META-INF


4)   added a WEB-INF/module directory and added the appropriate
changes to axis2.xml (I use the logging module so I can see the Soap
calls)

5)   added all of the jars from the axis2-min-1.0-bin.zip
distribution


Are there any limitation of that solution??

Is there any other way to access a existing web application information by 
service developed with axis2?

thanks

 

 


Tiscali.Fax: ricevi gratis 
sulla tua email e invii a 12 cent per pagina senza scatto alla risposta

Axis2 IIS

2008-01-31 Thread [EMAIL PROTECTED]
Hi, i installed Axis2 on tomcat working only like servlet container behind = 
IIS. I can see the file wsdl by url but i can connect by client!!? Are ther= e 
any problem to use Axis2 and IIS ?? do i need to set a particular configu= 
ration?? thanks in advance

Tiscali Voce 8 Mega: 
Telefono + Adsl a soli € 4,95 al mese.http://abbonati.tiscali.it/promo/mail/

Re: Axis 1.3 and Attachments for Large Docs

2007-12-13 Thread [EMAIL PROTECTED]

Hi Aoife,
I have a similar kind of requirement and i want to know whether you have got
any solution for this. There is harldy any document regarding attachments
and Soap Over JMS. If you did find a solution, can you pls share the same
with me...


Aoife Kavanagh (Ext. 987) wrote:
 
 Hi,
 
 I'm currently looking to see if sending large PDFs as an attachment using
 Axis 1.3 over JMS will reduce the memory spikes that we are currently
 seeing
 on some sites.
 
 If this did work we would be sending SOAP messages over JMS but for
 prototyping purposes I'm working with Tomcat 5.5.12
 However, I'm getting a bit confused over how exactly to send/receive
 attachments.  The Axis 1.3 samples directory contains what I believe are
 two
 samples - attachments and swa.  I'm assuming that swa is
 SoapWithAttachments
 in which case I'm not quite sure what the example in the attachments
 directory is.  It seems that the service method called in the attachments
 code explicitly passes a DataHandler object as a parameter to the service
 call whereas this is not the case for the swa example.  
 
 I also have been looking at Fear of Attachments from
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg08732/Fear_of_Attach
 ments.pdf which I thought would be helpful but the code samples seem to
 assume use of some generated files from WSDL which I wouldn't have, in
 particular the section of client code where the attachment (DataHandler)
 is
 added.In a way similar to this code though I want to be just tag the
 attachment on to the service request message.
 
 I apologise in advance if I'm missing something obvious but if if I could
 just get clear explanation of differences between ways of sending
 attachments indicated by the attachments example and the swa example that
 would be great.  
 
 Alternatively, if anybody knows that this approach won't solve our problem
 then could you let me know with reasoning.  Upgrading to Axis 2 is not an
 option at the moment so please don't suggest.
 
 Thanks,
 Aoife
 
 
 __
 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
 __
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Axis-1.3-and-Attachments-for-Large-Docs-tp643p14317155.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: deploying problem with Axis 1.2

2007-11-29 Thread [EMAIL PROTECTED]

Pls post your WSDD file ...

sh_santosh wrote:
 
 Hi,
 
 I am getting an error when I am deploying deploy.wsdd
 
 Here are the steps that I have followed so far.
 
 I am using to Axis 1.2 for invoking the webservices.
 
 
 1) I created an interface.
 2) Java2WSDL
 3) WSDL2Java which generated all necessary files.
 4) Now when I am deploying deploy.wsdd using AdminClient I am getting an
 error
 
 Exception: AxisFault
  faultCode: {http://xml.apache.org/axis/}HTTP
  faultSubcode:
  faultString: (401)Unauthorized
  faultActor:
  faultNode:
  faultDetail:
 {}:return code:  401
 lt;soapenv:Envelope
 xmlns:soapenv=quot;http://schemas.xmlsoap.org/soap/envelope/quot;
 xmlns:xsd=quot;http://www.w3.org/2001/XMLSchemaquot;
 xmlns:xsi=quot;http://www.w3.org/2001/XMLSchema-instancequot;gt;lt;soapenv:Bodygt;lt;soapenv:Faultgt;lt;faultcode
 xmlns:ns1=quot;http://xml.apache.org/axis/quot;gt;ns1:Server.Unauthenticatedlt;/faultcodegt;lt;faultstringgt;User
 'null' not authenticated (unknown
 user)lt;/faultstringgt;lt;detailgt;lt;ns2:hostname
 xmlns:ns2=quot;http://xml.apache.org/axis/quot;gt;vibpj184lt;/ns2:hostnamegt;lt;/detailgt;lt;/soapenv:Faultgt;lt;/soapenv:Bodygt;lt;/soapenv:Envelopegt;
 {http://xml.apache.org/axis/}HttpErrorCode:401
 
 
 
 
 
 Can anyone please help me in this?
 
 
 

-- 
View this message in context: 
http://www.nabble.com/deploying-problem-with-Axis-1.2-tf4895530.html#a14022555
Sent from the Axis - User mailing list archive at Nabble.com.


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



Axis 1.4 - Attachments Problem

2007-11-28 Thread [EMAIL PROTECTED]

Hi,
My Requirement is to receive a PDF file from a server which sends a pdf file
as an attachment. I am able to download the pdf as an attachment but not
with the correct file name. And also whenever i try to receive the PDF using
a client program, a copy of the file with .ATT attachment is stored in temp
folder. 
Can anyone help me on this ? 
I have attached the Service class, Client and WSDD.

Service Class
---
import java.net.MalformedURLException;

import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.activation.FileDataSource;

public class PDFAttachmentsService {

public DataHandler sendPdfs() throws MalformedURLException {
DataSource ds = new FileDataSource(C:/XYZ.pdf);
DataHandler dataHandler = new DataHandler(ds);  
return dataHandler;
}
}
--
Client Class
---
public class PDFAttachment {

public static void main(String args[]) {
try {
Service service = new Service();

Call call = (Call) service.createCall();

call

.setTargetEndpointAddress(http://localhost:8080/axis/services/urn:PDFAttachmentsService;);

call.setOperationName(new 
QName(urn:PDFAttachmentsService,
sendPdfs)); 

QName qnameAttachment = new 
QName(urn:PDFAttachmentsService,
DataHandler);
call.registerTypeMapping(PDFAttachment.class, 
qnameAttachment,
JAFDataHandlerSerializerFactory.class,

JAFDataHandlerDeserializerFactory.class);

call.setReturnType(qnameAttachment);

Object ret = call.invoke(new Object[] {});

if (null == ret) {
System.out.println(Received null );
throw new AxisFault(, Received null, null, 
null);
}

if (ret instanceof String) {
System.out.println(Received problem response 
from server: 
+ ret);
throw new AxisFault(, (String) ret, null, 
null);
}

if (!(ret instanceof DataHandler)) {
// The wrong type of object that what was 
expected.
System.out.println(Received problem response 
from server:
+ ret.getClass().getName());
throw new AxisFault(,
Received problem response from 
server:
+ 
ret.getClass().getName(), null, null);

}

DataHandler rdh = (DataHandler) ret;
FileOutputStream outputStream = new 
FileOutputStream(D:/CopiedPDF.pdf);
rdh.writeTo(outputStream);
outputStream.flush();
outputStream.close();
} catch (Exception e) {
System.err.println(e);
e.printStackTrace();
}
}
}
-
WSDD file
--
!-- This deploys PDF attachment service.  --
deployment xmlns=http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
xmlns:ns1=urn:PDFAttachmentsService 
  service name=urn:PDFAttachmentsService provider=java:RPC 
parameter name=className
value=samples.pdfattachments.PDFAttachmentsService/
parameter name=allowedMethods value=sendPdfs/
parameter name=dataHandler type=ns1:DataHandler/

 typeMapping
deserializer=org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory
   languageSpecificType=java:javax.activation.DataHandler
qname=ns1:DataHandler
   
serializer=org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory 
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
 /
  /service

/deployment

-- 
View this message in context: 
http://www.nabble.com/Axis-1.4---Attachments-Problem-tf4887980.html#a13990733
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: Axis 1.4 - Attachments Problem

2007-11-28 Thread [EMAIL PROTECTED]

Hi,
Thanks for replying. 
When i used rdh.getDataSource().getName(), i get the name of the .att file
which gets stored by default in the temp folder. Something like this,
C:\DOCUME~1\ctr5654\LOCALS~1\Temp\Axis42312.att

How can i get the original name of the file i.e., the source file name ?


sietsenicolaas.tenhoeve wrote:
 
 Hi Vaibhav,
 
 Since you have a DataHandler instance you can ask it the name.
 E.g. rdh.getDataSource().getName();
 
 According to the API: DataSources encapsulating files may choose to
 return the filename of the object. (Typically this would be the last
 component of the filename, not an entire pathname.)
 
 Regards,
 Sietse
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: 28 November 2007 11:54
 To: axis-user@ws.apache.org
 Subject: Axis 1.4 - Attachments Problem
 
 
 Hi,
 My Requirement is to receive a PDF file from a server which sends a pdf
 file as an attachment. I am able to download the pdf as an attachment
 but not with the correct file name. And also whenever i try to receive
 the PDF using a client program, a copy of the file with .ATT attachment
 is stored in temp folder. 
 Can anyone help me on this ? 
 I have attached the Service class, Client and WSDD.
 
 Service Class
 ---
 import java.net.MalformedURLException;
 
 import javax.activation.DataHandler;
 import javax.activation.DataSource;
 import javax.activation.FileDataSource;
 
 public class PDFAttachmentsService {
 
   public DataHandler sendPdfs() throws MalformedURLException {
 
   DataSource ds = new FileDataSource(C:/XYZ.pdf);
   DataHandler dataHandler = new DataHandler(ds);  
   return dataHandler;
   }
 }
 
 --
 Client Class
 ---
 public class PDFAttachment {
   
   public static void main(String args[]) {
   try {
   Service service = new Service();
 
   Call call = (Call) service.createCall();
 
   call
   
 .setTargetEndpointAddress(http://localhost:8080/axis/services/urn:PDFAt
 tachmentsService);
 
   call.setOperationName(new
 QName(urn:PDFAttachmentsService,
   sendPdfs)); 
 
   QName qnameAttachment = new
 QName(urn:PDFAttachmentsService,
   DataHandler);
   call.registerTypeMapping(PDFAttachment.class,
 qnameAttachment,
   
 JAFDataHandlerSerializerFactory.class,
   
 JAFDataHandlerDeserializerFactory.class);
 
   call.setReturnType(qnameAttachment);
 
   Object ret = call.invoke(new Object[] {});
 
   if (null == ret) {
   System.out.println(Received null );
   throw new AxisFault(, Received null,
 null, null);
   }
 
   if (ret instanceof String) {
   System.out.println(Received problem
 response from server: 
   + ret);
   throw new AxisFault(, (String) ret,
 null, null);
   }
 
   if (!(ret instanceof DataHandler)) {
   // The wrong type of object that what
 was expected.
   System.out.println(Received problem
 response from server:
   +
 ret.getClass().getName());
   throw new AxisFault(,
   Received problem
 response from server:
   +
 ret.getClass().getName(), null, null);
 
   }
 
   DataHandler rdh = (DataHandler) ret;
   FileOutputStream outputStream = new
 FileOutputStream(D:/CopiedPDF.pdf);
   rdh.writeTo(outputStream);
   outputStream.flush();
   outputStream.close();
   } catch (Exception e) {
   System.err.println(e);
   e.printStackTrace();
   }
   }
 }
 
 -
 WSDD file
 --
 !-- This deploys PDF attachment service.  -- deployment
 xmlns=http://xml.apache.org/axis/wsdd/;
 xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
 xmlns:ns1=urn:PDFAttachmentsService 
   service name=urn:PDFAttachmentsService provider=java:RPC 
 parameter name=className
 value=samples.pdfattachments.PDFAttachmentsService/
 parameter name=allowedMethods value=sendPdfs/
 parameter name=dataHandler type=ns1:DataHandler/
 
  typeMapping
 deserializer

RE: Axis 1.4 - Attachments Problem

2007-11-28 Thread [EMAIL PROTECTED]

Hi Sietse,
Thanks for the suggestion..
How to get rid of the temp file which gets stored whenever i execute the
client ? Do you have any idea regarding this ?


sietsenicolaas.tenhoeve wrote:
 
 Hi,
 
 Then you have to watch for the mapping of the Datasource interface to
 xml. It seems that there is some missing functionality (the filename
 isn't set correctly or writing it to a file uses another name).
 
 You can probably work around it by adding the filename as a string a
 call the method with the code snippet on the server side. After that you
 can use it on the client side to create a correct named file.
 
 Sietse
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: 28 November 2007 12:41
 To: axis-user@ws.apache.org
 Subject: RE: Axis 1.4 - Attachments Problem
 
 
 Hi,
 Thanks for replying. 
 When i used rdh.getDataSource().getName(), i get the name of the .att
 file which gets stored by default in the temp folder. Something like
 this, C:\DOCUME~1\ctr5654\LOCALS~1\Temp\Axis42312.att
 
 How can i get the original name of the file i.e., the source file name ?
 
 
 sietsenicolaas.tenhoeve wrote:
 
 Hi Vaibhav,
 
 Since you have a DataHandler instance you can ask it the name.
 E.g. rdh.getDataSource().getName();
 
 According to the API: DataSources encapsulating files may choose to 
 return the filename of the object. (Typically this would be the last 
 component of the filename, not an entire pathname.)
 
 Regards,
 Sietse
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2007 11:54
 To: axis-user@ws.apache.org
 Subject: Axis 1.4 - Attachments Problem
 
 
 Hi,
 My Requirement is to receive a PDF file from a server which sends a 
 pdf file as an attachment. I am able to download the pdf as an 
 attachment but not with the correct file name. And also whenever i try
 
 to receive the PDF using a client program, a copy of the file with 
 .ATT attachment is stored in temp folder.
 Can anyone help me on this ? 
 I have attached the Service class, Client and WSDD.
 
 Service Class
 ---
 import java.net.MalformedURLException;
 
 import javax.activation.DataHandler;
 import javax.activation.DataSource;
 import javax.activation.FileDataSource;
 
 public class PDFAttachmentsService {
 
  public DataHandler sendPdfs() throws MalformedURLException {
 
  DataSource ds = new FileDataSource(C:/XYZ.pdf);
  DataHandler dataHandler = new DataHandler(ds);  
  return dataHandler;
  }
 }
 --
 --
 --
 Client Class
 ---
 public class PDFAttachment {
  
  public static void main(String args[]) {
  try {
  Service service = new Service();
 
  Call call = (Call) service.createCall();
 
  call
  
 .setTargetEndpointAddress(http://localhost:8080/axis/services/urn:PDF
 At
 tachmentsService);
 
  call.setOperationName(new
 QName(urn:PDFAttachmentsService,
  sendPdfs));
 
  QName qnameAttachment = new
 QName(urn:PDFAttachmentsService,
  DataHandler);
  call.registerTypeMapping(PDFAttachment.class,
 qnameAttachment,
  
 JAFDataHandlerSerializerFactory.class,
  
 JAFDataHandlerDeserializerFactory.class);
 
  call.setReturnType(qnameAttachment);
 
  Object ret = call.invoke(new Object[] {});
 
  if (null == ret) {
  System.out.println(Received null );
  throw new AxisFault(, Received null,
 null, null);
  }
 
  if (ret instanceof String) {
  System.out.println(Received problem
 response from server: 
  + ret);
  throw new AxisFault(, (String) ret,
 null, null);
  }
 
  if (!(ret instanceof DataHandler)) {
  // The wrong type of object that what
 was expected.
  System.out.println(Received problem
 response from server:
  +
 ret.getClass().getName());
  throw new AxisFault(,
  Received problem
 response from server:
  +
 ret.getClass().getName(), null, null);
 
  }
 
  DataHandler rdh = (DataHandler) ret;
  FileOutputStream outputStream = new 
 FileOutputStream(D:/CopiedPDF.pdf);
  rdh.writeTo(outputStream);
  outputStream.flush

RE: Axis 1.4 - Attachments Problem

2007-11-28 Thread [EMAIL PROTECTED]

Thanks Sietse for the idea But the problem with this is every time when i
run the client, it gives me a diff temp file name I cant really keep on
changing the file name in the client code Any other ideas or suggestions
?


sietsenicolaas.tenhoeve wrote:
 
 You have the link to the file so that shouldn't be a problem.
 
 You can do something like: 
 File tempFile = new File(path/to/file.ATT);
 //Read stuff and create file with good name.
 tempFile.delete();
 
 This is quite basic stuff imho. Using google or the API should be
 clarifying.
 
 Bye,
 Sietse
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: 28 November 2007 13:19
 To: axis-user@ws.apache.org
 Subject: RE: Axis 1.4 - Attachments Problem
 
 
 Hi Sietse,
 Thanks for the suggestion..
 How to get rid of the temp file which gets stored whenever i execute the
 client ? Do you have any idea regarding this ?
 
 
 sietsenicolaas.tenhoeve wrote:
 
 Hi,
 
 Then you have to watch for the mapping of the Datasource interface to 
 xml. It seems that there is some missing functionality (the filename 
 isn't set correctly or writing it to a file uses another name).
 
 You can probably work around it by adding the filename as a string a 
 call the method with the code snippet on the server side. After that 
 you can use it on the client side to create a correct named file.
 
 Sietse
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2007 12:41
 To: axis-user@ws.apache.org
 Subject: RE: Axis 1.4 - Attachments Problem
 
 
 Hi,
 Thanks for replying. 
 When i used rdh.getDataSource().getName(), i get the name of the .att 
 file which gets stored by default in the temp folder. Something like 
 this, C:\DOCUME~1\ctr5654\LOCALS~1\Temp\Axis42312.att
 
 How can i get the original name of the file i.e., the source file name
 ?
 
 
 sietsenicolaas.tenhoeve wrote:
 
 Hi Vaibhav,
 
 Since you have a DataHandler instance you can ask it the name.
 E.g. rdh.getDataSource().getName();
 
 According to the API: DataSources encapsulating files may choose to 
 return the filename of the object. (Typically this would be the last 
 component of the filename, not an entire pathname.)
 
 Regards,
 Sietse
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2007 11:54
 To: axis-user@ws.apache.org
 Subject: Axis 1.4 - Attachments Problem
 
 
 Hi,
 My Requirement is to receive a PDF file from a server which sends a 
 pdf file as an attachment. I am able to download the pdf as an 
 attachment but not with the correct file name. And also whenever i 
 try
 
 to receive the PDF using a client program, a copy of the file with 
 .ATT attachment is stored in temp folder.
 Can anyone help me on this ? 
 I have attached the Service class, Client and WSDD.
 
 Service Class
 ---
 import java.net.MalformedURLException;
 
 import javax.activation.DataHandler;
 import javax.activation.DataSource;
 import javax.activation.FileDataSource;
 
 public class PDFAttachmentsService {
 
 public DataHandler sendPdfs() throws MalformedURLException {
 
 DataSource ds = new FileDataSource(C:/XYZ.pdf);
 DataHandler dataHandler = new DataHandler(ds);  
 return dataHandler;
 }
 }
 -
 -
 --
 --
 Client Class
 ---
 public class PDFAttachment {
 
 public static void main(String args[]) {
 try {
 Service service = new Service();
 
 Call call = (Call) service.createCall();
 
 call
 
 .setTargetEndpointAddress(http://localhost:8080/axis/services/urn:PD
 F
 At
 tachmentsService);
 
 call.setOperationName(new
 QName(urn:PDFAttachmentsService,
 sendPdfs));
 
 QName qnameAttachment = new
 QName(urn:PDFAttachmentsService,
 DataHandler);
 call.registerTypeMapping(PDFAttachment.class,
 qnameAttachment,
 
 JAFDataHandlerSerializerFactory.class,
 
 JAFDataHandlerDeserializerFactory.class);
 
 call.setReturnType(qnameAttachment);
 
 Object ret = call.invoke(new Object[] {});
 
 if (null == ret) {
 System.out.println(Received null );
 throw new AxisFault(, Received null,
 null, null);
 }
 
 if (ret instanceof String) {
 System.out.println(Received problem
 response from server: 
 + ret);
 throw new AxisFault(, (String) ret,
 null, null);
 }
 
 if (!(ret instanceof DataHandler

RE: Axis 1.4 - Attachments Problem

2007-11-28 Thread [EMAIL PROTECTED]

Oh so sccpid.. Thanks sietse alot.

sietsenicolaas.tenhoeve wrote:
 
 You have the different temporary file name.
 (hdr.getDatasource().getName() gives you the clientside temp file
 reference)
 
 So:
 
 File tempFile = new File(hdr.getDatasource().getName());
 OutputStream pdfFileStream = new FileOutputStream(newFileName); //the
 String added to the message earlier described
 pdfFileStream.write(/*tempFile*/); //Use Inputstream for this
 
 Hope this helps. Just wrote down the code blind so probably some errors
 included. But the idea must be clear.
 
 Sietse
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: 28 November 2007 15:01
 To: axis-user@ws.apache.org
 Subject: RE: Axis 1.4 - Attachments Problem
 
 
 Thanks Sietse for the idea But the problem with this is every time
 when i run the client, it gives me a diff temp file name I cant
 really keep on changing the file name in the client code Any other
 ideas or suggestions ?
 
 
 sietsenicolaas.tenhoeve wrote:
 
 You have the link to the file so that shouldn't be a problem.
 
 You can do something like: 
 File tempFile = new File(path/to/file.ATT); //Read stuff and create 
 file with good name.
 tempFile.delete();
 
 This is quite basic stuff imho. Using google or the API should be 
 clarifying.
 
 Bye,
 Sietse
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2007 13:19
 To: axis-user@ws.apache.org
 Subject: RE: Axis 1.4 - Attachments Problem
 
 
 Hi Sietse,
 Thanks for the suggestion..
 How to get rid of the temp file which gets stored whenever i execute 
 the client ? Do you have any idea regarding this ?
 
 
 sietsenicolaas.tenhoeve wrote:
 
 Hi,
 
 Then you have to watch for the mapping of the Datasource interface to
 
 xml. It seems that there is some missing functionality (the filename 
 isn't set correctly or writing it to a file uses another name).
 
 You can probably work around it by adding the filename as a string a 
 call the method with the code snippet on the server side. After that 
 you can use it on the client side to create a correct named file.
 
 Sietse
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2007 12:41
 To: axis-user@ws.apache.org
 Subject: RE: Axis 1.4 - Attachments Problem
 
 
 Hi,
 Thanks for replying. 
 When i used rdh.getDataSource().getName(), i get the name of the .att
 
 file which gets stored by default in the temp folder. Something like 
 this, C:\DOCUME~1\ctr5654\LOCALS~1\Temp\Axis42312.att
 
 How can i get the original name of the file i.e., the source file 
 name
 ?
 
 
 sietsenicolaas.tenhoeve wrote:
 
 Hi Vaibhav,
 
 Since you have a DataHandler instance you can ask it the name.
 E.g. rdh.getDataSource().getName();
 
 According to the API: DataSources encapsulating files may choose to 
 return the filename of the object. (Typically this would be the last
 
 component of the filename, not an entire pathname.)
 
 Regards,
 Sietse
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2007 11:54
 To: axis-user@ws.apache.org
 Subject: Axis 1.4 - Attachments Problem
 
 
 Hi,
 My Requirement is to receive a PDF file from a server which sends a 
 pdf file as an attachment. I am able to download the pdf as an 
 attachment but not with the correct file name. And also whenever i 
 try
 
 to receive the PDF using a client program, a copy of the file with 
 .ATT attachment is stored in temp folder.
 Can anyone help me on this ? 
 I have attached the Service class, Client and WSDD.
 
 Service Class
 ---
 import java.net.MalformedURLException;
 
 import javax.activation.DataHandler; import 
 javax.activation.DataSource; import javax.activation.FileDataSource;
 
 public class PDFAttachmentsService {
 
public DataHandler sendPdfs() throws MalformedURLException {
 
DataSource ds = new FileDataSource(C:/XYZ.pdf);
DataHandler dataHandler = new DataHandler(ds);  
return dataHandler;
}
 }
 
 -
 -
 --
 --
 Client Class
 ---
 public class PDFAttachment {

public static void main(String args[]) {
try {
Service service = new Service();
 
Call call = (Call) service.createCall();
 
call

 .setTargetEndpointAddress(http://localhost:8080/axis/services/urn:P
 D
 F
 At
 tachmentsService);
 
call.setOperationName(new
 QName(urn:PDFAttachmentsService,
sendPdfs));
 
QName qnameAttachment = new
 QName(urn:PDFAttachmentsService,
DataHandler);
call.registerTypeMapping(PDFAttachment.class,
 qnameAttachment,

 JAFDataHandlerSerializerFactory.class

Re: Axis - Using attachments

2007-11-27 Thread [EMAIL PROTECTED]

Hi,
Thanks for your reply But i am using weblogic 8.1 SP6. My question is
how do i retain the name of the file while writing the file to the file
system ? I am able to write it with some dummy name of the file and not the
exact name which is in the source folder.


mgainty wrote:
 
 In catalina.policy did you assign write permissions for the folder
 C:/EDDHome ?
 this is more tomcat setup than axis specific I would suggest asking the
 same
 question on [EMAIL PROTECTED]
 
 M--
 - Original Message -
 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Sent: Monday, November 26, 2007 10:16 AM
 Subject: Re: Axis - Using attachments
 
 

 Can anyone please help me ? I can write it to the directory i want but i
 am
 unable to retain the name of the file.


 [EMAIL PROTECTED] wrote:
 
  Hi ,
  My requirement is to get a pdf from a service. The server sends a pdf
 and
  the client has to store the same in the file system. But i am unable to
  save the pdf in a location i want instead of the windows temp folder.
 Can
  some one help me on this pls. I have attached the Service class, the
  client and the wsdd.
 
  // Service Class
  public class PDFAttachmentsService {
 
  public DataHandler sendPdfs() throws MalformedURLException {
 
  String filename = C:/EDDHome/1_52043_1.pdf;
  DataHandler dataHandler = new DataHandler(new
 FileDataSource(filename));
 
  return dataHandler;
  }
  }
 
  // Client Class
  public class PDFAttachment {
 
  public static void main(String args[]) {
  try {
  Service service = new Service();
 
  Call call = (Call) service.createCall();
 
  call
 
 
 setTargetEndpointAddress(http://localhost:8080/axis/services/urn:PDFAttach
 mentsService);
 
  call.setOperationName(new QName(urn:PDFAttachmentsService,
  sendPdfs));
 
  QName qnameAttachment = new QName(urn:PDFAttachmentsService,
  DataHandler);
  call.registerTypeMapping(PDFAttachment.class, qnameAttachment,
  JAFDataHandlerSerializerFactory.class,
  JAFDataHandlerDeserializerFactory.class);
 
  call.setReturnType(qnameAttachment);
 
  Object ret = call.invoke(new Object[] {});
 
  if (null == ret) {
  System.out.println(Received null );
  throw new AxisFault(, Received null, null, null);
  }
 
  if (ret instanceof String) {
  System.out.println(Received problem response from server: 
  + ret);
  throw new AxisFault(, (String) ret, null, null);
  }
 
  if (!(ret instanceof DataHandler)) {
  // The wrong type of object that what was expected.
  System.out.println(Received problem response from server:
  + ret.getClass().getName());
  throw new AxisFault(,
  Received problem response from server:
  + ret.getClass().getName(), null, null);
 
  }
 
  DataHandler rdh = (DataHandler) ret;
 
  System.out.println(Received thro : + rdh.getClass().getName());
  } catch (Exception e) {
  System.err.println(e);
  e.printStackTrace();
  }
  }
  }
 
  // WSDD file
  !-- This deploys PDF attachment service.  --
  deployment xmlns=http://xml.apache.org/axis/wsdd/;
  xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
  xmlns:ns1=urn:PDFAttachmentsService 
service name=urn:PDFAttachmentsService provider=java:RPC 
  parameter name=className
  value=samples.pdfattachments.PDFAttachmentsService/
  parameter name=allowedMethods value=sendPdfs/
  parameter name=dataHandler type=ns1:DataHandler/
 
   typeMapping
 
 deserializer=org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory
 
 languageSpecificType=java:javax.activation.DataHandler
  qname=ns1:DataHandler
 
 
 serializer=org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory
  encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
   /
/service
 
  /deployment
 
 

 --
 View this message in context:
 http://www.nabble.com/Axis---Using-attachments-tf4860902.html#a13951390
 Sent from the Axis - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Axis---Using-attachments-tf4860902.html#a13967066
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Axis2 Problem accessing the WSDL.

2007-11-27 Thread [EMAIL PROTECTED]

Can you pls post your WSDD or the Service class ? 
I have used Axis 1.4 with weblogic 8.1 and it works fine...


tinkugadu wrote:
 
 WHen i try to access the WSDL i get the StringIndexOUtOfBoundsException
 followed by the ClassCastException. WHen i try to access the
 csows/axis2-web/index.jsp from the Weblogic console then i just get the
 classcast exception
 
 my Environment:
 
 Webserver - Weblogic9
 
 axis version-  axis2 1.2
 
 I am not using axis2.xml 
 i have listed the two exceptions below.
 
  
 Nov 26, 2007 1:08:34 PM EST Error HTTP lnx552.dteco.com
 ndsAdmin [ACTIVE] ExecuteThread: '8' for queue:
 'weblogic.kernel.Default (self-tuning)' WLS Kernel  
 1196100514023 BEA-101020
 [EMAIL PROTECTED] - name:
 'csows.war', context-path: '/csows'] Servlet failed with Exception
 java.lang.StringIndexOutOfBoundsException: String index out of range: -11
 at java.lang.String.substring(String.java:1768)
 at java.lang.String.substring(String.java:1735)
 at
 org.apache.axis2.engine.HTTPLocationBasedDispatcher.parseRequestURL(HTTPLocationBasedDispatcher.java:106)
 at
 org.apache.axis2.engine.HTTPLocationBasedDispatcher.findOperation(HTTPLocationBasedDispatcher.java:52)
 at
 org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:100)
 at
 org.apache.axis2.transport.http.util.RESTUtil.dispatchAndVerify(RESTUtil.java:138)
 at
 org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:95)
 at
 org.apache.axis2.transport.http.AxisServlet$ProcessRESTRequest.processURLRequest(AxisServlet.java:776)
 at
 org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:238)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at
 weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
 at
 weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
 at
 weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
 at
 weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
 at
 weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
 at
 weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
 at
 weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
 at
 weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
 at
 weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
 at
 weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
 at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)

 Nov 26, 2007 1:08:35 PM EST Error HTTP lnx552.dteco.com
 ndsAdmin [ACTIVE] ExecuteThread: '8' for queue:
 'weblogic.kernel.Default (self-tuning)' WLS Kernel  
 1196100515023 BEA-101107
 [EMAIL PROTECTED] - name:
 'csows.war', context-path: '/csows'] Problem occurred while serving the
 error page.
 java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
 at
 javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:98)
 at
 javelin.jsp.JspTagLibraryFeature.parseTldFromWebXML(JspTagLibraryFeature.java:857)
 at
 javelin.jsp.JspTagLibraryFeature.initFromWebXML(JspTagLibraryFeature.java:841)
 at
 javelin.jsp.JspTagLibraryFeature.init(JspTagLibraryFeature.java:442)
 at
 javelin.jsp.JspTagLibraryFeature.init(JspTagLibraryFeature.java:241)
 at
 javelin.jsp.JspTagLibraryFeature.setCPL(JspTagLibraryFeature.java:42)
 at javelin.CPL.getFeature(CPL.java:1580)
 at javelin.jsp.JspParser.getTagLibraryFeature(JspParser.java:3364)
 at javelin.jsp.JspParser.getTagLibInfo(JspParser.java:2127)
 at javelin.jsp.JspParser.jspParse(JspParser.java:430)
 at javelin.jsp.JspParser._parse(JspParser.java:349)
 at javelin.jsp.JspParser.parse(JspParser.java:342)
 at javelin.jsp.JspAnalyzer.parseFile(JspAnalyzer.java:113)
 at javelin.jsp.JspAnalyzer.parse(JspAnalyzer.java:101)
 at javelin.ProxySourceFile.parse(ProxySourceFile.java:117)
 at javelin.SourceFile.getAst(SourceFile.java:542)
 at javelin.SourceFile.getAst(SourceFile.java:516)
 at javelin.ProxySourceFile.codeGen(ProxySourceFile.java:215)
 at javelin.SourceFile.codeGen(SourceFile.java:310)
 at
 javelin.client.ClientUtilsImpl$CodeGenJob.run(ClientUtilsImpl.java:1105)
 at javelin.client.Job.performJob(Job.java:81)
 
 Do you Guys think they are two seperate problems are they related
 

-- 
View this message in context: 
http

Re: SOAPMonitor doesn't work after setting tomcat virtual host.

2007-11-27 Thread [EMAIL PROTECTED]

I guess it should work fine with IE. If not, refer to Appendix: Enabling the
SOAP Monitor' under User Guide in your docs folder.

Wang Han wrote:
 
 Hi guys,
 
 Service echo is deployed at:
 http://localhost:8080/axis/services/echo, SOAPMonitor is at
 http://localhost:8080/axis/SOAPMonitor.
 I can use SOAPMonitor to monitor all soap messages between echo
 service and its client.
 
 For some special requirement, I need re-deploy the echo service to
 http://localhost:8080/echo.
 I implement it successfully by modifying tomcat/conf/server.xml and
 webapps/axis/web.xml.
 
 But the SOAPMonitor is not there any more. I  try to access it by
 http://localhost:8080/SOAPMonitor,
 It always gives me load applet failed error message.
 
 Could someone tell me how can I find back the SOAPMonitor? thanks a lot!
 
 Tomcat6.0 + axis1.4.
 tomcat/conf/server.xml:
   Host name=localhost  appBase=webapps/axis
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
  Context path=/ docBase=./
 
 webapps/axis/WEB-INF/web.xml:
   servlet-mapping
servlet-nameAxisServlet/servlet-name
!-- use it when need SOAPMon url-pattern/services/*/url-pattern
 --
url-pattern/*/url-pattern
   /servlet-mapping
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/SOAPMonitor-doesn%27t-work-after-setting-tomcat-virtual-host.-tf4881891.html#a13971633
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Where to put Java Classes

2007-11-26 Thread [EMAIL PROTECTED]

Hi,
You need to put them under the /WEB-INF/classes directory retaining the
package of your class.

Nasreen Laghari-2 wrote:
 
 Hi,
  
 I need to ask where should I suppose to keep the class files which Client
 access?
  
 e.g. My Client is JSP which I have put in webapps/Axis2/axis2-web. It is
 accessing a java class . Where should I put that class? or suppose I'm
 using Stubs; where should I put stubs so that JSP client will call them??
  
  
 Regards
  
 Nasreen
 _
 Share life as it happens with the new Windows Live.Download today it's
 FREE!
 http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_sharelife_112007
 

-- 
View this message in context: 
http://www.nabble.com/Where-to-put-Java-Classes-tf4875667.html#a13951419
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: add webservice to web application

2007-11-26 Thread [EMAIL PROTECTED]

There is some info here which you might be interested in

http://wso2.org/library/90
Thanks
Gaurav

LUSS wrote:

hello,
I have a web application deployed on tomcat/webapps folder, my client
asked me to publish a method as webservice within this web application, i'm
using Axis2, i generated the wsdl and the services.xml correctly but i don't
know how to publish the method from the application deployed on
tomcat\webapps\MyApplication and not from
webapps\axis2\WEB-INF\services\MyApplication.aar
Thank you for your help.
  



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



Axis - Using attachments

2007-11-23 Thread [EMAIL PROTECTED]

Hi ,
My requirement is to get a pdf from a service. The server sends a pdf and
the client has to store the same in the file system. But i am unable to save
the pdf in a location i want instead of the windows temp folder. Can some
one help me on this pls. I have attached the Service class, the client and
the wsdd.

// Service Class
public class PDFAttachmentsService {

public DataHandler sendPdfs() throws MalformedURLException {

String filename = C:/EDDHome/1_52043_1.pdf;
DataHandler dataHandler = new DataHandler(new 
FileDataSource(filename));

return dataHandler;
}
}

// Client Class
public class PDFAttachment {

public static void main(String args[]) {
try {
Service service = new Service();

Call call = (Call) service.createCall();

call

.setTargetEndpointAddress(http://localhost:8080/axis/services/urn:PDFAttachmentsService;);

call.setOperationName(new 
QName(urn:PDFAttachmentsService,
sendPdfs)); 

QName qnameAttachment = new 
QName(urn:PDFAttachmentsService,
DataHandler);
call.registerTypeMapping(PDFAttachment.class, 
qnameAttachment,
JAFDataHandlerSerializerFactory.class,

JAFDataHandlerDeserializerFactory.class);

call.setReturnType(qnameAttachment);

Object ret = call.invoke(new Object[] {});

if (null == ret) {
System.out.println(Received null );
throw new AxisFault(, Received null, null, 
null);
}

if (ret instanceof String) {
System.out.println(Received problem response 
from server: 
+ ret);
throw new AxisFault(, (String) ret, null, 
null);
}

if (!(ret instanceof DataHandler)) {
// The wrong type of object that what was 
expected.
System.out.println(Received problem response 
from server:
+ ret.getClass().getName());
throw new AxisFault(,
Received problem response from 
server:
+ 
ret.getClass().getName(), null, null);

}

DataHandler rdh = (DataHandler) ret;

System.out.println(Received thro : + 
rdh.getClass().getName());
} catch (Exception e) {
System.err.println(e);
e.printStackTrace();
}
}
}

// WSDD file
!-- This deploys PDF attachment service.  --
deployment xmlns=http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
xmlns:ns1=urn:PDFAttachmentsService 
  service name=urn:PDFAttachmentsService provider=java:RPC 
parameter name=className
value=samples.pdfattachments.PDFAttachmentsService/
parameter name=allowedMethods value=sendPdfs/
parameter name=dataHandler type=ns1:DataHandler/

 typeMapping
deserializer=org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory
   languageSpecificType=java:javax.activation.DataHandler
qname=ns1:DataHandler
   
serializer=org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory 
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
 /
  /service

/deployment

-- 
View this message in context: 
http://www.nabble.com/Axis---Using-attachments-tf4860902.html#a13910296
Sent from the Axis - User mailing list archive at Nabble.com.


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



Help Required - Soap over JMS

2007-11-19 Thread [EMAIL PROTECTED]

Hi,
Can anyone please tell me the steps involved in creating a web service which
uses Axis and MQSeries JMS ?
-- 
View this message in context: 
http://www.nabble.com/Help-Required---Soap-over-JMS-tf4834416.html#a13830566
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: faultString: org.apache.axis.deployment.wsdd.WSDDException: javax.xml.rpc.JAXRPCException: Null serializer factory specified

2007-11-16 Thread [EMAIL PROTECTED]

Thanks alot Sietse. The procseesing was succesful but with some exceptions. I
am new to web services and i dont know whats a namespace and why its used.
Can you pls help me in solving the below exception .
- Unable to deploy typemapping: {http://ttdev.com/ss}concatRequest
java.lang.ClassNotFoundException: Found languageSpecificType namespace '',
expected 'http://xml.apache.org/axis/wsdd/providers/java'
at
org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificType(WSDDTypeMapping.java:174)
at
org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:542)
at
org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:253)
at
org.apache.axis.deployment.wsdd.WSDDService.init(WSDDService.java:233)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.init(WSDDDeployment.java:192)
at
org.apache.axis.deployment.wsdd.WSDDDocument.init(WSDDDocument.java:78)
at org.apache.axis.utils.Admin.processWSDD(Admin.java:111)
at org.apache.axis.utils.Admin.process(Admin.java:158)
at org.apache.axis.utils.Admin.AdminService(Admin.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.java:126)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)



sietsenicolaas.tenhoeve wrote:
 
 Hi Vaibhav,
 
 It looks that your typemapping got some typos.
 
   typeMapping
 xmlns:ns=http://ttdev.com/ss;
 qname=ns:concatRequest - (ns:concatRequest
 without '' I guess)
 type=java:com.myproject.simpleservice.ConcatRequest
 -- (type=... Without java:com)
 serializer=org.apache.axis.encoding.ser.BeanSerializerFactory
  
 deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory
 encodingStyle=
   /
 
 Hope this helps you out.
 
 Sietse
 
 -Original Message-
 From: Vaibhav Jungay [mailto:[EMAIL PROTECTED] 
 Sent: 16 November 2007 11:12
 To: axis-user@ws.apache.org
 Subject: faultString: org.apache.axis.deployment.wsdd.WSDDException:
 javax.xml.rpc.JAXRPCException: Null serializer factory specified
 
 Hi,
 I get the above error when i try to deploy wsdd to my weblogic 8.1 app
 server.  I feel its because of typeMapping tag. Can somebody help me
 pls...
 
 The wsdd is
 
 !-- Use this file to deploy some handlers/chains and services  --
 !-- Two ways to do this:   --
 !--   java org.apache.axis.client.AdminClient deploy.wsdd  --
 !--  after the axis server is running  --
 !-- or --
 !--   java org.apache.axis.utils.Admin client|server deploy.wsdd   --
 !--  from the same directory that the Axis engine runs --
 
 deployment
 xmlns=http://xml.apache.org/axis/wsdd/;
 xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
 
   !-- Services from SimpleService WSDL service --
 
   service name=SimpleServiceSOAP

RE: faultString: org.apache.axis.deployment.wsdd.WSDDException: javax.xml.rpc.JAXRPCException: Null serializer factory specified

2007-11-16 Thread [EMAIL PROTECTED]

Thank you Sietse !

sietsenicolaas.tenhoeve wrote:
 
 Hi Vaibhav,
 
 I have never used wsdd for deployment so I can probably not solve your
 problem. Although the URI of your typemapping looks invalid ( '}' is not
 allowed I think). Maybe that brings you to the source of the problem.
 
 And about xml and namespaces I would suggest to read the following
 webpage http://www.w3schools.com/xml/xml_namespaces.asp . I think this
 should be basic knowledge before you start working with webservices.
 
 Sietse
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: 16 November 2007 11:49
 To: axis-user@ws.apache.org
 Subject: RE: faultString: org.apache.axis.deployment.wsdd.WSDDException:
 javax.xml.rpc.JAXRPCException: Null serializer factory specified
 
 
 Thanks alot Sietse. The procseesing was succesful but with some
 exceptions. I am new to web services and i dont know whats a namespace
 and why its used.
 Can you pls help me in solving the below exception .
 - Unable to deploy typemapping: {http://ttdev.com/ss}concatRequest
 java.lang.ClassNotFoundException: Found languageSpecificType namespace
 '', expected 'http://xml.apache.org/axis/wsdd/providers/java'
 at
 org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificType(
 WSDDTypeMapping.java:174)
 at
 org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDServic
 e.java:542)
 at
 org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:253
 )
 at
 org.apache.axis.deployment.wsdd.WSDDService.init(WSDDService.java:233)
 at
 org.apache.axis.deployment.wsdd.WSDDDeployment.init(WSDDDeployment.jav
 a:192)
 at
 org.apache.axis.deployment.wsdd.WSDDDocument.init(WSDDDocument.java:78
 )
 at org.apache.axis.utils.Admin.processWSDD(Admin.java:111)
 at org.apache.axis.utils.Admin.process(Admin.java:158)
 at org.apache.axis.utils.Admin.AdminService(Admin.java:65)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.ja
 va:126)
 at
 org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323
 )
 at
 org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
 ava:32)
 at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
 at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
 at
 org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
 at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
 at
 org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at
 org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j
 ava:327)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
 rvletStubImpl.java:1072)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
 java:465)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
 java:348)
 at
 weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
 un(WebAppServletContext.java:6981)
 at
 weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
 bject.java:321)
 at
 weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121
 )
 at
 weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
 etContext.java:3892)
 at
 weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
 java:2766)
 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
 
 
 
 sietsenicolaas.tenhoeve wrote:
 
 Hi Vaibhav,
 
 It looks that your typemapping got some typos.
 
   typeMapping
 xmlns:ns=http://ttdev.com/ss;
 qname=ns:concatRequest - (ns:concatRequest 
 without '' I guess)
 type=java:com.myproject.simpleservice.ConcatRequest
 -- (type=... Without java:com)

 serializer=org.apache.axis.encoding.ser.BeanSerializerFactory
  
 deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory
 encodingStyle=
   /
 
 Hope this helps you out.
 
 Sietse
 
 -Original Message-
 From: Vaibhav Jungay [mailto:[EMAIL PROTECTED]
 Sent: 16 November 2007 11:12
 To: axis-user@ws.apache.org
 Subject: faultString: org.apache.axis.deployment.wsdd.WSDDException:
 javax.xml.rpc.JAXRPCException: Null serializer factory

Re: namespace issues with Apache Axis 1.4

2007-11-16 Thread [EMAIL PROTECTED]
=
 http://www.openuri.org/postUserActionModifyEvent; 
 parameter qname=pns:fdp-message
 xmlns:pns=fdp-post-user-action-modify-param
 type=tns:user-action-message
 xmlns:tns=fdp-post-user-action-modify-param/
   /operation
   parameter name=allowedMethods value=postUserActionAddEvent
 postContentActionDeleteEvent postUploadEvent postUserActionDeleteEvent
 postContentActionAddEvent postDownloadEvent postUserActionModifyEvent
 postContentActionModifyEvent/
 
   typeMapping
 xmlns:ns=http://www.openuri.org/;
 qname=ns:postUploadEventResponse
 type=java:
 com.xyz.support.assets.fdp.service.PostUploadEventResponse 
 serializer=org.apache.axis.encoding.ser.BeanSerializerFactory
 deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory
 
 encodingStyle=
   /
   typeMapping
 xmlns:ns=fdp-post-download-param
 qname=ns:authentication
 type=java:
 com.xyz.support.assets.fdp.fdppostdownloadparam.Authentication 
 serializer=org.apache.axis.encoding.ser.BeanSerializerFactory

 deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory
 encodingStyle=
   /
   typeMapping
 xmlns:ns=fdp-post-content-action-modify-param
 qname=ns:modify-parameters
 type=java:
 com.xyz.support.assets.fdp.fdppostcontentactionmodifyparam.ModifyParameters
 serializer=org.apache.axis.encoding.ser.BeanSerializerFactory

 deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory
 encodingStyle=
   /
   typeMapping
 xmlns:ns=fdp-post-download-param
 qname=ns:logging

 type=java:com.xyz.support.assets.fdp.fdppostdownloadparam.Logging
 serializer=org.apache.axis.encoding.ser.BeanSerializerFactory

 deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory
 encodingStyle=
   /
   typeMapping
 xmlns:ns=fdp-post-upload-parameter
 qname=ns:authentication
 type=java:
 com.xyz.support.assets.fdp.fdppostuploadparameter.Authentication 
 serializer=org.apache.axis.encoding.ser.BeanSerializerFactory

 deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory
 encodingStyle=
   /
 
 
 
 Many Thanks
 
 Dheepak.
 
 

-- 
View this message in context: 
http://www.nabble.com/namespace-issues-with-Apache-Axis-1.4-tf3753664.html#a13792546
Sent from the Axis - User mailing list archive at Nabble.com.


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



AXIS NO namespace prefix in SOAP RESPONSE

2007-11-13 Thread [EMAIL PROTECTED]

I have the following wsdl below which I can deploy on apache tomcat using
axis 1.3

The SOAP responses have no prefix!?!?

Would like to have..


But getting..


Would like to have..
RDF
But getting..
r:RDF xmlns:r=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
xmlns:xl=http://www.w3.org/1999/xlink;
xmlns:a=http://www.intetek.com/2004/06/rdf-atts#;
xmlns=http://www.intetek.com/2004/06/rdf#; xmlns:p=./
http://www.nabble.com/file/p13730889/antElectService.wsdl
antElectService.wsdl 
-- 
View this message in context: 
http://www.nabble.com/AXIS-NO-namespace-prefix-in-SOAP-RESPONSE-tf4799417.html#a13730889
Sent from the Axis - User mailing list archive at Nabble.com.


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



javax.net.ssl.SSLHandshakeException: this time not a dumb developer error

2007-07-16 Thread [EMAIL PROTECTED]
Hi,

I have the ever occuring javax.net.ssl.SSLHandshakeException using 
Axis1. The problem is not that I wasn't smart enough to generate the 
key store file and stuff. Data exchange through an Axis 1 web client 
was fine on the specific production machine for months. Since yesterday 
this javax.net.ssl.SSLHandshakeException occurs:

{http://xml.apache.org/axis/}stackTrace:javax.net.ssl.
SSLHandshakeException: sun.security.validator.ValidatorException: PKIX 
path building failed: sun.security.provider.certpath.
SunCertPathBuilderException: unable to find valid certification path to 
requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown 
Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate
(Unknown Source)

Interestingly, everything works fine if I copy the Axis client from 
the production machine to my development machine and start the data 
transfer there. So something on the production machine must have 
changed and I don't have an idea what that could have been. I guess 
that the javax.net.ssl.SSLHandshakeException does not point to the real 
problem. Maybe some network configuration has changed. Anybody a hint 
what could be the cause for this?

Thanks, Oliver Plohmann


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



axis2.sh

2007-07-08 Thread [EMAIL PROTECTED]
Hi All



I used java2wsdl.sh to create a WSDL file from a java class file and the 
$AXIS2_HOME/bin/axis2.sh script has a bug.


matrix:/otp/software/axis2/1.2/samples/quickstart

$../../bin/java2wsdl.sh 

 Using AXIS2_HOME:   /otp/software/axis2/1.2

 Using JAVA_HOME:   /otp/software/java/jdk1.5.0_02

../../bin/axis2.sh: line 38: [: !=: unary operator expected



The script fails during test  operation when $arg or $prearg are null.
Simply double quoting these variables solves this problem.

I have fixed and attached the file with this email.
Hopefully this gets added in the next release.

thanks,

Nambi
http://opentrade.sourceforge.net





axis2.sh
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

where can I put variables (into some XML) and read it from WS (aar)

2007-06-04 Thread [EMAIL PROTECTED]
I need to put 2 variables into xml, anywhere in jboss application.

Any ideas?

--

I have a classes, where i can see (inside aar)
this file /ja/ja.xml, there are also another classes

aat has been put into modules directory inside unpacked axis2.war, which
is in jboss 

URL object toString() in my code
getClass().getResource(/com/ja/ja.xml); return
jar:file:/C:/DOCUME~1/mkr/USTAWI~1/Temp/axis247457.aar!/com/ja/ja.xml 

file C:/DOCUME~1/mkr/USTAWI~1/Temp/axis247457.aar exists

but, when i tryed load it into byte table 
or as DOM object i have null, or unmature end of file 

how can i load it?
url.openStream(); should work, but doesn't 

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); 

DocumentBuilder builder = factory.newDocumentBuilder(); 

URL url = getClass().getResource(/com/ja/ja.xml); 

factory.setValidating(true); 

InputStream inputStream = url.openStream(); 

byte [] tableofByte = new byte[1]; 

inputStream.read(tableofByte); 

document = builder.parse(inputStream);


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



I can't read file from aar

2007-06-02 Thread [EMAIL PROTECTED]
I have a classes, when i'm seeing inside aar (webservice Axis'a)
this file is inside as  /ja/ja.xml, there are also another classes

aat has been put into webservice inside unpacked axis2.war, which is
in jboss 

URL object toString() in my code
getClass().getResource(/com/ja/ja.xml); return
jar:file:/C:/DOCUME~1/mkr/USTAWI~1/Temp/axis247457.aar!/com/ja/ja.xml 

file C:/DOCUME~1/mkr/USTAWI~1/Temp/axis247457.aar exists

but, when i tryed load it into byte table 
or as DOM object i have null, or unmature end of file 

how can i load it?
url.openStream(); should work, but doesn't 

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); 

DocumentBuilder builder = factory.newDocumentBuilder(); 

URL url = getClass().getResource(/com/ja/ja.xml); 

factory.setValidating(true); 

InputStream inputStream = url.openStream(); 

byte [] tableofByte = new byte[1]; 

inputStream.read(tableofByte); 

document = builder.parse(inputStream);




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



problem installing axis[jboss-4.0.5]

2007-05-28 Thread [EMAIL PROTECTED]
hi,I'm tring to install axis,but when I try to access to this page 
http://localhost:8080/axis/EchoHeaders.jws?method=3Dlist, I receive this error.


[JWSHandler] Exception:
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.compileError
faultSubcode:
faultString: Error while compiling: /home/lorenza/seconda/jboss-4.0.5.G=
A/server/default/./deploy/axis.war/WEB-INF/jwsClasses/EchoHeaders.java
faultActor:
faultNode:
faultDetail:
{}Errors: Error compiling /home/lorenza/seconda/jboss-4.0.5.GA/se=
rver/default/./deploy/axis.war/WEB-INF/jwsClasses/EchoHeaders.java:
Line 0, column 0: could not parse error message: Note: sun.tools.javac.M=
ain has been deprecated.
/home/lorenza/seconda/jboss-4.0.5.GA/server/default/./deploy/axis.war/WEB=
-INF/jwsClasses/EchoHeaders.java:59: Class javax.servlet.http.HttpServlet=
Request not found in import.
import javax.servlet.http.HttpServletRequest;
^

Line 0, column 0:
1 error, 1 warning

I'm working on ubuntu whit jdk-1.5.0_11 and axis version 1.1

can somebody help me?
thanks
L.A.



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


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



Q: how can I add fields into header

2007-05-16 Thread [EMAIL PROTECTED]
I was looking for tutorial but I haven't found.
I have a class with methods. It works ok.

I need to put into header of Web Services
4 fields, 2 logins and 2 passwords. 
It is as wrapper as arguments of functions today, but it must
be as fields of header.
I have no idea how can I force AXIS2 to add these 4 fields into
header of all WS, how should I change services.xml and where
should be the code which checks whether this 2 logins and 2 password are
ok and returns true or false.

PS.
If it's impossible, I will be happy if I can put
just login and password for header.

PS2 Is there any tutorial about ssl in WS in AXIS2 in Jboss.



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



Problems with Axis2 and Windows 2000

2007-04-13 Thread [EMAIL PROTECTED]
Hello,I have searched the mail archive many times
now and found many similar mail posts but always without any practicle
solution.The problem is simple: Almost ANY *.bat from the
Axis2 bundle does not work due to limitations of W2k variable lengths in
batch-files. I.e., the classpath for the java-call (created by a
for-statement) is cut and a NoClassDefFoundError occurs!Even
the hint to jar all %AXIS2_HOME%\lib\*.jar into a single Axis2.jar did
not work (even with proper manifest entries).So, is there a
solution for Windows 2000? Or do I have to migrate to XP? On Windows XP
everything works fine (but my company laptop still has W2k installed and
migration would be too time-consuming for me at the moment).Thank you very much for a working hint!Best regards,Guido Adolphi






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



[Axis2] Problems with Axis2 and Windows 2000

2007-04-13 Thread [EMAIL PROTECTED]
Hello,I have searched the mail archive many times now and found many
similar mail posts but always without any practicle solution.The problem is simple: Almost ANY *.bat from the Axis2 bundle does not
work due to limitations of W2k variable lengths in batch-files. I.e.,
the classpath for the java-call (created by a for-statement) is cut and
a NoClassDefFoundError occurs!Even the hint to jar all
%AXIS2_HOME%\lib\*.jar into a single Axis2.jar did not work (even with
proper manifest entries).So, is there a solution for Windows
2000? Or do I have to migrate to XP? On Windows XP everything works fine
(but my company laptop still has W2k installed and migration would be
too time-consuming for me at the moment).Thank you very much
for a working hint!Best regards,Guido Adolphi 



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



Re: [Axis2] Problems with Axis2 and Windows 2000

2007-04-13 Thread [EMAIL PROTECTED]
Thank
you very much - it works!Best regards,Guido
-Original Message-
Date: Fri, 13 Apr 2007 14:53:29 +0200
Subject: Re: [Axis2] Problems with Axis2 and Windows 2000
From: Davanum Srinivas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

Please edit the bat file and use the following. where you need to
replace c:\axis2\lib with your path and replace
org.apache.axis2.xxx.yyy.zzz with the actual class mentioned
in the
bat file.

java -Djava.ext.dirs=c:\axis2\lib org.apache.axis2.xxx.yyy.zzz

thanks,
dims

On 4/13/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 Hello,

 I have searched the mail archive many times now and found many
similar mail
 posts but always without any practicle solution.

 The problem is simple: Almost ANY *.bat from the Axis2 bundle does
not work
 due to limitations of W2k variable lengths in batch-files. I.e.,
the
 classpath for the java-call (created by a for-statement) is cut and
a
 NoClassDefFoundError occurs!

 Even the hint to jar all %AXIS2_HOME%\lib\*.jar into a single
Axis2.jar did
 not work (even with proper manifest entries).

 So, is there a solution for Windows 2000? Or do I have to migrate
to XP? On
 Windows XP everything works fine (but my company laptop still has
W2k
 installed and migration would be too time-consuming for me at the
moment).

 Thank you very much for a working hint!

 Best regards,
 Guido Adolphi


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


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

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





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



Please give me advice about authentication

2007-04-03 Thread [EMAIL PROTECTED]
I have simple POJO and several methods into this.
My service.xml explore this methods as WS, every
method has also Input Wrapper and Output Wrapper classes.
Everything is OK, but now I need put 4 field into
WS header. It must be into header.

How can I get AXIS2 context and make everything?
I mean, I must force my WS's to have these 4 fields
(wsdl should divulge it) and I must have possibility 
get these fields in method from (let's say) Authentication 
POJO class and check what I need, before (and if)
code from method from simple POJO will be executed.





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



Re: Running multiple instances of axis2 in same Tomcat

2007-03-28 Thread [EMAIL PROTECTED]

Yes, each of our Tomcat webapps in their own Tomcat virtual hosts run the
same code, in a different application directory and with different
configuration - CSS, database connects to different DB's, etc.

The corresponding web service(s) under axis2 will also be identical code,
but need to be configured (via properrties) file to connect to the correct
database.also connect to the correct database (using a properties file).

So then I can install axis2 multiple times under tomcat - e.g. as axis2a,
axis2b, etc. Each with their own services repository. Right?

Thank you.


Ajith Ranabahu wrote:
 
 Hi,
 is it the same webapp that is reloaded and available through different
 virtual hosts ? I mean would they have different configurations but
 the same libraries ? AFAIS Axis2 should have no problem in this.
 
 Ajith
 
 On 3/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I've a few posts that touched on this, but no answers.

 We have a web application that is deployed multiple times as separate
 Tomcat
 virtual hosts. We would like to structure our axis2 web services in a
 similar way. For example,
  - webapp #1 is accessed as http://webapp1.myhost.com
  - webapp #2 is accessed as http://webapp2.myhost.com
 We would like to be able to access the web services as:
  - http://webapp1.myhost.com:9191/axis2/MyApplicationService?...
  - http://webapp2.myhost.com:9292/axis2/MyApplicationService?...

 Can axis2 be loaded as multiple webapplications in Tomcat 5.5? Should
 there
 be any classloading issues?

 Or maybe there is an alternate way of doing this - maybe using a
 different
 namespace mechanism that axis2 provides that I have not
 discovered/learned
 yet?

 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9705315
 Sent from the Axis - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9713655
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Running multiple instances of axis2 in same Tomcat

2007-03-28 Thread [EMAIL PROTECTED]

Yes, but does axis2 behave well (as expected and without problems) when it is
installed as multiple webapps under Tomcat? E.g there might be an
tomcat/webapps/axis2a, tomcat/webapps/axis2b, tomcat/webapps/axis2c, 


Davanum Srinivas wrote:
 
 multiple webapps in same tomcat is possible.
 
 thanks,
 dims
 
 On 3/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I've a few posts that touched on this, but no answers.

 We have a web application that is deployed multiple times as separate
 Tomcat
 virtual hosts. We would like to structure our axis2 web services in a
 similar way. For example,
  - webapp #1 is accessed as http://webapp1.myhost.com
  - webapp #2 is accessed as http://webapp2.myhost.com
 We would like to be able to access the web services as:
  - http://webapp1.myhost.com:9191/axis2/MyApplicationService?...
  - http://webapp2.myhost.com:9292/axis2/MyApplicationService?...

 Can axis2 be loaded as multiple webapplications in Tomcat 5.5? Should
 there
 be any classloading issues?

 Or maybe there is an alternate way of doing this - maybe using a
 different
 namespace mechanism that axis2 provides that I have not
 discovered/learned
 yet?

 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9705315
 Sent from the Axis - User mailing list archive at Nabble.com.


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


 
 
 -- 
 Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9713657
Sent from the Axis - User mailing list archive at Nabble.com.


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



Running multiple instances of axis2 in same Tomcat

2007-03-27 Thread [EMAIL PROTECTED]

I've a few posts that touched on this, but no answers.

We have a web application that is deployed multiple times as separate Tomcat
virtual hosts. We would like to structure our axis2 web services in a
similar way. For example,
 - webapp #1 is accessed as http://webapp1.myhost.com
 - webapp #2 is accessed as http://webapp2.myhost.com
We would like to be able to access the web services as:
 - http://webapp1.myhost.com:9191/axis2/MyApplicationService?...
 - http://webapp2.myhost.com:9292/axis2/MyApplicationService?...

Can axis2 be loaded as multiple webapplications in Tomcat 5.5? Should there
be any classloading issues?

Or maybe there is an alternate way of doing this - maybe using a different
namespace mechanism that axis2 provides that I have not discovered/learned
yet?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9705315
Sent from the Axis - User mailing list archive at Nabble.com.


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



[AXIS 2] Deploying on Tomacat 6.0.10

2007-03-17 Thread [EMAIL PROTECTED]
Hi!
I try to deploy axis2.war (Axis2 1.1.1)on Apache Tomacat 6.0.10 and i obtain 
this error when it deploy version.aar
What's the problem?
Where i can find activation.jar and mail.jar and where i have to put this 
libraries ?
Thanks!



17-mar-2007 12.21.49 org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in produ
ction environments was not found on the java.library.path: C:\Programmi\Java\jre
1.6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\Sy
stem32;C:\Programmi\Java\jdk1.6.0\bin;C:\Programmi\apache-ant-1.7.0\bin;C:\Progr
ammi\apache-tomcat-6.0.10\bin;C:\Programmi\axis2-1.1.1\webapp\axis2-web\bin;C:\P
rogrammi\Java\jdk1.6.0\bin;C:\Programmi\apache-ant-1.7.0\bin;C:\Programmi\apache
-tomcat-6.0.10\bin;C:\Programmi\axis2-1.1.1\webapp\axis2-web\bin;C:\Programmi\Ja
va\jdk1.6.0\bin;C:\Programmi\apache-ant-1.7.0\bin;C:\Programmi\apache-tomcat-6.0
.10\bin;C:\Programmi\axis2-1.1.1\webapp\axis2-web\bin
17-mar-2007 12.21.51 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
17-mar-2007 12.21.51 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 5387 ms
17-mar-2007 12.21.51 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
17-mar-2007 12.21.52 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
17-mar-2007 12.21.52 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive axis2.war
17-mar-2007 12.22.04 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : addressing-1.1.1
17-mar-2007 12.22.12 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : rampart-1.1
17-mar-2007 12.22.12 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : soapmonitor-1.1.1
17-mar-2007 12.22.13 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying Web service  version.aar
- Unable to find required classes (javax.activation.DataHandler and javax.mail.i
nternet.MimeMultipart). Attachment support is disabled.
17-mar-2007 12.22.23 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
17-mar-2007 12.22.23 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
17-mar-2007 12.22.23 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/180  config=null
17-mar-2007 12.22.23 org.apache.catalina.startup.Catalina start
INFO: Server startup in 32497 ms



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



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



rampart-1.0.mar and Axis2

2007-03-16 Thread [EMAIL PROTECTED]
)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.system.ServiceController
$ServiceProxy.invoke(ServiceController.java:943)
at $Proxy0.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:428)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy5.deploy(Unknown Source)
at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
at org.jboss.Main.boot(Main.java:187)
at org.jboss.Main$1.run(Main.java:438)
at java.lang.Thread.run(Thread.java:595)





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



authentication in SOAP header

2007-03-14 Thread [EMAIL PROTECTED]
Authentication in SOAP header
Anybody knows how to do it? 
Maybe tutorial exist?






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



[AXIS2] Test

2007-03-13 Thread [EMAIL PROTECTED]
Hi!
I have to test the code on http://ws.apache.org/wss4j/axis.html
on my AXIS2 with Rampart.
Can you help me?
What i have to change ?
Thanks



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



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



[AXIS 1.4] Example for WSS4J

2007-03-12 Thread [EMAIL PROTECTED]
Hi i'm trying to do the exemple http://ws.apache.org/wss4j/axis.html but after 
i have created a deploy file, i try to execute this .bat command:

java org.apache.axis.client.AdminClient 
-lhttp://localhost:8080/axis/services/AdminService deploy.wsdd

but i obtain an error:
Exception in thread main no java.lang.noclassdeffounderror
org/apache/axis/client/AdminClient

May i have a client folder in Axis1.4??
Please help me...


--
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada



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



[AXIS1.4] Deploy and sart StockQuoteService.java

2007-03-09 Thread [EMAIL PROTECTED]
Hi!
I don't know very well how to use correctly Axis 1.4.
I'm trying to deploy StockQuoteService.java placed into 
axis-1_4\webapps\axis\WEB-INF\classes\samples\stock folder
with this deploy file deploy-base.wsdd placed in the same folder:

deployment name=test xmlns=http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
  service name=xmltoday-delayed-quotes-base provider=java:RPC 
style=document use=literal
parameter name=className value=samples.stock.StockQuoteService/
parameter name=allowedMethods value=getQuote/
parameter name=scope value=application/
  /service
/deployment

I wrote a file .bat in the same folder:

java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient 
samples/stock/server/deploy-base


where axisclasspath is an environment variable that containe
all .jar files paths in lib folder.

But i have this error:
Exception in thread main  java.lang.noclassdefounderror
org/sample/Axis/AdminClient

When i'll solve this problem will be correct this way to start it?

java -cp %AXISCLASSPATH% samples.stock.client.StockServiceClient XXX 
http://localhost:8080/axis/services/xmltoday-delayed-quotes-base


Many thanks to all
Antonio


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



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



2 problems, simple function, hot deployment

2007-03-08 Thread [EMAIL PROTECTED]
1) I've used axis2 for pojo beans and it's worked good.
There is very good example for it. But I suffer cause of lack of
documentation
or I can't find it.
I'm going to make a function like this

OutputWrapper function(InputWrapper inputwrapper)
{ /*.../* }

so there are
class OutputWrapper
{
int int;
int int2;
String string;
/* get* i set* also*/
}

and similar class InputWrapper
{
boolean bool;
String string;
}

and there is class MyPojo
{
OutputWrapper outputwrapper;
InputWrapper inputwrapper;
/* get* and set* also*/
}

and before I take outputwrapper
I call some function which takes data from database also.
It is called inside getoutputwrapper, before return;

But the problem is, that where there are many clients, one
client set the inputwrapper and is trying to call getoutputwrapper
and it will work, get data from database and return outputwrapper,
but when another client in this time call setinputwrapper, first
client receive data from outputwrapper, which are wrong (because
argument is changed).
So, this WeatherBean from Tutorial is ok, but I need 1 function:
OutputWrapper function(InputWrapper inputwrapper), bean and get*
and set* don't work for me.

Can AXIS2 help me?


PS

2) hot deployment in Jboss doesn't work, does it? 




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



[AXIS2] AXISCLASSPATH

2007-03-07 Thread [EMAIL PROTECTED]
Hi,
I have to create my AXISCLASSPATH or AXIS2CLASSPATH  (I don't know how to 
write..)environment variable.
1)What i have to put as his value?
webinf/lib dipath of AXIS2 or all the singles path of .jar files of my AXIS2?
2) How i can launch tcpmon on AXIS2?


Many Thanks
 


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



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



Re: [AXIS2] AXISCLASSPATH

2007-03-07 Thread [EMAIL PROTECTED]
Grazie per il tuo interesse Antonio sono sicuro che la tua soluzione è corretta 
ma effettuando l'ultimo passo ho avuto questa eccezione


Exception in thread main  java.lang.NoClassDefFoundError:

c:\Programmi\Axis2-1/1/1\lib\activation-LICENSE/txt


E' un file presente nella cartella lib...
Che devo fare?
Ti sarei grato se mi indicassi il modo di risolvere anche questo problema
Ciao
Antonio
- Initial Header ---

From  : Antonio Borrelli [EMAIL PROTECTED]
To  : axis-user@ws.apache.org
Cc  :
Date  : Wed, 7 Mar 2007 14:31:30 +0100
Subject : Re: [AXIS2] AXISCLASSPATH







 Hi tony, i have already done the configuration of the environment for
 tcpMon and i have met not few problems.

 I have resolved the problem in this way:
 1) Locate in your filesystem where you have extracted the axis2, i.e.
 let's it as C:\AXIS
 1) Set an environment variable AXIS_LIB with the path of the axis lib,
 for example C:\AXIS\lib
 2) Set an environment variable AXIS_CLASSPATH as %AXIS_LIB%\*
 3) Launch the tcpmon with
  java -cp %AXISCLASSPATH% org.apache.axis.utils.tcpmon

 Thanks,

 /@nborrell



 I have set as AXISCLASSPATH

 2007/3/7, [EMAIL PROTECTED] [EMAIL PROTECTED]:
  Hi,
  I have to create my AXISCLASSPATH or AXIS2CLASSPATH  (I don't know how to 
  write..)environment variable.
  1)What i have to put as his value?
  webinf/lib dipath of AXIS2 or all the singles path of .jar files of my 
  AXIS2?
  2) How i can launch tcpmon on AXIS2?
 
 
  Many Thanks
 
 
 
  --
  Leggi GRATIS le tue mail con il telefonino i-modeTM di Wind
  http://i-mode.wind.it
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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



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



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

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


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



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



Axis2 deploy on Tomcat

2007-03-05 Thread [EMAIL PROTECTED]
Hi
I'm Antonio Abbate, an italian student of computer engineering and i have=
to use Axis2 for my final project.
I have a problem when i deploy Axis2.war in the Apache Tomcat 6.0.9 / web=
apps folder.
When i click on the file batch startup in the folder bin of tomcat i ca=
n read that the deply is gone in the right way but i read also that : The=
Apache Tomcat Native library that allow optimal peformance in production=
environments was not found on the Java.library.path
but i'm sure that all the environment variables are setted in the right w=
ay and the tomcat-native.tar file is on the bin folder...
I can read on the browser the home page of tomacat but when i try to look=
at the http://127.0.0.1:8080/axis2 ican read only:


HTTP Status 500 -

-=
---

type Exception report

message

description The server encountered an internal error () that prevented it=
from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle=
tWrapper.java:532)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja=
va:366)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)=

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja=
va:967)
org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:78)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja=
va:384)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)=

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause

java.lang.NullPointerException
org.apache.jsp.axis2_002dweb.include.httpbase_jsp.jspInit(httpbase_jsp.j=
ava:22)
org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:79)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper=
.java:157)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja=
va:320)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)=

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja=
va:967)
org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:78)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja=
va:384)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)=

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache To=
mcat/6.0.9 logs.


-=
---

Apache Tomcat/6.0.9


Thanks a lot however



--
Mutui da 200.000 euro? Tassi ridotti da 4.25% solo per richieste online. 
Mutuionline.it
http://click.libero.it/mutuionline5mar07



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



Re: Axis2 deploy on Tomcat

2007-03-05 Thread [EMAIL PROTECTED]
Thank you Charitha. Now i can read
http://127.0.0.1:8080/axis2page

I still read the proble m starting tomcat...
i putted
%PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin;%CATALINA_HOME%\bin;%AXIS2_HOME%\bin

as value of PATH variable.
Is it correct if i have defined correctly the home variables  of the programs?
Thank a lot however!
Antonio








-- Initial Header ---

From  : Charitha Kankanamge [EMAIL PROTECTED]
To  : axis-user@ws.apache.org
Cc  :
Date  : Mon, 05 Mar 2007 16:44:15 +0530
Subject : Re: Axis2 deploy on Tomcat







 Hi Antonio,

 Which axis2 version did you use for deployment? Can you please try with
 Axis2-1.1.1 or latest nightly build? I was able to deploy axis2 nightly
 on tomcat 6.0.10 without getting this error.

 regards
 Charitha



--
Mutui da 200.000 euro? Tassi ridotti da 4.25% solo per richieste online. 
Mutuionline.it
http://click.libero.it/mutuionline5mar07



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



Re: Axis2 deploy on Tomcat

2007-03-05 Thread [EMAIL PROTECTED]
Yes i did.
Thanks
Antonio


-- Initial Header ---

From  : sumedha rubasinghe [EMAIL PROTECTED]
To  : axis-user@ws.apache.org
Cc  :
Date  : Mon, 05 Mar 2007 18:28:03 +0530
Subject : Re: Axis2 deploy on Tomcat







 Hi Antonio,
 Are you referring to the message The Apache Tomcat Native library which
 allows optimal performance in production environments was not found on 
 the java.library.path.. as the problem??
 If so, this is not an error. This tells you that Apache Portable Runtime
 is not available in your classpath. Since this library is only
 responsible for production level performance  scalability you can
 safely ignore this.

 However if your curious, you will find tomcat-native.tar.gz inside
 TOMCAT-HOME/bin.  Extract  compile this to generate native libraries.

 /sumedha





--
Mutui da 200.000 euro? Tassi ridotti da 4.25% solo per richieste online. 
Mutuionline.it
http://click.libero.it/mutuionline5mar07



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



AW: Soap envelope

2007-02-13 Thread [EMAIL PROTECTED]
Hello,

I am trying to consume a web service. The operation returns array 
of strings and when invoking the web service I am getting the 
following error message:

Exception in thread main AxisFault
 faultCode: {a href=http://schemas.xmlsoap.org/soap/envelope/; 
 target=_BLANKhttp://schemas.xmlsoap.org/soap/envelope//a}
Server.
userException
 faultSubcode: 
 faultString: java.lang.NullPointerException
 faultActor: 
 faultNode: 
 faultDetail: 
{a href=http://xml.apache.org/axis/; target=_BLANKhttp:
//xml.
apache.org/axis//a}hostname:mediumnew

java.lang.NullPointerException
at org.apache.axis.message.SOAPFaultBuilder.createFault
(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement
(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement
(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.
endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.
XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.
XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.
XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.
parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.
parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.
parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse
(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke
(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at org.fbraho.StandardCategoryService.client.
StandardCategoryServiceSOAPStub.selectType3
(StandardCategoryServiceSOAPStub.java:447)
at org.fbraho.StandardCategoryService.client.StubSelectClient.
main
(StubSelectClient.java:15)



Any ideas what the problem may be?

Thanks

Regards
Magdalena




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







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



[axis-cpp] connection problem when destroying a client stub

2007-01-23 Thread [EMAIL PROTECTED]
Hi.

I have a web service running on JBoss and developed using JBossWebServices 
software.

I have to access to this web service via a C++ client. I am using Axis C++ in 
order to develop it. Axis C++ generates the client stubs from the WSDL 
specification, and then I use these stubs from the C++ application.

But when I destroy a stub object (via the  ~MyServiceStub(), which have been 
automatically generated by Axis C++) it looks like the connection is closed in 
an abnormal way: on the server side, an exception raises

ClientAbortException:  java.net.SocketException: Software caused connection 
abort: socket write error

Am I doing something wrong? Is there some 'close()' method or similar I am 
missing? Or is this the expected behaviour?

Thanks in advance.

Manu



Page missing in Axis2 1.1 documentation.

2007-01-07 Thread [EMAIL PROTECTED]

Dear Admin,

On Apache Axis2 modules page ( http://ws.apache.org/axis2/modules/index.html )
Rampart link (
http://ws.apache.org/axis2/modules/rampart/1_1/security-module.html) does
not work.

Could you kindly make that available.

Best Regards,
-Prasad


problem with 'nil'

2006-11-28 Thread [EMAIL PROTECTED]
Hello.

I am using Axis C++ to build a client in order to access a web service. I have 
managed to do it, and now I am in the test phase.

But I have found a problem. In the web service response, the SOAP sent by the 
server includes one element with

xsi:nil='1'

I think this is syntactically correct. Nevertheless, it turns out that Axis C++ 
does not like it. After a more careful look, I think
that Axis C++ can handle things like

xsi:nil='true'

, but cannot handle it in case '1' is used instead of 'true'.

If I cannot change the server part of the web service, is there anyway to avoid 
this problem?

Thanks in advance.

Manu



[AXIS2] Create a new WSDL for MTOM

2006-11-21 Thread [EMAIL PROTECTED]
   Hi,
I'm new java develope and I would want to use axis 2 in order to create an 
application for the exchange of files.

I have seen the example on the MTOM.But I would want to add at the service of 
exchange of the files other operations relative to my WebServices.
In order to make this it is necessary to leave the beginning and to define a 
new WSDL with the new operations.

I would want to have of information on as being able to do this, reuse the 
AXIS2 example or if exist one tutorial for this, in particular on the exchange 
of file with MTOM

thanks a lot,

stefano


--
Consolidamento.Una sola rata più bassa per i tuoi finanziamenti e, in più, 
liquidità! www.mutuionline.it
http://click.libero.it/mutuionline20nov



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



WSDL generation using axis2.0

2006-07-21 Thread [EMAIL PROTECTED]
Hi All, 

When I use RawXMLINOutMessageReceiver as a messageReceiver, and ask
Axis for wsdl
(http://192.168.20.126:8080/axis2/services/OurService?wsdl)
 it shows me following message. 

error
descriptionUnable to generate WSDL for this service/description
reason
Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC.
/reason
/error

Is it a feature if I use RawXMLINOutMessageReceiver as a
messageReceiver then I will not get the wsdl but will have to
write it on my own?

Or Part 2 
What is the correct apporoach if want to write a webservice which expects following xml.







example1:echo xmlns:example1=http://example1.org/example1
	example1:ProjectID/example1:Textexample1:WorkflowID2/example1:Text example1:stepnamestep/example1:Text/example1:echoand returns 
example1:echoResult xmlns:example1=http://example1.org/example1
	example1:result1 /example1:Textexample1:next step2 /example1:Text /example1:echoResultWhich receiver I should use?Should I write wsdl first and then generate the server classes?
Looking forward to read from you. Thanks for reading this long email.-Prasad









Re: [Axis2] specifying username and password

2006-05-03 Thread [EMAIL PROTECTED]
On 5/3/06, Kees de Kooter [EMAIL PROTECTED] wrote:
In Axis 1 I specified username/password like this:call.setUserName();call.setPassword();What is the equivalent in Axis 2?--Cheers,Kees de Kooter
http://www.boplicity.netI have used the following successfully: call.setProperty(Call.USERNAME_PROPERTY, user); call.setProperty(Call.PASSWORD_PROPERTY
, pass); -- //--//Computer Science is no more about computers than astronomy //is about telescopes.
- E. Dijkstra //--


Re: Want Sample code for Handler

2006-05-03 Thread [EMAIL PROTECTED]
On 5/3/06, Kanojia, Jogesh (GE Cons Fin, consultant) [EMAIL PROTECTED] wrote:










Hi,


I need to add new handler in Axis .


If any one have a sample code or tutorial for adding handler please send me the same.


Thanks  Regards

Jogesh KanojiaThe source download contains a sample Handler at samples/handler/TestMimeHeaderHandler.java and there is another at samples/userguide/example4/LogHandler.java



Re: Can i generate deploy.wsdd

2006-04-10 Thread [EMAIL PROTECTED]
if your my MyService.java is your interface for your service then you can create WSDL with Java2WSDL programme after you compile your interface. You can then use this WSDL to create the wsdd files as well as the implementation files for your service with WSDL2Java (you'll need to specify the -s flag). see http://ws.apache.org/axis/java/user-guide.html for further info

WS client using HttpURLConnection

2006-03-29 Thread [EMAIL PROTECTED]
Hi!I need to develope a WS client that's capable of sending/receiving a SOAP message with a file attached to it. I was thinking about sending it within a MIME message but I can't use the Mail API or similar. I can only use the HttpURLConnection.Do you know where can I find an example peace of code?Kind regards


Prueba el Nuevo Correo Terra; Seguro, Rpido, Fiable.





streams

2006-03-23 Thread [EMAIL PROTECTED]
Hi!

I'm sending binary data in base64 format through Axis web services. Axis 
manages this data as byte arrays so I can't manage big amounts of 
data (up to 1MB or so).
I would like to know whether Axis provides a means of using streams instead of 
byte[].

Kind regards.


Prueba el Nuevo Correo Terra; Seguro, Rápido, Fiable.



Re: class loader in webservice

2006-03-20 Thread [EMAIL PROTECTED]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I can solve this problem using application scope

Thanks for any help

 when webservice is executed by several clients concurrently.
 
 ¿What is happens with classloader? ¿An only classloader is created for
 webservice or one by each request?
 
 I have a webservice which reads data loaded in memory, and it is more
 important that all requests reads the same data.
 
 Thank you, very much.
 --
 View this message in context: 
 http://www.nabble.com/class-loader-in-webservice-t1310893.html#a3492729
 Sent from the Axis - User forum at Nabble.com.
 
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEH0EpE2z3kEWcD6URAu3aAJwL6HgQudqXxbRXx8epRlKCJFHa8wCeJpO9
mqwi6HbyfJSQh9U1v5xvIS4=
=uXrt
-END PGP SIGNATURE-


Re: SOAP messages format

2006-02-10 Thread [EMAIL PROTECTED]
H ...I made a new testing WSDL file (see attached file) and generated a WS using Axis from Eclipse. The test resulted in that I can send a SOAP message with two parameters, I can see the server receives them, but the response contains only the first parameter of the two expected.Any ideas/suggestions?RegardsMensaje originalDe: [EMAIL PROTECTED]Recibido: 09/02/2006 23:07Para: <axis-user@ws.apache.org>, <[EMAIL PROTECTED]>Asunto: Re: SOAP messages formatWhen using document/literal, your message may have at most one message part. If you would like to design a programming interface that supports multiple input parameters, then you must design the WSDL to follow the WRAPPED convention. See my blog entry for more information: http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html.AnneOn 2/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:Prueba el Nuevo Correo Terra; Seguro, Rápido, Fiable.


Prueba el Nuevo Correo Terra; Seguro, Rpido, Fiable.



?xml version=1.0 encoding=UTF-8?
definitionsname=EchoSrvc
 targetNamespace=http://localhost:8080/echosrvc.wsdl;
   xmlns:tns=http://localhost:8080/echosrvc.wsdl;
  xmlns:xsd1=http://localhost:8080/echosrvc.xsd;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
   xmlns=http://schemas.xmlsoap.org/wsdl/;
types
schema  targetNamespace=http://localhost:8080/echosrvc.xsd;
   xmlns=http://www.w3.org/2001/XMLSchema; 
  xmlns:xsd1=http://localhost:8080/echosrvc.xsd;

element name=echoBin
  complexType
sequence
  element name=fileName type=string/
  element name=fileContent type=string/
/sequence
  /complexType
/element 
element name=echoBinResponse
  complexType
sequence
  element name=fileName type=string/
  element name=fileContent type=string/
/sequence
  /complexType
/element 

/schema
/types
message name=echoBinRequest
part name=echoBinReq element=xsd1:echoBin/
/message
message name=echoBinResponse
part name=echoBinRes element=xsd1:echoBinResponse/
/message

portType name=EchoSrvcPort
operation name=echoBin
input message=tns:echoBinRequest/
output message=tns:echoBinResponse/
/operation
/portType

binding name=EchoSrvcBinding type=tns:EchoSrvcPort
soap:binding style=document 
transport=http://schemas.xmlsoap.org/soap/http/
operation name=echoBin
soap:operation soapAction=https://localhost:8080/echoBin/
input
soap:body use=literal/
/input
output
soap:body use=literal/
/output
/operation
/binding

service name=EchoSrvc
port name=EchoSrvcPort binding=tns:EchoSrvcBinding
soap:address location=https://localhost:8080/echosrvc/
/port
/service

/definitions


SOAP messages format

2006-02-09 Thread [EMAIL PROTECTED]



Prueba el Nuevo Correo Terra; Seguro, Rápido, Fiable.


Hi, there!
I've a problem regarding SOAP messages sent to/from a WS developed with Axis:
I'm just testing an echo WS over the Tomcat container using Axis and Eclipse. 
I create
the server proxy and stuff from the WSDL file below and then I send and receive 
the SOAP messaxes
shown at the bottom of this text file. Those are the only ones that worked. The 
problem is that
I don't understand them, shouldn't they be something like this?:

- Sending:

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope 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:Body
Echo xmlns=http://localhost:8080/echosrvc.xsd;
  CadeaReqMessage to be echoed/CadeaReq
/Echo
  /soapenv:Body
/soapenv:Envelope

- Receiving:

soapenv:Envelope 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:Body
Echo xmlns=http://localhost:8080/echosrvc.xsd;
  CadeaResMessage to be echoed/CadeaRes
/Echo
  /soapenv:Body
/soapenv:Envelope



Although it works using the SOAP messages shown at the bottom of this mail,
I can't find the way to call an operation with more than one parameter. How can 
I do that?

Thanks in advance.






- The WSDL file I use to define the echo service:


?xml version=1.0 encoding=UTF-8?
definitionsname=EchoSrvc
 targetNamespace=http://localhost:8080/echosrvc.wsdl;
   xmlns:tns=http://localhost:8080/echosrvc.wsdl;
  xmlns:xsd1=http://localhost:8080/echosrvc.xsd;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
   xmlns=http://schemas.xmlsoap.org/wsdl/;
types
schema   targetNamespace=http://localhost:8080/echosrvc.xsd;
  xmlns=http://www.w3.org/2001/XMLSchema; 
  xmlns:xsd1=http://localhost:8080/echosrvc.xsd;
element name=Cadea type=string/
element name=Binario type=base64Binary/
/schema
/types

message name=EchoReq
part name=CadeaReq element=xsd1:Cadea/
/message
message name=EchoRes
part name=CadeaRes element=xsd1:Cadea/
/message

message name=EchoBinReq
part name=NomeReq element=xsd1:Cadea/
part name=ContidoReq element=xsd1:Cadea/
/message
message name=EchoBinRes
part name=NomeRes element=xsd1:Cadea/
part name=ContidoRes element=xsd1:Cadea/
/message

portType name=EchoSrvcPort
operation name=Echo
input message=tns:EchoReq/
output message=tns:EchoRes/
/operation
operation name=EchoBin
input message=tns:EchoBinReq/
output message=tns:EchoBinRes/
/operation
/portType

binding name=EchoSrvcBinding type=tns:EchoSrvcPort
soap:binding style=document 
transport=http://schemas.xmlsoap.org/soap/http/
operation name=Echo
soap:operation soapAction=https://localhost:8443/Echo/
input
soap:body use=literal/
/input
output
soap:body use=literal/
/output
/operation
operation name=EchoBin
soap:operation soapAction=https://localhost:8443/EchoBin/
input
soap:body use=literal/
/input
output
soap:body use=literal/
/output
/operation
/binding

service name=EchoSrvc
port name=EchoSrvcPort binding=tns:EchoSrvcBinding
soap:address location=https://localhost:8443/echosrvc/
/port
/service

/definitions




- The message request that I send to the server:

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope 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:Body
Echo xmlns=http://localhost:8080/echosrvc.xsd;Message to be echoed/Echo
  /soapenv:Body
/soapenv:Envelope


- The response that I get:


soapenv:Envelope 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:Body
Cadea xmlns=http://localhost:8080/echosrvc.xsd;Message to be 
echoed/Cadea
  /soapenv:Body
/soapenv:Envelope


SOAP messages format

2006-02-09 Thread [EMAIL PROTECTED]
Hi!
Due to text format problems, I send my question in the attached text file
Thanks in advance


Prueba el Nuevo Correo Terra; Seguro, Rápido, Fiable.


Hi, there!
I've a problem regarding SOAP messages sent to/from a WS developed with Axis:
I'm just testing an echo WS over the Tomcat container using Axis and Eclipse. 
I create
the server proxy and stuff from the WSDL file below and then I send and receive 
the SOAP messaxes
shown at the bottom of this text file. Those are the only ones that worked. The 
problem is that
I don't understand them, shouldn't they be something like this?:

- Sending:

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope 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:Body
Echo xmlns=http://localhost:8080/echosrvc.xsd;
  CadeaReqMessage to be echoed/CadeaReq
/Echo
  /soapenv:Body
/soapenv:Envelope

- Receiving:

soapenv:Envelope 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:Body
Echo xmlns=http://localhost:8080/echosrvc.xsd;
  CadeaResMessage to be echoed/CadeaRes
/Echo
  /soapenv:Body
/soapenv:Envelope



Although it works using the SOAP messages shown at the bottom of this mail,
I can't find the way to call an operation with more than one parameter. How can 
I do that?

Thanks in advance.






- The WSDL file I use to define the echo service:


?xml version=1.0 encoding=UTF-8?
definitionsname=EchoSrvc
 targetNamespace=http://localhost:8080/echosrvc.wsdl;
   xmlns:tns=http://localhost:8080/echosrvc.wsdl;
  xmlns:xsd1=http://localhost:8080/echosrvc.xsd;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
   xmlns=http://schemas.xmlsoap.org/wsdl/;
types
schema   targetNamespace=http://localhost:8080/echosrvc.xsd;
  xmlns=http://www.w3.org/2001/XMLSchema; 
  xmlns:xsd1=http://localhost:8080/echosrvc.xsd;
element name=Cadea type=string/
element name=Binario type=base64Binary/
/schema
/types

message name=EchoReq
part name=CadeaReq element=xsd1:Cadea/
/message
message name=EchoRes
part name=CadeaRes element=xsd1:Cadea/
/message

message name=EchoBinReq
part name=NomeReq element=xsd1:Cadea/
part name=ContidoReq element=xsd1:Cadea/
/message
message name=EchoBinRes
part name=NomeRes element=xsd1:Cadea/
part name=ContidoRes element=xsd1:Cadea/
/message

portType name=EchoSrvcPort
operation name=Echo
input message=tns:EchoReq/
output message=tns:EchoRes/
/operation
operation name=EchoBin
input message=tns:EchoBinReq/
output message=tns:EchoBinRes/
/operation
/portType

binding name=EchoSrvcBinding type=tns:EchoSrvcPort
soap:binding style=document 
transport=http://schemas.xmlsoap.org/soap/http/
operation name=Echo
soap:operation soapAction=https://localhost:8443/Echo/
input
soap:body use=literal/
/input
output
soap:body use=literal/
/output
/operation
operation name=EchoBin
soap:operation soapAction=https://localhost:8443/EchoBin/
input
soap:body use=literal/
/input
output
soap:body use=literal/
/output
/operation
/binding

service name=EchoSrvc
port name=EchoSrvcPort binding=tns:EchoSrvcBinding
soap:address location=https://localhost:8443/echosrvc/
/port
/service

/definitions




- The message request that I send to the server:

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope 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:Body
Echo xmlns=http://localhost:8080/echosrvc.xsd;Message to be echoed/Echo
  /soapenv:Body
/soapenv:Envelope


- The response that I get:


soapenv:Envelope 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:Body
Cadea xmlns=http://localhost:8080/echosrvc.xsd;Message to be 
echoed/Cadea
  /soapenv:Body
/soapenv:Envelope


wath is the best style of WSDL???

2006-01-26 Thread [EMAIL PROTECTED]

I'm developing a web service and i dont know that style is the best.

WS-I recomend document/literal but all the examples (that i have found)  
uses RPC/encoded with axis.


If I use axis and saaj, what is the best style of WSDL for my

Help me, please.


Possible 1.3 AXIS doc bug?

2006-01-21 Thread [EMAIL PROTECTED]
I have downloaded and am trying to install AXIS 1.3; it seems that a 
lot/most of the documentation relates to axis 1.2, and specifically, the 
names of the jar files in the docmentation don't match those in the 
install.html.or the user-guide.html


After patching the jar file names in the classpath,  I tried to run the 
samples\userguide\example1. The code loads, but the expected echo 
service at http://nagoya.apache.org:5049/axis/services/echo;; is either 
not running or is not accessible.


Is this a bug, or am I confused.

Thanks

--
Martin Griss, PhD

Associate Dean for Education
Carnegie Mellon West



axis 1.2 or axis 1.3 to work with saaj????

2006-01-19 Thread [EMAIL PROTECTED]
Why does the documentation in the web of project is only available for 
the version 1.2 of axis??


It's because doesn't exist many diferences betwen 1.2 and 1.3 versions??

I am doing a project with axis and it is very important for my use saaj 
to work with attachment . Does Axis (1.2 version) have a good support 
for saaj?? or from this is better to use axis 1.3. I am using eclipse 
with web tool plataform 1.0 and it use axis 1.2.1


Eclipse is a good option for me??

it is possible to add axis 1.3 to wtp? How do it?

Thanks, very much and sorry for my bad english.



Deserialization problem for static stub client with custom array

2005-11-30 Thread [EMAIL PROTECTED]
hy,
i have this service:

public Result MyService() {
Result res = new Result();
res.setNome(simone);
res.setCognome(baffi);
res.setEta(new BigDecimal(35));
InnerResult inner1 = new InnerResult();
inner1.setProfessione(impiegato);
inner1.setAnniServizio(new BigDecimal(8));
InnerResult inner2 = new InnerResult();
inner2.setProfessione(quadro);
inner2.setAnniServizio(new BigDecimal(5));
InnerResult[] profs = new InnerResult[2];
profs[0] = inner1;
profs[1] = inner2;
res.setProfessioni(profs);
return res;
}

the class Result is:


public class Result implements Serializable{

String nome = null;
String cognome = null;
BigDecimal eta = null;
InnerResult[] professioni = null;

/**
 * @return
 */
public String getCognome() {
return cognome;
}

/**
 * @return
 */
public BigDecimal getEta() {
return eta;
}

/**
 * @return
 */
public String getNome() {
return nome;
}

/**
 * @param string
 */
public void setCognome(String string) {
cognome = string;
}

/**
 * @param decimal
 */
public void setEta(BigDecimal decimal) {
eta = decimal;
}

/**
 * @param string
 */
public void setNome(String string) {
nome = string;
}

/**
 * @return
 */
public InnerResult[] getProfessioni() {
return professioni;
}

/**
 * @param results
 */
public void setProfessioni(InnerResult[] results) {
professioni = results;
}

}

and the InnerClass is:

public class InnerResult implements Serializable{

public String professione = null;
public BigDecimal anniServizio = null;

/**
 * @return
 */
public BigDecimal getAnniServizio() {
return anniServizio;
}

/**
 * @return
 */
public String getProfessione() {
return professione;
}

/**
 * @param decimal
 */
public void setAnniServizio(BigDecimal decimal) {
anniServizio = decimal;
}

/**
 * @param string
 */
public void setProfessione(String string) {
professione = string;
}

}


I deployed this service in Axis 1.3 with this wsdd file:


deployment xmlns=http://xml.apache.org/axis/wsdd/; 
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java; 
xmlns:source=http://test.webservices.iss.it; 
service name=Service provider=java:RPC style=wrapped 
use=literal
parameter name=className 
value=it.iss.webservices.test.Service/
parameter name=allowedMethods value=MyService/

namespacehttp://test.webservices.iss.it/namespace
operation name=MyService qname=source:MyService 
returnQName=Result returnType=source:Result /

beanMapping qname=source:Result 
classname=it.iss.webservices.test.Result 
languageSpecificType=java:it.iss.webservices.test.Result /
beanMapping qname=source:InnerResult 
classname=it.iss.webservices.test.InnerResult 
languageSpecificType=java:it.iss.webservices.test.InnerResult /

arrayMapping qname=source:ArrayOfInnerResult 
languageSpecificType=java:it.iss.webservices.test.InnerResult[]
innerType=source:InnerResult 
encodingStyle=http://schemas.xmlsoap.org/soap/encoding//
/service
/deployment

If I use the DII client like this:

public class TestClient {

public static void main(String[] args) {
try {
//
Service service = new Service();

Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new 
java.net.URL(http://localhost:8080/axis/services/Service;));
QName qnser = new 
QName(http://test.webservices.iss.it;, MyService);
call.setOperationName(qnser);
QName result = new 
QName(http://xml.apache.org/xml-soap;, Result);
call.registerTypeMapping(Result.class, result, new 
BeanSerializerFactory(Result.class, result), new 
BeanDeserializerFactory(Result.class, result));
QName innerresult = new 
QName(http://xml.apache.org/xml-soap;, InnerResult);
call.registerTypeMapping(InnerResult.class, 
innerresult, new 

Axis Error No deserializer for ...

2005-04-18 Thread [EMAIL PROTECTED]
Hi All,

I am using AXIS 1.2 RC2 both on server side and client side. I have my
usual typemapping declarations  in server-config.wsdd for a java bean
com.ws.DummyBean. I am also using custom (de)serializers and WebSphere
5.1.

No matter how I tweak my server-config.wsdd I am always getting below
error on server side when I run my  AXIS Client that uses stub based
approach:

org.apache.axis.encoding.DeserializationContext getDeserializerForClass
SEVERE: No deserializer for com.ws.DummyBean

Even if I comment all the typemapping entries in my server-config.wsdd
I still get above errors. One point to note here is that ... if I give
a seperate classloader for my WEB Module representing axis and a
seperate classloader for my EAR Module consisting of this WEB Module
then I am getting this error however if I give a same classloader for
both my WEB Module representing axis and my EAR Module then I am not
getting this error. Actually the DummyBean is there in a utility
project in the EAR and the WEB Module has manifest entry for this
utility project. I am using WebSphere 5.1 for all this. Please suggest
...


Thanks  Regards,
Kumar.


Axis Error No deserializer for

2005-04-17 Thread [EMAIL PROTECTED]
Hi All,

I am using AXIS 1.2 RC2 both on server side and client side. I have my
usual typemapping declarations  in server-config.wsdd for a java bean
com.ws.DummyBean. I am also using custom (de)serializers and WebSphere
5.1.

No matter how I tweak my server-config.wsdd I am always getting below
error on server side when I run my  AXIS Client that uses stub based
approach:

org.apache.axis.encoding.DeserializationContext getDeserializerForClass
SEVERE: No deserializer for com.ws.DummyBean


Even if I comment all the typemapping entries in my server-config.wsdd
I still get above errors. Please suggest ...



Thanks  Regards,
Kumar.


Re: General Question about having custom Serializer/Deserializer

2005-04-14 Thread [EMAIL PROTECTED]
Dino  Anne,

Thank you for the response. That clarifies lot of questions.

- Kumar.