Re: [axis2 - v1.0] [please help!] dual blocking client

2006-06-22 Thread Ali Sadik Kumlali
Hi Diego,

In insertMappingAnnotations() you set the action two times and the latter one 
seems like a copy-paste-and-forget issue:

   ...
 _operationClient.getOptions().setAction("insertMappingAnnotations");
   ...
 _operationClient.getOptions().setAction("urn:echo");

Might that be the problem?

Regards,

Ali Sadik Kumlali

- Original Message 
From: Diego <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Friday, June 23, 2006 4:29:49 AM
Subject: [axis2 - v1.0] [please help!] dual blocking client

Hi Everybody,

I really need to get this code working.  I've posted 5 times regarding 
this subject and had no reply at all.  I would like to know if someone 
knows how I could modify the code generated by the wsdl2java in order to 
have a blocking dual client behaviour.

The code and the exception that I get follow.

I'm a bit frustrated about that!

Thanks very much about for any help!

Diego


=
Exception
=

Exception in thread "main" java.lang.NullPointerException
 at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:260)
 at 
org.astrodas.ws.peer.AstrodasPeerStub.insertMappingAnnotations(AstrodasPeerStub.java:128)
 at 
org.astrodas.ws.peer.AstrodasPeerProxy.insertMappingAnnotations(AstrodasPeerProxy.java:36)
 at org.astrodas.test.Populate.populateLocal(Populate.java:239)
 at org.astrodas.test.Populate.main(Populate.java:350)

=
  Code
=

public InsertMappingAnnotationsResponseDocument 
insertMappingAnnotations(InsertMappingAnnotationsDocument requestDoc)
 throws RemoteException {
   try {
 OperationClient _operationClient = 
_serviceClient.createClient(_operations[0].getName());
 _operationClient.getOptions().setAction("insertMappingAnnotations");
 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
 // Dual client
 
_operationClient.getOptions().setTransportInProtocol(Constants.TRANSPORT_HTTP);
 _operationClient.getOptions().setUseSeparateListener(true);
 _operationClient.getOptions().setAction("urn:echo");
 _serviceClient.engageModule(new 
javax.xml.namespace.QName(Constants.MODULE_ADDRESSING));
 // create SOAP envelope with that payload
 SOAPEnvelope env = null;
 //Style is Doc.
 env = 
toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
  requestDoc,
  optimizeContent(new 
QName("","insertMappingAnnotations")));
 // create message context with that soap envelope
 MessageContext _messageContext = new MessageContext();
 _messageContext.setEnvelope(env);
 // add the message contxt to the operation client
 _operationClient.addMessageContext(_messageContext);
 //execute the operation client
 _operationClient.execute(true);
 MessageContext _returnMessageContext = 
_operationClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
 SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
 Object object = fromOM(getElement(_returnEnv, "document"),
InsertMappingAnnotationsResponseDocument.class,
getEnvelopeNamespaces(_returnEnv));
 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
 return (InsertMappingAnnotationsResponseDocument) object;
   } catch (AxisFault f) {...}

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





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



Re: [Axis2] Missing jar file?

2006-06-22 Thread Ajith Ranabahu

Hi,
What is the Axis2 version we are talking about here ? BTW
OMPolicyReader is in the Neethi.**.jar AFAIR.

Ajith

On 6/22/06, Ron Turner <[EMAIL PROTECTED]> wrote:

Thanks, Kinichiro.  In axiom-api-1.0.jar I can see

org.apache.axiom.om.OMContainer

but the version of OMPolicyReader I have is looking for

org.apache.ws.commons.om.OMContainer

when it's instantiated.  Just for curiosity's sake, where in your Axis2 
distribution is OMPolicyReader located?

Best regards,

Ron

- Original Message -
From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
Date: Thursday, June 22, 2006 9:02 am
Subject: Re: [Axis2] Missing jar file?

> Hi,
> It's axiom-api-1.0.jar.
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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





--
Ajith Ranabahu

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



RE: [AXIS2] WS-Addressing HTTP-SMTP problem!

2006-06-22 Thread Dharmendra Dubey
Hi Deepal

Have you made any changes in the WS-Addressing module.
Can we have example for the same.

Thanks
Dharmendra

-Original Message-
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 21, 2006 9:45 PM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] WS-Addressing HTTP-SMTP problem!


Hi Dubey;

There was a problem in Axis2 and we have fixed it now , any possibility
of using Axis2 nightly builds  ?

Dharmendra Dubey wrote:

>Hi,
>
>I am trying to build a request-response soap service that will take a
>request on HTTP but would respond on SMTP (Using WS-Addressing). I am using
>the mail server provided by axis. Please find attached the client side
>program which invokes a "echo" service which simple returns the incoming
>message as the response.
>But when i execute the client i get the following error. It seems on return
>it is still using the HTTP transport and as the epr now is "mailto" so its
>giving the error.
>
>Can you please help me out or else please send me an example for the same
>scenario.
>
>java.lang.IllegalStateException: unsupported protocol: 'mailto'
>at
>org.apache.commons.httpclient.protocol.Protocol.lazyRegisterProtocol(Protoc
o
>l.java:148)
>at org.apache.commons.httpclient.protocol.Protocol.getProtocol
>(Protocol.java:116)
>at org.apache.commons.httpclient.HttpHost.(HttpHost.java:106)
>at
>org.apache.commons.httpclient.HttpMethodBase.setURI(HttpMethodBase.java:276
)
>at org.apache.commons.httpclient.HttpMethodBase
>.(HttpMethodBase.java:217)
>at
>org.apache.commons.httpclient.methods.ExpectContinueMethod.(ExpectCon
t
>inueMethod.java:92)
>at org.apache.commons.httpclient.methods.EntityEnclosingMethod.(
>EntityEnclosingMethod.java:118)
>at
>org.apache.commons.httpclient.methods.PostMethod.(PostMethod.java:105
)
>at
>org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.
j
>ava:37)
>at
>org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWith
C
>ommons(CommonsHTTPTransportSender.java:299)
>at
>org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHT
T
>PTransportSender.java :207)
>at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)
>at
>org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abstrac
t
>InOutSyncMessageReceiver.java:43)
>at org.apache.axis2.engine.AxisEngine.receive (AxisEngine.java:454)
>at
>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(H
T
>TPTransportUtils.java:284)
>at
>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
n
>FilterChain.java :252)
>at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
h
>ain.java:173)
>at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
a
>va:213)
>at org.apache.catalina.core.StandardContextValve.invoke
>(StandardContextValve.java:178)
>at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
6
>)
>at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10
5
>)
>at org.apache.catalina.core.StandardEngineValve.invoke
>(StandardEngineValve.java:107)
>at
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>at
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>at
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
e
>ction (Http11Protocol.java:744)
>at
>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.ja
v
>a:527)
>at
>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerW
o
>rkerThread.java:80)
>at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
v
>a:684)
>at java.lang.Thread.run(Unknown Source)
>
>
>Thanking in anticipation,
>Dharmendra
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

--
Thanks,
Deepal

~Future is Open~




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



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



Re: [Axis2] accessing files within .aar

2006-06-22 Thread Deepal Jayasinghe
Hi Andrew;

http://www.wso2.net/kb/98

Andrew B wrote:

> Hi,
>
> I need to access files (property files and such) within the .aar, in a
> deployed Axis2 service. (in a subdirectory of the .aar file root).
>
> I have tried this so far:
>
> String path = incomingContext.getConfigurationContext().getRealPath(
> ... ).getAbsolutePath();
>
> but it gives an erronous path back. Any ideas on how to do this? And
> then once I've got the path, can I just read a file in a packaged
> deployment?
>
> Thanks,
>
> Andrew
>
> 
> How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call
> rates.
> 


-- 
Thanks,
Deepal

~Future is Open~ 



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



How can I pass attachment file name

2006-06-22 Thread Qinjian Jian
All,

I am using Axis1.4. When doing attachment, I found it seems no elegant
way to pass the file name attached. Below is my source code fragment:

String sourceDir = "C:\\temp\\example.doc";
//Get the file from the filesystem
FileDataSource fileDS = new FileDataSource(sourceDir);
DataHandler handler = new DataHandler(fileDS);

//Create the attachment as a MTOM attachment
AttachmentPart attachment = message.createAttachmentPart();
String fileName = getFileName(sourceDir);
attachment.addMimeHeader(DocumentDescriptor.FILE_NAME,
fileName);
 
message.getAttachmentsImpl().setSendType(
AttachmentsImpl.SEND_TYPE_MTOM);
attachment.setDataHandler(handler);
message.addAttachmentPart(attachment);

 

As you saw above, I have to add one more MimeHead to pass the file name.
It works but I think there must be better way to do this. Any idea?

Thanks
 
Tim Jian
Momentum systems, Inc.




NOTICE: This message (including any attachments) from Momentum Systems, Inc. 
contains information that is PRIVILEGED and CONFIDENTIAL.  If you are not an 
intended recipient, you are hereby notified that any dissemination of this 
message is strictly prohibited.  If you have received this message in error, 
please do not read, copy or forward this message.  Please permanently delete 
all copies and any attachments and notify the sender immediately by reply email 
or by calling our Office at 703.740.9300.

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



[axis2 - v1.0] [please help!] dual blocking client

2006-06-22 Thread Diego

Hi Everybody,

I really need to get this code working.  I've posted 5 times regarding 
this subject and had no reply at all.  I would like to know if someone 
knows how I could modify the code generated by the wsdl2java in order to 
have a blocking dual client behaviour.


The code and the exception that I get follow.

I'm a bit frustrated about that!

Thanks very much about for any help!

Diego


=
   Exception
=

Exception in thread "main" java.lang.NullPointerException
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:260)
at 
org.astrodas.ws.peer.AstrodasPeerStub.insertMappingAnnotations(AstrodasPeerStub.java:128)
at 
org.astrodas.ws.peer.AstrodasPeerProxy.insertMappingAnnotations(AstrodasPeerProxy.java:36)

at org.astrodas.test.Populate.populateLocal(Populate.java:239)
at org.astrodas.test.Populate.main(Populate.java:350)

=
 Code
=

public InsertMappingAnnotationsResponseDocument 
insertMappingAnnotations(InsertMappingAnnotationsDocument requestDoc)

throws RemoteException {
  try {
OperationClient _operationClient = 
_serviceClient.createClient(_operations[0].getName());

_operationClient.getOptions().setAction("insertMappingAnnotations");
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
// Dual client

_operationClient.getOptions().setTransportInProtocol(Constants.TRANSPORT_HTTP);
_operationClient.getOptions().setUseSeparateListener(true);
_operationClient.getOptions().setAction("urn:echo");
_serviceClient.engageModule(new 
javax.xml.namespace.QName(Constants.MODULE_ADDRESSING));

// create SOAP envelope with that payload
SOAPEnvelope env = null;
//Style is Doc.
env = 
toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),

 requestDoc,
 optimizeContent(new 
QName("","insertMappingAnnotations")));

// create message context with that soap envelope
MessageContext _messageContext = new MessageContext();
_messageContext.setEnvelope(env);
// add the message contxt to the operation client
_operationClient.addMessageContext(_messageContext);
//execute the operation client
_operationClient.execute(true);
MessageContext _returnMessageContext = 
_operationClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);

SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
Object object = fromOM(getElement(_returnEnv, "document"),
   InsertMappingAnnotationsResponseDocument.class,
   getEnvelopeNamespaces(_returnEnv));
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
return (InsertMappingAnnotationsResponseDocument) object;
  } catch (AxisFault f) {...}

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



Re: Could I get the client IP address in service or Handler class ?

2006-06-22 Thread 蘇 軼(CEC)
hi XingShan and Davanum,

Thank you very much for your help !

Now I can get the client IP, thanks again !

Regards,
- sukie

- Original Message - 
From: "蘇 軼(CEC)" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, June 22, 2006 11:24 AM
Subject: Could I get the client IP address in service or Handler class ?


> hi all,
>
> Could I get the client IP address in service class? or Handler's invoke()
> method ?
>
> Any help or web resources would be greatly appreciated !
>
> Regards,
> - sukie
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



[Axis2] Why does generated code have an interface referring to an inner class of its own subclass

2006-06-22 Thread Derek
Hi, folks:

While perusing the code generated by WSDL2Java (using the XMLBeans
constructor), I noticed that the skeleton interface for one of my services
was as follows. It seems very strange to me that the method throws an
exception of a type which is defined within an inner class of its subclass.
Is there some reason for this? It seems contrary to one of the basic
principles of Object-Oriented Design, namely that a subclass should know
about and be able to reference its superclass(es), but not vice versa. (A
lot of undesirable results follow from breaking this rule, such as the fact
that if a superclass knows about specific subclasses, it becomes impossible
for someone to create new subclasses that work equivalently, and also
impossible to test subclasses independently, or to test the base class
independently). In fact, there seems little benefit to having an
"interface/implementation class" split if the interface is going to
reference the implementation class anyway.

I can't think of any reason why this would be desirable... if that specific
exception type is really part of the contract of the service, it should be
declared as an inner class of the interface, I think, not of the
implementation class. (The implementation class could then throw a subclass
of the class declared in the interface, if necessary).

Also, why is the exception an inner class at all? Why not just a standalone
class? That would remove this issue completely.

I'm wondering if I should file a JIRA bug for this issue.

Thanks for any information.

Derek


/**
 * FEUServiceSkeletonInterface.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: SNAPSHOT Jun 21, 2006 (10:23:14
GMT+00:00)
 */
package crc.feuimport.wsdl2java;
/**
 *  FEUServiceSkeletonInterface java skeleton interface for the
axisService
 */
public interface FEUServiceSkeletonInterface {
 
 
/**
 * Auto generated method signature
 
  * @param param0
 
 */
public  com.crc_corp.www.wsdl._2004_10_01.cars.ReturnDocument
acceptFEURecap
 
(com.crc_corp.www.schemas._2006_06_21.feuimport.RecapDocument param0 )
 
   throws
crc.feuimport.wsdl2java.FEUServiceSkeleton.FailureException;
 
}



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



NullPointerException in MessageContext.setEnvelope(MessageContext.java:681)

2006-06-22 Thread ip vp

Hi all,

I am trying  to call a comercial partner webservice thats return a string 
and do not need input parameters.


Based on User guide ( Client for echoVoid Operation)

I am doing the followig:

- generating java code  based on wsdl, using ecplise plugin.

