Re: [axis2] problem with 'enableRESTInAxis2MainServlet' flag

2007-03-01 Thread Deepal Jayasinghe
Hi  Nalini ;

As I can see you are using Axis2 1.1 release , any possibility of
checking with nightly builds ?
Even in current code base we are no loner use that parameter as well ,
only one parameter to control the REST support.

Thanks
Deepal

> Hi,
>
>  
>
> I am trying to enable my webservice to handle both REST and SOAP. I am
> currently using ADB for databinding. Also I changed the '
> 'enableRESTInAxis2MainServlet' flag to true in axis2.xml file. Please
> see the file snippet below:
>
>  
>
>  
>
>  
>
> **
>
> * *
>
> **
>
> * locked="true">true*
>
> * *
>
> **
>
> *false*
>
> * *
>
> **
>
> * locked="true">true*
>
> * *
>
> After changing the file I regenerated the wsdl and created the aar
> file again. When I deployed it on the server(JBoss) and tried invoke
> the service using REST I was able to do so. But when I tried to invoke
> the service using SOAP client(with the help of stub). I get the
> following error.
>
>  
>
> * [java] org.apache.axis2.AxisFault: Transport level information
> does not ma*
>
> *ch with SOAP Message namespace URI; nested exception is:*
>
> * [java] org.apache.axiom.soap.SOAPProcessingException:
> Transport level*
>
> *nformation does not match with SOAP Message namespace URI*
>
> * [java] at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(*
>
> *ransportUtils.java:126)*
>
> * [java] at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(*
>
> *ransportUtils.java:67)*
>
> * [java] at
> org.apache.axis2.description.OutInAxisOperationClient.send(O*
>
> *tInAxisOperation.java:252)*
>
> * [java] at
> org.apache.axis2.description.OutInAxisOperationClient.execut*
>
> *(OutInAxisOperation.java:202)*
>
> * [java] at
> com.gryphonnetworks.ws.CertifyServiceStub.certifyClient(Cert*
>
> *fyServiceStub.java:344)*
>
> * [java] at
> com.gryphonnetworks.ws.GryphonClient.main(GryphonClient.java*
>
> *56)*
>
> * [java] Caused by: org.apache.axiom.soap.SOAPProcessingException:
> Transport*
>
> *level information does not match with SOAP Message namespace URI*
>
> * [java] at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.iden*
>
> *ifySOAPVersion(StAXSOAPModelBuilder.java:144)*
>
> * [java] at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.
> *>(StAXSOAPModelBuilder.java:108)*
>
> * [java] at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(*
>
> *ransportUtils.java:120)*
>
> * [java] ... 5 more*
>
>  
>
> Following is my SOAP client code:
>
>  
>
> package com.gryphonnetworks.ws;
>
>  
>
> import java.rmi.RemoteException;
>
> import com.gryphonnetworks.ws.CertifyServiceStub;
>
> import com.gryphonnetworks.common.xsd.ChannelDetails;
>
> import com.gryphonnetworks.common.xsd.CertificationData;
>
> import com.gryphonnetworks.ws.xsd.CertifyClient;
>
> import com.gryphonnetworks.ws.CertifyClientFaultException;
>
> import com.gryphonnetworks.ws.xsd.CertifyClientFault;
>
> import com.gryphonnetworks.ws.xsd.CertifyClientResponse;
>
>  
>
> public class GryphonClient {
>
>   /**
>
>* If account# == "13", then you will get a AccountNotExistFault.
>
>* otherwise if you provide an amount > 1000, you will get a
> InsufficientFundFaultMessageException,
>
>* otherwise you will get a response with a balance equal to
> 1000 - amountWithdrawn.
>
>*/
>
>   private static String URL =
> "http://localhost:8080/axis2/services/CertifyService";;
>
>   public static void main(String[] args) {
>
>  
>
>
>
>  CertifyServiceStub stub = null;
>
>  
>
>  System.out.println("Entering: GryphonClient");
>
>  try {
>
> stub = new CertifyServiceStub(URL);
>
> CertificationData[] certificationData = new
> CertificationData[2];
>
> CertificationData cdTemp = new
> CertificationData();
>
> ChannelDetails [] cahnnelDetails = new
> ChannelDetails[1];
>
> ChannelDetails temp = new ChannelDetails();
>
>
>
> temp.setChannelType("EMAIL");
>
> temp.setChannelDetails("12345");
>
> cahnnelDetails[0] = temp;
>
> cdTemp.setChannelDetails(cahnnelDetails);
>
> cdTemp.setClientId(124);
>
> certificationData[0] = cdTemp;
>
>
>
> cdTemp = new CertificationData();
>
> temp = new ChannelDetails();
>
> cahnnelDetails = new ChannelDetails[1];
>
> temp.setChannelType("FAX");
>
> temp.setChannelDetails("6789");
>
> cahnnelDetails[0] = temp;
>
> cdTemp.setChannelDetails(cahnnelDetails);
>
> 

RE: [axis2] problem with 'enableRESTInAxis2MainServlet' flag

2007-03-01 Thread Nalini Srivastava
Hi,

 

I am trying to enable my webservice to handle both REST and SOAP. I am
currently using ADB for databinding. Also I changed the '
'enableRESTInAxis2MainServlet' flag to true in axis2.xml file. Please
see the file snippet below:

 

 

 



 



true

 



false

 



true

 

After changing the file I regenerated the wsdl and created the aar file
again. When I deployed it on the server(JBoss) and tried invoke the
service using REST I was able to do so. But when I tried to invoke the
service using SOAP client(with the help of stub). I get the following
error.

 

 [java] org.apache.axis2.AxisFault: Transport level information does
not ma

ch with SOAP Message namespace URI; nested exception is:

 [java] org.apache.axiom.soap.SOAPProcessingException: Transport
level

nformation does not match with SOAP Message namespace URI

 [java] at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(

ransportUtils.java:126)

 [java] at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(

ransportUtils.java:67)

 [java] at
org.apache.axis2.description.OutInAxisOperationClient.send(O

tInAxisOperation.java:252)

 [java] at
org.apache.axis2.description.OutInAxisOperationClient.execut

(OutInAxisOperation.java:202)

 [java] at
com.gryphonnetworks.ws.CertifyServiceStub.certifyClient(Cert

fyServiceStub.java:344)

 [java] at
com.gryphonnetworks.ws.GryphonClient.main(GryphonClient.java

56)

 [java] Caused by: org.apache.axiom.soap.SOAPProcessingException:
Transport

level information does not match with SOAP Message namespace URI

 [java] at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.iden

ifySOAPVersion(StAXSOAPModelBuilder.java:144)

 [java] at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:108)

 [java] at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(

ransportUtils.java:120)

 [java] ... 5 more

 

Following is my SOAP client code:

 

package com.gryphonnetworks.ws;

 

import java.rmi.RemoteException;

import com.gryphonnetworks.ws.CertifyServiceStub;

import com.gryphonnetworks.common.xsd.ChannelDetails;

import com.gryphonnetworks.common.xsd.CertificationData;

import com.gryphonnetworks.ws.xsd.CertifyClient;

import com.gryphonnetworks.ws.CertifyClientFaultException;

import com.gryphonnetworks.ws.xsd.CertifyClientFault;

import com.gryphonnetworks.ws.xsd.CertifyClientResponse;

 

public class GryphonClient {

  /**

   * If account# == "13", then you will get a AccountNotExistFault.

   * otherwise if you provide an amount > 1000, you will get a
InsufficientFundFaultMessageException,

   * otherwise you will get a response with a balance equal to 1000
- amountWithdrawn. 

   */

  private static String URL =
"http://localhost:8080/axis2/services/CertifyService";;

  public static void main(String[] args) {

 



 CertifyServiceStub stub = null;

 

 System.out.println("Entering: GryphonClient");

 try {

stub = new CertifyServiceStub(URL);

CertificationData[] certificationData = new
CertificationData[2];

CertificationData cdTemp = new
CertificationData();

ChannelDetails [] cahnnelDetails = new
ChannelDetails[1];

ChannelDetails temp = new ChannelDetails();



temp.setChannelType("EMAIL");

temp.setChannelDetails("12345");

cahnnelDetails[0] = temp;

cdTemp.setChannelDetails(cahnnelDetails);

cdTemp.setClientId(124);

certificationData[0] = cdTemp;



cdTemp = new CertificationData();

temp = new ChannelDetails();

cahnnelDetails = new ChannelDetails[1];

temp.setChannelType("FAX");

temp.setChannelDetails("6789");

cahnnelDetails[0] = temp;

cdTemp.setChannelDetails(cahnnelDetails);

cdTemp.setClientId(2489);

certificationData[1] = cdTemp;





CertifyClient certifyClient = new
CertifyClient();

certifyClient.setData(certificationData);

/*RestEnabled re = new RestEnabled();

re.setArg("Nalini Srivastava");

RestEnabledResponse response =
stub.restEnabled(re);*/

 

CertifyClientResponse response =
stub.certifyClient(certifyClient);

 

  System.out.println("After calling the
ws..."+response);


Re: Session Management for axis2 ServiceClient

2007-03-01 Thread Deepal Jayasinghe
Hi  Thomas;

Please create a JIRA , seems like we need to support different session
ids , at the moment we support JSSION but not ssnid.

Thanks
Deepal

> Hi,
>  
> I'm having a problem with session using a Service Client. I have two
> methods calling two different operations of a web service. The
> webservice is not implemented in axis2.
>  
> I need to use a session so the web service can identify the axis2
> client by each call.
>  
> My class defines a single ServiceClient to make two different call.
>  
> It has following option turned on:
>
> client.getOptions().setManageSession(*true* );
>
> When I make the first call the server runs the webservice and responds
> correctly. Following header is then passed:
>  
> HTTP/1.0 200 OK
> Set-Cookie: ssnid=4383SO95jARAuR1Ad3Cc6clMdI1KEQo-62; path=/;
> Content-Type: text/xml;charset=utf-8
> Connection: Keep-Alive
> Content-Length: 646
>  
> By the second call the client does not put the session data back to
> identify itself.
> Should it be able to use that Set-Cookie Information to identify itself?
>  
> So it passes only this information:
>  
> SOAPAction: "urn:anonOutInOp"
> User-Agent: Axis2
> Authorization: Basic [based64usernamepassword]
> Host: localhost:5554
> Content-Length: 453
> Content-Type: text/xml; charset=UTF-8
>  
> There is also no new header for identification of the session. So the
> application starts a new session and returns an error, because the
> cached data is not available.
>  
> Can someone help me? I'm using axis2 1.1.1
>  
> Bye and Thanks a lot,
> Thomas
>  
>  
> -- 
> Thomas Michelbach


-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"



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



Re: Unable to find serviceContextId

2007-03-01 Thread Deepal Jayasinghe
yes , you are sending an invalid service group id to the server.
One issue might me session has timeout.

Thanks
Deepal

Punnoose, Roshan wrote:

> Anyone ever see this error before:
>
> Unable to find corresponding context for the serviceGroupId: < large ID>>
>
> I’m using the nightly build
>
> **Roshan Punnoose**
>
> Phone: 301-497-6039
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"



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



RE: how to configure java2wsdl to generate minOccurs=0 attribute

2007-03-01 Thread WANG Chi
Hi Martin,
 
Thank you. But this seems doesnot work. I use the ant task to do this,
 



 
The style is WARPPED/LITERAL, 
 
for example my InvocationManager is as follows,
 
public interface InvocationManager {
 
public String test(Integer i);
 
}
 
I want java2wsdl to generate the minOccurs=0 for the integer, so when I use 
wsdl2java to generate the stubs, it still will generate the paramter as an 
Integer instead of int. But axis java2wsdl seems can't generate this. 
 
you can find information at
 
http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200509.mbox/[EMAIL 
PROTECTED]
 
Thank you.
 
 
Best Regards,
WANG Chi
 
 
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Friday, March 02, 2007 10:47 AM ?
To: axis-user@ws.apache.org
Subject: Re: how to configure java2wsdl to generate minOccurs=0 attribute


Wang-
 
java -classpath %CLASSPATH%;. org.apache.axis.wsdl.Java2WSDL %1 
-location=http://localhost:8080/axis/services/%1 -o %1.wsdl

replace %1 with the name of the Java class

Martin--
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.

- Original Message - 
From: WANG Chi   
To: axis-user@ws.apache.org 
Sent: Thursday, March 01, 2007 9:32 PM
Subject: how to configure java2wsdl to generate minOccurs=0 attribute

Hi all,
 
I need to generate wsdl from a java interface in which an element has attribute 
minOccurs="0", can axis 1.4 generate this? thank you very much
 
Best Regards,
WANG Chi



RE: How can I set wsdlFile attribute in the WSDD ?

2007-03-01 Thread WANG Chi
Hi Eapen,
 
I've found this. In wsdd in service element you can add a subelement wsdlFile 
to specify the handcoded wsdl, for example
 
invocationmanager.wsdl
 
I put this wsdl in WEB-INF/classes, so it is in classpath
 
Regards,
WANG Chi
 
-Original Message-
From: WANG Chi [mailto:[EMAIL PROTECTED]
Sent: Friday, March 02, 2007 9:57 AM ?
To: axis-user@ws.apache.org
Subject: RE: How can I set wsdlFile attribute in the WSDD ?


Hi, I need this too. 
Because Axis 1.4 seems can't generate wsdl in which an element has 
minOccurs="0" attribute automatically
 
 
 
 
-Original Message-
From: John Eapen [mailto:[EMAIL PROTECTED]
Sent: Friday, March 02, 2007 2:27 AM ?
To: axis-user
Subject: How can I set wsdlFile attribute in the WSDD ?


I am currently using Axis 1.3

1 . Is it possible to disable the user access to axis auto-generated wsdl 
files. ( eg .. /services/MyService?wsdl ). We would like our users to use the 
handcoded wsdl's instead.

2.  If disabling is not possible, I would like to replace it with the 
corresponding "handcoded" wsdl. I understand that this can be done using the 
"wsdlFile" attribute in wsdd file.
How can I set this in my ant build process which uses "wsdl2java" to generate 
the wsdd and "AdminClient" to deploy. 

Thanks
  John



Re:how to configure java2wsdl to generate minOccurs=0 attribute

2007-03-01 Thread Pierpaolo Pagnoni
In http://ws.apache.org/axis/java/user-guide.html
you can find all the info, expecially in
http://ws.apache.org/axis/java/user-guide.html#Java2WSDLBuildingWSDLFromJava

you can read how to produce a wsdl from a java interface

This guide is about Axis1.2 but I use that with Axis1.4

Regards
P.

> Hi all,
>
> I need to generate wsdl from a java interface in which an element has 
> attribute minOccurs="0", can axis 1.4 generate this? thank you very much
>
> Best Regards,
> WANG Chi
> 


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



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



Re: how to configure java2wsdl to generate minOccurs=0 attribute

2007-03-01 Thread Martin Gainty
Wang-

java -classpath %CLASSPATH%;. org.apache.axis.wsdl.Java2WSDL %1 
-location=http://localhost:8080/axis/services/%1 -o %1.wsdl

replace %1 with the name of the Java class

Martin--
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
  - Original Message - 
  From: WANG Chi 
  To: axis-user@ws.apache.org 
  Sent: Thursday, March 01, 2007 9:32 PM
  Subject: how to configure java2wsdl to generate minOccurs=0 attribute


  Hi all,

  I need to generate wsdl from a java interface in which an element has 
attribute minOccurs="0", can axis 1.4 generate this? thank you very much

  Best Regards,
  WANG Chi

how to configure java2wsdl to generate minOccurs=0 attribute

2007-03-01 Thread WANG Chi
Hi all,
 
I need to generate wsdl from a java interface in which an element has attribute 
minOccurs="0", can axis 1.4 generate this? thank you very much
 
Best Regards,
WANG Chi


RE: How can I set wsdlFile attribute in the WSDD ?

2007-03-01 Thread WANG Chi
Hi, I need this too. 
Because Axis 1.4 seems can't generate wsdl in which an element has 
minOccurs="0" attribute automatically
 
 
 
 
-Original Message-
From: John Eapen [mailto:[EMAIL PROTECTED]
Sent: Friday, March 02, 2007 2:27 AM ?
To: axis-user
Subject: How can I set wsdlFile attribute in the WSDD ?


I am currently using Axis 1.3

1 . Is it possible to disable the user access to axis auto-generated wsdl 
files. ( eg .. /services/MyService?wsdl ). We would like our users to use the 
handcoded wsdl's instead.

2.  If disabling is not possible, I would like to replace it with the 
corresponding "handcoded" wsdl. I understand that this can be done using the 
"wsdlFile" attribute in wsdd file.
How can I set this in my ant build process which uses "wsdl2java" to generate 
the wsdd and "AdminClient" to deploy. 

Thanks
  John



Re: Axis and HTTP Proxy question

2007-03-01 Thread Mario Felarca
Ok..a couple of additional questions and some interesting behavior.

The first items is that I was trying to convert my endpoint into a URI, and 
when I did a super.cachedEndpoint.toURI() from within the Stub class, it 
actually fired a correct network connection, with https:// and proxy=HTTP 
@ .

Regarding the actual Call object itself, do I need to specify the Transport and 
the Handlers in order for it to recognize an HTTP proxy for an https endpoint? 
Or should that be configured or registered somewhere else already and the Call 
will automatically pick it up.

I guess a final question would be if I need to do that registration somewhere.

Thanks in advance again!

Mario-


- Original Message 
From: Mario Felarca <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Thursday, March 1, 2007 4:55:27 PM
Subject: Axis and HTTP Proxy question

Hello,

I have a Java client running through Java 5.0 that is utilizing Axis to connect 
to an https endpoint.

It appears that the Call object I am using builds up a direct socket connection 
(socket:// PROXY=DIRECT) to do this, even if I have specified an HTTP proxy 
that it should be using. If it is a SOCKS proxy, things seem to work fine as 
well.

I have tried setting many different properties, both within my code and 
externally, that I have found on the list and on other sources on the web, but 
I fear that I am still missing some critical element that needs to be 
configured.

Can someone point me in the right direction with regards to trying to get the 
connection to work with respect to HTTP proxies? Even a pointer to a good 
resource to dig in would be greatly appreciated as I seem to be out of places 
to search.

Thanks much in advance!

Mario-



-
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][Rampart] Rampart and SwA

2007-03-01 Thread Davanum Srinivas

[EMAIL PROTECTED] please subscribe first using rampart-dev-subscribe@

On 3/1/07, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:

Hi Sebastian,
> thanks for the answer. I know that Rampart is able to secure MTOM
> messages. But utilizing MTOM is not usable for large messages. The
> amount of required memory is that high it is not usable for our
> project...
There can't be any difference between the memory consumption of SwA &
MTOM in Axis2, since they both are using the same logic underneath,
unless you explicitly reads in the MTOM attachments to memory (by
retrieving the actual binary).

> I don't know the excact reasons for that, but in our
> performance tests the MTOM approach requires a lot of additional memory.
If your use case is securing the messages together with the binary
attachments, then all the MTOM attachments might needs to be read in
to the memory. It'll be the same if you are able to secure SwA type
attachments..
A test case to figure this out would be very useful for us to fix
this, if there is any such behaviour.

> The MTOM approach with file caching needs additional excecution time.
> Therefore we try to implement processing of large messages(more than
> 100MB) with SwA and java streams.
Once again, the underlying layer is the same.. So theoretically they
should take the same time..

>
> Do you know where I can ask questions concerning the roadmap of specific
> components of Axis2? Maybe this is the wrong mailing list for such kind
> of question.
Security (rampart) was moved out to a separate project very recently.
I'm not sure whether the mailing list is up yet..

~Thilina
> But anyway, thanks for your answer...
>
> Regards,
> Sebastian
>
>
> Thilina Gunarathne schrieb:
> > Rampart has the capability to secure attachments send using MTOM..
> >
> > I'm not sure whether is there or planned support for SwA..
> >
> > Thanks,
> > Thilina
> >
> > On 3/1/07, Sebastian Roschke <[EMAIL PROTECTED]>
> > wrote:
> >> Hello,
> >>
> >> due to memory efficiency I work with SwA to send messages based on java
> >> streams. Is there a possibility to secure such messages with Rampart? Is
> >> there any support for SwA in Rampart planned for future releases?
> >>
> >> Regards,
> >> Sebastian
> >>
> >>
> >>
> >
> >
>
>
>
>


--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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





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

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



Re: Is there a way to programmatically get the content of server-config.wsdd?

2007-03-01 Thread Davanum Srinivas

You can use the "org.apache.axis.utils.Admin" instead of the AdminClient.

See usages here:
http://www.google.com/search?hl=en&q=org.apache.axis.utils.Admin&btnG=Google+Search

-- dims

On 3/1/07, Kathy Chan <[EMAIL PROTECTED]> wrote:


Hi,

I would like to find out if there is a way I could get the content of
server-config.wsdd programmatically.

I understand that server-config.wsdd is created when I call the Axis
AdminClient with the Axis servlet URL and a deploy.wsdd file.  The
server-config.wsdd file is generated into the publish directory of the
server.  This present a problem because in Eclipse WTP, the server publish
the content from the Eclipse workspace but the "live" publish directory the
server uses may or may not be in the workspace (it could be in some
temporary location or server specific location that the workspace content is
copied to).  This causes a problem because the server-config.wsdd that
contains information on what Web services are deployed could be lost when
the server republishes from the workspace (since that file is not in the
workspace but is in the "live" publish directory).   I need to find a way to
persist the server-config.wsdd in the Eclipse workspace so that the
information would not be lost in subsequent republish.

One way I was able to workaround the problem is copying the
server-config.wsdd file from the server's live publish directory back to the
workspace but it requires the servers to implement an API to return the
publish directory.  However, that means we need to ask all servers we could
generate Axis Web service on to support it.  This is not scalable or easily
achievable since that list of servers are growing constantly.

So, I would like to find out if there's a call I could make (or a parameter
I could specify in AdminClient) that would return the content of
server-config.wsdd file programmatically rather then just expect to find it
in the server's publish directory.  If this support is not there currently,
could it be easily implemented in the next release?

Regards,
 Kathy Chan





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

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



Wrap Array and Null Pointer Exceptions :

2007-03-01 Thread John Eapen

I am using Axis 1.3 and would like to know if the issue related to
"wrapArrays" has been resolved in later versions of Axis.

Currently we see null pointer exceptions as a result of this ambiguity. In
the following example we are not using  the "undocumented option of
"wraparrays" and probably using that will help. That may mean lot of code
changes related to wrapping of arrays.

 HAND CODED Version **




  




  Auto-Generated by AXIS ( /services/MyService?wsdl ) *



 

 



I found following information on the web.


I note that Axis 1.3 wsdl2java supports an undocumented option:
--wrapArrays.  I can see that it causes MyClass [] to be wrapped as
ArrayOfMyClass.


Further explaination can be found at the following url.
http://mail-archives.apache.org/mod_mbox/ws-axis-user/200511.mbox/[EMAIL 
PROTECTED]

Any help will be greatly appreciated. If this is fixed in Axis 1.4 or Axis
2.1, then it would make sense to upgrade rather than use "wrapparrays"

Thanks
 John


Axis and HTTP Proxy question

2007-03-01 Thread Mario Felarca
Hello,

I have a Java client running through Java 5.0 that is utilizing Axis to connect 
to an https endpoint.

It appears that the Call object I am using builds up a direct socket connection 
(socket:// PROXY=DIRECT) to do this, even if I have specified an HTTP proxy 
that it should be using. If it is a SOCKS proxy, things seem to work fine as 
well.

I have tried setting many different properties, both within my code and 
externally, that I have found on the list and on other sources on the web, but 
I fear that I am still missing some critical element that needs to be 
configured.

Can someone point me in the right direction with regards to trying to get the 
connection to work with respect to HTTP proxies? Even a pointer to a good 
resource to dig in would be greatly appreciated as I seem to be out of places 
to search.

Thanks much in advance!

Mario-



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



AW: HTTP Authorization Header

2007-03-01 Thread Steinberg Martin
Hi Thomas,

 

I had the same problem. I use the following code - and it rocks ;-))

 

WebServiceStub.java (Constructor)

 

   _serviceClient = new
org.apache.axis2.client.ServiceClient(configurationContext,_service);



configurationContext =
_serviceClient.getServiceContext().getConfigurationContext();

 

HttpTransportProperties.Authenticator auth = new
HttpTransportProperties.Authenticator();

auth.setUsername("user");

auth.setPassword("pass");

Options options = _serviceClient.getOptions();

options.setProperty(HTTPConstants.AUTHENTICATE, auth);

_serviceClient.setOptions(options);

_serviceClient.getOptions().setTo(new
org.apache.axis2.addressing.EndpointReference(

targetEndpoint));

 

 

 

 

 

 

 

Hi,

 

I'm trying to pass the Authorization header via HTTP.

 

Im using axis2 1.1.1 and trying to set the options like that

 

HttpTransportProperties.Authenticator auth = 

new HttpTransportProperties.Authenticator();
auth.setUsername(username); 
auth.setPassword(password);
options.setProperty(HttpTransportProperties.Authenticator. BASIC, auth);


My TPCmon is logging the information for me and axis does not send the
HTTP header for authorization (Base 64 encoded). 

Is there a way to do that? 


I only get following these header fields:

 

SOAPAction: "urn:anonOutInOp"
User-Agent: Axis2
Host: localhost:5554
Content-Length: 453
Content-Type: text/xml; charset=UTF-8

 

Bye and Thanks
-- 
Thomas Michelbach 



RE: Benefits of using Message style WS

2007-03-01 Thread Spies, Brennan
The Axis 1.x user's guide is using "style" in this context to refer to both
the WSDL style and the databinding choice. The only difference then b/n
"Document" and "Message" is that "Message" has no databinding.

 

-Original Message-
From: Spies, Brennan 
Sent: Thursday, March 01, 2007 12:49 PM
To: axis-user@ws.apache.org
Subject: RE: Benefits of using Message style WS

 

Yes. This is independent of your databinding choice.

 

 

-Original Message-
From: Joshua White [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 12:46 PM
To: axis-user@ws.apache.org
Subject: Re: Benefits of using Message style WS

 

Exactly.  I am trying to determine if there is any benefit of creating a
service this way.  Are you still able to specify a schema for both your
input/output arguments in the wsdl file if you send messages this way?

 

-Josh

 

On 3/1/07, Spies, Brennan <[EMAIL PROTECTED]> wrote: 

The "Message" style, as defined in Axis 1.x, is really just raw XML (no
databinding). You would, of course, use this if you did not want Java <-> XML
databinding. E.g., you want to do a transformation with XSL or XQuery, or do
your own XML parsing, etc., etc.

 

-Original Message-
From: Joshua White [mailto: [EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 12:19 PM 
To: axis-user@ws.apache.org

Subject: Re: Benefits of using Message style WS

 

Brennan,

 

Thanks for the reply.  I understand the value of the doc/literal wrapped
style.  I was hoping to go one step further though.  Axis 1.X supports RPC,
Document, Wrapped, and Message style services.  I was hoping to determine the
benefits of using Messsage style services over doc/literal wrapped.  To be
perfectly honest, I don't know enough about Axis2 to know if Message style
services are still supported.  Have you used them?  Do you know what the
advantages are? 

 

Joshua 

 

On 3/1/07, Spies, Brennan < [EMAIL PROTECTED]
 > wrote: 

If you have "overloaded" operations in WSDL, you cannot use doc/literal
wrapped style. In the wrapped pattern, you require an element to have the
same name as the operation, and you cannot have two elements with the same
name in XML. Other than that, doc/lit wrapped has the nice advantage that it
is the "best of both worlds", having the operation name in the SOAP message
but also the greater expressiveness of the document style. 

 

Good article here:
http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/

 

If you are using Axis 2.0 with databinding, you may want to choose a
databinding framework (such as JiBX) that supports the wrapped style. 

 

Brennan

 

-Original Message-
From: Joshua White [mailto: [EMAIL PROTECTED] 
] 
Sent: Thursday, March 01, 2007 7:27 AM 
To: axis-user@ws.apache.org
Subject: Benefits of using Message style WS

 

Hello,

 

I am having a hard time understanding the benefits of using a message style
web service as opposed to a regular doc/lit wrapped service.  Could someone
please clarify this for me? 

 

Regards,

 

Joshua

 

 

 

 



RE: Benefits of using Message style WS

2007-03-01 Thread Spies, Brennan
Yes. This is independent of your databinding choice.

 

 

-Original Message-
From: Joshua White [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 12:46 PM
To: axis-user@ws.apache.org
Subject: Re: Benefits of using Message style WS

 

Exactly.  I am trying to determine if there is any benefit of creating a
service this way.  Are you still able to specify a schema for both your
input/output arguments in the wsdl file if you send messages this way?

 

-Josh

 

On 3/1/07, Spies, Brennan <[EMAIL PROTECTED]> wrote: 

The "Message" style, as defined in Axis 1.x, is really just raw XML (no
databinding). You would, of course, use this if you did not want Java <-> XML
databinding. E.g., you want to do a transformation with XSL or XQuery, or do
your own XML parsing, etc., etc.

 

-Original Message-
From: Joshua White [mailto: [EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 12:19 PM 
To: axis-user@ws.apache.org

Subject: Re: Benefits of using Message style WS

 

Brennan,

 

Thanks for the reply.  I understand the value of the doc/literal wrapped
style.  I was hoping to go one step further though.  Axis 1.X supports RPC,
Document, Wrapped, and Message style services.  I was hoping to determine the
benefits of using Messsage style services over doc/literal wrapped.  To be
perfectly honest, I don't know enough about Axis2 to know if Message style
services are still supported.  Have you used them?  Do you know what the
advantages are? 

 

Joshua 

 

On 3/1/07, Spies, Brennan < [EMAIL PROTECTED]
 > wrote: 

If you have "overloaded" operations in WSDL, you cannot use doc/literal
wrapped style. In the wrapped pattern, you require an element to have the
same name as the operation, and you cannot have two elements with the same
name in XML. Other than that, doc/lit wrapped has the nice advantage that it
is the "best of both worlds", having the operation name in the SOAP message
but also the greater expressiveness of the document style. 

 

Good article here:
http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/

 

If you are using Axis 2.0 with databinding, you may want to choose a
databinding framework (such as JiBX) that supports the wrapped style. 

 

Brennan

 

-Original Message-
From: Joshua White [mailto: [EMAIL PROTECTED] 
] 
Sent: Thursday, March 01, 2007 7:27 AM 
To: axis-user@ws.apache.org
Subject: Benefits of using Message style WS

 

Hello,

 

I am having a hard time understanding the benefits of using a message style
web service as opposed to a regular doc/lit wrapped service.  Could someone
please clarify this for me? 

 

Regards,

 

Joshua

 

 

 

 



Re: Benefits of using Message style WS

2007-03-01 Thread Joshua White

Exactly.  I am trying to determine if there is any benefit of creating a
service this way.  Are you still able to specify a schema for both your
input/output arguments in the wsdl file if you send messages this way?

-Josh


On 3/1/07, Spies, Brennan <[EMAIL PROTECTED]> wrote:


  The "Message" style, as defined in Axis 1.x, is really just raw XML (no
databinding). You would, of course, use this if you did not want Java <->
XML databinding. E.g., you want to do a transformation with XSL or XQuery,
or do your own XML parsing, etc., etc.



-Original Message-
*From:* Joshua White [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, March 01, 2007 12:19 PM
*To:* axis-user@ws.apache.org
*Subject:* Re: Benefits of using Message style WS



Brennan,



Thanks for the reply.  I understand the value of the doc/literal wrapped
style.  I was hoping to go one step further though.  Axis 1.X supports
RPC, Document, Wrapped, and Message style services.  I was hoping to
determine the benefits of using Messsage style services over doc/literal
wrapped.  To be perfectly honest, I don't know enough about Axis2 to know
if Message style services are still supported.  Have you used them?  Do you
know what the advantages are?



Joshua



On 3/1/07, *Spies, Brennan* <[EMAIL PROTECTED]> wrote:

If you have "overloaded" operations in WSDL, you cannot use doc/literal
wrapped style. In the wrapped pattern, you require an element to have the
same name as the operation, and you cannot have two elements with the same
name in XML. Other than that, doc/lit wrapped has the nice advantage that it
is the "best of both worlds", having the operation name in the SOAP message
but also the greater expressiveness of the document style.



Good article here:
http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/



If you are using Axis 2.0 with databinding, you may want to choose a
databinding framework (such as JiBX) that supports the wrapped style.



Brennan



-Original Message-
*From:* Joshua White [mailto: [EMAIL PROTECTED]
*Sent:* Thursday, March 01, 2007 7:27 AM
*To:* axis-user@ws.apache.org
*Subject:* Benefits of using Message style WS



Hello,



I am having a hard time understanding the benefits of using a message
style web service as opposed to a regular doc/lit wrapped service.  Could
someone please clarify this for me?



Regards,



Joshua









Re: [Axis2][Rampart] Rampart and SwA

2007-03-01 Thread Thilina Gunarathne

Hi Sebastian,

thanks for the answer. I know that Rampart is able to secure MTOM
messages. But utilizing MTOM is not usable for large messages. The
amount of required memory is that high it is not usable for our
project...

There can't be any difference between the memory consumption of SwA &
MTOM in Axis2, since they both are using the same logic underneath,
unless you explicitly reads in the MTOM attachments to memory (by
retrieving the actual binary).


I don't know the excact reasons for that, but in our
performance tests the MTOM approach requires a lot of additional memory.

If your use case is securing the messages together with the binary
attachments, then all the MTOM attachments might needs to be read in
to the memory. It'll be the same if you are able to secure SwA type
attachments..
A test case to figure this out would be very useful for us to fix
this, if there is any such behaviour.


The MTOM approach with file caching needs additional excecution time.
Therefore we try to implement processing of large messages(more than
100MB) with SwA and java streams.

Once again, the underlying layer is the same.. So theoretically they
should take the same time..



Do you know where I can ask questions concerning the roadmap of specific
components of Axis2? Maybe this is the wrong mailing list for such kind
of question.

Security (rampart) was moved out to a separate project very recently.
I'm not sure whether the mailing list is up yet..

~Thilina

But anyway, thanks for your answer...

Regards,
Sebastian


Thilina Gunarathne schrieb:
> Rampart has the capability to secure attachments send using MTOM..
>
> I'm not sure whether is there or planned support for SwA..
>
> Thanks,
> Thilina
>
> On 3/1/07, Sebastian Roschke <[EMAIL PROTECTED]>
> wrote:
>> Hello,
>>
>> due to memory efficiency I work with SwA to send messages based on java
>> streams. Is there a possibility to secure such messages with Rampart? Is
>> there any support for SwA in Rampart planned for future releases?
>>
>> Regards,
>> Sebastian
>>
>>
>>
>
>







--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Re: Benefits of using Message style WS

2007-03-01 Thread robert lazarski

If I understand the question correctly, then applying:

-d  none

To wsdl2java would be the way to do this in axis2. See:

http://ws.apache.org/axis2/tools/1_1/CodegenToolReference.html

HTH,
Robert

On 3/1/07, Spies, Brennan <[EMAIL PROTECTED]> wrote:






The "Message" style, as defined in Axis 1.x, is really just raw XML (no
databinding). You would, of course, use this if you did not want Java <->
XML databinding. E.g., you want to do a transformation with XSL or XQuery,
or do your own XML parsing, etc., etc.



-Original Message-
 From: Joshua White [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 01, 2007 12:19 PM
 To: axis-user@ws.apache.org
 Subject: Re: Benefits of using Message style WS





Brennan,





Thanks for the reply.  I understand the value of the doc/literal wrapped
style.  I was hoping to go one step further though.  Axis 1.X supports RPC,
Document, Wrapped, and Message style services.  I was hoping to determine
the benefits of using Messsage style services over doc/literal wrapped.  To
be perfectly honest, I don't know enough about Axis2 to know if Message
style services are still supported.  Have you used them?  Do you know what
the advantages are?





Joshua




On 3/1/07, Spies, Brennan <[EMAIL PROTECTED]> wrote:



If you have "overloaded" operations in WSDL, you cannot use doc/literal
wrapped style. In the wrapped pattern, you require an element to have the
same name as the operation, and you cannot have two elements with the same
name in XML. Other than that, doc/lit wrapped has the nice advantage that it
is the "best of both worlds", having the operation name in the SOAP message
but also the greater expressiveness of the document style.



Good article here:
http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/



If you are using Axis 2.0 with databinding, you may want to choose a
databinding framework (such as JiBX) that supports the wrapped style.




Brennan




-Original Message-
 From: Joshua White [mailto: [EMAIL PROTECTED]
 Sent: Thursday, March 01, 2007 7:27 AM
 To: axis-user@ws.apache.org
 Subject: Benefits of using Message style WS




Hello,





I am having a hard time understanding the benefits of using a message style
web service as opposed to a regular doc/lit wrapped service.  Could someone
please clarify this for me?





Regards,





Joshua










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



RE: Benefits of using Message style WS

2007-03-01 Thread Spies, Brennan
The "Message" style, as defined in Axis 1.x, is really just raw XML (no
databinding). You would, of course, use this if you did not want Java <-> XML
databinding. E.g., you want to do a transformation with XSL or XQuery, or do
your own XML parsing, etc., etc.

 

-Original Message-
From: Joshua White [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 12:19 PM
To: axis-user@ws.apache.org
Subject: Re: Benefits of using Message style WS

 

Brennan,

 

Thanks for the reply.  I understand the value of the doc/literal wrapped
style.  I was hoping to go one step further though.  Axis 1.X supports RPC,
Document, Wrapped, and Message style services.  I was hoping to determine the
benefits of using Messsage style services over doc/literal wrapped.  To be
perfectly honest, I don't know enough about Axis2 to know if Message style
services are still supported.  Have you used them?  Do you know what the
advantages are? 

 

Joshua 

 

On 3/1/07, Spies, Brennan <[EMAIL PROTECTED]> wrote: 

If you have "overloaded" operations in WSDL, you cannot use doc/literal
wrapped style. In the wrapped pattern, you require an element to have the
same name as the operation, and you cannot have two elements with the same
name in XML. Other than that, doc/lit wrapped has the nice advantage that it
is the "best of both worlds", having the operation name in the SOAP message
but also the greater expressiveness of the document style. 

 

Good article here:
http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/

 

If you are using Axis 2.0 with databinding, you may want to choose a
databinding framework (such as JiBX) that supports the wrapped style. 

 

Brennan

 

-Original Message-
From: Joshua White [mailto: [EMAIL PROTECTED] 
] 
Sent: Thursday, March 01, 2007 7:27 AM 
To: axis-user@ws.apache.org
Subject: Benefits of using Message style WS

 

Hello,

 

I am having a hard time understanding the benefits of using a message style
web service as opposed to a regular doc/lit wrapped service.  Could someone
please clarify this for me? 

 

Regards,

 

Joshua

 

 

 



Re: [Axis2][Rampart] Rampart and SwA

2007-03-01 Thread Thilina Gunarathne

Also, some research I did indicated (if I understood it correctly) that in
Axis1.1.1 MTOM doesn't really work as an attachment - it ALWAYS will get
encoded as Base64 embedded in the message - there was a config option
previously (in Axis1.0) that allowed some sort of parameter to define binary
data nodes, but it seems to have disappears.

AFAIK it is working as expected... Can you give us more specific
clues... Please use TCPMON to capture messages.. SOAPMonitor has a bug
which shows all the attachments as inline base64..

~Thilina


-Original Message-
From: Sebastian Roschke [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 5:04 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2][Rampart] Rampart and SwA

Hi Thilina,

thanks for the answer. I know that Rampart is able to secure MTOM
messages. But utilizing MTOM is not usable for large messages. The
amount of required memory is that high it is not usable for our
project... I don't know the excact reasons for that, but in our
performance tests the MTOM approach requires a lot of additional memory.
The MTOM approach with file caching needs additional excecution time.
Therefore we try to implement processing of large messages(more than
100MB) with SwA and java streams.

Do you know where I can ask questions concerning the roadmap of specific
components of Axis2? Maybe this is the wrong mailing list for such kind
of question.
But anyway, thanks for your answer...

Regards,
Sebastian


Thilina Gunarathne schrieb:
> Rampart has the capability to secure attachments send using MTOM..
>
> I'm not sure whether is there or planned support for SwA..
>
> Thanks,
> Thilina
>
> On 3/1/07, Sebastian Roschke <[EMAIL PROTECTED]>
> wrote:
>> Hello,
>>
>> due to memory efficiency I work with SwA to send messages based on java
>> streams. Is there a possibility to secure such messages with Rampart? Is
>> there any support for SwA in Rampart planned for future releases?
>>
>> Regards,
>> Sebastian
>>
>>
>>
>
>





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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Re: Benefits of using Message style WS

2007-03-01 Thread Joshua White

Brennan,

Thanks for the reply.  I understand the value of the doc/literal wrapped
style.  I was hoping to go one step further though.  Axis 1.X supports RPC,
Document, Wrapped, and Message style services.  I was hoping to determine
the benefits of using Messsage style services over doc/literal wrapped.
To be perfectly honest, I don't know enough about Axis2 to know if Message
style services are still supported.  Have you used them?  Do you know what
the advantages are?

Joshua


On 3/1/07, Spies, Brennan <[EMAIL PROTECTED]> wrote:


 If you have "overloaded" operations in WSDL, you cannot use doc/literal
wrapped style. In the wrapped pattern, you require an element to have the
same name as the operation, and you cannot have two elements with the same
name in XML. Other than that, doc/lit wrapped has the nice advantage that it
is the "best of both worlds", having the operation name in the SOAP message
but also the greater expressiveness of the document style.



Good article here:
http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/



If you are using Axis 2.0 with databinding, you may want to choose a
databinding framework (such as JiBX) that supports the wrapped style.



Brennan



-Original Message-
*From:* Joshua White [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, March 01, 2007 7:27 AM
*To:* axis-user@ws.apache.org
*Subject:* Benefits of using Message style WS



Hello,



I am having a hard time understanding the benefits of using a message
style web service as opposed to a regular doc/lit wrapped service.  Could
someone please clarify this for me?



Regards,



Joshua







trouble with namespace url in wsdl file

2007-03-01 Thread Donahue, Bill
I have a two enet addresses on a server. When I request the wsdl file from my 
browser:

http://gcnss2.atsdev.sensis.com/DBRI/services/AssetInfoService?wsdl

this is an excerpt of what I see: 

 

….

  

  http://schemas.xmlsoap.org/soap/encoding/";  

namespace="http://gcnss.atsdev.sensis.com/DBRI/services/AssetInfoService"; 
use="encoded"/>

 

   



−



   

 http://gcnss2.atsdev.sensis.com/DBRI/services/AssetInfoService"/>

  





 

Notice that the wsdl returned both gcnss and gcnss2 in the url. 

I don’t hardcode the address or port anywhere for portability.

Is there a way to enforce which enet address gets implemented from the 

server-config.wsdd file?

Thanks,

Bill 



RE: Set Read Timeout Programatically

2007-03-01 Thread Johnson, Larry D \(LJOHNSON\)
Great! That did the job.  Thanks!

 

Regards,

Larry Johnson

 



From: Ryan Nelsestuen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 1:19 PM
To: axis-user@ws.apache.org
Subject: RE: Set Read Timeout Programatically

 

There is a setTimeOutInMilliSeconds method on the Options class if you
are using the ServiceClient...

 



From: Johnson, Larry D (LJOHNSON) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 12:08 PM
To: axis-user@ws.apache.org
Subject: Set Read Timeout Programatically

 

All,

 

Is there anyway to set a requests read timeout programmatically?  I know
it can be set within the axis2.xml file; however, the value there is
fine for most requests.  I need to extend this value for only one or two
request types.

 

Regards,

Larry Johnson

 



Re: setOperationContext

2007-03-01 Thread Thilina Gunarathne

As mentioned in my previous mail,
MessageContext inMessageContext = MessageContext.getCurrentMessageContext();
OperationContext operationContext = inMessageContext.getOperationContext();
MessageContext outMessageContext = operationContext
.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);

~Thilina

On 3/1/07, Punnoose, Roshan <[EMAIL PROTECTED]> wrote:

Sorry to keep bringing this up, but how do I get access to the
OutMessageContext. I'm assuming that the
MessageContext.getCurrentContext() will only bring back the
InMessageContext?

Roshan Punnoose
Phone: 301-497-6039

-Original Message-
From: Punnoose, Roshan [mailto:[EMAIL PROTECTED]
Sent: Friday, February 23, 2007 9:47 AM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: RE: setOperationContext

If this is a static method, how can multiple requests to one service
work? Just wondering, how I could access the MessageId for different
requests to the same service. Thanks!

Roshan Punnoose
Phone: 301-497-6039
-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 11:06 PM
To: axis-user@ws.apache.org
Subject: Re: setOperationContext

That's outdated!. please use MessageContext.getCurrentContext() from
inside your service method (when Axis2 calls your service method.)

thanks,
dims

On 2/22/07, Kang, Kamaljeet K. <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to access service context on the skeleton side. I
followed
> the documentation ("http://wso2.org/library/259";) and added
> 'setOperationContext(OperationContext opCtxt)' in the skeleton class
but
> the method is never called. Is this the correct way to access Context
on
> the server side?
>
>
> Thanks
>
> Kamal Kang
>
> 
> The information contained in this message may be privileged
> and confidential and protected from disclosure. If the reader
> of this message is not the intended recipient, or an employee
> or agent responsible for delivering this message to the
> intended recipient, you are hereby notified that any reproduction,
> dissemination or distribution of this communication is strictly
> prohibited. If you have received this communication in error,
> please notify us immediately by replying to the message and
> deleting it from your computer. Thank you. Tellabs
> 
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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


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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



RE: Set Read Timeout Programatically

2007-03-01 Thread Ryan Nelsestuen
There is a setTimeOutInMilliSeconds method on the Options class if you are
using the ServiceClient.

 

  _  

From: Johnson, Larry D (LJOHNSON) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 12:08 PM
To: axis-user@ws.apache.org
Subject: Set Read Timeout Programatically

 

All,

 

Is there anyway to set a requests read timeout programmatically?  I know it
can be set within the axis2.xml file; however, the value there is fine for
most requests.  I need to extend this value for only one or two request
types.

 

Regards,

Larry Johnson

 



Set Read Timeout Programatically

2007-03-01 Thread Johnson, Larry D \(LJOHNSON\)
All,

 

Is there anyway to set a requests read timeout programmatically?  I know
it can be set within the axis2.xml file; however, the value there is
fine for most requests.  I need to extend this value for only one or two
request types.

 

Regards,

Larry Johnson

 



Re: MOTM and Encoding/Decoding

2007-03-01 Thread Davanum Srinivas

Derek,

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

thanks,
dims

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

Thank you for the very fast response.

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

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

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

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

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

For smaller Excel files the times are quite reasonable.

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

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

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

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

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

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

37 seconds to read the 5.4M binary file seems like a long time.  As well you
can see that the server processed a larger file (1.4M) in half the time as
did the client in Test 1.  For even larger files the difference becomes
greater.

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

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

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

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

Thanks!

Derek

_
Don't waste time standing in line—try shopping online. Visit Sympatico / MSN
Shopping today! http://shopping.sympatico.msn.ca


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





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

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



Unable to find serviceContextId

2007-03-01 Thread Punnoose, Roshan
Anyone ever see this error before:

 

Unable to find corresponding context for the serviceGroupId: <>

 

I'm using the nightly build

 

Roshan Punnoose

Phone: 301-497-6039

 

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

How can I set wsdlFile attribute in the WSDD ?

2007-03-01 Thread John Eapen

I am currently using Axis 1.3

1 . Is it possible to disable the user access to axis auto-generated wsdl
files. ( eg .. /services/MyService?wsdl ). We would like our users to use
the handcoded wsdl's instead.

2.  If disabling is not possible, I would like to replace it with the
corresponding "handcoded" wsdl. I understand that this can be done using the
"wsdlFile" attribute in wsdd file.
How can I set this in my ant build process which uses "wsdl2java" to
generate the wsdd and "AdminClient" to deploy.

Thanks
 John


RE: System property locations

2007-03-01 Thread Ryan Nelsestuen
You can probably pass them into Tomcat as command line options in the Tomcat
startup .sh file... (e.g. add -Dsome.property=foo to the java command).
Sometimes you can set an environment variable that will automatically be
read and included as part of the startup script (e.g. weblogic has
JAVA_OPTIONS - maybe Tomcat does something similar - check out their startup
script).

-Original Message-
From: Robin Harvey [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 10:16 AM
To: axis-user@ws.apache.org
Subject: System property locations

Hi,

Apologies for the newbie question.  I need to use Saxon in my service,
and I'm struggling to figure out where to set the system property needed
to achieve this.  I've tried making calls to System.setProperty() in my
service implementation class, but this results in class not found
exceptions (even though the Saxon jar file is in the lib/ subdir of my
aar file).  Is there somewhere in the Tomcat/Axis setup I can set this
property?  FYI: here's my current setup:

Tomcat 5.5.20
Axis2 1.1.1
JDK 1.6.0 (Sun)
Linux 2.6 (Ubuntu Edgy)


Many thanks,
--Robin

-- 
Robin Harvey
Research & Development
Chapter Eight Limited

Castleton Mill
Castleton Close
Leeds
LS12 2DS

E: [EMAIL PROTECTED]
T: 0113 227 0800
F: 0113 227 0801

www.chaptereight.com

This email has been sent to you by Chapter Eight Limited ("Chapter
Eight"). Chapter Eight is registered in England and Wales with company
number 05818885 and has it's registered office at Castleton Mill, 
Castleton Close, Leeds, LS12 2DS. Chapter Eight is VAT registered
with VAT number 882 879 848. Chapter Eight is registered as a 
data controller under the Data Protection Act 1998 with registration 
number Z9562928.

This e-mail, including attachments, is intended for the person(s)
or company named and may contain confidential and/or legally
privileged information. Unauthorised disclosure, copying or use
of this information may be unlawful and is prohibited. If you are
not the intended recipient or you have received this message in
error, please delete this message and notify the sender.

If you are not the intended recipient, or the employee or agent
responsible for delivering such materials to the intended recipient,
you are hereby notified that any use, any form of reproduction,
dissemination, copying, disclosure, modification, distribution
and/or publication of this email message or its attachments other
than by its intended recipient is strictly prohibited by the sender.

On the basis that you are the intended recipient then receipt of
this email by you represents your confirmation that you agree,
or continue to agree, to be bound by our standard Terms of Business
applicable to the transaction to which this email relates.

If you require a copy (or a replacement copy) of the applicable
standard Terms and Conditions of Business please email your request
by return.


-
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: Benefits of using Message style WS

2007-03-01 Thread Spies, Brennan
If you have "overloaded" operations in WSDL, you cannot use doc/literal
wrapped style. In the wrapped pattern, you require an element to have the
same name as the operation, and you cannot have two elements with the same
name in XML. Other than that, doc/lit wrapped has the nice advantage that it
is the "best of both worlds", having the operation name in the SOAP message
but also the greater expressiveness of the document style.

 

Good article here:
http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/

 

If you are using Axis 2.0 with databinding, you may want to choose a
databinding framework (such as JiBX) that supports the wrapped style.

 

Brennan

 

-Original Message-
From: Joshua White [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 7:27 AM
To: axis-user@ws.apache.org
Subject: Benefits of using Message style WS

 

Hello,

 

I am having a hard time understanding the benefits of using a message style
web service as opposed to a regular doc/lit wrapped service.  Could someone
please clarify this for me?

 

Regards,

 

Joshua

 

 



System property locations

2007-03-01 Thread Robin Harvey
Hi,

Apologies for the newbie question.  I need to use Saxon in my service,
and I'm struggling to figure out where to set the system property needed
to achieve this.  I've tried making calls to System.setProperty() in my
service implementation class, but this results in class not found
exceptions (even though the Saxon jar file is in the lib/ subdir of my
aar file).  Is there somewhere in the Tomcat/Axis setup I can set this
property?  FYI: here's my current setup:

Tomcat 5.5.20
Axis2 1.1.1
JDK 1.6.0 (Sun)
Linux 2.6 (Ubuntu Edgy)


Many thanks,
--Robin

-- 
Robin Harvey
Research & Development
Chapter Eight Limited

Castleton Mill
Castleton Close
Leeds
LS12 2DS

E: [EMAIL PROTECTED]
T: 0113 227 0800
F: 0113 227 0801

www.chaptereight.com

This email has been sent to you by Chapter Eight Limited ("Chapter
Eight"). Chapter Eight is registered in England and Wales with company
number 05818885 and has it's registered office at Castleton Mill, 
Castleton Close, Leeds, LS12 2DS. Chapter Eight is VAT registered
with VAT number 882 879 848. Chapter Eight is registered as a 
data controller under the Data Protection Act 1998 with registration 
number Z9562928.

This e-mail, including attachments, is intended for the person(s)
or company named and may contain confidential and/or legally
privileged information. Unauthorised disclosure, copying or use
of this information may be unlawful and is prohibited. If you are
not the intended recipient or you have received this message in
error, please delete this message and notify the sender.

If you are not the intended recipient, or the employee or agent
responsible for delivering such materials to the intended recipient,
you are hereby notified that any use, any form of reproduction,
dissemination, copying, disclosure, modification, distribution
and/or publication of this email message or its attachments other
than by its intended recipient is strictly prohibited by the sender.

On the basis that you are the intended recipient then receipt of
this email by you represents your confirmation that you agree,
or continue to agree, to be bound by our standard Terms of Business
applicable to the transaction to which this email relates.

If you require a copy (or a replacement copy) of the applicable
standard Terms and Conditions of Business please email your request
by return.


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



Re: MOTM and Encoding/Decoding

2007-03-01 Thread Derek Clayton

Thank you for the very fast response.


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


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


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


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


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


For smaller Excel files the times are quite reasonable.

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

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

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


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

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

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

37 seconds to read the 5.4M binary file seems like a long time.  As well you 
can see that the server processed a larger file (1.4M) in half the time as 
did the client in Test 1.  For even larger files the difference becomes 
greater.


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

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

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


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


Thanks!

Derek

_
Don’t waste time standing in line—try shopping online. Visit Sympatico / MSN 
Shopping today! http://shopping.sympatico.msn.ca



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



Axis user problem

2007-03-01 Thread bdevil

Hi!

I am relatively new to axis. I was able to install axis and the "happyaxis"
part shows fine. Every thing except the
the "list" action works. When called, it returns the following error:

And now... Some Services

AXIS error


Sorry, something seems to have gone wrong... here are the details:

Fault - No service class was found!  Are you missing a className option?

AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode:
 faultString: No service class was found!  Are you missing a className
option?
 faultActor:
 faultNode:
 faultDetail:
{http://xml.apache.org/axis/}hostname:samizdat


Would appreciate getting some helpful hints. 

Thanks,

Bharat.


-- 
View this message in context: 
http://www.nabble.com/Axis-user-problem-tf3328123.html#a9253532
Sent from the Axis - User mailing list archive at Nabble.com.


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



Is there a way to programmatically get the content of server-config.wsdd?

2007-03-01 Thread Kathy Chan
Hi,

I would like to find out if there is a way I could get the content of 
server-config.wsdd programmatically. 

I understand that server-config.wsdd is created when I call the Axis 
AdminClient with the Axis servlet URL and a deploy.wsdd file.  The 
server-config.wsdd file is generated into the publish directory of the 
server.  This present a problem because in Eclipse WTP, the server publish 
the content from the Eclipse workspace but the "live" publish directory 
the server uses may or may not be in the workspace (it could be in some 
temporary location or server specific location that the workspace content 
is copied to).  This causes a problem because the server-config.wsdd that 
contains information on what Web services are deployed could be lost when 
the server republishes from the workspace (since that file is not in the 
workspace but is in the "live" publish directory).   I need to find a way 
to persist the server-config.wsdd in the Eclipse workspace so that the 
information would not be lost in subsequent republish. 

One way I was able to workaround the problem is copying the 
server-config.wsdd file from the server's live publish directory back to 
the workspace but it requires the servers to implement an API to return 
the publish directory.  However, that means we need to ask all servers we 
could generate Axis Web service on to support it.  This is not scalable or 
easily achievable since that list of servers are growing constantly.

So, I would like to find out if there's a call I could make (or a 
parameter I could specify in AdminClient) that would return the content of 
server-config.wsdd file programmatically rather then just expect to find 
it in the server's publish directory.  If this support is not there 
currently, could it be easily implemented in the next release?

Regards,
Kathy Chan



Session Management for axis2 ServiceClient

2007-03-01 Thread Thomas michelbach

Hi,

I'm having a problem with session using a Service Client. I have two methods
calling two different operations of a web service. The webservice is not
implemented in axis2.

I need to use a session so the web service can identify the axis2 client by
each call.

My class defines a single ServiceClient to make two different call.

It has following option turned on:

client.getOptions().setManageSession(*true*);
When I make the first call the server runs the webservice and responds
correctly. Following header is then passed:

HTTP/1.0 200 OK
Set-Cookie: ssnid=4383SO95jARAuR1Ad3Cc6clMdI1KEQo-62; path=/;
Content-Type: text/xml;charset=utf-8
Connection: Keep-Alive
Content-Length: 646

By the second call the client does not put the session data back to identify
itself.
Should it be able to use that Set-Cookie Information to identify itself?

So it passes only this information:

SOAPAction: "urn:anonOutInOp"
User-Agent: Axis2
Authorization: Basic [based64usernamepassword]
Host: localhost:5554
Content-Length: 453
Content-Type: text/xml; charset=UTF-8

There is also no new header for identification of the session. So the
application starts a new session and returns an error, because the cached
data is not available.

Can someone help me? I'm using axis2 1.1.1

Bye and Thanks a lot,
Thomas


--
Thomas Michelbach


arrayMapping usage

2007-03-01 Thread cudatha
Hi ,
 
i have defined a bean using beanMapping in Wsdd file.
do i need to use arrayMapping if i am using the array of beans in method
signatures?
 
what difference it makes by using arrayMapping tag?
 
-chandra


Re: sendReceive and sendRobust

2007-03-01 Thread Rishi krish

Hi Keith/Depal
I had read that article and I beleive still I have few questions on this:

Whats an "in-only operation" - is it mapping to an operation like void
test(OMElement om) on the Service? I tried that operation type with
sendReceive and it worked [the service was also deployed in axis2 with
RawXMLInOut] - so when you say

"sendReceive has designed to invoke
in-out it is not recommended to use that to invoke in-only operation and
if you do so you will get exception as well,"

I didnt get an exception - so do you say that I should not use sendReceive
as not getting exception is a bug??

Ideally I would like to ask this question -
I have a service which has on operation
public OMElement test(OMElement)

This method might return null for some cases of invocation. But I just didnt
want to have 2 separate methods one return void and another return
OMElement. So there is just one method [as above].

Now I have deployed this service in Axis2 and associated the operation with
RawXMLInOutReceive...

Now starts the client part:
I am using only sendReceive and tested both the cases of null return and non
null return on that service and everything works fine.

Is this right? or you think this is a bug and I am just lucky to get it
working?

thanks
Anamitra




On 2/27/07, keith chapman <[EMAIL PROTECTED]> wrote:


This might help too

http://wso2.org/library/290

Thanks,
Keith

On 2/28/07, Rishi krish < [EMAIL PROTECTED]> wrote:
>
> Hi All
>
> I am confused abt the usage of these 2 methods in the ServiceClient
> class. As per the axis2 doc - we should use sendRobust if we are not needing
> the response but care abt the fault and we should use sendReceive if we care
> abt the reponse and fault. Does it mean that calling sendReceive should work
> in both cases?
>
> Case 1> The web service operation I am calling has no response [service
> method has java void as return type]
> Case 2>The web service operation has declared [service method has
> OMElement as return type] response but
>Case2 a>for an invocation of that method it returns null
>Case2 b>for another invocation it return data.
>
> I am testing my application with these above cases [and subcases] and
> its working with sendReceive in client. In that case I am not clear whats
> the use of having sendRobust ?? It seems using sendReceive will be enough
> for handling all the cases - right?
>
> I am writing my own DII Web Service Client using the ServiceClient api.
> Unless really needed I want to use sendReceive and fireAndForget [for
> oneway]. Can anyone point me if I am not getting this right.
>
>
> --
> thanks
> Rishi
>



--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/





--
thanks
Rishi


RE: setOperationContext

2007-03-01 Thread Punnoose, Roshan
Sorry to keep bringing this up, but how do I get access to the
OutMessageContext. I'm assuming that the
MessageContext.getCurrentContext() will only bring back the
InMessageContext?

Roshan Punnoose
Phone: 301-497-6039

-Original Message-
From: Punnoose, Roshan [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 23, 2007 9:47 AM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: RE: setOperationContext

If this is a static method, how can multiple requests to one service
work? Just wondering, how I could access the MessageId for different
requests to the same service. Thanks!

Roshan Punnoose
Phone: 301-497-6039
-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 22, 2007 11:06 PM
To: axis-user@ws.apache.org
Subject: Re: setOperationContext

That's outdated!. please use MessageContext.getCurrentContext() from
inside your service method (when Axis2 calls your service method.)

thanks,
dims

On 2/22/07, Kang, Kamaljeet K. <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to access service context on the skeleton side. I
followed
> the documentation ("http://wso2.org/library/259";) and added
> 'setOperationContext(OperationContext opCtxt)' in the skeleton class
but
> the method is never called. Is this the correct way to access Context
on
> the server side?
>
>
> Thanks
>
> Kamal Kang
>
> 
> The information contained in this message may be privileged
> and confidential and protected from disclosure. If the reader
> of this message is not the intended recipient, or an employee
> or agent responsible for delivering this message to the
> intended recipient, you are hereby notified that any reproduction,
> dissemination or distribution of this communication is strictly
> prohibited. If you have received this communication in error,
> please notify us immediately by replying to the message and
> deleting it from your computer. Thank you. Tellabs
> 
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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

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

RE: Web Service sent hook

2007-03-01 Thread Punnoose, Roshan

Haha, ok. I was looking at the code in AxisEngine.java and the Phase
code as well, and maybe there is a way to do this without code changes.
If I declare a Post-Dispatch phase, without specifying the class
attribute, it will be a default Phase that does nothing. Then if I
implement my own "CleanUp" handler that does nothing except do the
cleanup in the flowComplete(...) method, then the AxisEngine will call
the flowComplete on the handlers after the message has been sent.

The only problem is if the user decides that he wants to use the
transport non blocking flag, then the flowComplete would be called
technically without actually having finished sending the document over. 

Hmm...

Roshan Punnoose
Phone: 301-497-6039
-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 28, 2007 5:43 PM
To: axis-user@ws.apache.org
Subject: Re: Web Service sent hook

Roshan,

Looks like you have a case for a enhancement bug in JIRA :)

-- dims

On 2/28/07, Punnoose, Roshan <[EMAIL PROTECTED]> wrote:
> Thanks for the reply. I was able to override the
> CommonsHttpTransportSender to perform my logic after the response had
> been sent. The only problem is, I had to make sure that I could tell
> when it was an actual response to a request. But nothing to check in.
>
> Also, why is it not possible? Wouldn't it be as easy as creating
> Dispatch handlers? Just have post-dispatch handlers?
>
> Roshan Punnoose
> Phone: 301-497-6039
>
> -Original Message-
> From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 28, 2007 9:27 AM
> To: axis-user@ws.apache.org
> Subject: Re: Web Service sent hook
>
> AFAIK this is not possible...
>
> ~Thilina
>
> On 2/22/07, Punnoose, Roshan <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Well from looking at the code, I don't think it is implemented.
> >
> >
> >
> > After the AxisEngine.send function there is no call to invoke any
> > post-dispatch handlers. Though, it would be pretty easy to
implement.
> Is
> > that something I could do and submit a patch?
> >
> >
> >
> >
> > Roshan Punnoose
> >
> > Phone: 301-497-6039
> >
> >  
> >
> >
> > From: Punnoose, Roshan [mailto:[EMAIL PROTECTED]
> >  Sent: Monday, February 19, 2007 1:13 PM
> >  To: axis-user@ws.apache.org
> >  Subject: RE: Web Service sent hook
> >
> >
> >
> >
> > Does anyone know if this is possible?
> >
> >
> >
> >
> > Roshan Punnoose
> >
> > Phone: 301-497-6039
> >
> >  
> >
> >
> > From: Punnoose, Roshan [mailto:[EMAIL PROTECTED]
> >  Sent: Thursday, February 15, 2007 11:11 AM
> >  To: axis-user@ws.apache.org
> >  Subject: Web Service sent hook
> >
> >
> >
> > I see that there are handlers/hooks when a request comes in and a
> response
> > leaves a Web Service. But is there a way I can get a hook into the
> moment
> > when the response has been completely sent from the Web Service. We
> are
> > sending a file using MTOM and DataHandlers back to a client, and I
> want to
> > delete the file when the file has been sent, but not when there has
> been an
> > error in transmission. Any ideas?
> >
> >
> >
> > Roshan Punnoose
> >
> > Phone: 301-497-6039
> >
> >
>
>
> --
> Thilina Gunarathne
> WSO2, Inc.; http://www.wso2.com/
> Home page: http://webservices.apache.org/~thilina/
> Blog: http://thilinag.blogspot.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]
>
>


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

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

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

Send an attachment in response with soap headers

2007-03-01 Thread Romain Conseil

Hello,

I'm pretty new in web services and axis...

Here is the simplified class file IDataCenter.java


package com.cnes.sitools.amda;

import java.util.Date;
import javax.activation.DataHandler ;

public interface IDataCenter {

   public  DataHandler getParameter(String mission, String instrument,
String parameter, Date startDate, Date StopDate); }


I used wsdl2java to generate this WSDL file :



http://xml.apache.org/xml-soap";
xmlns:wsdlsoap=3D"http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:soapenc=3D" http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema";
xmlns:wsdl=3D" http://schemas.xmlsoap.org/wsdl/";>


 http://www.w3.org/2001/XMLSchema";
targetNamespace=3D"urn:amda.sitools.cnes.com">
  http://xml.apache.org/xml-soap"/>
  http://schemas.xmlsoap.org/soap/encoding/"/>
  
   

 

   
  
 


  
 
  

  
 
 
 
 
 
  

  
 


 
  

  
 http://schemas.xmlsoap.org/soap/http"/>
 


   http://schemas.xmlsoap.org/soap/encoding/
"
namespace=3D"urn:amda.sitools.cnes.com"/>


   http://schemas.xmlsoap.org/soap/encoding/";
namespace=3D"urn: amda.sitools.cnes.com"/>

 
  

  
 

http://127.0.0.1:8080/sitools/services/IDataCenter"/>
 
  




The getParameter operation enables to extract data from a big file
(according to start and stop date) and return a smaller file with the only
usefull information.

I would like to be sure that using a DataHandler object in return enables to
create soap messages with attachment between server and client or will the
dataHandler object be serialized or something like that ?=20

On top of that I'd like to set some soap headers in the response (to qualify
the smaller file). How can I proceed ?


Thanks a lot for your help.

Romain.


Benefits of using Message style WS

2007-03-01 Thread Joshua White

Hello,

I am having a hard time understanding the benefits of using a message style
web service as opposed to a regular doc/lit wrapped service.  Could someone
please clarify this for me?

Regards,

Joshua


RE: [Axis2][Rampart] Rampart and SwA

2007-03-01 Thread Ryan Nelsestuen
I have done some investigating in the Rampart module and one reason it uses
a lot of memory is that in the RampartEngine it creates a RampartMessageData
which appears to convert the entire message to a DOM and then back to OM.
Bypassing this processing by modifying the Rampart module.xml allows us to
do "true" streaming (but of course, you can't do that if you actually want
Rampart to modify the outbound or inbound message).

Also, some research I did indicated (if I understood it correctly) that in
Axis1.1.1 MTOM doesn't really work as an attachment - it ALWAYS will get
encoded as Base64 embedded in the message - there was a config option
previously (in Axis1.0) that allowed some sort of parameter to define binary
data nodes, but it seems to have disappears.

-Original Message-
From: Sebastian Roschke [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 5:04 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2][Rampart] Rampart and SwA

Hi Thilina,

thanks for the answer. I know that Rampart is able to secure MTOM
messages. But utilizing MTOM is not usable for large messages. The
amount of required memory is that high it is not usable for our
project... I don't know the excact reasons for that, but in our
performance tests the MTOM approach requires a lot of additional memory.
The MTOM approach with file caching needs additional excecution time.
Therefore we try to implement processing of large messages(more than
100MB) with SwA and java streams.

Do you know where I can ask questions concerning the roadmap of specific
components of Axis2? Maybe this is the wrong mailing list for such kind
of question.
But anyway, thanks for your answer...

Regards,
Sebastian


Thilina Gunarathne schrieb:
> Rampart has the capability to secure attachments send using MTOM..
>
> I'm not sure whether is there or planned support for SwA..
>
> Thanks,
> Thilina
>
> On 3/1/07, Sebastian Roschke <[EMAIL PROTECTED]>
> wrote:
>> Hello,
>>
>> due to memory efficiency I work with SwA to send messages based on java
>> streams. Is there a possibility to secure such messages with Rampart? Is
>> there any support for SwA in Rampart planned for future releases?
>>
>> Regards,
>> Sebastian
>>
>>
>>
>
>





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



[AXIS2] Builders and formatters for REST

2007-03-01 Thread keith chapman

Hi all,

I have implemented messageformatters and messageBuilders for REST. The
following message formatters have been set in the default axis2.xml.





I have added builders for the respective content Types as well. I have not
added the MultipartFormDataBuilder to the default axis2.xml because all
modules using the default axis2.xml will have to add the dependancy of
servlet-api. But I have added it to the default axis2.xml of the war.






Thanks,
Keith
--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


Issue with Axis when sending abstract class to .NET webservice

2007-03-01 Thread David Elliott
I am testing some interoperability between a Java Client using Axis and 
a .NET ASMX Webservice and am experiencing a problem and was wondering 
if anyone has an idea of what is going on.
 
If I have a class that contains a data member that is abstract and try to pass 
a 
derived class type into the webservice, an XML error is generated. If I receive 
the 
same exact structure from the webservice all works as expected.
 
I have a full .NET webservice and java client that will demonstrate the issue 
if 
anyone wants the code. 
 
I am including the soap messages that are received on the service. 
The class definition follows the SOAP Messages.
 
Thanks,Dave
 
WebbertSolutions[at]hotmail[dot]com
 
 
Good Message - don't send address in- receive 
address== - SoapRequest at 2/27/2007 2:01:41 PM 
-http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>  
 
 Hello World12  
   - 
SoapResponse at 2/27/2007 2:01:41 PM -http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>Hello World12  
234 State 
Streettrue   
 
Bad Message - populate HomeAddress- send HomeAddress 
in==  - SoapRequest at 2/27/2007 2:01:13 PM 
-http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>  
 
 Hello World12

 - SoapResponse at 2/27/2007 2:01:13 PM 
-http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
soap:Client  
System.Web.Services.Protocols.SoapException: Server was unable to 
read request. ---> System.InvalidOperationException: There is an error in XML 
document (1, 353). ---> System.InvalidOperationException: The specified type is 
abstract: name='Address', namespace='urn:emp:data', at .   at 
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read5_Address(Boolean
 isNullable, Boolean checkType)   at 
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read6_Person(Boolean
 isNullable, Boolean checkType)   at 
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read7_GetAdmin()
   at 
Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer.Deserialize(XmlSerializationReader
 reader)   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader 
xmlReader, String encodingStyle, XmlDeserializationEvents events)   --- End of 
inner exception stack trace ---   at 
System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String 
encodingStyle, XmlDeserializationEvents events)   at 
System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String 
encodingStyle)   at 
System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()   --- End of 
inner exception stack trace ---   at 
System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()   at 
System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
 public 
abstract class PersonBase{protected PersonBase() { } private string 
_name; public string Name{get { return ( _name ); }set 
{ _name = value; }}}  public class Person : PersonBase{private int 
_age;private Address _address; public int Age{get { return 
( _age ); }set { _age = value; }} public Address Address{   
 get { return ( _address ); }set { _address = value; }}}  
public abstract class Address{protected Address() { }}  public class 
HomeAddress : Address{public HomeAddress() { } private string 
_houseNumber; public string HouseNumber{get { return ( 
_houseNumber ); }set { _houseNumber = value; }}}
 
_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

Re: [Axis2][Rampart] Rampart and SwA

2007-03-01 Thread Sebastian Roschke
Hi Thilina,

thanks for the answer. I know that Rampart is able to secure MTOM
messages. But utilizing MTOM is not usable for large messages. The
amount of required memory is that high it is not usable for our
project... I don't know the excact reasons for that, but in our
performance tests the MTOM approach requires a lot of additional memory.
The MTOM approach with file caching needs additional excecution time.
Therefore we try to implement processing of large messages(more than
100MB) with SwA and java streams.

Do you know where I can ask questions concerning the roadmap of specific
components of Axis2? Maybe this is the wrong mailing list for such kind
of question.
But anyway, thanks for your answer...

Regards,
Sebastian


Thilina Gunarathne schrieb:
> Rampart has the capability to secure attachments send using MTOM..
>
> I'm not sure whether is there or planned support for SwA..
>
> Thanks,
> Thilina
>
> On 3/1/07, Sebastian Roschke <[EMAIL PROTECTED]>
> wrote:
>> Hello,
>>
>> due to memory efficiency I work with SwA to send messages based on java
>> streams. Is there a possibility to secure such messages with Rampart? Is
>> there any support for SwA in Rampart planned for future releases?
>>
>> Regards,
>> Sebastian
>>
>>
>>
>
>




signature.asc
Description: OpenPGP digital signature


Re: [AXIS2] MessageContext to SOAPMessage

2007-03-01 Thread Lorenzo
Still stuck... i still need to retrive a SOAPMessage from the
MessageContext.. 

for example:

java.util.Iterator it =
msg.getMessage().getAttachmentsImpl().getAttachments().iterator();

where msg is a MessageContext... 
How do i rewrite it in AXIS2??
If i find a way to obtain a saaj.SOAPMessageImp i need just to call
getAttachments()... 

argh! This porting is gettin me crazy..

Thx in advance



On gio, 2007-03-01 at 15:12 +0530, sumedha rubasinghe wrote:
> Hi Lorenzo;
> Go through the example located @ /samples/soapwithattachments
> It demonstrates how to use SwA  to send attachments.
> 
> /sumedha
> 
> Lorenzo wrote:
> > Hi,
> >
> > i have a problem... I have a org.apache.axis2.context.MessageContext and
> > to work on attachments i should use the SAAJ api, but how can i obtain
> > an org.apache.axis2.saaj.SOAPMessageImpl from a MessageContext?
> >
> > Thx!
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: [AXIS2] Echo ws with headers

2007-03-01 Thread Thilina Gunarathne

You can get this done by putting a custom written handler in to the
outflow.. This guide[1] will help you out..

Thilina
[1] http://ws.apache.org/axis2/1_1_1/modules.html


On 2/28/07, keith chapman <[EMAIL PROTECTED]> wrote:

If you try  getCurrentMessageContext() from the skeleton what you get is the
incoming messageContext. In order to add custom headers to the response you
should be adding it to the outgoing messageContext. The envelop is added to
the outgoing messageContext inside the messageReceiver, which means you will
have to hack the MR in order to add the header.

Thanks,
Keith.


On 2/28/07, Lorenzo <[EMAIL PROTECTED]> wrote:
> thx, but which context i should use?
>
> this:
>   opContext.getMessageContext(
WSDLConstants.MESSAGE_LABEL_IN_VALUE )
> and this:
>   getCurrentMessageContext()
> return the incoming MessageContext;
>
> this one:
>   opContext.getMessageContext(
WSDLConstants.MESSAGE_LABEL_OUT_VALUE );
> returns the outgoing MessageContext, but only in the out pipe, in the
> service return NULL...
>
> And again, which is the easiest and lighter way to clone incoming
> message parts in the outgoing message?
>
> Thx again..
>
> On mer, 2007-02-28 at 10:18 +0530, keith chapman wrote:
> > R you trying to add cusom SOAP headers to the response message? If so
> > you can try the following in the message Receiver.
> >
> > // Create a SOAPHeader block
> > SOAPHeaderBlock soapHeader =
soapFactory.createSOAPHeaderBlock ();
> >
> > // Add the SOAP header to the envelop
> >
msgContext.getEnvelope.getHeader().addChild(soapHeader);
> >
> > Hope this might help.
> >
> > Thanks,
> > Keith
> >
> > On 2/28/07, Cencio1980 <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > i'm trying to make a simple echo ws in axis2, but i loose soap
> > headers in the response message.
> >
> > Now i'm trying to copy headers from request message to
> > response message with an handler in the out pipe, but i have
> > to iterate on each header and add it one by one and i'd like
> > to avoid this method.
> >
> > I do this in the out pipe because response message context is
> > null in service and avaiable only in the out pipe.. why?
> >
> > Some1 can help me?
> >
> > thx!
> >
> >
> >
> > --
> > Keith Chapman
> > WSO2 Inc.
> > Oxygen for Web Services Developers.
> > http://wso2.org/
>
>
>
-
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/



--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



HTTP Authorization Header

2007-03-01 Thread Thomas michelbach

Hi,

I'm trying to pass the Authorization header via HTTP.

Im using axis2 1.1.1 and trying to set the options like that


HttpTransportProperties.Authenticator auth = *new*
HttpTransportProperties.Authenticator();
auth.setUsername(username);
auth.setPassword(password);
options.setProperty(HttpTransportProperties.Authenticator.*BASIC*, auth);

My TPCmon is logging the information for me and axis does not send the HTTP
header for authorization (Base 64 encoded).
Is there a way to do that?
I only get following these header fields:

SOAPAction: "urn:anonOutInOp"
User-Agent: Axis2
Host: localhost:5554
Content-Length: 453
Content-Type: text/xml; charset=UTF-8

Bye and Thanks
--
Thomas Michelbach


Re: [Axis2][Rampart] Rampart and SwA

2007-03-01 Thread Thilina Gunarathne

Rampart has the capability to secure attachments send using MTOM..

I'm not sure whether is there or planned support for SwA..

Thanks,
Thilina

On 3/1/07, Sebastian Roschke <[EMAIL PROTECTED]> wrote:

Hello,

due to memory efficiency I work with SwA to send messages based on java
streams. Is there a possibility to secure such messages with Rampart? Is
there any support for SwA in Rampart planned for future releases?

Regards,
Sebastian






--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



axis 1.4: Axis Fault Charset

2007-03-01 Thread Peter
hi,

is there a possibility to set the charset of the axis fault from utf-8 to 
iso-8859-1

thanks, peter

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



Re: MOTM and Encoding/Decoding

2007-03-01 Thread Thilina Gunarathne

Hi,


OMElement result = servClient.sendReceive(method);
System.out.println(result);

I get this body:


http:///soap/WebServices.asp";>PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJ5ZXMiPz4NCjxOZXdEYXRhU2V0Pg0KICA8eHM6c2NoZW1hIGlkPSJOZXdEYXRhU2V0IiB4bWxucz0iIiB4bWxuczp4cz0iaHR0cDovL3d3dLOTS
AND LOTS MORE

The size of the attached binary file is 900K.  The size of the content in
PassExcelBinaryResult is suspiciously around 30% larger...it looks like
Axis2 (Axiom?) has encoded the attached file.

Yes..When asking for the Text value, axiom does an base64 encoding to
the binary data. Unless the data remains as Binary..


For reference here is my code to write the attached binary:

OMText binaryNode = (OMText)xmlElement.getFirstOMChild();
DataHandler dh = (DataHandler)binaryNode.getDataHandler();
FileOutputStream out = new FileOutputStream("../../test/data/temp.xml");
dh.writeTo(out);
out.close();

So my question: Is Axis2 encoding the binary attachment merely for display
purposes?  Or will it try to encode the binary attachment and then have to
decode it when I write the file.

Only for the display purposes.. It won't undergo any encoding/decoding
if you are writing directly to a file..


As mentioned using the above code is working however it is very slow..it is
about 4x slower to read the attachment than an equivalent client written for
.NET.  This is what led me to start wondering why it was so slow and seeing
that the content seemed to be encoded after I receive the response.

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

Thanks,
Thilina



Thanks,

Derek

_
Find out the restaurants participating in Winterlicious
http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=15&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329
From January 26 to February 8, 2007


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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



[Axis2][Rampart] Rampart and SwA

2007-03-01 Thread Sebastian Roschke
Hello,

due to memory efficiency I work with SwA to send messages based on java
streams. Is there a possibility to secure such messages with Rampart? Is
there any support for SwA in Rampart planned for future releases?

Regards,
Sebastian



signature.asc
Description: OpenPGP digital signature


Re: [AXIS2] MessageContext to SOAPMessage

2007-03-01 Thread Lorenzo
I just saw that sample, but it didn't help me...

I'm at server side, and i have a service using Axis1.4. 
Now i have to rewrite it in Axis2, but there is nomore the getMessage()
in MessageContext class to retrive a SOAPMessage object.

Maybe i can do the same things without using saaj (starting from
org.apache.axiom.attachments.Attachments returned by
msgContext.getAttachmentMap() ), but it'll be easier using an API
created for that task...

Thx again!

On gio, 2007-03-01 at 15:12 +0530, sumedha rubasinghe wrote:
> Hi Lorenzo;
> Go through the example located @ /samples/soapwithattachments
> It demonstrates how to use SwA  to send attachments.
> 
> /sumedha
> 
> Lorenzo wrote:
> > Hi,
> >
> > i have a problem... I have a org.apache.axis2.context.MessageContext and
> > to work on attachments i should use the SAAJ api, but how can i obtain
> > an org.apache.axis2.saaj.SOAPMessageImpl from a MessageContext?
> >
> > Thx!
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Axis and Apache XML-RPC api

2007-03-01 Thread Oscar
Hi all,

I'm a newbie in web services and after lots of reading I'm trying to
evaluate Apache Axis and Apache XML-RPC api.

The following questions come to my mind:

1- does Axis make any use of xml-rpc internally?

2- does an Apache XML-RPC based web service peform better than a
web service based on the Axis framework?

3- is Apache XML-RPC commonly used? (since there doesn´t seem to
be much documentation available on the web).


Thank you very much in advance for any sort of help or directions.

Kind regards,
Oscar Diaz



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y m�viles desde 1 c�ntimo por minuto. 
http://es.voice.yahoo.com

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



Re: [AXIS2] MessageContext to SOAPMessage

2007-03-01 Thread sumedha rubasinghe

Hi Lorenzo;
Go through the example located @ /samples/soapwithattachments
It demonstrates how to use SwA  to send attachments.

/sumedha

Lorenzo wrote:

Hi,

i have a problem... I have a org.apache.axis2.context.MessageContext and
to work on attachments i should use the SAAJ api, but how can i obtain
an org.apache.axis2.saaj.SOAPMessageImpl from a MessageContext?

Thx!


-
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] MessageContext to SOAPMessage

2007-03-01 Thread Lorenzo
Hi,

i have a problem... I have a org.apache.axis2.context.MessageContext and
to work on attachments i should use the SAAJ api, but how can i obtain
an org.apache.axis2.saaj.SOAPMessageImpl from a MessageContext?

Thx!


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



RE: Generate wrapped basic types by JAVA2WSDL

2007-03-01 Thread WANG Chi
Oh, I forgot to say that I use Axis 1.4

this is a little urgent, so thank you very much!

-Original Message-
From: WANG Chi [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 4:50 PM ?
To: axis-user@ws.apache.org
Subject: Generate wrapped basic types by JAVA2WSDL


Hi, 

I write an interface

ublic interface InvocationManager {
/**
 * Invoke an OTA service in advanced mode.
 * @param sessionId session ID (mandatory)
 * @param msisdnmsisdn (mandatory)
 * @param serviceName   name of service (mandatory)
 * @param dataAsString  a single data as a String to be 
exploited/parsed by the service (optional)
 * @param transactionId transaction ID  (optional)
 * @param smscMode  smsc mode, the valid 
value is MT, SMSC, or TRANS. (optional)
 * @param driverId  the driver ID (optional)
 * @param guaranteeOfExecution  Requested guarantee of execution 
(optional)
 * @param guaranteeOfDelivery   Requested guarantee of delivery 
(optional)
 * @param priority  Requested priority, 0 
Emergency, 1 Urgent, 2 Normal.  (optional)
 * @param invocationValidityPeriod  The invocation validity period, 
in millisecond. (optional)
 * @param smsValidityPeriod The SMS validity 
period, in millisecond. (optional)
 * @param httpNotificationPoint a URL to display the final 
delivery status of the service (optional)
 * @return The invocation Id if invocation is registered, or null if 
some error occurs
 * @throws DeniedAccessFaultif the login failed
 * @throws ServiceBreakDownFaultif OTA server is down
 * @throws InvalidInvocationFault   if the invocation is invalid or 
expired
 */
public String advancedInvoke(String sessionId, String msisdn,
String serviceName, String dataAsString, String 
transactionId,
String smscMode, Integer driverId, Boolean 
guaranteeOfExecution,
Boolean guaranteeOfDelivery, Integer priority,
Long invocationValidityPeriod, Long smsValidityPeriod,
String httpNotificationPoint) throws DeniedAccessFault,
ServiceBreakDownFault, InvalidInvocationFault;

}

Then I call JAVA2WSDL and WSDL2JAVA  to generate the stubs, the style is 
WRAPPED/LITERAL









but in the generated class, the wrapped basic types Integer, Boolean, etc.. are 
converted to basic types int, boolean...

how to retain the wrapped basic types? 

thank you very much!

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



Generate wrapped basic types by JAVA2WSDL

2007-03-01 Thread WANG Chi
Hi, 

I write an interface

ublic interface InvocationManager {
/**
 * Invoke an OTA service in advanced mode.
 * @param sessionId session ID (mandatory)
 * @param msisdnmsisdn (mandatory)
 * @param serviceName   name of service (mandatory)
 * @param dataAsString  a single data as a String to be 
exploited/parsed by the service (optional)
 * @param transactionId transaction ID  (optional)
 * @param smscMode  smsc mode, the valid 
value is MT, SMSC, or TRANS. (optional)
 * @param driverId  the driver ID (optional)
 * @param guaranteeOfExecution  Requested guarantee of execution 
(optional)
 * @param guaranteeOfDelivery   Requested guarantee of delivery 
(optional)
 * @param priority  Requested priority, 0 
Emergency, 1 Urgent, 2 Normal.  (optional)
 * @param invocationValidityPeriod  The invocation validity period, 
in millisecond. (optional)
 * @param smsValidityPeriod The SMS validity 
period, in millisecond. (optional)
 * @param httpNotificationPoint a URL to display the final 
delivery status of the service (optional)
 * @return The invocation Id if invocation is registered, or null if 
some error occurs
 * @throws DeniedAccessFaultif the login failed
 * @throws ServiceBreakDownFaultif OTA server is down
 * @throws InvalidInvocationFault   if the invocation is invalid or 
expired
 */
public String advancedInvoke(String sessionId, String msisdn,
String serviceName, String dataAsString, String 
transactionId,
String smscMode, Integer driverId, Boolean 
guaranteeOfExecution,
Boolean guaranteeOfDelivery, Integer priority,
Long invocationValidityPeriod, Long smsValidityPeriod,
String httpNotificationPoint) throws DeniedAccessFault,
ServiceBreakDownFault, InvalidInvocationFault;

}

Then I call JAVA2WSDL and WSDL2JAVA  to generate the stubs, the style is 
WRAPPED/LITERAL









but in the generated class, the wrapped basic types Integer, Boolean, etc.. are 
converted to basic types int, boolean...

how to retain the wrapped basic types? 

thank you very much!

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