- did a very simple client whit the following code:


GeneratedStubClass myStub = new GeneratedStubClass();

System.out.println(myStub.MethodWithOperationName());



I am getting the following error:

java.lang.NullPointerException
	at 
org.apache.axis2.context.MessageContext.setEnvelope(MessageContext.java:681)




This error occurs with all variants of WSDL2JAVA configuration: with and 
without databinds, using get, using post, using soap...



What am  I doing wrong ?


thanks in advance

IP VP

_
Você sabe em qual Copa o Pelé vestiu a camisa 10 pela 1a. vez? 
http://copa.br.msn.com/extra/curiosidades/1958/



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



Axis2 with https WS

2006-06-22 Thread Vineet_Vashisht

Hello all,
        I
get a strange error while trying to use axis2.0 (using JDK1.4.2) to access
a webservice that has an 'https' url. I have set the keystore etc. related
system properties and get this when I run the client. I did see just one
mail on this error and it turns out that the user had actually changed
the Axis2.0 code to make it work.

Do I need to download another version
of the software? Is there a patch out there for this?

thanks
Vineet

Caused by: org.apache.axis2.AxisFault:
problem accessing the parser. Parser already accessed!; nested exception
is: 
       
javax.xml.stream.XMLStreamException: problem accessing the parser.
Parser already accessed!
       
at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.writeRequest(SOAPOverHTTPSender.java:194)
       
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
       
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
       
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
       
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
       
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
       
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
       
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
       
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:530)
       
at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:92)
       
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:299)
       
... 6 more
Caused by: javax.xml.stream.XMLStreamException:
problem accessing the parser. Parser already accessed!
       
at org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:858)
       
at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:71)
       
at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:56)
       
at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:315)
       
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:790)
       
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:171)
       
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:809)
       
at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:381)
       
at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.handleOMOutput(SOAPOverHTTPSender.java:145)
       
at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.writeRequest(SOAPOverHTTPSender.java:180)
       
... 16 more


[Axis2] accessing files within .aar

2006-06-22 Thread Andrew B
Hi,I need to access files (property files and such) within the .aar, in a deployed Axis2 service. (in a subdirectory of the .aar file root).I have tried this so far:String path = incomingContext.getConfigurationContext().getRealPath( ... ).getAbsolutePath();but it gives an erronous path back. Any ideas on how to do this? And then once I've got the path, can I just read a file in a packaged deployment?Thanks,Andrew 
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

RE: passing objects of subtypes

2006-06-22 Thread Martin Gainty

Joshua-

AXIS has supported all WSDL Datatypes simple or complex from the projects's 
inception


note message references XSD schema datatype TradePriceRequest
TradePriceRequest contains ComplexType element
element TickerSymbol which contains 1 element of type xsd:string

But you can construct ComplexTypes of ComplexTypes..

The example WSDL -

http://example.com/stockquote.wsdl";
 xmlns:tns="http://example.com/stockquote.wsdl";
 xmlns:xsd1="http://example.com/stockquote.xsd";
 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
 xmlns="http://schemas.xmlsoap.org/wsdl/";>

   
  http://example.com/stockquote.xsd";
 xmlns="http://www.w3.org/2000/10/XMLSchema";>
  
 
 
 
 
 
  
  
 
 
 
 
 
  
  
   

   
   
   


more infornation available at
http://www.w3.org/TR/wsdl

Nota Bene:
xsd:anyType type to represent a field/parameter which can have any type

Does this help?
Martin Gainty

__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.

(mobile) 001-603-438-5053






From: "James Clinton" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: ,<[EMAIL PROTECTED]>
Subject: RE: passing objects of subtypes
Date: Thu, 22 Jun 2006 19:30:37 +0100
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by 
bay0-mc6-f5.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Thu, 22 
Jun 2006 11:30:25 -0700

Received: (qmail 2016 invoked by uid 500); 22 Jun 2006 18:30:14 -
Received: (qmail 2001 invoked by uid 99); 22 Jun 2006 18:30:14 -
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)by 
apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 11:30:14 -0700

Received: pass (asf.osuosl.org: local policy)
Received: from [62.189.228.13] (HELO mail2.ins-sure.com) (62.189.228.13)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 11:30:13 -0700
Received: from isis.ins-sure.com (unverified) by mail2.ins-sure.com 
(Content Technologies SMTPRS 4.2.5) with ESMTP id 
<[EMAIL PROTECTED]>; Thu, 22 Jun 2006 19:28:34 
+0100
Received: from hermes.ins-sure.com ([151.115.180.30]) by isis.ins-sure.com 
with Microsoft SMTPSVC(5.0.2195.3779); Thu, 22 Jun 2006 19:29:50 +0100

X-Message-Info: LsUYwwHHNt1o1lL4xuVGMocMb5DANSz+aFvDUg9FR18=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: 
list-unsubscribe: 
List-Post: 
List-Id: 
Delivered-To: mailing list axis-user@ws.apache.org
X-ASF-Spam-Status: No, hits=0.0 
required=10.0tests=HTML_MESSAGE,UPPERCASE_25_50

X-Spam-Check-By: apache.org
content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: passing objects of subtypes
Thread-Index: AcaWBRcgyGqzL97CQmO6y9h+2w1qmAAJM8Ng
X-OriginalArrivalTime: 22 Jun 2006 18:29:50.0811 (UTC) 
FILETIME=[D92DA2B0:01C69629]

X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]

It is possible in Axis2 (not tried it myself)

google 'axis2 inheritance'

-Original Message-
From: Joshua Fox [mailto:[EMAIL PROTECTED]
Sent: 22 June 2006 15:05
To: axis-user@ws.apache.org
Subject: passing objects of subtypes



My WSDL has type information, but to handle subtype objects
(document-literal), I need runtime type information in the serialization
of objects. .NET has the possibility of adding this; is it possible in
Axis?

For example, I want to return an object of a subtype of the
declared return type.

E.g., operation Vehicle getVehicle(String license_plate) may
return an object of subclassTruck, which has additional properties. The
client code would cast Vehicle to Truck.

Likewise, I want to pass an object of a subtype as a parameter.


E,g., when the client calls operation void
registerVehicle(Vehicle vehicle), vehicle may actually be a Truck, and
the server should be able to, if necessary, cast the argument to Truck.


Thus, the XML serialization must have the runtime class as one
of its elements, presumably in the root element.


java2wsdl generates WSDL that does not have such type
information.

I am aware of the all switch, but I don't think this gives the
runtime information I need.

How can Axis handle this?

Thanks,

Joshua






-

Re: [Axis2] sending large file problem

2006-06-22 Thread Davanum Srinivas

you need to bump up the timeout. For which you need to use latest
nightly builds.

thanks,
dims

On 6/22/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

Dear All Axis2 users

I am working on Axis2 1.0 version. I am now trying to send large
attachment file the size is about 10 MB. But it causes the error as follow.
Everything work file with the file in smaller size...approximate 5MB. I
don't think that it is something wrong with the code. But if anyone know
what is the problem please let me know. I am also enable the MTOM both on
client and server.

   Many thanks, looking forward to hear

Sathita

Exception in thread "main" org.apache.axiom.om.OMException: Problem with the
OutputStream.
at
org.apache.axiom.om.impl.MIMEOutputUtils.complete(MIMEOutputUtils.java:62)
at
org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:127)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:382)
at
org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.handleOMOutput(SOAPOverHTTPSender.java:145)
at
org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.writeRequest(SOAPOverHTTPSender.java:180)
at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:530)
at
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:92)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:299)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:207)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)
at fileT.fileC.sendFile(fileC.java:102)
at fileT.fileC.main(fileC.java:50)
Caused by: java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at 
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:110)
at
org.apache.commons.httpclient.WireLogOutputStream.write(WireLogOutputStream.java:67)
at
org.apache.commons.httpclient.ChunkedOutputStream.flushCacheWithAppend(ChunkedOutputStream.java:121)
at
org.apache.commons.httpclient.ChunkedOutputStream.write(ChunkedOutputStream.java:178)
at javax.activation.DataHandler.writeTo(DataHandler.java:85)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:222)
at
org.apache.axiom.om.impl.MIMEOutputUtils.writeBodyPart(MIMEOutputUtils.java:112)
at
org.apache.axiom.om.impl.MIMEOutputUtils.complete(MIMEOutputUtils.java:57)
... 22 more



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





--
Davanum Srinivas : http://people.apache.org/~dims/

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



Re: [Axis2][1.0] Status of JMS URL syntax proposal

2006-06-22 Thread Davanum Srinivas

Ali,

Yep. It was posted from Axis1. Only way to know is try some stuff out
:) Unfortunately the guy who did the port (me!) does not know much
about JMS :)

thanks,
-- dims

On 6/22/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:

Hi all,

Does anyone know whether JMS URL syntax 
proposal(http://marc.theaimsgroup.com/?l=axis-dev&m=103617964921940&q=p3) is 
well supported by Axis2? If yes, is that proposal up-to-date and does Axis2 supports 
all the properties listed in?

Thanks.

Ali Sadik Kumlali

P.S: I do know that the proposal is for Axis not Axis2. But AFAIK, JMS 
transport of Axis2 was ported from Axis.





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





--
Davanum Srinivas : http://people.apache.org/~dims/

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



Re: Java.net.SocketException: Connection Reset

2006-06-22 Thread Davanum Srinivas

please try tweaking the jvm parameters for jrockit. Try the examples
in the following sites [1]


[1] 
http://www.google.com/search?hl=en&lr=&safe=off&q=specjappserver+jrockit+site%3Aspec.org&btnG=Search


On 6/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:




Hi All,
I'm not sure if this question has been posted before. There is an
"java.net.SocketException: Connection Reset" when tried to call a web
service.

I googled for the solution and found that disabling the -server option on
the JVM would resolve the issue. In my project environment, we use Jrockit
JRE for Weblogic 8.1 SP4. Changing the JVM to Sun's JDK1.4 solved the
problem, but there are increasing concerns from the server admin people to
use Jrockit JVM and they are unrelenting to use the Sun's JDK.

I have used Axis 1.3. Should I upgrade my Axis version? If anyone knows the
exact reason for this kind of behavior , pl. do let me know.

Thanks in advance,
Ravi



--
Davanum Srinivas : http://people.apache.org/~dims/

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



ServiceContext javadoc concern

2006-06-22 Thread D P
Hello all:
I'm sure this has been asked before, but i searched the archives on among other terms"ServiceContext" and "clearly defined" but could n't find anything. The javadocs for the ServiceContext class in Axis2 
1.0 include a comment: "Well this is never clearly defined, what it does or the lifecycle. So do NOT use this as it might not live up to your expectation."  Should we really not be using this class?
 
TIA.
 
DP


RE: passing objects of subtypes

2006-06-22 Thread James Clinton
Title: Message



It is 
possible in Axis2 (not tried it myself)
 
google 'axis2 inheritance'

  
  -Original Message-From: Joshua Fox 
  [mailto:[EMAIL PROTECTED] Sent: 22 June 2006 
  15:05To: axis-user@ws.apache.orgSubject: passing objects 
  of subtypes
  My WSDL has type
  information, but to handle subtype objects (document-literal), I need runtime 
  type information in the serialization of objects. .NET has the possibility of 
  adding this; is it possible in Axis? 
  For example, I want to 
  return an object of a subtype of the declared return 
  type.E.g., operation Vehicle getVehicle(String 
  license_plate) may return an object of subclassTruck, which has 
  additional properties. The client code would cast Vehicle to Truck. 
  Likewise, I want to pass 
  an object of a subtype as a parameter.
  E,g., when the client 
  calls operation void 
  registerVehicle(Vehicle vehicle), vehicle may actually be a Truck, and the server 
  should be able to, if necessary, cast the argument to 
  Truck.
  Thus, the XML 
  serialization must have the runtime class as one of its elements, presumably 
  in the root element.
  java2wsdl generates WSDL that does not
  have such type information.I am aware of the all switch, but 
  I don't think this gives the runtime information I need. How can Axis 
  handle this?Thanks,Joshua
  

-
THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL

AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE. 
IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE ON NOTICE OF ITS STATUS. 
PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS EMAIL AND ANY ATTACHMENT FROM YOUR SYSTEM. 
YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY PURPOSE, NOR DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON: 

TO DO SO COULD BE A BREACH OF CONFIDENCE

EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED AMENDMENT, 
AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR AMENDMENT OR THE CONSEQUENCES THEREOF. 

WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR VIRUSES OR UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES. 
WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS IN ANY EMAIL OR ATTACHMENT.

---
[EMAIL PROTECTED]




Re: Could I get the client IP address in service or Handler class ?

2006-06-22 Thread Davanum Srinivas

http://wiki.apache.org/ws/FrontPage/Axis/ClientIP

On 6/22/06, Peter Feng <[EMAIL PROTECTED]> wrote:

Perhaps you can check the Soap Envelope headers or Set
Soap Headers with this in your client code.

On the client side to set them if they don't exist in
your soap envelope already...
with automatically generated stubs:
ServiceWS port = service.getServiceWS();
org.apache.axis.client.Stub s = (Stub)port;

s.setHeader("http://my.name.space/headers","clientIP","127.0.0.1";);

on the server/handler side:
public void invoke(MessageContext msgContext) throws
AxisFault {
try {
System.out.println("Starting Server
verificationn");

Message inMsg =
msgContext.getRequestMessage();
Message outMsg =
msgContext.getResponseMessage();

// verify signed message
SOAPHeader 
sh=inMsg.getSOAPHeader();
SOAPHeaderElement she;
System.out.println("get inMsg soap 
header");
Iterator
it=sh.examineAllHeaderElements();//"http://my.name.space/headers";);
while(it.hasNext()){

she=(SOAPHeaderElement)it.next();

System.out.println("examining soap header name
"+she.getNodeName()+" and val:"+she.getValue());
}

Hope this helps.

--- 蘇 軼(CEC) <[EMAIL PROTECTED]> wrote:

> hi all,
>
> Could I get the client IP address in service class?
> or Handler's invoke()
> method ?
>
> Any help or web resources would be greatly
> appreciated !
>
> Regards,
> - sukie
>
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>


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

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





--
Davanum Srinivas : http://people.apache.org/~dims/

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



RE: Could I get the client IP address in service or Handler class ?

2006-06-22 Thread Xingshan He
Try this:

MessageContext messageContext =  MessageContext.getCurrentContext();
String ipAddress =
MessageContext.getStrProp(org.apache.axis.Constants.MC_REMOTE_ADDR);  


-Original Message-
From: Peter Feng [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 22, 2006 10:58 AM
To: axis-user@ws.apache.org
Subject: Re: Could I get the client IP address in service or Handler class ?

Perhaps you can check the Soap Envelope headers or Set
Soap Headers with this in your client code.

On the client side to set them if they don't exist in
your soap envelope already...
with automatically generated stubs:
ServiceWS port = service.getServiceWS();
org.apache.axis.client.Stub s = (Stub)port;

s.setHeader("http://my.name.space/headers","clientIP","127.0.0.1";);

on the server/handler side:
public void invoke(MessageContext msgContext) throws
AxisFault {
try {
System.out.println("Starting Server
verificationn");

Message inMsg =
msgContext.getRequestMessage();
Message outMsg =
msgContext.getResponseMessage();

// verify signed message
SOAPHeader
sh=inMsg.getSOAPHeader();
SOAPHeaderElement she;
System.out.println("get
inMsg soap header");
Iterator
it=sh.examineAllHeaderElements();//"http://my.name.space/headers";);
while(it.hasNext()){

she=(SOAPHeaderElement)it.next();

System.out.println("examining soap header name
"+she.getNodeName()+" and val:"+she.getValue());
}

Hope this helps.

--- � 軼(CEC) <[EMAIL PROTECTED]> wrote:

> hi all,
> 
> Could I get the client IP address in service class?
> or Handler's invoke()
> method ?
> 
> Any help or web resources would be greatly
> appreciated !
> 
> Regards,
> - sukie
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


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

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


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



Re: Could I get the client IP address in service or Handler class ?

2006-06-22 Thread Peter Feng
Perhaps you can check the Soap Envelope headers or Set
Soap Headers with this in your client code.

On the client side to set them if they don't exist in
your soap envelope already...
with automatically generated stubs:
ServiceWS port = service.getServiceWS();
org.apache.axis.client.Stub s = (Stub)port;

s.setHeader("http://my.name.space/headers","clientIP","127.0.0.1";);

on the server/handler side:
public void invoke(MessageContext msgContext) throws
AxisFault {
try {
System.out.println("Starting Server
verificationn");

Message inMsg =
msgContext.getRequestMessage();
Message outMsg =
msgContext.getResponseMessage();

// verify signed message
SOAPHeader 
sh=inMsg.getSOAPHeader();
SOAPHeaderElement she;
System.out.println("get inMsg 
soap header");
Iterator
it=sh.examineAllHeaderElements();//"http://my.name.space/headers";);
while(it.hasNext()){

she=(SOAPHeaderElement)it.next();

System.out.println("examining soap header name
"+she.getNodeName()+" and val:"+she.getValue());
}

Hope this helps.

--- 蘇 軼(CEC) <[EMAIL PROTECTED]> wrote:

> hi all,
> 
> Could I get the client IP address in service class?
> or Handler's invoke()
> method ?
> 
> Any help or web resources would be greatly
> appreciated !
> 
> Regards,
> - sukie
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


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

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



[Axis2] Handler problem

2006-06-22 Thread Michele Mazzucco
Hi all,

I have an handler that manipulates the message header (and eventually
redirects the request to another node). On the second node I have
another handler that updates the message context. The problem is that
while the target endpoint is correct, the message doesn't hit the target
service.

What follows is a soap message for the sample service 'MyService':


http://www.w3.org/2003/05/soap-envelope";
xmlns:wsa="http://www.w3.org/2005/08/addressing";>


http://10.8.149.156:18080/axis2/services/MyService


http://www.w3.org/2005/08/addressing/anonymous


urn:uuid:A841C48B859A4E4B0211509941895151


http://org.ncl.ac.uk/qosp/clients/codestore";>
QoSP Echo String






Any idea?

Thanks in advance,
Michele

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



Re: [Axis2] Missing jar file?

2006-06-22 Thread Ron Turner
Thanks, Kinichiro.  In axiom-api-1.0.jar I can see

org.apache.axiom.om.OMContainer

but the version of OMPolicyReader I have is looking for 

org.apache.ws.commons.om.OMContainer

when it's instantiated.  Just for curiosity's sake, where in your Axis2 
distribution is OMPolicyReader located?

Best regards,

Ron

- Original Message -
From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
Date: Thursday, June 22, 2006 9:02 am
Subject: Re: [Axis2] Missing jar file?

> Hi,
> It's axiom-api-1.0.jar.
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: [Axis2]getting username and password

2006-06-22 Thread Davanum Srinivas

AND See my URL for how to parse the info back into strings :)

-- dims

On 6/22/06, Keith Hatton <[EMAIL PROTECTED]> wrote:



This is Basic HTTP authentication, it's base 64 encoded - see for example
section 11.1 of
http://www.w3.org/Protocols/HTTP/1.0/draft-ietf-http-spec.html

HTH

Keith





-Original Message-
From: Andrew B [mailto:[EMAIL PROTECTED]
Sent: 22 June 2006 16:00
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: Re: [Axis2]getting username and password

Davanum,

I set the username and password on the SOAPBindingStub on the client side
(with Axis 1) like this:

clientStub.setUsername(  );

I thought this was HTTP Basic authentication. But, when I do the following,
per your suggestion:

HttpServletRequest request =
(HttpServletRequest)incomingContext.getProperty(Constants.HTTP_SERVLET_REQUEST);

String auth = (String)
request.getHeader(HTTPConstants.HEADER_AUTHORIZATION);

the string I get back is:

Basic V0FMTUFSVDpXQUwxMjNNQVJU

which does not contain the username and password. Either I am  doing
something wrong, or clientStub.setUsername() is not HTTP Basic
authentication.

Thanks,

Andrew


Davanum Srinivas <[EMAIL PROTECTED]> wrote:
Andrew,

Are u talking about HTTP Basic authentication? You can access the
HttpServletRequest as follows:

HttpServletRequest request = (HttpServletRequest)
msgContext.getProperty(Constants.HTTP_SERVLET_REQUEST)

Then use:
String auth = (String)
request.getHeader(HTTPConstants.HEADER_AUTHORIZATION)

to get the http header for authorization. You can then parse out the
user id and password as shown here [1]

-- dims

[1]
http://koders.com/java/fidDCB769581B5FB55A16B0B191DEB229F79B8CB9E2.aspx

On 6/21/06, Andrew B wrote:
> Hi,
>
> Does anyone know how to get the username and password that were set on the
> client stub, in the service implementation class? This is another thing
that
> was easy in Axis 1 but so far seems to be impossible in Axis 2. I need
them
> to do authentication.
>
> Thanks,
>
> Andrew B
>
>
> 
> Want to be your own boss? Learn how on Yahoo! Small Business.
>
>


--
Davanum Srinivas : http://people.apache.org/~dims/

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




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




--
Davanum Srinivas : http://people.apache.org/~dims/

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



Re: [axis2] Anyone know tricks on NoClassDefFoundError --> commons/logging/LogFactory ?

2006-06-22 Thread robert lazarski

I tried that at first with commons-logging 1.0.4 and it didn't work,
so I asked around. I tried the same thing: debug --> classpath --> add
external jars and put in commons-logging 1.1 and it worked. One
helluva problem. I'll try and open a jira soon - brazil is playing in
the world cup today and the whole contry is shutting down ;-) .

Cheers,
Robert

On 6/21/06, Jim Bender <[EMAIL PROTECTED]> wrote:

Robert,

I suppose that you have tried adding to the run configuration for the test?
You probably know all this and tried it already, but here goes.
Forgive me for being redundant and obvious.

On one TestNG test I have for the end-to-end building of the web
service and testing with Embedded Tomcat, I have had to put jars into
the classpath.
I bring up the run configuration for my test by doing the Debug As...
Debug thing,
and then going to the classpath tab (Eclipse 3.1).
I select User Entries and then click either "add jars" or "add
external jars" button.
After I do that and run, then that almost always solved the class loading issue.

Regards,

Jim


On 6/21/06, robert lazarski <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I've been googling all day and I'm stuck. I'm trying to run a junit
> test case in eclipse 3.1 calling an axis2 web service running in
> jboss, and axis2 depends on HttpClient. I get this stack trace:
>
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
>at 
org.apache.commons.httpclient.HttpClient.(HttpClient.java:65)
>at 
org.apache.axis2.transport.http.AbstractHTTPSender.getHttpClient(AbstractHTTPSender.java:608)
>at 
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:54)
>at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:298)
>at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
>at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:616)
>at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328)
>at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
>at 
br.com.atlantico.maragato.webservices.endpoint.MaragatoServiceStub.findElementoGerenciadoById(MaragatoServiceStub.java:313)
>at 
br.com.atlantico.maragato.webservices.WSElementoGerenciadoTest.testFindElementoGerenciadoHappyDay(WSElementoGerenciadoTest.java:62)
>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 junit.framework.TestCase.runTest(TestCase.java:154)
>at junit.framework.TestCase.runBare(TestCase.java:127)
>at junit.framework.TestResult$1.protect(TestResult.java:106)
>at junit.framework.TestResult.runProtected(TestResult.java:124)
>at junit.framework.TestResult.run(TestResult.java:109)
>at junit.framework.TestCase.run(TestCase.java:118)
>at junit.framework.TestSuite.runTest(TestSuite.java:208)
>at junit.framework.TestSuite.run(TestSuite.java:203)
>at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
>at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
>at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
>
> The commons-loggin.jar is configured in the normal eclipse way. I'm
> running commons-logging 1.04, but tried to upgrade to 1.1 with no
> luck. I tried
> putting the commons.logging jar under jdk1.5.0_03/jre/lib/ext - no
> luck. I tried this, still no luck:
>
>protected void setUp() throws Exception {
>
Thread.currentThread().setContextClassLoader(ClassLoader.getSystemClassLoader());
>}
>
> I'm out of ideas. Any help very much appreciated. I just need this
> junit test case to run in eclipse.
>
> Robert
> http://www.braziloutsource.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Jim

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




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



Re: [Axis2] Missing jar file?

2006-06-22 Thread Kinichiro Inoguchi
Hi,
It's axiom-api-1.0.jar.
But org.apache.axiom.om.OMContainer seems right.
package is slightly different.

Regrds,
kinichiro

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

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



Re: [Axis2] Missing jar file?

2006-06-22 Thread Kinichiro Inoguchi
Hi,
It's axiom-api-1.0.jar.

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

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



[Axis2] Missing jar file?

2006-06-22 Thread Ron Turner
Hi,

In what jar file would I find the class

org.apache.ws.commons.om.OMContainer ?

I'm attempting to embed Axis2 in a server and am finding that the 
initialization of the AxisServlet is failing at the time the OMPolicyReader is 
instantiated because OMContainer cannot be found.  Any help would be much 
appreciated.

Best regards,

Ron Turner


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



RE: [Axis2]getting username and password

2006-06-22 Thread Keith Hatton
Title: Message



This 
is Basic HTTP authentication, it's base 64 encoded - see for example 
section 11.1 of
http://www.w3.org/Protocols/HTTP/1.0/draft-ietf-http-spec.html
 
HTH
Keith
 
 

  
  -Original Message-From: Andrew B 
  [mailto:[EMAIL PROTECTED] Sent: 22 June 2006 
  16:00To: axis-user@ws.apache.org; 
  [EMAIL PROTECTED]Subject: Re: [Axis2]getting username and 
  passwordDavanum,I set the username and password 
  on the SOAPBindingStub on the client side (with Axis 1) like 
  this:clientStub.setUsername(  );I thought this was HTTP 
  Basic authentication. But, when I do the following, per your 
  suggestion:        HttpServletRequest 
  request = 
  (HttpServletRequest)incomingContext.getProperty(Constants.HTTP_SERVLET_REQUEST);    
          String auth = (String) 
  request.getHeader(HTTPConstants.HEADER_AUTHORIZATION);the string I get 
  back is:Basic V0FMTUFSVDpXQUwxMjNNQVJUwhich does not contain 
  the username and password. Either I am  doing something wrong, or 
  clientStub.setUsername() is not HTTP Basic 
  authentication.Thanks,AndrewDavanum Srinivas 
  <[EMAIL PROTECTED]> wrote:
  Andrew,Are 
u talking about HTTP Basic authentication? You can access 
theHttpServletRequest as follows:HttpServletRequest request = 
(HttpServletRequest)msgContext.getProperty(Constants.HTTP_SERVLET_REQUEST)Then 
use:String auth = (String) 
request.getHeader(HTTPConstants.HEADER_AUTHORIZATION)to get the http 
header for authorization. You can then parse out theuser id and password 
as shown here [1]-- dims[1] 
http://koders.com/java/fidDCB769581B5FB55A16B0B191DEB229F79B8CB9E2.aspxOn 
6/21/06, Andrew B <[EMAIL PROTECTED]>wrote:> 
Hi,>> Does anyone know how to get the username and password 
that were set on the> client stub, in the service implementation 
class? This is another thing that> was easy in Axis 1 but so far 
seems to be impossible in Axis 2. I need them> to do 
authentication.>> Thanks,>> Andrew 
B>>> > Want to 
be your own boss? Learn how on Yahoo! Small 
Business.>>-- Davanum Srinivas : 
http://people.apache.org/~dims/-To 
unsubscribe, e-mail: [EMAIL PROTECTED]For additional 
commands, e-mail: 
[EMAIL PROTECTED]
  __Do You 
  Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around 
  http://mail.yahoo.com 


Re: An Error by Run the StubClient.java in Eclipse

2006-06-22 Thread Nicolas Guaneme
Hi muthana, you must be sure that the tomcat server is runing and the 
url it's ok. Try the ulr in your browser for view the wsdl descrption.



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



[AXIS 1.4]Problem in getting list of services in axis

2006-06-22 Thread Kashif Saleem
Hi All,
   I just installed axis-1_4 axis on apache-tomcat-5.5.17 and now when I am 
trying to access the list of services by accessing the following link :

   http://localhost:8080/axis/servlet/AxisServlet

then instead of getting the list of services,I am getting the blank page saying 
And now... Some Services





I would appreciate if someone could tell me the reason for this.


Kind Regards
Kashif 

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



Re: [Axis2]getting username and password

2006-06-22 Thread Andrew B
Davanum,I set the username and password on the SOAPBindingStub on the client side (with Axis 1) like this:clientStub.setUsername(  );I thought this was HTTP Basic authentication. But, when I do the following, per your suggestion:        HttpServletRequest request = (HttpServletRequest)incomingContext.getProperty(Constants.HTTP_SERVLET_REQUEST);            String auth = (String) request.getHeader(HTTPConstants.HEADER_AUTHORIZATION);the string I get back is:Basic V0FMTUFSVDpXQUwxMjNNQVJUwhich does not contain the username and password. Either I am  doing something wrong, or clientStub.setUsername() is not HTTP Basic authentication.Thanks,AndrewDavanum Srinivas <[EMAIL PROTECTED]> wrote: Andrew,Are u talking about HTTP Basic authentication? You can access theHttpServletRequest as follows:HttpServletRequest request = (HttpServletRequest)msgContext.getProperty(Constants.HTTP_SERVLET_REQUEST)Then use:String auth = (String) request.getHeader(HTTPConstants.HEADER_AUTHORIZATION)to get the http header for authorization. You can then parse out theuser id and password as shown here [1]-- dims[1] http://koders.com/java/fidDCB769581B5FB55A16B0B191DEB229F79B8CB9E2.aspxOn 6/21/06, Andrew B <[EMAIL PROTECTED]> wrote:> Hi,>> Does anyone know how to get the username and password that were set on the> client stub, in the service implementation class? This is another thing that> was easy in Axis 1 but so far seems to be impossible in Axis 2. I need them> to do authentication.>> Thanks,>> Andrew
 B>>>  > Want to be your own boss? Learn how on Yahoo! Small Business.>>-- Davanum Srinivas : http://people.apache.org/~dims/-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: [Axis2] NullPointerException in OutInAxisOperation

2006-06-22 Thread Michele Mazzucco
Deepal,

I've investigated in more detail what happens:

1 - separatate client:
 a - options ANON_ROBUST_OUT_ONLY_OP + mepClient.execute(false): the
message is not received
 b - options ANON_ROBUST_OUT_ONLY_OP + mepClient.execute(true): the
message is received, but on the client side I get an AxisFault on
mepClient.execute(true),
Incoming message input stream is null
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:349)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
 c - options ANON_OUT_ONLY_OP + mecClient.execute(true): the message is
 received and there are no error messages on the client side (I guess
this is because the message has not been sent as 'robust')
 d - options ANON_OUT_ONLY_OP + mecClient.execute(true): the message is
  not received

2 - embedded into the handler it causes the problem I mentioned on my
first email *only* if the ANON_ROBUST_OUT_ONLY_OP semantic is used (as
shown below). I tried ANON_OUT_ONLY_OP + blocking execution and it seems
to work properly.

Michele


Deepal Jayasinghe wrote:
> can u pls check whether
> 
> BootstrapHelper.register(factory, omNs);
> 
> work alone ? I mean as a client
> 
> 
> 
> Michele Mazzucco wrote:
> 
>> Hi Deepal,
>>
>> I don't know how can this happen.
>> My handler extends AbstractDispatcher and replaces
>> RequestURIBasedDispatcher and it's globally engaged. Please find
>> attached axis2.xml and module.xml.
>> In the default public constructor I have:
>>
>> public NodeDispatcher() {
>>  
>>  this.factory = (SOAP12Factory) OMAbstractFactory.getSOAP12Factory();
>>  this.omNs = factory.createOMNamespace(SOAPConstants.URI,
>> SOAPConstants.NODE_PREFIX);
>>  
>>  
>> //Registers the node to the manager
>>  try {
>>  if (! registered) {
>>  // Sends a message to another service running on another tomcat server
>> (it works)
>>  BootstrapHelper.register(factory, omNs);
>>  registered = true;
>>  }
>>  } catch (AxisFault e) {
>>  if (log.isEnabledFor(Level.FATAL)) {
>>  log.fatal("Unable to register the node: " + 
>> e.getLocalizedMessage());
>>  }
>>  }
>>  
>> }
>>
>> and Bootstrap.register is:
>>
>> static final void register(SOAP12Factory factory,  OMNamespace omNs)
>> throws AxisFault {
>>  
>>  Options options = new Options();
>>  options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>>  
>>  ServiceClient sender = new ServiceClient();
>>  EndpointReference managerEPR = new
>> EndpointReference(System.getProperty("qosp.manager.epr"));
>>  
>>  OperationClient mepClient =
>> sender.createClient(ServiceClient.ANON_ROBUST_OUT_ONLY_OP);  
>>  mepClient.setOptions(options);
>>  
>>  SOAPEnvelope env = createRegistrationEnvelope(factory, omNs);   
>> 
>>  MessageContext ctx = new MessageContext();
>>  ctx.setEnvelope(env);
>>  
>>  ctx.setWSAAction(ActionConstants.ADD_NODE_ACTION);
>>  ctx.setTo(managerEPR);  
>>  
>>  mepClient.addMessageContext(ctx);
>>  mepClient.execute(false);
>>  mepClient.complete(ctx);
>>  
>>  if (NodeDispatcher.log.isInfoEnabled()) {
>>  NodeDispatcher.log.info("Node [" + 
>> NodeDispatcher.getNodeName() + "]
>> registered.");
>>  }
>>  }
>>
>> The exception is thrown after the handler is created.
>>
>>
>> Hope this helps,
>> Michele
>>
>> Deepal Jayasinghe wrote:
>>  
>>
>>> Hi Michele;
>>> hmm , how can that happen ? when you deploy a handler in server side how
>>> does OutInAxisOperation throw an exception , can you please explain the
>>> problem a bit .
>>>
>>> Michele Mazzucco wrote:
>>>
>>>
>>>
 Hi all,

 I don't know if this is an Axis2 (snapshot of June 7th) or a Tomcat
 problem (I can't see this log into the tomcat log files), however when I
 deploy a custom handler I can see in the console a NullPointerException
 at OutInAxisOperation:433

 I tried to set $AXIS2_HOME/WEB-INF/classes/log4j.properties

 log4j.logger.org.apache.axis2.enterprise=INFO
 and
 log4j.rootCategory=INFO, CONSOLE, LOGFILE,
 however I can't see the the exception in axis2.log.


 Michele

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





  

>>> 
>>

[AXIS 1.4] soapenc:array

2006-06-22 Thread Charles Souillard

Hi all,

I am using Axis for 3 years and I am falling down a very specific case.
I am trying to call a WS having a particular complexType as an output 
part type :



   
   
   wsdl:arrayType="tns:GeocoderResult[]"/>

   
   
   

When I use wsdl2java tool, I have a generated class called 
ArrayOf_GeocoderResult which is correct for my case (I specify the 
following options : setWrapArrays=true, setNoWrapped=true).


The problem is that this class does not contain any filed !!
So There is no getter, no setter... I think it is very strange, I was 
expecting something concerning the array of GeocoderResult.


The problem occurs when I call the ws, I can see in my eclipse debugger 
that the SOAP-ENVELOPPE returned by the geocoder service seems to be 
correct but there is a problem during the deserialization. Axis is 
trying to build an instance of ArrayOf_GeocoderResult based on an array 
of objects... I think the array is correct but perhap there should be a 
constructor taking this as a parameter ?


If you want to have a look at this WS, you can go on this website :
http://rpc.geocoder.us/
I give you the wsdl file in attach
I give you the returned soap-enveloppe too.

Regards,
Charles


 
http://www.w3.org/2001/XMLSchema";
   xmlns="http://schemas.xmlsoap.org/wsdl/";
   xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
   xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
   xmlns:tns="http://rpc.geocoder.us/Geo/Coder/US/";
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
   targetNamespace="http://rpc.geocoder.us/Geo/Coder/US/";>

	
 http://rpc.geocoder.us/Geo/Coder/US/";
 elementFormDefault="unqualified"   >
  
 http://schemas.xmlsoap.org/soap/encoding/"/>


			

	

			

  
   		
			


















			
		
		

			

	

			


   		
			










			
		


			

	

			


   		
			













			
		


  
   

   
  
   
   
  
   
   
   
  
   
   
  
   

   
  
   
   
  
   
  
   
  
 
 
  
  
 
 
  
  
 
 
  
 
   
   
   
  http://schemas.xmlsoap.org/soap/http"/>
  
 http://rpc.geocoder.us/Geo/Coder/US#geocode"/>
 
http://schemas.xmlsoap.org/soap/encoding/";
   namespace="http://rpc.geocoder.us/Geo/Coder/US/";
   use="encoded"/>
 
 
http://schemas.xmlsoap.org/soap/encoding/";
   namespace="http://rpc.geocoder.us/Geo/Coder/US/";
   use="encoded"/>
 
  
  
 http://rpc.geocoder.us/Geo/Coder/US#geocode_address"/>
 
http://schemas.xmlsoap.org/soap/encoding/";
   namespace="http://rpc.geocoder.us/Geo/Coder/US/";
   use="encoded"/>
 
 
http://schemas.xmlsoap.org/soap/encoding/";
   namespace="http://rpc.geocoder.us/Geo/Coder/US/";
   use="encoded"/>
 
  
   
  
 http://rpc.geocoder.us/Geo/Coder/US#geocode_intersection"/>
 
http://schemas.xmlsoap.org/soap/encoding/";
   namespace="http://rpc.geocoder.us/Geo/Coder/US/";
   use="encoded"/>
 
 
http://schemas.xmlsoap.org/soap/encoding/";
   namespace="http://rpc.geocoder.us/Geo/Coder/US/";
   use="encoded"/>
 
  
 
   
   
   
  WSDL File for Geo Coder - Written by Scott Gunn (scott_gunn*AT*email.com)
  
http://rpc.geocoder.us/service/soap/"/>
  
   




http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  
http://rpc.geocoder.us/Geo/Coder/US/";>
  http://rpc.geocoder.us/Geo/Coder/US/";>

  1600
  38.898748
  Pennsylvania
  DC
  Washington
  20502
  NW
  -77.037684
  Ave
  

  

  


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

RE: something is wrong with my deployment or Axis ?

2006-06-22 Thread maxim



Thank you, Anne,
I will try to fix it  with 
CapeClear.
--Maxim

  
  
  From: Anne Thomas Manes 
  [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 4:05 
  PMTo: axis-user@ws.apache.orgSubject: Re: something is 
  wrong with my deployment or Axis ?
  Also, the namespace attribute can cause this type of problem -- the 
  namespace attribute overrides the schema target namespace and changes the 
  QName of the child element of the SOAP Body. That QName is what Axis uses to 
  dispatch requests. I'm really surprised that shifting the parameters around 
  gave Axis enough information to dispatch a request properly, but the fact 
  remains, your WSDL is invalid, and you need to fix it. Anne
  On 6/21/06, Anne Thomas 
  Manes <[EMAIL PROTECTED]> 
  wrote:
  
It doesn't matter that the types exist in the local schema files -- the 
problem is that you aren't importing/including them properly. See my quick 
observations.
Anne
On 6/21/06, maxim 
<[EMAIL PROTECTED]> 
wrote:

  
  
  Thanks 
  for prompt reply, Anne,
  Of 
  course those types exists in the locally located schema 
  files.
  Thanks for noticing SOAP 
  encoding in the soap:body. But, I dont think its 
  related.
  The problem is that in 
  generated WSDD file there is line:
    
  
  I have no idea why its 
  getting generated in such order but it seems like this order is important 
  to identify the correct operation on the server. However, in generated 
  client's stub file the order of the
  operations is different 
  so in real life scenario I have the mismatch between call and invoked 
  method. 
  I've tested it by 
  changing the order in this "parameter"  list and it 
  worked.
   
  --Maxim
   
  
  
  
  From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, June 21, 2006 1:13 PMTo: axis-user@ws.apache.orgSubject: Re: something 
  is wrong with my deployment or Axis ?
  
  
Validation of your WSDL using Cape Clear SOA Editor produces 
the following errors:- There is no schema component of the name 
[pbrns:PBRclient] defined in the WSDL either via imported or embedded 
schema.- There is no type [{ http://www.lambdastation.org/datatypes/pbrclients/}PBRclient 
] defined for the part [Part: name=msgPBRC elementName={ 
http://www.lambdastation.org/datatypes/pbrclients/}PBRclient] in the 
message [Message: name={pbrAPI}PBRClientMessage Part: 
name=msgPBRCelementName={ 
http://www.lambdastation.org/datatypes/pbrclients/}PBRclient] in the 
WSDL.- There is no type [{http://www.lambdastation.org/datatypes/ls/}OpenSvcTicket 
] defined for the part [Part: name=openSvcTRS elementName={http://www.lambdastation.org/datatypes/ls/}OpenSvcTicket 
] in the message [Message: name={pbrAPI}openSvcTicketResponse Part: 
name=openSvcTRS elementName={http://www.lambdastation.org/datatypes/ls/}OpenSvcTicket 
] in the WSDL.- There is no type [{ 
http://www.lambdastation.org/datatypes/ls/}LambdaStation] defined 
for the part [Part: name=msgLS elementName={http://www.lambdastation.org/datatypes/ls/}LambdaStation 
] in the message [Message: name={pbrAPI}LSMessage Part: 
name=msgLSelementName={http://www.lambdastation.org/datatypes/ls/}LambdaStation 
] in the WSDL. - There is no type [{http://www.lambdastation.org/datatypes/ls/}OpenSvcTicket 
] defined for the part [Part: name=openSvcTRQ elementName={ 
http://www.lambdastation.org/datatypes/ls/}OpenSvcTicket] in the 
message [Message: name={pbrAPI}openSvcTicketRequest Part: 
name=openSvcTRQelementName={ 
http://www.lambdastation.org/datatypes/ls/}OpenSvcTicket] in the 
WSDL.Here are some quick observations:1. You must import 
the "http://www.lambdastation.org/datatypes/pbrclients/ " 
namespace into the "http://www.lambdastation.org/datatypes/internal/ " 
schema. 2. You cannot import a namespace into a schema with the 
same target namespace (you must use  instead of 
). You should combine the two schemas with the target 
namespace of http://www.lambdastation.org/datatypes/ls/ and include 
both schemas into the one. You should remove the schema with the target 
namespace of " 
http://www.lambdastation.org/datatypes/pbrclients/". (This schema 
should be imported into the "http://www.lambdastation.org/datatypes/internal/" 
schema instead.) 3. SOAP Encoding is incompatible with document 
style. You must remove the encodingStyle and namespace attributes from 
the  and  definitions in your 
.Anne
On 6/21/06, maxim <[EMAIL PROTECTED]> 
wrote: 
Hello,I 
  am trying to understand what is wrong with 

passing objects of subtypes

2006-06-22 Thread Joshua Fox






My WSDL has type information, but to handle subtype objects (document-literal), I need runtime type information in the serialization of objects. .NET has the possibility of adding this; is it possible in Axis?
For example, I want to return an object of a subtype of the declared return type.E.g., 
operation Vehicle getVehicle(String license_plate) 
may return an object of subclassTruck, which has additional properties. The client code would cast Vehicle to Truck. 




Likewise, I want to pass an object of a subtype as a parameter.

E,g., when the client calls operation void registerVehicle(Vehicle
vehicle), vehicle
may actually  be a Truck, and the server should be able to, if necessary, cast the argument to 
Truck.  Thus, the XML serialization must
have the runtime class as one of its elements, presumably in the root element.java2wsdl
generates WSDL that does not have such type information.I am aware of the all switch, but I don't think this gives the runtime information I need.
How can Axis handle this?Thanks,Joshua





[Axis2][1.0] Status of JMS URL syntax proposal

2006-06-22 Thread Ali Sadik Kumlali
Hi all,

Does anyone know whether JMS URL syntax 
proposal(http://marc.theaimsgroup.com/?l=axis-dev&m=103617964921940&q=p3) is 
well supported by Axis2? If yes, is that proposal up-to-date and does Axis2 
supports all the properties listed in?

Thanks.

Ali Sadik Kumlali

P.S: I do know that the proposal is for Axis not Axis2. But AFAIK, JMS 
transport of Axis2 was ported from Axis.
 




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



Re: Strange SOAP Reply...

2006-06-22 Thread Kinichiro Inoguchi
Hi,
I'm not sure but maybe it's called "byte order mark" (BOM).


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

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



Re: Is SOAP appropriate for large data transmission

2006-06-22 Thread Rodrigo Ruiz

Hi Betsy, German,

When you say FTP is faster than HTTP do you mean in equality conditions, 
or do you mean "a native FTP server is faster than a Java HTTP server"? 
AFAIK, both protocols introduce a little overhead for the connection 
establishment, and after that, just the raw data is sent over the wire. 
Perhaps the difference lies on the packet sizes? What happens if you 
need to secure the access to the file? Is it possible to use a common 
shared AAA mechanism for both servers?


The limits you mention for large attachments are, in part, related to 
the Axis implementation, and not to the SOAP protocol. I think there is 
a size limit for MIME attachments from the MIME multipart encoding 
specification. The document I read (a long time ago) stated that the 
size of the parts must be a 32bit integer. This leads to a 2Gb limit if 
you use a Java "int" to represent this value. I really don't know if 
this limit is still there, or if the specification has been updated 
since I read it, nor if Axis respects it. As MTOM is compatible with 
MIME attachments, I guess it shares the same limitations. I think it is 
important to note that this limit is only for a single MIME part, that 
is, a "smart" transfer service could split larger files into several 
smaller MIME parts and send them as separate attachments into a single 
response. DIME attachments, if streamed, do not require their size to be 
specified, and so, do not have such a limitation.


I have successfully transferred 10GByte files with Axis 1.4, using DIME 
attachments and chunked transfer (yes, this one do introduce an extra 
overhead :-D), so I guess broken pipe exceptions should be considered 
bugs to be solved, rather than technology limitations ;-)


Best Regards,
Rodrigo Ruiz

Betsy Frey wrote:

Hi German,

I have not tried sending attachments with Axis2.

Betsy


-Original Message-
From: German Sakaryan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 22, 2006 4:43 AM

To: axis-user@ws.apache.org
Subject: Re: Is SOAP appropriate for large data transmission

Hi,Betsey
have tried to send large files with axis2 ?

I get fast always broken pipe exception.

German Sakaryan
Betsy Frey schrieb:

SOAP without an attachment is inappropriate for sending large amounts

of binary data, because the XML requires it to be converted to Base64,
which is inefficient.

With an attachment, SOAP over http has the overhead of the protocol,

which is not as fast as ftp, for instance.

I have used DIME attachments in Axis 1.1.  They worked fine up to some

limit, 2gb or so as I recall; 2 ^ 31 or 32.

Betsy

-Original Message-
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 22, 2006 2:51 AM

To: axis-user@ws.apache.org
Subject: Is SOAP appropriate for large data transmission

Hi all,

I usually read in this forum that web services and SOAP are not 
appropriate for large data transmission, but I have never read about
any 

good technical reasons behind these sentences.

Most of the issues I have seen in this matter are related to the SOAP 
stack implementation, rather than to SOAP itself:


- Progress bar for file download: You can split the download in
smaller 

chunks and transmit them using several calls. It should be possible to


modify the attachments implementation of SOAP and add the logic for 
asynchronous status notification, so it is technically possible to
track 

the progress of attachments download/upload.

- SOAP XML overhead: In fact, the overhead of a SOAP envelope
containing 
just a reference to the attachment part is more important for small 
attachments than for large ones. Just one or two kilobytes of XML are 
not too much when you are trying to transfer an 8GB stream.


- Partial/broken transmissions: Again, if the attachments
implementation 
is able to track the progress of a download, it may be possible to 
resume it after a transmission error. We would just need to be able to



specify the range we are interested in, just like with old plain HTML.


Could somebody shed some light on the reasons that make SOAP 
inappropriate for this task?


Regards,
Rodrigo Ruiz




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


**
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. Any 
unauthorized review, use, disclosure or distribution is prohibited. If you are 
not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.


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





--
---
GRIDSYSTEMS  

send soap:headers with wsdl2java generated code

2006-06-22 Thread Magnus Bergman

Hi,
I can see that this has been discussed earlier on this list but yet I 
have not found an answer.


Using Axis 1.4.

I'm trying to call a service which is expecting custom soap:headers. I'm 
generating code with wsdl2java from the attached wsdl. If I use the -a 
option with wsdl2java I get the header-type 
SoapAuthenticationHeader.java. I do not know what to do with this class. 
I was expecting that I could pass this object as a parameter to the 
service-method, someway like this:


//create the service
Permission2Soap permissionService =
 new Permission2Locator().getPermission2Soap();
//create the header object
SoapAuthenticationHeader authHeader =
  new SoapAuthenticationHeader();
//set attributes on the header object
authHeader.setUser("aUser");
authHeader.setPassword("xyz");
//call the method, pass on the header object
LoginUserData loginData =
 permissionService.loginUser("john","123", authHeader);

but no such method is generated.

So, how do I use the header-class so Axis will send it as a soap:header 
to the server???


Any help appreciated!
Regards,
Magnus



http://schemas.xmlsoap.org/wsdl/http/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns="http://www.ahost.se/Permission/Permission2"; xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; targetNamespace="http://www.ahost.se/Permission/Permission2"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
  
http://www.ahost.se/Permission/Permission2";>
  

  
  
  
  
  
  
  
  
  

  
  

  
  

  

  
  


  
  

  
  

  
  


  
  
  

  
  

  
  
  

  
  



  
  
  

  
  

  
  


  
  


  
  


  
  

  
  
http://schemas.xmlsoap.org/soap/http"; style="rpc" />

  http://www.ahost.se/Permission/Permission2/LoginUser"; style="rpc" />
  
http://www.ahost.se/Permission/Permission2"; encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
http://schemas.xmlsoap.org/soap/encoding/"; />
  
  
http://www.ahost.se/Permission/Permission2"; encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
  


  http://www.ahost.se/Permission/Permission2/GetNewPasswordUser"; style="rpc" />
  
http://www.ahost.se/Permission/Permission2"; encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
http://schemas.xmlsoap.org/soap/encoding/"; />
  
  
http://www.ahost.se/Permission/Permission2"; encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
  


  http://www.ahost.se/Permission/Permission2/LogoutUser"; style="rpc" />
  
http://www.ahost.se/Permission/Permission2"; encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
http://schemas.xmlsoap.org/soap/encoding/"; />
  
  
http://www.ahost.se/Permission/Permission2"; encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
  


  http://www.ahost.se/Permission/Permission2/ChangePassword"; style="rpc" />
  
http://www.ahost.se/Permission/Permission2"; encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
http://schemas.xmlsoap.org/soap/encoding/"; />
  
  
http://www.ahost.se/Permission/Permission2"; encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
  

  
  

  http://www.ahost.se/WSAPI/Ver_2/Permission/Permission2.asmx"; />

  


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

Re: Axis2 dynamic undeployment

2006-06-22 Thread Anamitra . Bhattacharyya
Hi Deepal
I will try the nightly build and let you know - do I need to set the
hotupdate to true for this [dont think so] - pls let me know.

thanks
Anamitra


   
 Deepal Jayasinghe 
 <[EMAIL PROTECTED] 
 e.lk>  To 
   axis-user@ws.apache.org 
 06/21/2006 01:25   cc 
 PM
   Subject 
   Re: Axis2 dynamic undeployment  
 Please respond to 
 [EMAIL PROTECTED] 
  he.org   
   
   
   




Hi Anamitra;
Dims fixed this issue few days ago , now hot undeployment is working in
Axis2 (both windows and Linux). If you can please try with Axis2 nightly
builds.

[EMAIL PROTECTED] wrote:

>Hi Deepal
>I am in windows xp env. So are you saying I cannot undeploy axis web
>services in windows? Can you pls explain why this is the case.
>thanks
>Anamitra
>
>
>

> Deepal Jayasinghe

> <[EMAIL PROTECTED]

> e.lk>  To

>   axis-user@ws.apache.org

> 06/14/2006 12:12   cc

> AM

>   Subject

>   Re: Axis2 dynamic undeployment

> Please respond to

> [EMAIL PROTECTED]

>  he.org

>

>

>

>
>
>
>
>Hi Anamitra;
>pls see my comments below;
>
>[EMAIL PROTECTED] wrote:
>
>
>
>>Hi
>>I have modified my axis2.repository path and the axis2.xml path to point
>>
>>
>to
>
>
>>my local dirs and have successfully deployed a service dynamically [by
>>dropping the aar file under the services folder]. But if I delete that
>>
>>
>file
>
>
>>I am not seeing that getting undeployed and not sure if I have to call
>>
>>
>some
>
>
>>axis api to let the axis know that it has been deleted so that axis can
>>undeploy the service.
>>
>>
>>
>you do not need to call any axis api , once you delete the file axis2
>should automatically make the necessary changes. I know in windows you
>can not delete any services , so you are having this problem in Linux ?
>
>
>
>>I have
>>
>>   true
>>   false
>>
>>in my axis2.xml. I have tried making the hotupdate to true without any
>>success. Is this a bug or I have to do more to get a service undeployed
>>dynamically.
>>
>>
>>
>>
>hmm , once you set hotupdate to true , if it is not working then it is a
>bug. Can you please create a JIRA
>
>
>
>>thanks
>>Anamitra
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>>
>>
>
>--
>Thanks,
>Deepal
>
>~Future is Open~
>
>
>
>-
>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]
>
>
>
>
>

--
Thanks,
Deepal

~Future is Open~




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




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



RE: Dynamic Proxy

2006-06-22 Thread Ted Jones



Thanks for the reply Martin.
 
I am trying to avoid generating stubs (not an option for 
me). I want to execute dynamically at runtime for a given wsdl. Is this possible 
with Axis2? I know you can do it with Systinet.
 
Thanks,
Ted


From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 21, 2006 5:48 PMTo: 
axis-user@ws.apache.orgSubject: Re: Dynamic 
Proxy

Good Evening Ted-
 
If you already have the WSDL then you can run the 
Java2WSDL utility to generate the required stubs 
e.g.
org.apache.axis.wsdl.WSDL2Java 
Whatever.wsdl
HTH,Martin
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.
 
 

  - Original Message - 
  From: 
  Ted 
  Jones 
  To: axis-user@ws.apache.org 
  Sent: Wednesday, June 21, 2006 5:25 
  PM
  Subject: Dynamic Proxy
  
  Can someone please 
  point me to some example code for a dynamic proxy in Axis2? I have a wsdl url 
  and just want to set the operation and parameters via code. 
  
   
  Thanks,
  Ted 
  Jones


Strange SOAP Reply...

2006-06-22 Thread mo
Hello list,I've developed my first axis-based service, which methods give back complex types. It works fine until  i call a method, which gives back an array of a complex type. The data is correct, but the response contains a number before and after the soapmessage. This causes parser errors on the client side, and I want to understand what this numbers stand for and how I can get rid of them!
Thanks for any help,MoAnd here the response:1560   http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"                                xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">     
http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://ws.mydomain.com">      xsi:type="soapenc:Array"     xmlns:ns2="http://mydomain/wservices/FlashService
"     xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">              ten  #id0 to #id9 . 
     soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/"    xsi:type="ns3:Top10Tune"    xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/"    xmlns:ns3="http:/mydomain/wservices/FlashService">    1
    322    2    number 2
 2   soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/"    xsi:type="ns4:Top10Tune"    xmlns:ns4="
http://mydomain/wservices/FlashService"    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">    1
    42    9    number 9
    9   soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/"    xsi:type="ns5:Top10Tune"    xmlns:ns5="
http://mydomain/wservices/FlashService"    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">    1
    332    1    number 1
    1... ten multiRes id0 to id9
0


RE: Is SOAP appropriate for large data transmission

2006-06-22 Thread Betsy Frey
Hi German,

I have not tried sending attachments with Axis2.

Betsy


-Original Message-
From: German Sakaryan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 22, 2006 4:43 AM
To: axis-user@ws.apache.org
Subject: Re: Is SOAP appropriate for large data transmission

Hi,Betsey
have tried to send large files with axis2 ?

I get fast always broken pipe exception.

German Sakaryan
Betsy Frey schrieb:
> SOAP without an attachment is inappropriate for sending large amounts
of binary data, because the XML requires it to be converted to Base64,
which is inefficient.
> 
> With an attachment, SOAP over http has the overhead of the protocol,
which is not as fast as ftp, for instance.
> 
> I have used DIME attachments in Axis 1.1.  They worked fine up to some
limit, 2gb or so as I recall; 2 ^ 31 or 32.
> 
> Betsy
> 
> -Original Message-
> From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 22, 2006 2:51 AM
> To: axis-user@ws.apache.org
> Subject: Is SOAP appropriate for large data transmission
> 
> Hi all,
> 
> I usually read in this forum that web services and SOAP are not 
> appropriate for large data transmission, but I have never read about
any 
> good technical reasons behind these sentences.
> 
> Most of the issues I have seen in this matter are related to the SOAP 
> stack implementation, rather than to SOAP itself:
> 
> - Progress bar for file download: You can split the download in
smaller 
> chunks and transmit them using several calls. It should be possible to

> modify the attachments implementation of SOAP and add the logic for 
> asynchronous status notification, so it is technically possible to
track 
> the progress of attachments download/upload.
> 
> - SOAP XML overhead: In fact, the overhead of a SOAP envelope
containing 
> just a reference to the attachment part is more important for small 
> attachments than for large ones. Just one or two kilobytes of XML are 
> not too much when you are trying to transfer an 8GB stream.
> 
> - Partial/broken transmissions: Again, if the attachments
implementation 
> is able to track the progress of a download, it may be possible to 
> resume it after a transmission error. We would just need to be able to

> specify the range we are interested in, just like with old plain HTML.
> 
> 
> Could somebody shed some light on the reasons that make SOAP 
> inappropriate for this task?
> 
> Regards,
> Rodrigo Ruiz
> 


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


**
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. Any 
unauthorized review, use, disclosure or distribution is prohibited. If you are 
not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.


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



Re: Is SOAP appropriate for large data transmission

2006-06-22 Thread German Sakaryan

Hi,Betsey
have tried to send large files with axis2 ?

I get fast always broken pipe exception.

German Sakaryan
Betsy Frey schrieb:

SOAP without an attachment is inappropriate for sending large amounts of binary 
data, because the XML requires it to be converted to Base64, which is 
inefficient.

With an attachment, SOAP over http has the overhead of the protocol, which is 
not as fast as ftp, for instance.

I have used DIME attachments in Axis 1.1.  They worked fine up to some limit, 
2gb or so as I recall; 2 ^ 31 or 32.

Betsy

-Original Message-
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 22, 2006 2:51 AM

To: axis-user@ws.apache.org
Subject: Is SOAP appropriate for large data transmission

Hi all,

I usually read in this forum that web services and SOAP are not 
appropriate for large data transmission, but I have never read about any 
good technical reasons behind these sentences.


Most of the issues I have seen in this matter are related to the SOAP 
stack implementation, rather than to SOAP itself:


- Progress bar for file download: You can split the download in smaller 
chunks and transmit them using several calls. It should be possible to 
modify the attachments implementation of SOAP and add the logic for 
asynchronous status notification, so it is technically possible to track 
the progress of attachments download/upload.


- SOAP XML overhead: In fact, the overhead of a SOAP envelope containing 
just a reference to the attachment part is more important for small 
attachments than for large ones. Just one or two kilobytes of XML are 
not too much when you are trying to transfer an 8GB stream.


- Partial/broken transmissions: Again, if the attachments implementation 
is able to track the progress of a download, it may be possible to 
resume it after a transmission error. We would just need to be able to 
specify the range we are interested in, just like with old plain HTML.



Could somebody shed some light on the reasons that make SOAP 
inappropriate for this task?


Regards,
Rodrigo Ruiz




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



RE: Is SOAP appropriate for large data transmission

2006-06-22 Thread Betsy Frey
SOAP without an attachment is inappropriate for sending large amounts of binary 
data, because the XML requires it to be converted to Base64, which is 
inefficient.

With an attachment, SOAP over http has the overhead of the protocol, which is 
not as fast as ftp, for instance.

I have used DIME attachments in Axis 1.1.  They worked fine up to some limit, 
2gb or so as I recall; 2 ^ 31 or 32.

Betsy

-Original Message-
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 22, 2006 2:51 AM
To: axis-user@ws.apache.org
Subject: Is SOAP appropriate for large data transmission

Hi all,

I usually read in this forum that web services and SOAP are not 
appropriate for large data transmission, but I have never read about any 
good technical reasons behind these sentences.

Most of the issues I have seen in this matter are related to the SOAP 
stack implementation, rather than to SOAP itself:

- Progress bar for file download: You can split the download in smaller 
chunks and transmit them using several calls. It should be possible to 
modify the attachments implementation of SOAP and add the logic for 
asynchronous status notification, so it is technically possible to track 
the progress of attachments download/upload.

- SOAP XML overhead: In fact, the overhead of a SOAP envelope containing 
just a reference to the attachment part is more important for small 
attachments than for large ones. Just one or two kilobytes of XML are 
not too much when you are trying to transfer an 8GB stream.

- Partial/broken transmissions: Again, if the attachments implementation 
is able to track the progress of a download, it may be possible to 
resume it after a transmission error. We would just need to be able to 
specify the range we are interested in, just like with old plain HTML.


Could somebody shed some light on the reasons that make SOAP 
inappropriate for this task?

Regards,
Rodrigo Ruiz

-- 
---
GRIDSYSTEMSRodrigo Ruiz Aguayo
Parc Bit - Son Espanyol
07120 Palma de Mallorcamailto:[EMAIL PROTECTED]
Baleares - España  Tel:+34-971435085 Fax:+34-971435082
http://www.gridsystems.com
---


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 21/06/2006


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



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorized review, use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please contact the sender by 
reply e-mail and destroy all copies of the original message.


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



[Axis2] Handler question

2006-06-22 Thread Michele Mazzucco
Hi all,

I've got an handler intercepting messages. This handler sometimes has to
submit an IN-OUT request to a web service (before allowing the message
to pass through). The problem seems to be that the response is not
received (the result message contains a file, MTOM "encoding").

Any help would be appreciated,
Michele

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



[axis2 - v1.0] [please help] blocking dual client

2006-06-22 Thread Diego

Hi Everybody,

I would like to modify the code generated by wsdl2java in order to have 
a dual blocking client because the web service operation that I'm 
calling is particularly time consuming.  I had a look at the 
EchoBlockingDualClient.java example and have come up with the following 
code.  But I get a null pointer exception.


Can someone please tell what I'm doing wrong?

Thanks very much!

Diego

=
   Exception
=

Exception in thread "main" java.lang.NullPointerException
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:260)
at 
org.astrodas.ws.peer.AstrodasPeerStub.insertMappingAnnotations(AstrodasPeerStub.java:128)
at 
org.astrodas.ws.peer.AstrodasPeerProxy.insertMappingAnnotations(AstrodasPeerProxy.java:36)

at org.astrodas.test.Populate.populateLocal(Populate.java:239)
at org.astrodas.test.Populate.main(Populate.java:350)

=
 Code
=

public InsertMappingAnnotationsResponseDocument 
insertMappingAnnotations(InsertMappingAnnotationsDocument requestDoc)

throws RemoteException {
try {
OperationClient _operationClient = 
_serviceClient.createClient(_operations[0].getName());


_operationClient.getOptions().setAction("insertMappingAnnotations");

_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
// Dual client 




_operationClient.getOptions().setTransportInProtocol(Constants.TRANSPORT_HTTP);
_operationClient.getOptions().setUseSeparateListener(true);
_operationClient.getOptions().setAction("urn:echo");
_serviceClient.engageModule(new 
javax.xml.namespace.QName(Constants.MODULE_ADDRESSING));
// create SOAP envelope with that payload 



SOAPEnvelope env = null;
//Style is Doc. 



env = toEnvelope(getFactory(_operationClient.getOptions()
.getSoapVersionURI()),
 requestDoc,
 optimizeContent(new 
QName("","insertMappingAnnotations")));
// create message context with that soap envelope 



MessageContext _messageContext = new MessageContext();
_messageContext.setEnvelope(env);
// add the message contxt to the operation client 



_operationClient.addMessageContext(_messageContext);
//execute the operation client 



_operationClient.execute(true);
MessageContext _returnMessageContext = 
_operationClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);

SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
Object object = fromOM(getElement(_returnEnv, "document"),

InsertMappingAnnotationsResponseDocument.class,
   getEnvelopeNamespaces(_returnEnv));

_messageContext.getTransportOut().getSender().cleanup(_messageContext);
return (InsertMappingAnnotationsResponseDocument) object;
} catch (AxisFault f) {...}

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



Re: Redirect SOAP Message using Handler?

2006-06-22 Thread Riadh BEN HALIMA

Thank you very much Deepal,
but coud you please, tell me how to do?
---
Riadh 
- Original Message - 
From: "Deepal Jayasinghe" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, June 22, 2006 1:28 PM
Subject: Re: Redirect SOAP Message using Handler?



With Axis2 you can

That is what actually happening  in Synapse

Riadh BEN HALIMA wrote:


Hello,
Can I redirect SOAP Message form Server1 to Server2 using Handler?
Could you please, help me to answer this question?
Thanks in advance.
---
Riadh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Thanks,
Deepal

~Future is Open~ 




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




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



RE: A concrete axis + ssl client example.

2006-06-22 Thread subir.sasikumar








-ip vp

 

Can you check the following
links...The code is not that complex. The configuration is a little confusing
(or complex).

Please read the following links so
that it helps you.

 

[1] http://www.pankaj-k.net/WSOverSSL/WSOverSSL-HOWTO.html


[2] http://blogs.missiondata.com/?p@ 

[3] http://www.artima.com/forums/flat.jsp?forumF&thread6915


[4] http://wiki.apache.org/ws/FrontPage/Axis/SslUnsignedCertificate


[5] http://wiki.apache.org/ws/FrontPage/Axis/AxisClientConfiguration/Ssl


 

I don’t have any working code
example with me.

 

-Subir S

-Original Message-
From: ip vp [mailto:[EMAIL PROTECTED]]

Sent: Thursday, June 22, 2006 1:40 AM
To: axis-user@ws.apache.org
Subject: Re: A concrete axis + ssl client example.

 

 

Hey Subir,

 

Thanks for your response.

 

Can you provide a sample code ?

 

regards,

 

IPVP

 

>From: "Sai Arunachalam" <[EMAIL PROTECTED]>

>Reply-To: axis-user@ws.apache.org

>To: axis-user@ws.apache.org

>Subject: Re: A concrete axis + ssl client example.

>Date: Mon, 19 Jun 2006 13:31:06 +0530

> 

>Hey Subir,

> 

>    Can you provide some code or example for what
you did...? I am looking

>to implement a similar functionality.

> 

>Thanks,

>Sai

> 

>On 6/19/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

>> 

>> 

>>Thanks manuel...

>> 

>>I am using a self signed certificate and so I
had to import my servers

>>certificate (not issued by any CA, but me ;) )
into the truststore and

>>change the default trust store as they are not
available in the default CA

>>file available in the JRE.. That is the reason
that I set the truststore

>>explicitly ofcourse I can import my
servers certificate into the 

>>default

>>file to avoid setting any properties related
to trust store..you can 

>>say

>>I do this for testing purpose

>> 

>>Thanks again for pointing out that.

>>I thought you could have given a few links
that discuss these things (SSL,

>>Certificates in JAVA) in detail to help all of
us in the group.

>> 

>>Cheers

>>-Subir S

>>-Original Message-

>>From: Manuel Mall
[mailto:[EMAIL PROTECTED]]

>>Sent: Friday, June 16, 2006 9:08 PM

>>To: axis-user@ws.apache.org

>>Subject: Re: A concrete axis + ssl client
example.

>> 

>>On Friday 16 June 2006 21:07,
[EMAIL PROTECTED] wrote:

>> > Hi,

>> >

>> > I guess if you use the stubs generated
using WSDL2Java then there is

>> > nothing much to do. Set the trust store
property and trust store

>> > password property before invoking the
client. Just leave the other

>> > properties as default it self.

>> >

>> >
System.setProperty("javax.net.ssl.trustStore",

>> >
"c:\\TraceLogs\\tempstore.jks");

>> >
System.setProperty("javax.net.ssl.trustStorePassword",
"temp123");

>> >

>>For client authentication you usually the the
keyStore and

>>keyStorePassword properties not the
trustStore. The keyStore contains

>>your key and the corresponding certificate
presented to the server. The

>>trustStore contains certificates of the
servers you trust. Actually

>>typically not the certificates itself but the
CA certificates. The CA

>>trustStore that comes with your JDK/JRE
contains many of the commonly

>>used CA certificates (Verisign and the like)
and normally you don't

>>need to make any changes to it.

>> 

>>  
System.setProperty("javax.net.ssl.keyStore", "

>>keystore>");

>> 

>>System.setProperty("javax.net.ssl.keyStorePassword",
"");

>> 

>>works for me to use SSL client authentication.

>> 

>>The biggest complication typically is to get
your keyStore sorted out.

>>The details of that depend on how you your
private/public key pair and

>>from that your certificate is issued to you.
This topic is however way

>>off this list.

>> 

>> >

>> > -Subir S

>> >

>> > -Original Message-

>> > From: ip vp [mailto:[EMAIL PROTECTED]]

>> >

>> > Sent: Wednesday, June 14, 2006 6:56 PM

>> > To: axis-user@ws.apache.org

>> > Subject: A concrete axis + ssl client
example.

>> >

>> >

>> >

>> > Can somebody supply a concrete example
of axis client accessing

>> > webservice

>> >

>> > using ssl and a client certificate ?

>> >

>> >

>> > regards

>> >

>> 

>>Manuel

>> 

>>-

>>To unsubscribe, e-mail:
[EMAIL PROTECTED]

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

>> 

>> 

>> 

>>The information contained in this electronic
message and any attachments

>>to this message are intended for the exclusive
use of the addressee(s) and

>>may contain proprietary, confidential or
privileged information. If you 

>>are

>>not the intended recipient, you should not
disseminate, distribute or copy

>>this e-mail. Please notify the sender
immediately and destroy all copies 

>>of

>>this message and any attachments.

>> 

>>WARNING: Computer viruses can be transmitted
via email. The recipient

>>should check this email and any attachments
for the presence of viruses. 

>>The

>>company accepts n

Encoding Issues With My AXIS Web Service

2006-06-22 Thread Lee Theobald
Hi all,

I need to write a web service that works with a 3rd party tool I am using. All
I have is a WSDL file describing what the 3rd party tool expects the web
service to contain. I used Eclipse & AXIS to create a web service from this
WSDL. Everything is working fine when I enter URL's manually. As soon as I
point the tool to my web service, I start getting "No scheme found in URI"
errors in the logs of that tool. Looking at the log shows that this tool is
handing over the URLs in an encoded form (e.g. http%3A//www.somewhere.com).
Unfortunately I have no control over the form these URLs are sent across in so
I am unable to remove the encoding.

Does anyone know of a way in which I can tell axis to allow this kind of
formatting? I've been trying to debug through my code to see where I am
encountering this error but I cannot find anything. So I'm assuming it's a
base class in axis that I don't have any control over.

Any help would be greatly appreciated,
Lee


-
Email sent from www.ntlworld.com
Virus-checked using McAfee(R) Software 
Visit www.ntlworld.com/security for more information


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



Re: Redirect SOAP Message using Handler?

2006-06-22 Thread Deepal Jayasinghe
With Axis2 you can

 That is what actually happening  in Synapse

Riadh BEN HALIMA wrote:

> Hello,
> Can I redirect SOAP Message form Server1 to Server2 using Handler?
> Could you please, help me to answer this question?
> Thanks in advance.
> ---
> Riadh
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

-- 
Thanks,
Deepal

~Future is Open~ 



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



Java.net.SocketException: Connection Reset

2006-06-22 Thread Ravi_Srirangam
Title: Java.net.SocketException: Connection Reset






Hi All,

I'm not sure if this question has been posted before. There is an "java.net.SocketException: Connection Reset" when tried to call a web service. 

I googled for the solution and found that disabling the -server option on the JVM would resolve the issue. In my project environment, we use Jrockit JRE for Weblogic 8.1 SP4. Changing the JVM to Sun's JDK1.4 solved the problem, but there are increasing concerns from the server admin people to use Jrockit JVM and they are unrelenting to use the Sun's JDK.

I have used Axis 1.3. Should I upgrade my Axis version? If anyone knows the exact reason for this kind of behavior , pl. do let me know.

Thanks in advance,

Ravi





Re: WSDL file generation

2006-06-22 Thread Jim Bender

Deepal,

The main problem is that when I run Java2WSDL on the interface that
has an import of a class with variables and use that as the argument
to the method, the generated WSDL is rejected by WSDL2Java, unless I
edit the file and remove the duplicate complex type definition. After
that, I am am able to use the file, but it is undesirable from the
perspective that we want to be able to automatically generate a web
service, without human intervention, as we do with Axis2 0.93. The
issue is that the generated WSDL produced by Java2WSDL is incorrect
for what your WSDL2Java can process. I am sure that Anne is correct in
what she says, as she knows a great deal more than I do about WSDL,
but the duplicate complex type is what I wrote the JIRA issue about.

Regards,

Jim

On 6/21/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

Hi Jim
pls see my comments below;

Jim Bender wrote:

> It appears that the Axis2 Std 1.0 WSDL file generation from a Java
> interface is hard-wired to set the elementFormDefault to
> "unqualified".
>
> By not setting
>
> // java2WsdlBuilder.setSchemaTargetNamespace("");
> // java2WsdlBuilder.setSchemaTargetNamespacePrefix("");
>
> in the Java2WSDLBuilder, I was able to get rid of several problems in
> the generated
> WSDL file.
>
> In the example file, edited by Anne, she had set the
> "elementFormDefault" to
> "qualified", and I looked and there is code in the
> WSDL11ToAxisServiceBuilder
> that is hard-coded to set the elementFormDefault to "unqualified"
> (on line 830). This is the only class that seemed to write the
> "elementFormDefault".

My knowledge on WSDL is not that rich ,so is Axis2 default behaviors
buggy ? I mean setting elementFormDefault="unqualified" is a bug ?
If so I like to fix that

> This is in the daily build for last Friday, June 9th.
> As suggested, I am trying the daily build from Friday, to get the
> latest fixes,
> although that is probably not what we need to be using (we want to use
> the
> Axis2 Std 1.0 release).
>
> BTW, there still seems to be some gratuitous namespace references in
> the generated
> SOAP body, which Anne says should not be there.

I just checked now and it does not generate any namespace element in
SOAP body , its only has 

>
> At least, I realized that I had a way to format the WSDL file so that
> it is not
> quite so unreadable. I attached the formatted file that I just
> generated, to see
> if anyone has any ideas. I will test this against the WSDL2Java generator
> to see if it will work, as is.
>
> Regards,
>
>
>
>http://schemas.xmlsoap.org/wsdl/"; xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:ns1="http://testexamples/xsd"; 
xmlns:ns="http://PointsCalculator.ve.recursionsw.com/types"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
targetNamespace="http://PointsCalculator.ve.recursionsw.com/types";>
>   
>   http://www.w3.org/2001/XMLSchema"; xmlns:ns="http://testexamples/xsd"; 
targetNamespace="http://testexamples/xsd"; elementFormDefault="unqualified" 
attributeFormDefault="unqualified">
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   http://schemas.xmlsoap.org/soap/http"/>
>   
>   
>   
>   http://PointsCalculator.ve.recursionsw.com/types"; use="literal"/>
>   
>   
>   http://PointsCalculator.ve.recursionsw.com/types"; use="literal"/>
>   
>   
>   
>   
>   http://schemas.xmlsoap.org/soa

Redirect SOAP Message using Handler?

2006-06-22 Thread Riadh BEN HALIMA

Hello,
Can I redirect SOAP Message form Server1 to Server2 using Handler?
Could you please, help me to answer this question?
Thanks in advance.
---
Riadh 


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



Re: [Axis2] NullPointerException in OutInAxisOperation

2006-06-22 Thread Michele Mazzucco
Yes, it does since the message is delivered to the target service (which
is running on another tomcat server).


Michele

Deepal Jayasinghe wrote:
> can u pls check whether
> 
> BootstrapHelper.register(factory, omNs);
> 
> work alone ? I mean as a client
> 
> 
> 
> Michele Mazzucco wrote:
> 
>> Hi Deepal,
>>
>> I don't know how can this happen.
>> My handler extends AbstractDispatcher and replaces
>> RequestURIBasedDispatcher and it's globally engaged. Please find
>> attached axis2.xml and module.xml.
>> In the default public constructor I have:
>>
>> public NodeDispatcher() {
>>  
>>  this.factory = (SOAP12Factory) OMAbstractFactory.getSOAP12Factory();
>>  this.omNs = factory.createOMNamespace(SOAPConstants.URI,
>> SOAPConstants.NODE_PREFIX);
>>  
>>  
>> //Registers the node to the manager
>>  try {
>>  if (! registered) {
>>  // Sends a message to another service running on another tomcat server
>> (it works)
>>  BootstrapHelper.register(factory, omNs);
>>  registered = true;
>>  }
>>  } catch (AxisFault e) {
>>  if (log.isEnabledFor(Level.FATAL)) {
>>  log.fatal("Unable to register the node: " + 
>> e.getLocalizedMessage());
>>  }
>>  }
>>  
>> }
>>
>> and Bootstrap.register is:
>>
>> static final void register(SOAP12Factory factory,  OMNamespace omNs)
>> throws AxisFault {
>>  
>>  Options options = new Options();
>>  options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>>  
>>  ServiceClient sender = new ServiceClient();
>>  EndpointReference managerEPR = new
>> EndpointReference(System.getProperty("qosp.manager.epr"));
>>  
>>  OperationClient mepClient =
>> sender.createClient(ServiceClient.ANON_ROBUST_OUT_ONLY_OP);  
>>  mepClient.setOptions(options);
>>  
>>  SOAPEnvelope env = createRegistrationEnvelope(factory, omNs);   
>> 
>>  MessageContext ctx = new MessageContext();
>>  ctx.setEnvelope(env);
>>  
>>  ctx.setWSAAction(ActionConstants.ADD_NODE_ACTION);
>>  ctx.setTo(managerEPR);  
>>  
>>  mepClient.addMessageContext(ctx);
>>  mepClient.execute(false);
>>  mepClient.complete(ctx);
>>  
>>  if (NodeDispatcher.log.isInfoEnabled()) {
>>  NodeDispatcher.log.info("Node [" + 
>> NodeDispatcher.getNodeName() + "]
>> registered.");
>>  }
>>  }
>>
>> The exception is thrown after the handler is created.
>>
>>
>> Hope this helps,
>> Michele
>>
>> Deepal Jayasinghe wrote:
>>  
>>
>>> Hi Michele;
>>> hmm , how can that happen ? when you deploy a handler in server side how
>>> does OutInAxisOperation throw an exception , can you please explain the
>>> problem a bit .
>>>
>>> Michele Mazzucco wrote:
>>>
>>>
>>>
 Hi all,

 I don't know if this is an Axis2 (snapshot of June 7th) or a Tomcat
 problem (I can't see this log into the tomcat log files), however when I
 deploy a custom handler I can see in the console a NullPointerException
 at OutInAxisOperation:433

 I tried to set $AXIS2_HOME/WEB-INF/classes/log4j.properties

 log4j.logger.org.apache.axis2.enterprise=INFO
 and
 log4j.rootCategory=INFO, CONSOLE, LOGFILE,
 however I can't see the the exception in axis2.log.


 Michele

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





  

>>> 
>>>
>>> 
>>>
>>>
>>>
>>>true
>>>true
>>>true
>>>
>>>
>>>
>>>>> locked="false">true
>>>
>>>
>>>
>>>
>>>
>>>>> locked="false">false
>>>
>>>admin
>>>admin
>>>
>>>
>>>
>>>
>>>false
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>http://www.w3.org/2004/08/wsdl/in-only";
>>> 
>>> class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
>>>http://www.w3.org/2004/08/wsdl/in-out";
>>> 
>>> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>>>
>>>
>>>
>>>
>>>>>   
>>> class="org.apache.axis2.transport.http.SimpleHTTPServer">
>>>6060
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>>   class="org.apache.axis2.transport.tcp.TCPServer">
>>>6060
>>>
>>>
>>>   

Is SOAP appropriate for large data transmission

2006-06-22 Thread Rodrigo Ruiz

Hi all,

I usually read in this forum that web services and SOAP are not 
appropriate for large data transmission, but I have never read about any 
good technical reasons behind these sentences.


Most of the issues I have seen in this matter are related to the SOAP 
stack implementation, rather than to SOAP itself:


- Progress bar for file download: You can split the download in smaller 
chunks and transmit them using several calls. It should be possible to 
modify the attachments implementation of SOAP and add the logic for 
asynchronous status notification, so it is technically possible to track 
the progress of attachments download/upload.


- SOAP XML overhead: In fact, the overhead of a SOAP envelope containing 
just a reference to the attachment part is more important for small 
attachments than for large ones. Just one or two kilobytes of XML are 
not too much when you are trying to transfer an 8GB stream.


- Partial/broken transmissions: Again, if the attachments implementation 
is able to track the progress of a download, it may be possible to 
resume it after a transmission error. We would just need to be able to 
specify the range we are interested in, just like with old plain HTML.



Could somebody shed some light on the reasons that make SOAP 
inappropriate for this task?


Regards,
Rodrigo Ruiz

--
---
GRIDSYSTEMSRodrigo Ruiz Aguayo
Parc Bit - Son Espanyol
07120 Palma de Mallorcamailto:[EMAIL PROTECTED]
Baleares - España  Tel:+34-971435085 Fax:+34-971435082
http://www.gridsystems.com
---


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 21/06/2006


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



Re: [Axis2] NullPointerException in OutInAxisOperation

2006-06-22 Thread Deepal Jayasinghe
can u pls check whether

BootstrapHelper.register(factory, omNs);

work alone ? I mean as a client



Michele Mazzucco wrote:

>Hi Deepal,
>
>I don't know how can this happen.
>My handler extends AbstractDispatcher and replaces
>RequestURIBasedDispatcher and it's globally engaged. Please find
>attached axis2.xml and module.xml.
>In the default public constructor I have:
>
>public NodeDispatcher() {
>   
>   this.factory = (SOAP12Factory) OMAbstractFactory.getSOAP12Factory();
>   this.omNs = factory.createOMNamespace(SOAPConstants.URI,
>SOAPConstants.NODE_PREFIX);
>   
>   
>//Registers the node to the manager
>   try {
>   if (! registered) {
>   // Sends a message to another service running on another tomcat server
>(it works)
>   BootstrapHelper.register(factory, omNs);
>   registered = true;
>   }
>   } catch (AxisFault e) {
>   if (log.isEnabledFor(Level.FATAL)) {
>   log.fatal("Unable to register the node: " + 
> e.getLocalizedMessage());
>   }
>   }
>   
>}
>
>and Bootstrap.register is:
>
>static final void register(SOAP12Factory factory,  OMNamespace omNs)
>throws AxisFault {
>   
>   Options options = new Options();
>   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>   
>   ServiceClient sender = new ServiceClient();
>   EndpointReference managerEPR = new
>EndpointReference(System.getProperty("qosp.manager.epr"));
>   
>   OperationClient mepClient =
>sender.createClient(ServiceClient.ANON_ROBUST_OUT_ONLY_OP);
>   mepClient.setOptions(options);
>   
>   SOAPEnvelope env = createRegistrationEnvelope(factory, omNs);   
> 
>   MessageContext ctx = new MessageContext();
>   ctx.setEnvelope(env);
>   
>   ctx.setWSAAction(ActionConstants.ADD_NODE_ACTION);
>   ctx.setTo(managerEPR);  
>   
>   mepClient.addMessageContext(ctx);
>   mepClient.execute(false);
>   mepClient.complete(ctx);
>   
>   if (NodeDispatcher.log.isInfoEnabled()) {
>   NodeDispatcher.log.info("Node [" + 
> NodeDispatcher.getNodeName() + "]
>registered.");
>   }
>   }
>
>The exception is thrown after the handler is created.
>
>
>Hope this helps,
>Michele
>
>Deepal Jayasinghe wrote:
>  
>
>>Hi Michele;
>>hmm , how can that happen ? when you deploy a handler in server side how
>>does OutInAxisOperation throw an exception , can you please explain the
>>problem a bit .
>>
>>Michele Mazzucco wrote:
>>
>>
>>
>>>Hi all,
>>>
>>>I don't know if this is an Axis2 (snapshot of June 7th) or a Tomcat
>>>problem (I can't see this log into the tomcat log files), however when I
>>>deploy a custom handler I can see in the console a NullPointerException
>>>at OutInAxisOperation:433
>>>
>>>I tried to set $AXIS2_HOME/WEB-INF/classes/log4j.properties
>>>
>>>log4j.logger.org.apache.axis2.enterprise=INFO
>>>and
>>>log4j.rootCategory=INFO, CONSOLE, LOGFILE,
>>>however I can't see the the exception in axis2.log.
>>>
>>>
>>>Michele
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>> 
>>>
>>>  
>>>
>>
>>
>>
>>
>>
>>
>>true
>>true
>>true
>>
>>
>>
>>> locked="false">true
>>
>>
>>
>>
>>
>>> locked="false">false
>>
>>admin
>>admin
>>
>>
>>
>>
>>false
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>http://www.w3.org/2004/08/wsdl/in-only";
>> 
>> class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
>>http://www.w3.org/2004/08/wsdl/in-out";
>> 
>> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>>
>>
>>
>>
>>>   
>> class="org.apache.axis2.transport.http.SimpleHTTPServer">
>>6060
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>>   class="org.apache.axis2.transport.tcp.TCPServer">
>>6060
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>> 
>> class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
>>> 
>> class="org.apache.axis2.transport.local.LocalTransportSender"/>
>>> class="org.apache.axis2.transport.jms.JMSSender"/>

Re: [Axis2]getting username and password

2006-06-22 Thread Davanum Srinivas

Andrew,

Are u talking about HTTP Basic authentication? You can access the
HttpServletRequest as follows:

HttpServletRequest request = (HttpServletRequest)
msgContext.getProperty(Constants.HTTP_SERVLET_REQUEST)

Then use:
String auth = (String) request.getHeader(HTTPConstants.HEADER_AUTHORIZATION)

to get the http header for authorization. You can then parse out the
user id and password as shown here [1]

-- dims

[1] http://koders.com/java/fidDCB769581B5FB55A16B0B191DEB229F79B8CB9E2.aspx

On 6/21/06, Andrew B <[EMAIL PROTECTED]> wrote:

Hi,

Does anyone know how to get the username and password that were set on the
client stub, in the service implementation class? This is another thing that
was easy in Axis 1 but so far seems to be impossible in Axis 2. I need them
to do authentication.

Thanks,

Andrew B


 
Want to be your own boss? Learn how on Yahoo! Small Business.





--
Davanum Srinivas : http://people.apache.org/~dims/

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



Re: [Axis2] NullPointerException in OutInAxisOperation

2006-06-22 Thread Michele Mazzucco
Hi Deepal,

I don't know how can this happen.
My handler extends AbstractDispatcher and replaces
RequestURIBasedDispatcher and it's globally engaged. Please find
attached axis2.xml and module.xml.
In the default public constructor I have:

public NodeDispatcher() {

this.factory = (SOAP12Factory) OMAbstractFactory.getSOAP12Factory();
this.omNs = factory.createOMNamespace(SOAPConstants.URI,
SOAPConstants.NODE_PREFIX);


//Registers the node to the manager
try {
if (! registered) {
// Sends a message to another service running on another tomcat server
(it works)
BootstrapHelper.register(factory, omNs);
registered = true;
}
} catch (AxisFault e) {
if (log.isEnabledFor(Level.FATAL)) {
log.fatal("Unable to register the node: " + 
e.getLocalizedMessage());
}
}

}

and Bootstrap.register is:

static final void register(SOAP12Factory factory,  OMNamespace omNs)
throws AxisFault {

Options options = new Options();
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

ServiceClient sender = new ServiceClient();
EndpointReference managerEPR = new
EndpointReference(System.getProperty("qosp.manager.epr"));

OperationClient mepClient =
sender.createClient(ServiceClient.ANON_ROBUST_OUT_ONLY_OP); 
mepClient.setOptions(options);

SOAPEnvelope env = createRegistrationEnvelope(factory, omNs);   

MessageContext ctx = new MessageContext();
ctx.setEnvelope(env);

ctx.setWSAAction(ActionConstants.ADD_NODE_ACTION);
ctx.setTo(managerEPR);  

mepClient.addMessageContext(ctx);
mepClient.execute(false);
mepClient.complete(ctx);

if (NodeDispatcher.log.isInfoEnabled()) {
NodeDispatcher.log.info("Node [" + 
NodeDispatcher.getNodeName() + "]
registered.");
}
}

The exception is thrown after the handler is created.


Hope this helps,
Michele

Deepal Jayasinghe wrote:
> Hi Michele;
> hmm , how can that happen ? when you deploy a handler in server side how
> does OutInAxisOperation throw an exception , can you please explain the
> problem a bit .
> 
> Michele Mazzucco wrote:
> 
>> Hi all,
>>
>> I don't know if this is an Axis2 (snapshot of June 7th) or a Tomcat
>> problem (I can't see this log into the tomcat log files), however when I
>> deploy a custom handler I can see in the console a NullPointerException
>> at OutInAxisOperation:433
>>
>> I tried to set $AXIS2_HOME/WEB-INF/classes/log4j.properties
>>
>> log4j.logger.org.apache.axis2.enterprise=INFO
>> and
>> log4j.rootCategory=INFO, CONSOLE, LOGFILE,
>> however I can't see the the exception in axis2.log.
>>
>>
>> Michele
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>  
>>
> 




true
true
true



true





false

admin
admin




false



















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





6060















6060





















HTTP/1.1
chunked


HTTP/1.1
chunked









	
	
	











		


		






















	

		







	

		


			


















	

		











   



   

   

	 

   

   

 

Re: [Axis2] Does anyone have the working example of sending large file?

2006-06-22 Thread heikki
Hi,at the company where I worked before, we used the following pattern to do this :- client prepares large file and puts in on its filesystem in a place accessible by FTP- client sends SOAP message informing the web service about the file, and about how to access it through FTP
- a server-side JAX-RPC handler acts on this messaeg and fetches the file and puts it on the server side filesystem- service endpoint can now do whatever it wants to with the large filergsHeikki Doeleman
On 6/22/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
Dear All We have tried so many way to configure how to send the large filevia the webservice. Unfortunately we still got the same error about brokenpipe and problem with outputstream. Eventhough we also configure the
axis2.xml file for SO_TIMEOUT and CONNECTION_TIMEOUT. But the result doesn'tchange. So I am wonder if anyone has succeeded in sending large file. And Ifyou could please share some code so we can see how should be configure or
write our code. The reply would be really appreciated. Sincerely, Sathita-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] Does anyone have the working example of sending large file?

2006-06-22 Thread Wan Kaveevivitchai

Dear All

We have tried so many way to configure how to send the large file 
via the webservice. Unfortunately we still got the same error about broken 
pipe and problem with outputstream. Eventhough we also configure the 
axis2.xml file for SO_TIMEOUT and CONNECTION_TIMEOUT. But the result doesn't 
change. So I am wonder if anyone has succeeded in sending large file. And If 
you could please share some code so we can see how should be configure or 
write our code.


The reply would be really appreciated.
Sincerely,

Sathita



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



Web Service Error

2006-06-22 Thread Vikram Sitaram



Hi,
 
I am trying to call
a Web Service from a Message Listener (from within it's onMessage() method)
class.
The Message Listener
(the class is attached with this mail) keeps listening to a queue and once a JMS
message is received in the queue, it gets the JMS message and extracts the SOAP
request which resides within the JMS payload. Once this SOAP request is
got, I call the Web Service by creating an AxisServer instance and a
MesageContext bounded to this AxisServer. The SOAP request is placed
as a request message in the MessageContext and the I set the target Web
Service by calling
MessageContext.setTargetService(). After this the Web
Service is invoked by calling the engine.invoke() method.
At this point, the
application throws up an malformed URL exception which I am unable to decipher.
Also, I have tested to see if such a Service exists and is running by using the
following lines of code.
 
   SOAPService soapService =
engine.getService("MOVIEServer");   System.out.println("\nThe
service running is
"+soapService.isRunning()+"\n"); 
 
The application
shows the service above (MOVIEServer) to be up and
running.
 
The error message is
pasted below:-
 
 
--> 06-22-06
11:59:44 ERROR [ORB-Worker-1] ResourceHandler: An unexpected erroroccured
during processing of a request.java.lang.RuntimeException: Value of Axis
transport.url MessageContext propertyis not a valid
URL.    at
org.apache.ws.resource.handler.axis.AxisResourceContext.getServiceURL(AxisResourceContext.java:68)   
at
org.apache.ws.resource.impl.ResourceContextImpl.extractFields(ResourceContextImpl.java:342)   
at
org.apache.ws.resource.impl.ResourceContextImpl.(ResourceContextImpl.java:73)   
at
org.apache.ws.resource.handler.axis.AxisResourceContext.(AxisResourceContext.java:42)   
at
org.apache.ws.util.platform.axis.AxisJaxRpcPlatform.createResourceContext(AxisJaxRpcPlatform.java:92)   
at
org.apache.ws.resource.handler.ResourceHandler.handleRequest(ResourceHandler.java:135)   
at
org.apache.ws.resource.handler.axis.ResourceProvider.invoke(ResourceProvider.java:209)   
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:453)   
at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)   
at
org.apache.ws.resource.example.JMSListenerToClient.onMessage(JMSListenerToClient.java:125)   
at
org.exolab.jms.client.JmsMessageConsumer.onMessage(JmsMessageConsumer.java:254)   
at
org.exolab.jms.client.JmsSession.onMessage(JmsSession.java:1023)   
at
org.exolab.jms.client.net.JmsSessionStubImpl.onMessage(JmsSessionStubImpl.java:478)   
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.exolab.jms.net.orb.DefaultORB$Handler.invoke(DefaultORB.java:553)
 
    at
org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB.java:511)   
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)    at
java.lang.Thread.run(Thread.java:534)Caused by:
java.net.MalformedURLException    at
java.net.URL.(URL.java:571)   
at
java.net.URL.(URL.java:434)   
at
java.net.URL.(URL.java:383)   
at
org.apache.ws.resource.handler.axis.AxisResourceContext.getServiceURL(AxisResourceContext.java:64)   
... 23 moreAxisFault faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode: faultString:
Internal server error
occurred. faultActor: faultNode: faultDetail:
 
Internal server
error occurred.    at
org.apache.axis.AxisFault.makeFault(AxisFault.java:101)   
at
org.apache.ws.resource.handler.axis.ResourceProvider.invoke(ResourceProvider.java:214)   
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:453)   
at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)   
at
org.apache.ws.resource.example.JMSListenerToClient.onMessage(JMSListenerToClient.java:125)   
at
org.exolab.jms.client.JmsMessageConsumer.onMessage(JmsMessageConsumer.java:254)   
at
org.exolab.jms.client.JmsSession.onMessage(JmsSession.java:1023)   
at
org.exolab.jms.client.net.JmsSessionStubImpl.onMessage(JmsSessionStubImpl.java:478)   
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method

Re: https <---> web service

2006-06-22 Thread Shuaibin Wang



Hi thanks a lot Ben ! 
I will try your tip right way.
 
BR.
 
shuaibin 
 

  - Original Message - 
  From: 
  Ben 
  Ethridge 
  To: axis-user@ws.apache.org 
  Sent: Wednesday, June 21, 2006 7:17 
  PM
  Subject: RE: https <---> web 
  service
  
  
  This is quite 
  involved, and was a bit tough to set up, as it doesn’t seem to be 
  well-documented as to what’s actually required and what isn’t...or maybe there 
  are just so many different ways to do it that it’s hard to see the forest for 
  the trees. In any case, a good place to start is 
  here:
   
  http://www.pankaj-k.net/WSOverSSL/WSOverSSL-HOWTO.html
   
  ...as background and 
  then his pointer to the sample chapter up at the top (since he obsoleted the 
  orig write-up).
   
  In order to create a 
  decent CA (certificate authority), instead of using the above, I had to refer 
  to Kent Tong’s “Developing Web Services with Apache Axis” online book.  
  He shows a better way to set up a test CA.
   
  There are many 
  pitfalls for the uninitiated, but the key points for getting this to work with 
  Tomcat (for me, at least) were:
   
  (1) 
  Create 
  CA-signed certificates in BOTH a client and the server keystore (to make it 
  real-world).
  (2) 
  In the 
  server certificate, make the CN (distinguished name? canonical name?) be the 
  name of your host (localhost or whatever your host’s IP name 
  is).
  (3) 
  Change 
  your wsdl to use https and the ssl port and regenerate the code (using 
  wsdl2java). Ex: https://localhost:8443/myWS/services/MySOAPBindingPort
  (4) 
  Do not 
  start TcpMon. (There’s probably a way to set him up, but I don’t see it 
  yet.)
  (5) 
  Edit the 
  tomcat server.xml, to use the ssl Connector. Install your server keystore info 
  in it. If you used a password other than the “changeit” password that tomcat 
  expects, put that in the Connector xml also.
   
  As shown in the doc 
  link above, in java (and Eclipse Debug window), add the following to the JVM 
  arguments for the client-side run:
   
  -Djavax.net.ssl.keyStore=c:\ssl_client\client.ks
  -Djavax.net.ssl.keyStoreType=JKS
  -Djavax.net.ssl.keyStorePassword=client-pass
  -Djavax.net.ssl.trustStore=c:\ssl_client\client.ks
  -Djavax.net.ssl.trustStoreType=JKS
   
  If someone knows 
  where there is better documentation on the above, I would appreciate 
  knowing.
   
  Ben
   
  
  
  
  
  From: 
  Shuaibin Wang [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 10:48 
  AMTo: axis-user@ws.apache.orgSubject: https <---> web 
  service
   
  
  Hi, I need to access a rpc 
  web service with https.
  
   
  
  But the code I generated from wsdl 
  file is for http , could any on tell me how can I change the generated client 
  code to send https
  
  requests  
  ?
  
   
  
  many thanks 
  .
  
   
  
  SWangThis e-mail message may contain confidential and/or privileged information. If you are 
not an addressee or otherwise authorized to receive this message, you should not use, 
copy, disclose or take any action based on this e-mail or any information contained in the 
message. If you have received this material in error, please advise the sender immediately 
by reply e-mail and delete this message. 

Thank you.



Re: [Axis2]getting username and password

2006-06-22 Thread Ruchith Fernando

Hi,

If you want to use WS-Security UsernameToken via Rampart module this
[1] explains how to do it.

Thanks,
Ruchith

[1] http://www.wso2.net/kb/169

On 6/22/06, Andrew B <[EMAIL PROTECTED]> wrote:

Hi,

Does anyone know how to get the username and password that were set on the
client stub, in the service implementation class? This is another thing that
was easy in Axis 1 but so far seems to be impossible in Axis 2. I need them
to do authentication.

Thanks,

Andrew B


 
Want to be your own boss? Learn how on Yahoo! Small Business.




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