Re: Axis2 Client Stub not Generating WS-Security Headers

2007-03-28 Thread Ruchith Fernando

Hi Ted,

On 3/28/07, Ted Jones <[EMAIL PROTECTED]> wrote:

Thank you for the reply Ruchith. I am following these instructions with
the exception of the service invocation since I am using my generated
client stub. Does the client repository location need to be included in
order to generate the proper stub logic for inserting the WS-Security
headers?


When you codegen the stub will *not* contain any logic related to rampart.


Also, the code sample links are broken on the link you gave me.


The link is now fixed.

Thanks,
Ruchith



Thanks,
Ted

-Original Message-
From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 27, 2007 11:04 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 Client Stub not Generating WS-Security Headers

Hi Ted,

Please see this :
http://www.wso2.org/library/240

Thanks,
Ruchith

On 3/28/07, Ted Jones <[EMAIL PROTECTED]> wrote:
>
>
> I have an Axis2 1.1.1 ADB generated client stub that is instantiated
> using a client axis2.xml config and pointing to a client repository
> that has the rampart and addressing mar files. The config file and
> repository location are loaded via URL. In debug, I can see the
> rampart and addressing modules are engaged. In my client code, I have
> added the following properties to the serviceclient's options
instance:
>
>  options.setProperty(WSConstants.WSSE_NS ,
> WSConstants.USERNAME_TOKEN_LN);
> options.setProperty(WSConstants.USERNAME_LN,getConnectionProperties().
> getUserid());
> options.setProperty(WSConstants.PASSWORD_LN,getConnectionProperties().
> getPassword());  options.setProperty(WSConstants.PASSWORD_TYPE_ATTR,
> WSConstants.PASSWORD_TEXT);
>
> The WS-Security headers are never inserted into the soap request and I

> receive the ever-popular "org.apache.axis2.AxisFault: WSDoAllReceiver:
> Incoming message does not contain required Security header".
>
> This web service and the ws-security logic works using soapUI (a great
> *free* tool by the way).
>
> Is there some other property I need to set in the options or something

> else I need to be doing?
>
> Thanks
> Ted
>
>


--
www.ruchith.org
www.wso2.org

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


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





--
www.ruchith.org
www.wso2.org

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



Re: Axis2 Web Service

2007-03-28 Thread Jochen Zink
Hi,

normally every client "talks" to a new service instance. Implement a init( 
ServiceContext c ) {} method to your ServiceSkeleton and you can see, that 
three instances are created, if three different clients calls a service method. 
It is possible, that you have only one instance over more than one methodcall 
(but only for one client). For this, you have to enable session management. 
Normally, this is deactivated.

It is just the same, if you call a local service or a service, which is running 
on a other machine in your network. Maybe your firewall blocks the call?

I hope that helps,


> -Ursprüngliche Nachricht-
> Von: axis-user@ws.apache.org
> Gesendet: 29.03.07 08:49:44
> An: axis-user@ws.apache.org
> Betreff: Axis2 Web Service


> 
> Hi there,
> 
> With regards to Axis2 web services, does each client get their own instance
> when they execute code such as the following:
> 
> StockQuoteServiceStub stub =
> new StockQuoteServiceStub
> ("http://localhost:8080/axis2/services/StockQuoteService";);
> 
> In my case all the clients seem to be using just the one instance.  This is
> bad because if one client changes the value of a variable in the web
> service, then all the other clients see that changes as well.  Is there any
> way I can avoid this?
> 
> Also, say if my web service was not local, but on another machine in my
> network.  How do I access it?
> I tried: StockQuoteServiceStub stub =
> new StockQuoteServiceStub
>
> ("http://130.216.23.45:8080/axis2/services/StockQuoteService";);
> 
> However it didnt work.  Any help would be much appreciated.
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Axis2-Web-Service-tf3484692.html#a9727904
> Sent from the Axis - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


___
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


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



WSS4J and WS-Security 1.1

2007-03-28 Thread Ken Tam
Hi all,

The WSS4J website mentioned support for WS-Security 1.0. Does it support
1.1? If not, what alternatives are there?

Thanks,
Ken


Axis2 Web Service

2007-03-28 Thread Torch

Hi there,

With regards to Axis2 web services, does each client get their own instance
when they execute code such as the following:

StockQuoteServiceStub stub =
new StockQuoteServiceStub
("http://localhost:8080/axis2/services/StockQuoteService";);

In my case all the clients seem to be using just the one instance.  This is
bad because if one client changes the value of a variable in the web
service, then all the other clients see that changes as well.  Is there any
way I can avoid this?

Also, say if my web service was not local, but on another machine in my
network.  How do I access it?
I tried: StockQuoteServiceStub stub =
new StockQuoteServiceStub
   
("http://130.216.23.45:8080/axis2/services/StockQuoteService";);

However it didnt work.  Any help would be much appreciated.

-- 
View this message in context: 
http://www.nabble.com/Axis2-Web-Service-tf3484692.html#a9727904
Sent from the Axis - User mailing list archive at Nabble.com.


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



Asynchronous Call to a Web Service

2007-03-28 Thread sujana reddy

Hi All,

I am trying to write an asynchronous client using Axis to invoke a web service.
This is the sample code i have written.
Can u please let me know, what are the parameters that need to be
passed for the invokeNonBlocking() method.
i mean what 'l b the first and second parameters to be passed in specific.

Thanx in advance

/*
Template client for Event generation web service.
*/

import javax.xml.namespace.QName;
import org.apache.axis.client.Call;
import org.apache.axis.encoding.*;
import org.apache.axis.client.Service;
import org.apache.axis.client.async.AsyncCall;
import org.apache.axis.client.async.AsyncResult;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.Text;

import eventgeneration.framework.data.*;

import org.apache.axis.encoding.ser.BeanDeserializerFactory;
import org.apache.axis.encoding.ser.BeanSerializerFactory;

import org.apache.axis.description.OperationDesc;
import org.apache.axis.description.ParameterDesc;


public class FASTDynamicClient1{
/**
 * @param args
 */
public static void main(String[] args) {

try{

Class beansf = BeanSerializerFactory.class;
Class beandf = BeanDeserializerFactory.class;

OperationDesc oper = null;
ParameterDesc param = null;

oper = new OperationDesc();

oper.setName("generateEventAsync");

param = new ParameterDesc(new QName("", 
"EGPddEventData"),
ParameterDesc.IN, new QName(
"http://www.w3.org/2001/XMLSchema";, 
"EGPddEventData"),
eventgeneration.framework.data.EGPddEventData.class, false,false);

oper.addParameter(param);

oper.setReturnType(new QName("", "String"));
oper.setReturnClass(java.lang.String.class);

oper.setReturnQName(new QName("", 
"generateEventReturn"));

oper.setStyle(org.apache.axis.constants.Style.WRAPPED);

oper.setUse(org.apache.axis.constants.Use.LITERAL);

Service service = new Service();

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

String endpointURL =
"http://172.25.124.143:8080/fls/services/PDDEventGenerationService";;

QName qName1 = new
QName("http://172.25.124.143:8080/fls/services/PDDEventGenerationService";,
"String");

call.setTargetEndpointAddress(new 
java.net.URL(endpointURL));

call.setOperation(oper);
call.setOperationName(new
QName("http://172.25.124.143:8080/fls/services/PDDEventGenerationService";,
"generateEventAsync"));

FLSPddEventData anObj = new FLSPddEventData();

anObj.setEventId("101");

anObj.setFlsId(418);

Callback callback = new Callback()
{
public void onComplete(AsyncResult result)
{
System.out.println(result.toString());
}
public void onError(Exception e)
{
e.printStackTrace();
}
};
//call.invokeNonBlocking(axisop,OMElement,callback);
}catch(Exception e){
 e.printStackTrace();
}
}
}

Regards,
Sujana

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



RE: [AXIS2] Codegen question regarding "local"

2007-03-28 Thread Carlos S. Zamudio
Amila,
Thanks. I tried it with the RC build and I was able to generate the code
using WSDL2Java.  Now I am working my way through the interface.  Have you
seen the following type of message before (see below)? I noticed a message
trail in some AXIS2 discussion group that referred to a problem of
"chunking" but I don't know what this means.  Thanks.
 
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is: 
 org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is: 
 org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is: 
 org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is: 
 org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is: 
 org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is: 
 org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is: 
 org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required

  _  

From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 9:22 PM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] Codegen question regarding "local"


seems to be a problem with the nightly build. we are planing to have a RC
for Axis2 1.2 on this friday.
Please hava a look with it.


On 3/20/07, Carlos S. Zamudio <[EMAIL PROTECTED]> wrote: 

Here are the messages:
C:\Development\Archives\axis2-SNAPSHOT\bin>wsdl2java
Using AXIS2_HOME:   C:\Development\Archives\axis2-SNAPSHOT
Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_06
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/lo
gging/LogFactory
at
org.apache.axis2.i18n.ProjectResourceBundle.(ProjectResourceB
undle.java:50)
at
org.apache.axis2.i18n.MessagesConstants.(MessagesConstants.ja
va:29)
at
org.apache.axis2.wsdl.i18n.CodegenMessages.(CodegenMessages.j
ava:35)
at org.apache.axis2.wsdl.WSDL2Code.printUsage(WSDL2Code.java:38)
at
org.apache.axis2.wsdl.WSDL2Code.validateCommandLineOptions(WSDL2Code.
java:73)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:31)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
C:\Development\Archives\axis2-SNAPSHOT\bin>

  _  

From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 19, 2007 11:02 PM 

To: axis-user@ws.apache.org   
Subject: Re: [AXIS2] Codegen question regarding "local"



you are using axis2-1.1.1-SNAPSHOT not axis2-SNAPSHOT
please use the link I gave you. 

thanks,
Amila.



On 3/19/07, Carlos S. Zamudio <[EMAIL PROTECTED]> wrote: 

Amila,
Thanks so much for you patience with this.  Maybe I am dense, but below is
the command line that I have run to generate the JAR's and I am certain I am
using the SNAPSHOT release (see below) as you have suggested.  Any
additional suggestions?:
 
C:\> C:\Development\Archives\axis2-1.1.1-SNAPSHOT\bin\wsdl2java.bat -uri
 http://s
oap.search.msn.com/webservices.asmx?wsdl -o C:\t1 -s -sd -u -ssi
Using AXIS2_HOME:   C:\Development\Archives\axis2-1.1.1-SNAPSHOT
Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_06
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:224)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetExcepti
on
at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:52)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:177)
... 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:49)
... 3 more
Caused by: org.apache.axis2.schema.SchemaCompilationException:
Unsupported conte
nt Simple Type List in
{http://schemas.microsoft.com/MSNSearch/2005/09/fex}Searc
 
hFlags !
at
org.apache.axis2.schema.SchemaCompiler.processSimpleType(SchemaCompil
er.java:1868)
at
org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(Schema
Compiler.java:1816)
at
org.apache.ax

Re: [Axis2] wsdl2java Code Generation problem (ADB)

2007-03-28 Thread Amila Suriarachchi

problem is in here
http://www.w3.org/2001/XMLSchema";
attributeFormDefault="qualified"
  elementFormDefault="qualified" targetNamespace="
http://ADBTest/xsd";>
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

either you put xmlns="http://www.w3.org/2001/XMLSchema"; to schema element to
make xml schema to default namespace or put the xs prefix for all
element,complexType, sequence etc..

On 3/29/07, Lahiru Sandakith <[EMAIL PROTECTED]> wrote:


Hi

 doing  it with the Eclipse Codegen Plugin Result the attached error,

Thanks

Sandakith

On 3/29/07, Ajith Ranabahu < [EMAIL PROTECTED]> wrote:
>
> Hi,
> It seems (from visual inspection) that there is nothing wrong with
> your WSDL. If Axis2 failed with this then its surely a bug. Have you
> tried with the nightlies by any chance ? Better yet you can even try
> with the Axis 1.2 RC
>
> Ajith
>
> On 3/28/07, Anil VVNN < [EMAIL PROTECTED]> wrote:
> >
> > Hi Dims,
> >
> > I think nothing wrong with Axis2 libraries, problem could be with my
> wsdl
> > file (ADBTest.wsdl attached). Can you please validate. Thanks.
> >
> > - Anil
> >
> >
> > Davanum Srinivas wrote:
> > >
> > > Please create a JIRA issue and upload the wsdl's.
> > >
> > > thanks,
> > > dims
> > >
> > > On 3/28/07, Anil VVNN < [EMAIL PROTECTED]> wrote:
> > >>
> > >> Hi,
> > >>
> > >> I'm using Axis2 1.1.1, I have written very simple wsdl wsdl but
> > >> encountering
> > >> problem while generating Java classes, could somebody validate the
> > >> attached
> > >> wsdl. And here is the error,
> > >>
> > >> ===
> > >> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> > >> apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
> mapped
> > >> to
> > >> the name setMessage with namespace http://ADBTest/xsd
> > >> ===
> > >> http://www.nabble.com/file/7486/ADBTest.wsdl ADBTest.wsdl
> > >>
> > >> Thanks. Do you need ADBTestSkeleton code too.
> > >>
> > >> --
> > >> View this message in context:
> > >>
> 
http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9716015
> > >> Sent from the Axis - User mailing list archive at Nabble.com.
> > >>
> > >>
> > >>
> -
> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > >>
> > >>
> > >
> > >
> > > --
> > > Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services
> Developers
> > >
> > >
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> > --
> > View this message in context: 
http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9717631
>
> > Sent from the Axis - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Ajith Ranabahu
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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





--
Amila Suriarachchi,
WSO2 Inc.


Please update your code to use new MEP URI's

2007-03-28 Thread keith chapman

Hi all,

With WSDL 2.0 moving to PR Axis2 will be deprecating the old MEP URI's in
its 1.2 release. Please updated your code to the new MEP URI's which are
given below.

Ols MEP URI's which are deprecated

public String MEP_URI_IN_ONLY = "http://www.w3.org/2004/08/wsdl/in-only";;
public String MEP_URI_ROBUST_IN_ONLY = "
http://www.w3.org/2004/08/wsdl/robust-in-only";;
public String MEP_URI_IN_OUT = "http://www.w3.org/2004/08/wsdl/in-out";;
public String MEP_URI_IN_OPTIONAL_OUT = "
http://www.w3.org/2004/08/wsdl/in-opt-out";;
public String MEP_URI_OUT_ONLY = "http://www.w3.org/2004/08/wsdl/out-only";;
public String MEP_URI_ROBUST_OUT_ONLY = "
http://www.w3.org/2004/08/wsdl/robust-out-only";;
public String MEP_URI_OUT_IN = "http://www.w3.org/2004/08/wsdl/out-in";;
public String MEP_URI_OUT_OPTIONAL_IN = "
http://www.w3.org/2004/08/wsdl/out-opt-in";;

public String MEP_URI_IN_ONLY = "http://www.w3.org/2006/01/wsdl/in-only";;
public String MEP_URI_ROBUST_IN_ONLY = "
http://www.w3.org/2006/01/wsdl/robust-in-only";;
public String MEP_URI_IN_OUT = "http://www.w3.org/2006/01/wsdl/in-out";;
public String MEP_URI_IN_OPTIONAL_OUT = "
http://www.w3.org/2006/01/wsdl/in-opt-out";;
public String MEP_URI_OUT_ONLY = "http://www.w3.org/2006/01/wsdl/out-only";;
public String MEP_URI_ROBUST_OUT_ONLY = "
http://www.w3.org/2006/01/wsdl/robust-out-only";;
public String MEP_URI_OUT_IN = "http://www.w3.org/2006/01/wsdl/out-in";;
public String MEP_URI_OUT_OPTIONAL_IN = "
http://www.w3.org/2006/01/wsdl/out-opt-in";;

Instead of these please use the corresponding URI from the list below which
can be found in org.apache.axis2.description.WSDL2Constants.

public String MEP_URI_IN_ONLY = "http://www.w3.org/ns/wsdl/in-only";;
public String MEP_URI_ROBUST_IN_ONLY = "
http://www.w3.org/ns/wsdl/robust-in-only";;
public String MEP_URI_IN_OUT = "http://www.w3.org/ns/wsdl/in-out";;
public String MEP_URI_IN_OPTIONAL_OUT = "
http://www.w3.org/ns/wsdl/in-opt-out";;
public String MEP_URI_OUT_ONLY = "http://www.w3.org/ns/wsdl/out-only";;
public String MEP_URI_ROBUST_OUT_ONLY = "
http://www.w3.org/ns/wsdl/robust-out-only";;
public String MEP_URI_OUT_IN = "http://www.w3.org/ns/wsdl/out-in";;
public String MEP_URI_OUT_OPTIONAL_IN = "
http://www.w3.org/ns/wsdl/out-opt-in";;

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


Re: Define multiple services in services.xml

2007-03-28 Thread Charitha Kankanamge

Davanum Srinivas wrote:


yes.

On 3/28/07, Milan Tomic <[EMAIL PROTECTED]> wrote:



Is it possible to define more than 1 service in services.xml file? I 
have 2 services.


Have a look at this;  http://ws.apache.org/axis2/faq.html#e1 for more 
information.


-Charitha








 


8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

-
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] wsdl2java Code Generation problem (ADB)

2007-03-28 Thread Lahiru Sandakith

Hi

doing  it with the Eclipse Codegen Plugin Result the attached error,

Thanks

Sandakith

On 3/29/07, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:


Hi,
It seems (from visual inspection) that there is nothing wrong with
your WSDL. If Axis2 failed with this then its surely a bug. Have you
tried with the nightlies by any chance ? Better yet you can even try
with the Axis 1.2 RC

Ajith

On 3/28/07, Anil VVNN <[EMAIL PROTECTED]> wrote:
>
> Hi Dims,
>
> I think nothing wrong with Axis2 libraries, problem could be with my
wsdl
> file (ADBTest.wsdl attached). Can you please validate. Thanks.
>
> - Anil
>
>
> Davanum Srinivas wrote:
> >
> > Please create a JIRA issue and upload the wsdl's.
> >
> > thanks,
> > dims
> >
> > On 3/28/07, Anil VVNN <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi,
> >>
> >> I'm using Axis2 1.1.1, I have written very simple wsdl wsdl but
> >> encountering
> >> problem while generating Java classes, could somebody validate the
> >> attached
> >> wsdl. And here is the error,
> >>
> >> ===
> >> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> >> apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
mapped
> >> to
> >> the name setMessage with namespace http://ADBTest/xsd
> >> ===
> >> http://www.nabble.com/file/7486/ADBTest.wsdl ADBTest.wsdl
> >>
> >> Thanks. Do you need ADBTestSkeleton code too.
> >>
> >> --
> >> View this message in context:
> >>
http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9716015
> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services
Developers
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9717631
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Ajith Ranabahu

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





--
Regards
Lahiru Sandakith


Screenshot-Error  .png
Description: PNG image
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Axis2] wsdl2java Code Generation problem (ADB)

2007-03-28 Thread Ajith Ranabahu

Hi,
It seems (from visual inspection) that there is nothing wrong with
your WSDL. If Axis2 failed with this then its surely a bug. Have you
tried with the nightlies by any chance ? Better yet you can even try
with the Axis 1.2 RC

Ajith

On 3/28/07, Anil VVNN <[EMAIL PROTECTED]> wrote:


Hi Dims,

I think nothing wrong with Axis2 libraries, problem could be with my wsdl
file (ADBTest.wsdl attached). Can you please validate. Thanks.

- Anil


Davanum Srinivas wrote:
>
> Please create a JIRA issue and upload the wsdl's.
>
> thanks,
> dims
>
> On 3/28/07, Anil VVNN <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I'm using Axis2 1.1.1, I have written very simple wsdl wsdl but
>> encountering
>> problem while generating Java classes, could somebody validate the
>> attached
>> wsdl. And here is the error,
>>
>> ===
>> org.apache.axis2.wsdl.codegen.CodeGenerationException:
>> apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped
>> to
>> the name setMessage with namespace http://ADBTest/xsd
>> ===
>> http://www.nabble.com/file/7486/ADBTest.wsdl ADBTest.wsdl
>>
>> Thanks. Do you need ADBTestSkeleton code too.
>>
>> --
>> View this message in context:
>> 
http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9716015
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9717631
Sent from the Axis - User mailing list archive at Nabble.com.


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





--
Ajith Ranabahu

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



Pojo x Axiom

2007-03-28 Thread Marcos Vilela

Hello,


I have a simple question. What's the difference in build a service with
Axiom or Pojo? Behind the scenes the service will work exactly the same way?
Regard to interoperability, I will loose something changing the way I build
my service?

thanks and regards,
-- 
View this message in context: 
http://www.nabble.com/Pojo-x-Axiom-tf3484151.html#a9726403
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Axis 1.4 Java2WSDL

2007-03-28 Thread Xinjun Chen

Hi Manoj,

Thanks for your reply.
As I mentioned, I did compiled class with -g option (debug mode, reserving
local variable names, line numbers, and class info).

What I want to know is how Axis extract those method argument names. I want
to use the similar way to extract the method argument names in own data
binder.


Regards,
Xinjun


On 3/29/07, Manoj Khangaonkar <[EMAIL PROTECTED]> wrote:


Xinjun,

Axis can get Parameter names of methods from a compiled class only if the
class is compiled in
debug mode.

If class is not compiled in debug mode, the parameter names are not in the
.class file and there is no
way to get them.

Mj



On 3/27/07, Xinjun Chen <[EMAIL PROTECTED]> wrote:
>
> Hi Axis users and developers,
>
> I cannot understand one thing about Axis 1.4's Java2WSDL.
> When I use Java2WSDL, my class file is a concrete class compiled with -g
> option. Then in the generated WSDL, I now do not see those meaningless in0,
> in1, and etc. Thanks Axis developers!
>
> But I don't understand how Axis extracts the parameter names of a method
> from a class file.
> I have this question because I want to extract parameter names of a
> method from a class file using my own program. I googled and two options are
> using either JDI or BCEL. I searched Axis source but do not see these two
> APIs. I want to learn from Axis Java2WSDL to get parameter names of a class
> file.
>
> Could any Axis developer or expert user explain the concept how Axis get
> the parameter names of a method from a class file?
> Currently I want to choose BCEL to achieve the purpose, but I still want
> to understand how Axis does it.
>
>
> Regards,
> Xinjun
>




Re: Has anyone seen this ?

2007-03-28 Thread Martin Gainty
Richard-

what happens when you use the -0 (no compression) as in 

jar -0 -cvf yourWebService.aar ...

if you have the src/modules/samples/version/build.xml you will see this target 
to generate.service

  
  
   
   

   

   
 
 
(Notice that the jar task does not use any compression parameters to generate 
the .aar)

HTH
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: "Richard DeGrande" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, March 28, 2007 6:51 PM
Subject: Has anyone seen this ?


org.apache.axis2.deployment.DeploymentException: Processing Operations Modules 
Error in schema generating Unexpected end of ZLIB input stream; nested 
exception is:
java.io.EOFException: Unexpected end of ZLIB input stream; nested 
exception is:
org.apache.axis2.deployment.DeploymentException: Error in schema 
generating Unexpected end of ZLIB input stream; nested exception is:
java.io.EOFException: Unexpected end of ZLIB input stream; nested 
exception is:
org.apache.axis2.deployment.DeploymentException: Processing Operations 
Modules Error in schema generating Unexpected end of ZLIB input stream; nested 
exception is:
java.io.EOFException: Unexpected end of ZLIB input stream; nested 
exception is:
org.apache.axis2.deployment.DeploymentException: Error in schema 
generating Unexpected end of ZLIB input stream; nested exception is:
java.io.EOFException: Unexpected end of ZLIB input stream
at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:139)
at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:528)
at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:196)
at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:227)
at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:174)
at 
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:219)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:61)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68)
at org.apache.axis2.deployment.sch

I've googled this and found that it is sometimes caused by not closing the zip 
stream.  I'm using the jar command in Ant to create
the .aar file.  I've tried to insure that the jar is not being compressed.  
When I initially deployed the jar it seemed to work. 
Code and services.xml enclosed...


package jeffco.us.service;

import org.apache.axiom.om.OMElement;

public class HelloService {

  public HelloService(){
super();
  }

  public void doServiceOne(OMElement e){
System.out.println("This is doServiceOne()");
  }


}






The Hello Service.

jeffco.us.service.HelloService


urn:doServiceOne







thanks
rick


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



Has anyone seen this ?

2007-03-28 Thread Richard DeGrande
org.apache.axis2.deployment.DeploymentException: Processing Operations Modules 
Error in schema generating Unexpected end of ZLIB input stream; nested 
exception is:
java.io.EOFException: Unexpected end of ZLIB input stream; nested 
exception is:
org.apache.axis2.deployment.DeploymentException: Error in schema 
generating Unexpected end of ZLIB input stream; nested exception is:
java.io.EOFException: Unexpected end of ZLIB input stream; nested 
exception is:
org.apache.axis2.deployment.DeploymentException: Processing Operations 
Modules Error in schema generating Unexpected end of ZLIB input stream; nested 
exception is:
java.io.EOFException: Unexpected end of ZLIB input stream; nested 
exception is:
org.apache.axis2.deployment.DeploymentException: Error in schema 
generating Unexpected end of ZLIB input stream; nested exception is:
java.io.EOFException: Unexpected end of ZLIB input stream
at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:139)
at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:528)
at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:196)
at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:227)
at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:174)
at 
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:219)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:61)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68)
at org.apache.axis2.deployment.sch

I've googled this and found that it is sometimes caused by not closing the zip 
stream.  I'm using the jar command in Ant to create
the .aar file.  I've tried to insure that the jar is not being compressed.  
When I initially deployed the jar it seemed to work. 
Code and services.xml enclosed...


package jeffco.us.service;

import org.apache.axiom.om.OMElement;

public class HelloService {

  public HelloService(){
super();
  }

  public void doServiceOne(OMElement e){
System.out.println("This is doServiceOne()");
  }


}






The Hello Service.

jeffco.us.service.HelloService


urn:doServiceOne







thanks
rick


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



Socket error

2007-03-28 Thread Vogel, Charles H
Hi all,
I have a basic question regarding timeouts/keep alive values in
relation to socket read/writes. I have a web service using Apache axis
as the client and sending a request to a service written in C++ using
GSOAP. I am testing the service from different boxes and found that in
one case I get intermittent errors of: 
SOAP FAULT: SOAP-ENV:Client
"End of file or no input: 'Connection reset by peer'"

And in my log file I see:

error: java.net.SocketException: Broken pipe (errno:32) 

It appears that the client sends the request but does not wait for the
response. Has anyone seen this type of error before? If so how do I fix
it?

Charlie Vogel
Bold Web Development
Work (206) 766-3856 Cell (206) 679-2699 M/S 2J-53
Email 


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



multiple values for single GET parameter?

2007-03-28 Thread feh


I want to be able to access a web service using multiple values for a single
GET parameter via REST. As an example, the request may be:

http://locahost/app/service/method?param=1¶m=2¶m=3

What would the signature of my method need to look like? What would the WSDL
look like? 

I've tried using an array in the service method (ie. "public void
method(int[] param)" ), and that seems
to create a decent WSDL, but when I actually make the request, only the
first value is being set.

Any ideas? Thanks!
-- 
View this message in context: 
http://www.nabble.com/multiple-values-for-single-GET-parameter--tf3482862.html#a9722268
Sent from the Axis - User mailing list archive at Nabble.com.


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



org.xml.sax.SAXException: Invalid element in ARWSClient.CreateOutputMap - Request_ID

2007-03-28 Thread Ding D
Hi,
I am trying to access WSDL created on remedy system ,
I am getting this error can any one help me on this?
My enviroment:
Axis 1.4,java 1.5
Please let me know if you need anything else.
Thanks,
Ding

Mar 20, 2007 7:13:47 AM org.apache.axis.client.Call
invoke
SEVERE: Exception:
org.xml.sax.SAXException: Invalid element in
ARWSClient.CreateOutputMap - Request_ID
at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at
org.apache.axis.client.Call.invoke(Call.java:2467)
at
org.apache.axis.client.Call.invoke(Call.java:2366)
at
org.apache.axis.client.Call.invoke(Call.java:1812)
at
ARWSClient.IHD_RemedyWebServiceSoapBindingStub.opCreate(IHD_RemedyWebServiceSoapBindingStub.java:291)
at
ARWSClient.TestClient.main(TestClient.java:22)
Exception in thread "main" AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXException: Invalid
element in ARWSClient.CreateOutputMap - Request_ID
 faultActor:
 faultNode:
 faultDetail:
   
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
Invalid element in ARWSClient.CreateOutputMap - Req
uest_ID
at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at
org.apache.axis.client.Call.invoke(Call.java:2467)
at
org.apache.axis.client.Call.invoke(Call.java:2366)
at
org.apache.axis.client.Call.invoke(Call.java:1812)
at
ARWSClient.IHD_RemedyWebServiceSoapBindingStub.opCreate(IHD_RemedyWebServiceSoapBindingStub.java:291)
at
ARWSClient.TestClient.main(TestClient.java:22)

{http://xml.apache.org/axis/}hostname:DINGM20

org.xml.sax.SAXException: Invalid element in
ARWSClient.CreateOutputMap - Request_ID
at
org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at
org.apache.axis.client.Call.invoke(Call.java:2470)
at
org.apache.axis.client.Call.invoke(Call.java:2366)
at
org.apache.axis.client.Call.invoke(Call.java:1812)
at
ARWSClient.IHD_RemedyWebServiceSoapBindingStub.opCreate(IHD_RemedyWebServiceSoapBindingStub.java:291)
at
ARWSClient.TestClient.main(TestClient.java:22)
Caused by: org.xml.sax.SAXException: Invalid element
in ARWSClient.CreateOutputMap - Request_ID
at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at
org.apache.axis.client.Call.invoke(Call.java:2467)
... 4 more



 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

IHD_RemedyWebService.wsdl
Description: 97359196-IHD_RemedyWebService.wsdl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

How do I debug the StockQuoteService quickstart sample in Eclipse+JBoss

2007-03-28 Thread ian c
I am trying to understand the steps involved in being able to debug the 
StockQuoteService.java code in the quickstart sample .



Would some one please help me by outline the necessary steps.


I have downloaded and installed the following
Axis2 1.1.1
Eclipse 3.2.2 and Callisto
JBoss 4.0.3SP1


Sincerely,
Ian




 

Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 

Null pointer exception in xmlbeans setArray

2007-03-28 Thread Jorge Fernandez
Hi,

I'm using xmlbeans as databinding. In some classes I have Array fields and when 
I call the setter for those with a null value, I get a null pointer exception 
but I tried the same with a String field and it works perfectly. Is not 
possible to set an array to null in xmlbeans classes??

Thanks and regards,

Jorge Fernández




-

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

Re: [Axis2] Policy-driven code generation

2007-03-28 Thread Sanka Samaranayake

Hi,

It seems to be broken in latest codebase which is need to be fixed before
Axis2-1.2 release. Please log a JIRA and I will follow up.

Thanks,
Sanka

On 3/28/07, Angel Todorov <[EMAIL PROTECTED]> wrote:


Hi,

I have seen "policy-driven code generation" as a feature of Axis2, but
I couldn't get it to work properly. Is this feature currently
supported in Axis2 ? If yes, where can I find a sample demonstrating
it?

What I assume it means, is to have a policy (let's say UsernameToken
auth) in my WSDL, and when I run wsdl2java, I would like to have the
rampart module automatically engaged in the generated stubs, and most
of the setups of the module -  auto generated. To sum it up:

1) given a WSDL with policy definitions in it
2) run wsdl2java
3) the tool generates code in the stub that "activates" the policy

Thanks.

Regards,
Angel

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





--
Sanka Samaranayake
WSO2 Inc.

http://sankas.blogspot.com/
http://www.wso2.org/


RE: Ant wsdl2java & command line WSDL2Java generate different code

2007-03-28 Thread Masin, Valerie
FYI: You can get the skeleton interfaces with the command line wsdl2java
using the -ssi flag. The default is off. 

-Original Message-
From: david2 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 28, 2007 3:32 PM
To: axis-user@ws.apache.org
Subject: Re: Ant wsdl2java & command line WSDL2Java generate different
code


Answer to my question #3:  Use the Ant java task.  This behaves the same
way as the User Guide example (no Skeleton Interface, nor references to
it) and, best of all, the Client successfully executes against the
resulting aar.

Here are the tasks for generating the service aar file.  Note the copied
Skeleton containing method logic.  The ant task kicks off the build
script created by wsdl2java:









Here are the tasks for generating the client jar file.  The ant task
kicks off the build script created by wsdl2java:






--
View this message in context:
http://www.nabble.com/Ant-wsdl2java---command-line-WSDL2Java-generate-di
fferent-code-tf3481674.html#a9718427
Sent from the Axis - User mailing list archive at Nabble.com.


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


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



[Axis2] Policy-driven code generation

2007-03-28 Thread Angel Todorov

Hi,

I have seen "policy-driven code generation" as a feature of Axis2, but
I couldn't get it to work properly. Is this feature currently
supported in Axis2 ? If yes, where can I find a sample demonstrating
it?

What I assume it means, is to have a policy (let's say UsernameToken
auth) in my WSDL, and when I run wsdl2java, I would like to have the
rampart module automatically engaged in the generated stubs, and most
of the setups of the module -  auto generated. To sum it up:

1) given a WSDL with policy definitions in it
2) run wsdl2java
3) the tool generates code in the stub that "activates" the policy

Thanks.

Regards,
Angel

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



Re: Ant wsdl2java & command line WSDL2Java generate different code

2007-03-28 Thread david2

Answer to my question #3:  Use the Ant java task.  This behaves the same way
as the User Guide example (no Skeleton Interface, nor references to it) and,
best of all, the Client successfully executes against the resulting aar.

Here are the tasks for generating the service aar file.  Note the copied
Skeleton containing method logic.  The ant task kicks off the build script
created by wsdl2java:









Here are the tasks for generating the client jar file.  The ant task kicks
off the build script created by wsdl2java:






-- 
View this message in context: 
http://www.nabble.com/Ant-wsdl2java---command-line-WSDL2Java-generate-different-code-tf3481674.html#a9718427
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: How to make SOAP messages smaller?

2007-03-28 Thread Ryan Nelsestuen
There are other binary encryption techniques for xml and there is some
effort to create a standard - see http://www.w3.org/XML/EXI/ for some
information.  I'm not aware of anything additional built in to Axis - you'd
probably have to find a commercial or open source add on and write your own
Axis module (if using Axis2... not sure about Axis1).

-Original Message-
From: Christian Poecher [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 28, 2007 12:11 PM
To: axis-user@ws.apache.org
Subject: Re: How to make SOAP messages smaller?

Spies, Brennan schrieb:
> This should be pretty easy to do...have the servlet filter check the
> "Accept-Encoding" before applying GZIP compression. Then, when debugging,
> have the client turn off this header.

Thanks, good hint!

Does anyone know better compression techniques than gzip? I found a 
paper claiming much better compression than gzip:

@inproceedings{Werner:CompressingSOAP,
Author = {C. Werner and C. Buschmann and S. Fischer},
Booktitle = {Proceedings of the IEEE International Conference on Web

Services},
Month = {July},
Pages = {540-547},
Title = {Compressing SOAP Messages by using Differential Encoding},
Year = {2004}}

If my mind serves me right, I have also heard for years now, that people 
are researching XML compression. Is there any advanced compression 
algorithm available for Axis?

Cheers,
Chris

-
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: How to make SOAP messages smaller?

2007-03-28 Thread Christian Poecher

Spies, Brennan schrieb:

This should be pretty easy to do...have the servlet filter check the
"Accept-Encoding" before applying GZIP compression. Then, when debugging,
have the client turn off this header.


Thanks, good hint!

Does anyone know better compression techniques than gzip? I found a 
paper claiming much better compression than gzip:


@inproceedings{Werner:CompressingSOAP,
Author = {C. Werner and C. Buschmann and S. Fischer},
	Booktitle = {Proceedings of the IEEE International Conference on Web 
Services},

Month = {July},
Pages = {540-547},
Title = {Compressing SOAP Messages by using Differential Encoding},
Year = {2004}}

If my mind serves me right, I have also heard for years now, that people 
are researching XML compression. Is there any advanced compression 
algorithm available for Axis?


Cheers,
Chris

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



Re: How to make SOAP messages smaller?

2007-03-28 Thread Thilina Gunarathne

Axis2 has built in GZIP support..[1]..
Also you can try the recently added fastinfoset[2] message formatting
support in axis2..

thanks,
Thilina

[1]http://wso2.org/library/230#GZIP
[2]http://java.sun.com/developer/technicalArticles/xml/fastinfoset/

On 3/28/07, Ryan Nelsestuen <[EMAIL PROTECTED]> wrote:

There are other binary encryption techniques for xml and there is some
effort to create a standard - see http://www.w3.org/XML/EXI/ for some
information.  I'm not aware of anything additional built in to Axis - you'd
probably have to find a commercial or open source add on and write your own
Axis module (if using Axis2... not sure about Axis1).

-Original Message-
From: Christian Poecher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 28, 2007 12:11 PM
To: axis-user@ws.apache.org
Subject: Re: How to make SOAP messages smaller?

Spies, Brennan schrieb:
> This should be pretty easy to do...have the servlet filter check the
> "Accept-Encoding" before applying GZIP compression. Then, when debugging,
> have the client turn off this header.

Thanks, good hint!

Does anyone know better compression techniques than gzip? I found a
paper claiming much better compression than gzip:

@inproceedings{Werner:CompressingSOAP,
Author = {C. Werner and C. Buschmann and S. Fischer},
Booktitle = {Proceedings of the IEEE International Conference on Web

Services},
Month = {July},
Pages = {540-547},
Title = {Compressing SOAP Messages by using Differential Encoding},
Year = {2004}}

If my mind serves me right, I have also heard for years now, that people
are researching XML compression. Is there any advanced compression
algorithm available for Axis?

Cheers,
Chris

-
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  -  http://www.wso2.com - http://thilinag.blogspot.com

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



Re: Problem with userguide sample

2007-03-28 Thread Richard DeGrande
Michele,

I added the logging  module to the global section.  Doesn't seem to make a 
difference.  The problem is I have no idea where to look to see what the root 
issue is.  All I know is that the module is not configured or deployed. not why.

thx
rick

>>> Michele Mazzucco <[EMAIL PROTECTED]> 3/28/2007 10:41:21 AM >>>
Richard,

I'm quite sure that if your module is not globally engaged, i.e. if you
don't add

  

in the global modules section, than you have to engage it on the
services.xml file of your service (see step #5 of the tutorial) - this
is not needed if your module is globally engaged.

Michele

On Wed, 2007-03-28 at 10:32 -0600, Richard DeGrande wrote:
> Michele,
> 
> Does it need to be Globally engaged?  I just deployed it like they described 
> on  http://ws.apache.org/axis2/1_1/modules.html 
> I did engage the module for all Services.
> 
> Rick
> 
> 
> >>> Michele Mazzucco <[EMAIL PROTECTED]> 3/28/2007 10:26:43 AM >>>
> On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote:
> > I'm only posting the phase portion because that is all I changed
> 
> Is the module globally engaged? If so, you have to add something like
> 
>   
> 
> in the global modules section. The module name is the value specified in
> module.xml as name attribute.
> 
> 
> Michele
> 
> 
> -
> 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] 



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



RE: How to make SOAP messages smaller?

2007-03-28 Thread Spies, Brennan
This should be pretty easy to do...have the servlet filter check the
"Accept-Encoding" before applying GZIP compression. Then, when debugging,
have the client turn off this header.


-Original Message-
From: Christian Poecher [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 28, 2007 10:12 AM
To: axis-user@ws.apache.org
Subject: Re: How to make SOAP messages smaller?

Ryan Nelsestuen schrieb:
> It sort of depends on your architecture and who the callers are, but you
can
> put a GZipFilter in front of your AxisServlet and compress it that way...
of
> course, that means the client has to be capable of uncompressing gzip as
> well as indicating that they support gzip in an HTTP header...

Thx for your input! I thought about HTTP compression before, but what I 
don't like, is that the SOAP message looks like garbage then to the 
human eye. Maybe I can find a solution to make it optional for the 
client. That would at least help the client developer to debug.

-Chris

-
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: How to make SOAP messages smaller?

2007-03-28 Thread Ryan Nelsestuen
It sort of depends on your architecture and who the callers are, but you can
put a GZipFilter in front of your AxisServlet and compress it that way... of
course, that means the client has to be capable of uncompressing gzip as
well as indicating that they support gzip in an HTTP header...

-Original Message-
From: Christian Poecher [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 28, 2007 10:16 AM
To: axis-user@ws.apache.org
Subject: How to make SOAP messages smaller?

Hi there,

I am currently making a scientific application web service ready. Since 
the data that gets transferred can be quite big, I am looking for a good 
solution to make the SOAP messages small.

The input data, which consist mainly of doubles is usually given in 
binary files. I can use WS-Attachments to transfer those files, but I 
also have an RPC version, which sends human readable messages with ASCII 
data. Sadly, the blow-up using RPC style is just incredible, so I am 
looking into possibilities to make the SOAP messages smaller and still 
retain clearer interface and easy debugging using RPC.

What techniques can I use to compress the data? Is there a better 
approach then just send binary files? Is it possible to use RPC, but 
have the doubles sent as binary?

TIA,
Chris

-
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: Problem with userguide sample

2007-03-28 Thread Michele Mazzucco
Richard,

try to turn out the axis2 logs. Assuming you're using tomcat, open
$CATALINA_HOME/webapps/axis2/WEB-INF/classes/commons-logging.properties
and uncomment the last line. If you're using log4j, add this section to
your log4j (i.e. the log4j.properties which goes into your .aar file)

log4j.appender.axis2=org.apache.log4j.RollingFileAppender
log4j.appender.axis2.layout=org.apache.log4j.PatternLayout
log4j.appender.axis2.layout.ConversionPattern=%-5p %C{1}:%M - %m%n

log4j.appender.axis2.File=${catalina.home}/logs/axis2_logs.log

log4j.appender.axis2.MaxFileSize=4KB
log4j.appender.axis2.MaxBackupIndex=1


# Truncate 'axis2_logs.log' if it aleady exists.
log4j.appender.axis2.Append=false

log4j.category.org.apache.axis2=TRACE, A1, axis2 

Michele


On Wed, 2007-03-28 at 10:47 -0600, Richard DeGrande wrote:
> Michele,
> 
> I added the logging  module to the global section.  Doesn't seem to make a 
> difference.  The problem is I have no idea where to look to see what the root 
> issue is.  All I know is that the module is not configured or deployed. not 
> why.
> 
> thx
> rick
> 
> >>> Michele Mazzucco <[EMAIL PROTECTED]> 3/28/2007 10:41:21 AM >>>
> Richard,
> 
> I'm quite sure that if your module is not globally engaged, i.e. if you
> don't add
> 
>   
> 
> in the global modules section, than you have to engage it on the
> services.xml file of your service (see step #5 of the tutorial) - this
> is not needed if your module is globally engaged.
> 
> Michele
> 
> On Wed, 2007-03-28 at 10:32 -0600, Richard DeGrande wrote:
> > Michele,
> > 
> > Does it need to be Globally engaged?  I just deployed it like they 
> > described on  http://ws.apache.org/axis2/1_1/modules.html 
> > I did engage the module for all Services.
> > 
> > Rick
> > 
> > 
> > >>> Michele Mazzucco <[EMAIL PROTECTED]> 3/28/2007 10:26:43 AM >>>
> > On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote:
> > > I'm only posting the phase portion because that is all I changed
> > 
> > Is the module globally engaged? If so, you have to add something like
> > 
> >   
> > 
> > in the global modules section. The module name is the value specified in
> > module.xml as name attribute.
> > 
> > 
> > Michele
> > 
> > 
> > -
> > 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] 
> 
> 
> 
> -
> 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] Bean generated WSDL missing ancestor properties in SOAP response

2007-03-28 Thread ken.ricci
I have a base bean, ClassA with a few properties.   The ClassA is
extended by ClassB for some additional properties.   The generated WSDL
for ClassB is correct.  However, the SOAP response omits all the
elements/values from the ancestor (ClassA)

Is this allowed in Axis2?   I tried to create additional getters methods
in ClassB for the ClassA attributes.   That will give me the correct
SOAP response, but double the generate WSDL elements for the ClassA
attributes.   That confuses the WS client.

Help is appreciated.

Thx, Ken

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

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

Ant wsdl2java & command line WSDL2Java generate different code

2007-03-28 Thread david2

I have been working with the Axis2UserGuide.wsdl example to find a suitable
way to automate our Axis2 web service builds from ant.

I successfully generated the client using the batch file
(%AXIS2_HOME%\bin\wsdl2java...).  I have also successfully generated the
service from the java class (java org.apache.axis2.wsdl.WSDL2Java...).

When I tried to perform the same exercise using Ant wsdl2java tasks (as per
sample quickstartadb), code was generated, however, when I deployed the aar
file, it did not respond to the Client.  The DoInOnly message was not
received by the service (I added print statements to the appropriate
Axis2UserGuideServiceSkeleton methods to verify this).  Furthermore, the
other messages all generated AxisFaults when the execute(true) method is
sent to the _operationClient (OutInAxisOperation).  I redeployed the
original aar file generated by Java command line, restarted Tomcat, and the
Client worked fine.

I also noticed that the ant wsdl2java task generated an
Axis2UserGuideServiceSkeletonInterface class which was never generated by
the invocation of WSDL2Java as a Java class.  Also, when I compared the
generated message receiver service code side by side, I noticed that the
versions of Axis2UserGuideServiceMessageReceiverInOnly.java &
Axis2UserGuideServiceMessageReceiverInOut.java generated by the Ant
wsdl2java task reference the skeleton Interface:

Axis2UserGuideServiceSkeletonInterface skel =
(Axis2UserGuideServiceSkeletonInterface)obj;

whereas the those generated via the Java command line reference the Skeleton
class itself:

Axis2UserGuideServiceSkeleton skel =
(Axis2UserGuideServiceSkeleton)obj;

My questions are:


1)  Why would the ant task generate different code than the Java command
line approach?

2)  What are the impacts of using the command line generated classes that
reference the Skeleton, rather than the Interface?

3)  Is there a better way to automate the Ant build?


I am using the Axis2UserGuide.wsdl defined in the user's guide, and separate
directories for client and source code.  Here is how I am generating the
code:

Command line client code generation (all on one line):
==

%AXIS2_HOME%\bin\wsdl2java 
-uri Axis2UserGuide.wsdl 
-p org.apache.axis2.axis2userguide 
-o client 
-d adb 
-s

Ant task client code generation (all on one line):
==


http://apache.org/axis2/Axis2UserGuide=org.apache.axis2.axis2userguide";
/>

Command line service code generation (all on one line):
===

java org.apache.axis2.wsdl.WSDL2Java 
-uri Axis2UserGuide.wsdl 
-p org.apache.axis2.axis2userguide 
-o service 
-d adb 
-s 
-wv 1.1 
-ss 
-sd

Ant task service code generation (all on one line):
===


http://apache.org/axis2/Axis2UserGuide=org.apache.axis2.axis2userguide";
   generateservicexml="true"
/>

Client output, including AxisFault stack traces:

doInOnly done

org.apache.axis2.AxisFault:
org.apache.axis2.axis2userguide.Axis2UserGuideServiceSkeleton
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
at
org.apache.axis2.axis2userguide.Axis2UserGuideServiceStub.TwoWayOneParameterEcho(Axis2UserGuideServiceStub.java:277)
at
org.apache.axis2.axis2userguide.Client.twoWayOneParameterEcho(Client.java:54)
at org.apache.axis2.axis2userguide.Client.main(Client.java:19)

org.apache.axis2.AxisFault:
org.apache.axis2.axis2userguide.Axis2UserGuideServiceSkeleton
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
at
org.apache.axis2.axis2userguide.Axis2UserGuideServiceStub.NoParameters(Axis2UserGuideServiceStub.java:174)
at org.apache.axis2.axis2userguide.Client.noParameters(Client.java:69)
at org.apache.axis2.axis2userguide.Client.main(Client.java:20)

org.apache.axis2.AxisFault:
org.apache.axis2.axis2userguide.Axis2UserGuideServiceSkeleton
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
at
org.apache.axis2.axis2userguide.Axis2UserGuideServiceStub.MultipleParametersAddItem(Axis2UserGuideServiceStub.java:421)
at
org.apache.axis2.axis2userguide.Client.multipleParamet

Re: Axis 1.4 Java2WSDL

2007-03-28 Thread Manoj Khangaonkar

Xinjun,

Axis can get Parameter names of methods from a compiled class only if the
class is compiled in
debug mode.

If class is not compiled in debug mode, the parameter names are not in the
.class file and there is no
way to get them.

Mj



On 3/27/07, Xinjun Chen <[EMAIL PROTECTED]> wrote:


Hi Axis users and developers,

I cannot understand one thing about Axis 1.4's Java2WSDL.
When I use Java2WSDL, my class file is a concrete class compiled with -g
option. Then in the generated WSDL, I now do not see those meaningless in0,
in1, and etc. Thanks Axis developers!

But I don't understand how Axis extracts the parameter names of a method
from a class file.
I have this question because I want to extract parameter names of a method
from a class file using my own program. I googled and two options are using
either JDI or BCEL. I searched Axis source but do not see these two APIs. I
want to learn from Axis Java2WSDL to get parameter names of a class file.

Could any Axis developer or expert user explain the concept how Axis get
the parameter names of a method from a class file?
Currently I want to choose BCEL to achieve the purpose, but I still want
to understand how Axis does it.


Regards,
Xinjun



Re: How to make SOAP messages smaller?

2007-03-28 Thread Christian Poecher

Ryan Nelsestuen schrieb:

It sort of depends on your architecture and who the callers are, but you can
put a GZipFilter in front of your AxisServlet and compress it that way... of
course, that means the client has to be capable of uncompressing gzip as
well as indicating that they support gzip in an HTTP header...


Thx for your input! I thought about HTTP compression before, but what I 
don't like, is that the SOAP message looks like garbage then to the 
human eye. Maybe I can find a solution to make it optional for the 
client. That would at least help the client developer to debug.


-Chris

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



RE: Axis2 Client Stub not Generating WS-Security Headers

2007-03-28 Thread Ted Jones
Thank you for the reply Ruchith. I am following these instructions with
the exception of the service invocation since I am using my generated
client stub. Does the client repository location need to be included in
order to generate the proper stub logic for inserting the WS-Security
headers? Also, the code sample links are broken on the link you gave me.

Thanks,
Ted

-Original Message-
From: Ruchith Fernando [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 27, 2007 11:04 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 Client Stub not Generating WS-Security Headers

Hi Ted,

Please see this :
http://www.wso2.org/library/240

Thanks,
Ruchith

On 3/28/07, Ted Jones <[EMAIL PROTECTED]> wrote:
>
>
> I have an Axis2 1.1.1 ADB generated client stub that is instantiated 
> using a client axis2.xml config and pointing to a client repository 
> that has the rampart and addressing mar files. The config file and 
> repository location are loaded via URL. In debug, I can see the 
> rampart and addressing modules are engaged. In my client code, I have 
> added the following properties to the serviceclient's options
instance:
>
>  options.setProperty(WSConstants.WSSE_NS , 
> WSConstants.USERNAME_TOKEN_LN); 
> options.setProperty(WSConstants.USERNAME_LN,getConnectionProperties().
> getUserid()); 
> options.setProperty(WSConstants.PASSWORD_LN,getConnectionProperties().
> getPassword());  options.setProperty(WSConstants.PASSWORD_TYPE_ATTR,
> WSConstants.PASSWORD_TEXT);
>
> The WS-Security headers are never inserted into the soap request and I

> receive the ever-popular "org.apache.axis2.AxisFault: WSDoAllReceiver:
> Incoming message does not contain required Security header".
>
> This web service and the ws-security logic works using soapUI (a great
> *free* tool by the way).
>
> Is there some other property I need to set in the options or something

> else I need to be doing?
>
> Thanks
> Ted
>
>


--
www.ruchith.org
www.wso2.org

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


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



Re: Problem with userguide sample

2007-03-28 Thread Michele Mazzucco
Richard,

I'm quite sure that if your module is not globally engaged, i.e. if you
don't add

  

in the global modules section, than you have to engage it on the
services.xml file of your service (see step #5 of the tutorial) - this
is not needed if your module is globally engaged.

Michele

On Wed, 2007-03-28 at 10:32 -0600, Richard DeGrande wrote:
> Michele,
> 
> Does it need to be Globally engaged?  I just deployed it like they described 
> on  http://ws.apache.org/axis2/1_1/modules.html
> I did engage the module for all Services.
> 
> Rick
> 
> 
> >>> Michele Mazzucco <[EMAIL PROTECTED]> 3/28/2007 10:26:43 AM >>>
> On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote:
> > I'm only posting the phase portion because that is all I changed
> 
> Is the module globally engaged? If so, you have to add something like
> 
>   
> 
> in the global modules section. The module name is the value specified in
> module.xml as name attribute.
> 
> 
> Michele
> 
> 
> -
> 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] wsdl2java Code Generation problem (ADB)

2007-03-28 Thread Anil VVNN

Hi Dims,

I think nothing wrong with Axis2 libraries, problem could be with my wsdl
file (ADBTest.wsdl attached). Can you please validate. Thanks.

- Anil


Davanum Srinivas wrote:
> 
> Please create a JIRA issue and upload the wsdl's.
> 
> thanks,
> dims
> 
> On 3/28/07, Anil VVNN <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I'm using Axis2 1.1.1, I have written very simple wsdl wsdl but
>> encountering
>> problem while generating Java classes, could somebody validate the
>> attached
>> wsdl. And here is the error,
>>
>> ===
>> org.apache.axis2.wsdl.codegen.CodeGenerationException:
>> apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped
>> to
>> the name setMessage with namespace http://ADBTest/xsd
>> ===
>> http://www.nabble.com/file/7486/ADBTest.wsdl ADBTest.wsdl
>>
>> Thanks. Do you need ADBTestSkeleton code too.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9716015
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9717631
Sent from the Axis - User mailing list archive at Nabble.com.


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



Compiling XFire 1.2.5 Using Maven

2007-03-28 Thread Charles Ambrose

Hi guys!

I having problems compiling the src code using maven.

I am already using the default POM.xml from the source code. Maven reports:

INFO: Couldn't find Java 5 module on classpath. Annotation mappings will not
be supported.
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.641 sec
<<< FAILURE!

What shall I do? The repository is also there and the dependencies are
already defined?

Thanks again!

Charles


Re: Problem with userguide sample

2007-03-28 Thread Richard DeGrande
Michele,

Does it need to be Globally engaged?  I just deployed it like they described on 
 http://ws.apache.org/axis2/1_1/modules.html
I did engage the module for all Services.

Rick


>>> Michele Mazzucco <[EMAIL PROTECTED]> 3/28/2007 10:26:43 AM >>>
On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote:
> I'm only posting the phase portion because that is all I changed

Is the module globally engaged? If so, you have to add something like

  

in the global modules section. The module name is the value specified in
module.xml as name attribute.


Michele


-
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: Problem with userguide sample

2007-03-28 Thread Richard DeGrande
Michele,

































>>> Michele Mazzucco <[EMAIL PROTECTED]> 3/28/2007 10:23:38 AM >>>
On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote:
> The service.xml is the same as whatever comes with the sample.

I'm sorry. I meant module.xml.

Michele


-
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: Problem with userguide sample

2007-03-28 Thread Michele Mazzucco
On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote:
> I'm only posting the phase portion because that is all I changed

Is the module globally engaged? If so, you have to add something like

  

in the global modules section. The module name is the value specified in
module.xml as name attribute.


Michele


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



Re: Problem with userguide sample

2007-03-28 Thread Michele Mazzucco
On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote:
> The service.xml is the same as whatever comes with the sample.

I'm sorry. I meant module.xml.

Michele


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



Re: Problem with userguide sample

2007-03-28 Thread Richard DeGrande
Michele

Here is my axis2.xml.  I'm only posting the phase portion because that is all I 
changed.  The service.xml is the same as whatever comes with the sample.
Does this help ?

thx

   















































































>>> Michele Mazzucco <[EMAIL PROTECTED]> 3/28/2007 10:12:49 AM >>>
Richard,

can you please post your axis2.xml and services.xml?

Michele

On Wed, 2007-03-28 at 10:07 -0600, Richard DeGrande wrote:
> I've deployed the logging module and all services with no exceptions.  
> However, when I try to call a service I get the following error. 
> 
> compile:
> 
> run.client.ping:
>  [java] Mar 28, 2007 9:53:14 AM 
> org.apache.axis2.deployment.DeploymentEngine doDeploy
>  [java] INFO: Deploying module : addressing-1.1.1
>  [java] Mar 28, 2007 9:53:14 AM 
> org.apache.axis2.deployment.DeploymentEngine doDeploy
>  [java] INFO: Deploying module : soapmonitor-1.1.1
>  [java] Mar 28, 2007 9:53:14 AM 
> org.apache.axis2.deployment.DeploymentEngine doDeploy
>  [java] INFO: Deploying module : sample-logging
>  [java] Mar 28, 2007 9:53:14 AM 
> org.apache.axis2.deployment.DeploymentEngine doDeploy
>  [java] INFO: Deploying Web service  sample-MyService.aar
>  [java] org.apache.axis2.deployment.DeploymentException: Processing 
> Operations Modules logging module is invalid or has not been deployed; nested 
> exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: logging 
> module is invalid or has not been deployed; nested exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: logging 
> module is invalid or has not been deployed; nested exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: logging 
> module is invalid or has not been deployed; nested exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: Processing 
> Operations Modules logging module is invalid or has not been deployed; nested 
> exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: logging 
> module is invalid or has not been deployed; nested exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: logging 
> module is invalid or has not been deployed; nested exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: logging 
> module is invalid or has not been deployed
>  [java] at 
> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:139)
>  [java] at 
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:528)
>  [java] at 
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:196)
>  [java] at 
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:227)
>  [java] at 
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:174)
>  [java] at 
> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:88)
>  [java] at 
> org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileSystemConfigurator.java:129)
>  [java] at 
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:72)
>  [java] at 
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
>  [java] at 
> org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient.java:189)
>  [java] at 
> org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:118)
>  [java] at 
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:114)
>  [java] at 
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:207)
>  [java] at userguide.clients.PingClient.main(Unknown Source)
>  [java] Caused by: org.apache.axis2.deployment.DeploymentException: 
> Processing Operations Modules l
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 


-

Re: [AXIS2] MTOM problems

2007-03-28 Thread Thilina Gunarathne

Great... Nice to hear that...

~Thilina

On 3/28/07, Betsy Frey <[EMAIL PROTECTED]> wrote:

Both problems below seem to be fixed by Axis2-1.2-RC1.
Thilina was right when he guessed I had not replaced all the jars when I
said I had tested with RC1.
Betsy

-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 27, 2007 12:12 PM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] MTOM problems

Hi,

> 1.  Sometimes 1 extra byte is received.  This is a 255 (0xff).
It would be great if you can isolate the failing scenario and log a
Jira with a test case..
>
> 2.  When I set the client option CACHE_ATTACHMENTS to true, a client-side
> thread loops, appending bytes of 0xff to a .ATT file in the attachments
> directory.
I did some fixes to the Attachment caching after the 1.1 release..
They are available in the latest svn head of Axiom.. And should be
available with the Axis2-1.2-RC1..

Can you please retest the 2 with Axis2-1.2-RC1.. Make sure to replace
each and every jar with the once that came with 1.2-rc1, specially the
Axiom jars..

--
Thilina Gunarathne  -  http://www.wso2.com - 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]





--
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

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



How to make SOAP messages smaller?

2007-03-28 Thread Christian Poecher

Hi there,

I am currently making a scientific application web service ready. Since 
the data that gets transferred can be quite big, I am looking for a good 
solution to make the SOAP messages small.


The input data, which consist mainly of doubles is usually given in 
binary files. I can use WS-Attachments to transfer those files, but I 
also have an RPC version, which sends human readable messages with ASCII 
data. Sadly, the blow-up using RPC style is just incredible, so I am 
looking into possibilities to make the SOAP messages smaller and still 
retain clearer interface and easy debugging using RPC.


What techniques can I use to compress the data? Is there a better 
approach then just send binary files? Is it possible to use RPC, but 
have the doubles sent as binary?


TIA,
Chris

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



Re: Problem with userguide sample

2007-03-28 Thread Michele Mazzucco
Richard,

can you please post your axis2.xml and services.xml?

Michele

On Wed, 2007-03-28 at 10:07 -0600, Richard DeGrande wrote:
> I've deployed the logging module and all services with no exceptions.  
> However, when I try to call a service I get the following error. 
> 
> compile:
> 
> run.client.ping:
>  [java] Mar 28, 2007 9:53:14 AM 
> org.apache.axis2.deployment.DeploymentEngine doDeploy
>  [java] INFO: Deploying module : addressing-1.1.1
>  [java] Mar 28, 2007 9:53:14 AM 
> org.apache.axis2.deployment.DeploymentEngine doDeploy
>  [java] INFO: Deploying module : soapmonitor-1.1.1
>  [java] Mar 28, 2007 9:53:14 AM 
> org.apache.axis2.deployment.DeploymentEngine doDeploy
>  [java] INFO: Deploying module : sample-logging
>  [java] Mar 28, 2007 9:53:14 AM 
> org.apache.axis2.deployment.DeploymentEngine doDeploy
>  [java] INFO: Deploying Web service  sample-MyService.aar
>  [java] org.apache.axis2.deployment.DeploymentException: Processing 
> Operations Modules logging module is invalid or has not been deployed; nested 
> exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: logging 
> module is invalid or has not been deployed; nested exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: logging 
> module is invalid or has not been deployed; nested exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: logging 
> module is invalid or has not been deployed; nested exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: Processing 
> Operations Modules logging module is invalid or has not been deployed; nested 
> exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: logging 
> module is invalid or has not been deployed; nested exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: logging 
> module is invalid or has not been deployed; nested exception is:
>  [java] org.apache.axis2.deployment.DeploymentException: logging 
> module is invalid or has not been deployed
>  [java] at 
> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:139)
>  [java] at 
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:528)
>  [java] at 
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:196)
>  [java] at 
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:227)
>  [java] at 
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:174)
>  [java] at 
> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:88)
>  [java] at 
> org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileSystemConfigurator.java:129)
>  [java] at 
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:72)
>  [java] at 
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
>  [java] at 
> org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient.java:189)
>  [java] at 
> org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:118)
>  [java] at 
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:114)
>  [java] at 
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:207)
>  [java] at userguide.clients.PingClient.main(Unknown Source)
>  [java] Caused by: org.apache.axis2.deployment.DeploymentException: 
> Processing Operations Modules l
> 
> 
> -
> 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]



Problem with userguide sample

2007-03-28 Thread Richard DeGrande
I've deployed the logging module and all services with no exceptions.  However, 
when I try to call a service I get the following error. 

compile:

run.client.ping:
 [java] Mar 28, 2007 9:53:14 AM 
org.apache.axis2.deployment.DeploymentEngine doDeploy
 [java] INFO: Deploying module : addressing-1.1.1
 [java] Mar 28, 2007 9:53:14 AM 
org.apache.axis2.deployment.DeploymentEngine doDeploy
 [java] INFO: Deploying module : soapmonitor-1.1.1
 [java] Mar 28, 2007 9:53:14 AM 
org.apache.axis2.deployment.DeploymentEngine doDeploy
 [java] INFO: Deploying module : sample-logging
 [java] Mar 28, 2007 9:53:14 AM 
org.apache.axis2.deployment.DeploymentEngine doDeploy
 [java] INFO: Deploying Web service  sample-MyService.aar
 [java] org.apache.axis2.deployment.DeploymentException: Processing 
Operations Modules logging module is invalid or has not been deployed; nested 
exception is:
 [java] org.apache.axis2.deployment.DeploymentException: logging module 
is invalid or has not been deployed; nested exception is:
 [java] org.apache.axis2.deployment.DeploymentException: logging module 
is invalid or has not been deployed; nested exception is:
 [java] org.apache.axis2.deployment.DeploymentException: logging module 
is invalid or has not been deployed; nested exception is:
 [java] org.apache.axis2.deployment.DeploymentException: Processing 
Operations Modules logging module is invalid or has not been deployed; nested 
exception is:
 [java] org.apache.axis2.deployment.DeploymentException: logging module 
is invalid or has not been deployed; nested exception is:
 [java] org.apache.axis2.deployment.DeploymentException: logging module 
is invalid or has not been deployed; nested exception is:
 [java] org.apache.axis2.deployment.DeploymentException: logging module 
is invalid or has not been deployed
 [java] at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:139)
 [java] at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:528)
 [java] at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:196)
 [java] at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:227)
 [java] at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:174)
 [java] at 
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:88)
 [java] at 
org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileSystemConfigurator.java:129)
 [java] at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:72)
 [java] at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
 [java] at 
org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient.java:189)
 [java] at 
org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:118)
 [java] at 
org.apache.axis2.client.ServiceClient.(ServiceClient.java:114)
 [java] at 
org.apache.axis2.client.ServiceClient.(ServiceClient.java:207)
 [java] at userguide.clients.PingClient.main(Unknown Source)
 [java] Caused by: org.apache.axis2.deployment.DeploymentException: 
Processing Operations Modules l


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



Axis2, WSDL2Java and Rampart

2007-03-28 Thread herbison

Hi All!
I’m trying to access a .NET service using Axis2.  From what I understand, if
the WSDL (see policy below) has a WS security policy in it then WSDL2Java
will generate the setUsername and setPassword methods in the service stub. 
Is this correct?

Here is the WSDL2Java invocation:
sh ${AXIS2_HOME}/bin/axis2.sh \
org.apache.axis2.wsdl.WSDL2Java \
-uri "service" \
-d xmlbeans -s -r client_repository

The client repository has the rampart and addressing mar in it and the
axis2.xml.

When I run the WSDL2Java above I get the following output and NO username or
password stubs are created.  WHY?

Using AXIS2_HOME:   /home/coi/downloads/axis2-1.1.1
 Using JAVA_HOME:   /usr/jdk1.5.0_03
Retrieving schema at
'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP10.xml', relative
to 'http://pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP1.xml'.
Retrieving schema at
'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP12.xml', relative
to 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP10.xml'.
Retrieving schema at
'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP11.xml', relative
to 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP10.xml'.
Retrieving schema at
'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP12.xml', relative
to 'http://pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP1.xml'.
Retrieving schema at
'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP11.xml', relative
to 'http://pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP1.xml'.
Mar 28, 2007 10:54:01 AM
org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver
resolveEntity
INFO: Resolving schema with publicId [beta.va.nortel.com] and systemId
[/http:/Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP10.xml]
Mar 28, 2007 10:54:02 AM
org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver
resolveEntity
INFO: Resolving schema with publicId
[http://schemas.microsoft.com/2003/10/Serialization/] and systemId
[/http:/Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP11.xml]
Mar 28, 2007 10:54:02 AM
org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver
resolveEntity
INFO: Resolving schema with publicId
[http://schemas.microsoft.com/2003/10/Serialization/Arrays] and systemId
[/http:/Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP12.xml]
Mar 28, 2007 10:54:12 AM org.apache.axis2.deployment.DeploymentEngine
prepareRepository
INFO: no services directory found under
/home/coi/projects/coi/source_code/coidw/axsysTest/client_repository
Mar 28, 2007 10:54:12 AM org.apache.axis2.deployment.DeploymentEngine
doDeploy
INFO: Deploying module : addressing-1.1.1
Mar 28, 2007 10:54:20 AM org.apache.axis2.deployment.DeploymentEngine
doDeploy
INFO: Deploying module : rampart-1.1
cannot create repository : policy will not be supported
cannot find a PolicyExtension to process
http://schemas.xmlsoap.org/ws/2005/07/securitypolicytype assertions
cannot find a PolicyExtension to process
http://schemas.xmlsoap.org/ws/2005/07/securitypolicytype assertions
Mar 28, 2007 10:54:21 AM org.apache.axis2.wsdl.codegen.writer.ClassWriter
createOutFile
INFO: File ./src/com/nortel/va/beta/ClaimProcessorStub.java will not be
overwritten.



WS security policy

- 
- 
- http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
- 
- 
- 
   
  
  
- 
- 
   
  
  
- 
- 
   
  
  
   
  
  
- http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
- 
- http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient";>
- 
   
  
  
  
  
- http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
- 
   
   
  
  
  
  



-- 
View this message in context: 
http://www.nabble.com/Axis2%2C-WSDL2Java-and-Rampart-tf3481259.html#a9716824
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: [AXIS2] MTOM problems

2007-03-28 Thread Betsy Frey
Both problems below seem to be fixed by Axis2-1.2-RC1.
Thilina was right when he guessed I had not replaced all the jars when I
said I had tested with RC1.
Betsy

-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 27, 2007 12:12 PM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] MTOM problems

Hi,

> 1.  Sometimes 1 extra byte is received.  This is a 255 (0xff).
It would be great if you can isolate the failing scenario and log a
Jira with a test case..
>
> 2.  When I set the client option CACHE_ATTACHMENTS to true, a client-side
> thread loops, appending bytes of 0xff to a .ATT file in the attachments
> directory.
I did some fixes to the Attachment caching after the 1.1 release..
They are available in the latest svn head of Axiom.. And should be
available with the Axis2-1.2-RC1..

Can you please retest the 2 with Axis2-1.2-RC1.. Make sure to replace
each and every jar with the once that came with 1.2-rc1, specially the
Axiom jars..

-- 
Thilina Gunarathne  -  http://www.wso2.com - 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]



Re: [Axis2] wsdl2java Code Generation problem (ADB)

2007-03-28 Thread Davanum Srinivas

Please create a JIRA issue and upload the wsdl's.

thanks,
dims

On 3/28/07, Anil VVNN <[EMAIL PROTECTED]> wrote:


Hi,

I'm using Axis2 1.1.1, I have written very simple wsdl wsdl but encountering
problem while generating Java classes, could somebody validate the attached
wsdl. And here is the error,

===
org.apache.axis2.wsdl.codegen.CodeGenerationException:
apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to
the name setMessage with namespace http://ADBTest/xsd
===
http://www.nabble.com/file/7486/ADBTest.wsdl ADBTest.wsdl

Thanks. Do you need ADBTestSkeleton code too.

--
View this message in context: 
http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9716015
Sent from the Axis - User mailing list archive at Nabble.com.


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





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

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



Re: Axis2 not putting binary attachment on the wire

2007-03-28 Thread Thilina Gunarathne

My understanding (from reading about this somewhere) is when MTOM
attachments are viewed with SOAPMonitor they show up embedded (and
encoded) directly in the soap message. Then when they are MTOMed (ie
optimized) just before sending, that data is rearranged into the
multipart mime where the binary data is an attachment.

But lot of people fell in to trouble seeing that they do not have
attachments.. Also this will work only with MTOM, cause Axiom OMText
object which is the place holder for binary serializes the binary part
according to the situation...But this will not work with SwA in
anyway...

~Thilina


This is exactly the behaviour I see when I use tcpmon and SOAPMonitor at
the same time... so I don't think there is any problem with SOAPMonitor.

-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 28, 2007 8:41 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 not putting binary attachment on the wire

> ~Thilina
> PS: Please use TCPMON when sniffing messages with attachments..
> SOAPMonitor will not show you the attachments...
>

It used to. I'll take a look at that asap.

Robert

-
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  -  http://www.wso2.com - http://thilinag.blogspot.com

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



Re: [Axis2] memory issues on the client side

2007-03-28 Thread Davanum Srinivas

Michele,

Could i pester you to attach a profiler to see where the memory gets
accumulated? So that we can fix it in time for 1.2..

thanks,
dims

On 3/28/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote:

Hi all,

I've reopened JIRA 2328 because, even if the Callback object is removed
from the hash map when the asynchronous response is received, I still
see a big memory usage.
I'm using two ServiceClient objects, configured using the same
configuration context. After they have sent a few thousands messages
(while the number of waiting responses is low, say about 10) the
applications is using more that 1 GB of memory.

Any clue?

Michele


p.s. The cleanup is called only when all responses are received


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



[Axis2] wsdl2java Code Generation problem (ADB)

2007-03-28 Thread Anil VVNN

Hi,

I'm using Axis2 1.1.1, I have written very simple wsdl wsdl but encountering
problem while generating Java classes, could somebody validate the attached
wsdl. And here is the error,

===
org.apache.axis2.wsdl.codegen.CodeGenerationException:
apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to
the name setMessage with namespace http://ADBTest/xsd
===
http://www.nabble.com/file/7486/ADBTest.wsdl ADBTest.wsdl 

Thanks. Do you need ADBTestSkeleton code too.

-- 
View this message in context: 
http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9716015
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Running multiple instances of axis2 in same Tomcat

2007-03-28 Thread Davanum Srinivas

yes it does

On 3/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


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


Davanum Srinivas wrote:
>
> multiple webapps in same tomcat is possible.
>
> thanks,
> dims
>
> On 3/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>> I've a few posts that touched on this, but no answers.
>>
>> We have a web application that is deployed multiple times as separate
>> Tomcat
>> virtual hosts. We would like to structure our axis2 web services in a
>> similar way. For example,
>>  - webapp #1 is accessed as http://webapp1.myhost.com
>>  - webapp #2 is accessed as http://webapp2.myhost.com
>> We would like to be able to access the web services as:
>>  - http://webapp1.myhost.com:9191/axis2/MyApplicationService?...
>>  - http://webapp2.myhost.com:9292/axis2/MyApplicationService?...
>>
>> Can axis2 be loaded as multiple webapplications in Tomcat 5.5? Should
>> there
>> be any classloading issues?
>>
>> Or maybe there is an alternate way of doing this - maybe using a
>> different
>> namespace mechanism that axis2 provides that I have not
>> discovered/learned
>> yet?
>>
>> Thanks.
>> --
>> View this message in context:
>> 
http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9705315
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

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


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





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

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



[Axis2] memory issues on the client side

2007-03-28 Thread Michele Mazzucco
Hi all,

I've reopened JIRA 2328 because, even if the Callback object is removed
from the hash map when the asynchronous response is received, I still
see a big memory usage. 
I'm using two ServiceClient objects, configured using the same
configuration context. After they have sent a few thousands messages
(while the number of waiting responses is low, say about 10) the
applications is using more that 1 GB of memory.

Any clue?

Michele


p.s. The cleanup is called only when all responses are received


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



Re: Java2WSDL created invalid file?

2007-03-28 Thread feh


Bump - anybody know why the xsaw namespace is not being defined?

Thanks.



feh wrote:
> 
> Here it is Deepal; Thanks!
> 
> http://services.hp.ippaging.berbee.com";
> xmlns:ns="http://services.hp.ippaging.berbee.com/xsd";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
> targetNamespace="http://services.hp.ippaging.berbee.com";>
>  
>   http://www.w3.org/2001/XMLSchema";
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://services.hp.ippaging.berbee.com/xsd";>
>
> 
>  
>   
>   
>  
> 
>
>
> 
>  
>   
>   
>  
> 
>
>   
>  
>  
>   
>   
>  
>  
>   
>   
>  
>  
>   
>
>
>
>
>   
>  
>   type="axis2:ZoneServicePortType">
>   http://schemas.xmlsoap.org/soap/http";
> style="document">
>   
>   
>
>
>
>  namespace="http://services.hp.ippaging.berbee.com";>
> 
>
>
>  namespace="http://services.hp.ippaging.berbee.com";>
> 
>
>   
>  
>   type="axis2:ZoneServicePortType">
>   http://schemas.xmlsoap.org/soap/http";
> style="document">
>   
>   
>
>
>
>  namespace="http://services.hp.ippaging.berbee.com";>
> 
>
>
>  namespace="http://services.hp.ippaging.berbee.com";>
> 
>
>   
>  
>  
>binding="axis2:ZoneServiceSOAP11Binding">
> location="http://localhost:8080/axis2/services/ZoneService";>
>
>   
>binding="axis2:ZoneServiceSOAP12Binding">
> location="http://localhost:8080/axis2/services/ZoneService";>
>
>   
>  
> 
> 
> 
> 
> Deepal Jayasinghe wrote:
>> 
>> hi   feh ;
>> could you please post your wsdl.
>> 
>> Thanks
>> Deepal
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Java2WSDL-created-invalid-file--tf3450416.html#a9714249
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: [AXIS2] EndpointReference Serialization

2007-03-28 Thread David Illsley

On 28/03/07, Francesco Leone <[EMAIL PROTECTED]> wrote:

Hi!
I have some trouble with EndpointReference serialization, in particular when
i use
an Endpoint Reference with ReferenceParameters, i have a notSerializable
exception
referred to org.apache.axiom.om.impl.llom
 .OMElementImpl . I guess that the OMElement
used ad ReferenceParameters is the origin of the problem, i just take a look
to the EndpointReference source
of axis2-1.1.1 but i find that there is a Map to collect the OMElement
rappresenting ReferenceParameters but there are not
in the class the readObject and writeObject method to permit the
serialization of this map of OMElement.
One possible solution is to transform EndpointReference in the realtive
OMElement (by EndpointReferenceHelper), then serializing with
OMElement.serialize()
and then, after the deserialization, transforming the OMElement in
EndpointReference. A little bit complicated..any suggestions?
Thanks
Francesco Leone



Yes, try Axis2 1.2-RC1. The EndpointReference class now implements
read/writeObject which correctly serialises the EPR to/from XML.

David

--
David Illsley - IBM Web Services Development

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



RE: Axis2 not putting binary attachment on the wire

2007-03-28 Thread Masin, Valerie
thanks 

-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 28, 2007 3:12 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 not putting binary attachment on the wire

Please log a Jira with enough information (a test case would be great)
to reproduce this..

thanks,
Thilina

On 3/28/07, Masin, Valerie <[EMAIL PROTECTED]> wrote:
>
>
>
> No it is not working fine with mtom, there is no data attached. Where 
> you said "Hope you had your binary data here..." there was no data. 
> There was just the 0.
> I show the soapmonitor output to show that there had been data in the 
> soap message before it was optimized to mtom.
>
>  
>  From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
> Sent: Tue 3/27/2007 9:29 PM
>
> To: axis-user@ws.apache.org
> Subject: Re: Axis2 not putting binary attachment on the wire
>
>
>
>
> It seems it works fine when MTOM is enabled...
>
> > From tcpmon
> > HTTP/1.1 200 OK
> > Server: ""
> > Date: Tue, 27 Mar 2007 13:30:16 GMT
> > Content-type: multipart/related;
> >
> boundary=MIMEBoundaryurn_uuid_E612E8E634E97EAEE61175002216495;
> > type="application/xop+xml";
> >
> start="<0.urn:uuid:[EMAIL PROTECTED]>";
> > start-info="text/xml"; charset=UTF-8Transfer-encoding:
> >
> chunked02d7--MIMEBoundaryurn_uuid_E612E8E634E97EAEE61175002216495conte
> nt
> > -type: application/xop+xml; charset=UTF-8;
> > type="text/xml";content-transfer-encoding:
> binarycontent-id:
> >
> <0.urn:uuid:[EMAIL PROTECTED]>
> >   
> >   >
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
> > 
> > 
> > > xmlns:ns1="urn:webservices.docharbor.com">
> >   
> >
> 198
> >  
> >  >
> href="cid:1.urn:uuid:[EMAIL PROTECTED]"
> > xmlns:xop="http://www.w3.org/2004/08/xop/include"; />
> >  
> >   
> >
> > 
> >  
> > 00cc
> >
> > --MIMEBoundaryurn_uuid_E612E8E634E97EAEE61175002216495
> > content-type: application/octet-stream
> > content-transfer-encoding: binary
> > content-id:
> >
> <1.urn:uuid:[EMAIL PROTECTED]>0
> Hope you had your binary date here...
>
> ~Thilina
> PS: Please use TCPMON when sniffing messages with attachments..
> SOAPMonitor will not show you the attachments...
>
> >
> >
> > -Original Message-
> > From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 27, 2007 5:54 PM
> > To: axis-user@ws.apache.org
> > Subject: Re: Axis2 not putting binary attachment on the wire
> >
> > Opps... Sounds like a bug to me.. Please log a JIRA with more
details..
> > Some source code would be actually better...
> >
> > Then in order to get through this you can try enablingMTOM in your 
> > Axis2.xml..
> >
> > Thanks,
> > Thilina
> >
> > On 3/28/07, Masin, Valerie <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > My webservice returns a binary document which I declare in my wsdl

> > > as base64Binary. Using SOAPMonitor I see my document in the 
> > > returned soap
> >
> > > message. However, tcpmon shows that the document is empty. I have 
> > > tried this both with and without MTOM.
> > >
> > > Without MTOM here is the soap from SOAPMonitor...
> > >   > >
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
> > >   
> > >   
> > >  > xmlns:ns1="urn:webservices.docharbor.com">
> > >   
> > > 198
> > >
> > >
> >
> e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZGVmZjBcZGVmbGFuZzEwMzN7
> XG
> >
> ZvbnR0Ymx7XGYwXGZzd2lzc1xmY2hhcnNldDAgQXJpYWw7fX0NCntcKlxnZW5lcmF0b3Ig
> TX
> >
> NmdGVkaXQgNS40MS4xNS4xNTA3O31cdmlld2tpbmQ0XHVjMVxwYXJkXGYwXGZzMjAgSSdt
> IH
> >
> RoZSBkZWZhdWx0IGRvY3VtZW50IGZvciBpbXBvcnRhdGlvbi5ccGFyDQp9DQoA cu
> > ment>
> > >   
> > > 
> > >   
> > > 
> > >
> > >
> > > ... and here is the output of tcpmon
> > > HTTP/1.1 200 OK
> > > Server: ""
> > > Date: Tue, 27 Mar 2007 18:26:12 GMT
> > > Content-type: text/xml; charset=UTF-8
> > > Transfer-encoding: chunked
> > >
> > > 016f
> > > 
> > > > >
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
> > >   
> > >   
> > >   > xmlns:ns1="urn:webservices.docharbor.com">
> > > 
> > >198
> > >  
> > > notice the empty document
> > > 
> > >  
> > >   
> > >
> > > 0
> > >
> > > Does anyone know why this is happening? Thanks, Valerie
> >
> >
> > --
> > Thilina Gunarathne  -  http://www.wso2.com - 
> > 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]
> >
> >
>
>
> --
> Thilina Gunarathne  -  http://www.ws

Re: base href problems

2007-03-28 Thread Jon Horsman

To further clarify, i wouldn't have this problem if the  tag didn't get stuck into the page being served.  Is
there a way to tell axis2 not to add this in the  of the page?

Jon

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



Re: Running multiple instances of axis2 in same Tomcat

2007-03-28 Thread [EMAIL PROTECTED]

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


Davanum Srinivas wrote:
> 
> multiple webapps in same tomcat is possible.
> 
> thanks,
> dims
> 
> On 3/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>> I've a few posts that touched on this, but no answers.
>>
>> We have a web application that is deployed multiple times as separate
>> Tomcat
>> virtual hosts. We would like to structure our axis2 web services in a
>> similar way. For example,
>>  - webapp #1 is accessed as http://webapp1.myhost.com
>>  - webapp #2 is accessed as http://webapp2.myhost.com
>> We would like to be able to access the web services as:
>>  - http://webapp1.myhost.com:9191/axis2/MyApplicationService?...
>>  - http://webapp2.myhost.com:9292/axis2/MyApplicationService?...
>>
>> Can axis2 be loaded as multiple webapplications in Tomcat 5.5? Should
>> there
>> be any classloading issues?
>>
>> Or maybe there is an alternate way of doing this - maybe using a
>> different
>> namespace mechanism that axis2 provides that I have not
>> discovered/learned
>> yet?
>>
>> Thanks.
>> --
>> View this message in context:
>> http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9705315
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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


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



Re: base href problems

2007-03-28 Thread Jon Horsman

Please try to set the httpFrontendHostUrl parameter in the axis2.xml
(axis2/WEB-INF/conf/axis2.xml)


I saw this parameter before i posted the question but i'm not sure to
use it to solve my problem.  I can change it to put in something like
http:///blah or http:///blah but how can i set it
so that it simply doesn't change the url from what was entered.  For
example if i access http:///axis2/ in my browser i would
expect all links to start with http:///axis2/ but if i
access it with http:///axis2/ i'd expect all links to start
with http:///axis2/.  Can you give me a hint as to how this
is done with this httpFrontendHostUrl parameter?

Thanks,

Jon.

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



Re: Running multiple instances of axis2 in same Tomcat

2007-03-28 Thread [EMAIL PROTECTED]

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

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

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

Thank you.


Ajith Ranabahu wrote:
> 
> Hi,
> is it the same webapp that is reloaded and available through different
> virtual hosts ? I mean would they have different configurations but
> the same libraries ? AFAIS Axis2 should have no problem in this.
> 
> Ajith
> 
> On 3/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>> I've a few posts that touched on this, but no answers.
>>
>> We have a web application that is deployed multiple times as separate
>> Tomcat
>> virtual hosts. We would like to structure our axis2 web services in a
>> similar way. For example,
>>  - webapp #1 is accessed as http://webapp1.myhost.com
>>  - webapp #2 is accessed as http://webapp2.myhost.com
>> We would like to be able to access the web services as:
>>  - http://webapp1.myhost.com:9191/axis2/MyApplicationService?...
>>  - http://webapp2.myhost.com:9292/axis2/MyApplicationService?...
>>
>> Can axis2 be loaded as multiple webapplications in Tomcat 5.5? Should
>> there
>> be any classloading issues?
>>
>> Or maybe there is an alternate way of doing this - maybe using a
>> different
>> namespace mechanism that axis2 provides that I have not
>> discovered/learned
>> yet?
>>
>> Thanks.
>> --
>> View this message in context:
>> http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9705315
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Ajith Ranabahu
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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


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



Re: Define multiple services in services.xml

2007-03-28 Thread Davanum Srinivas

yes.

On 3/28/07, Milan Tomic <[EMAIL PROTECTED]> wrote:


Is it possible to define more than 1 service in services.xml file? I have 2 
services.






8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

-
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: Axis2 not putting binary attachment on the wire

2007-03-28 Thread Masin, Valerie
My understanding (from reading about this somewhere) is when MTOM
attachments are viewed with SOAPMonitor they show up embedded (and
encoded) directly in the soap message. Then when they are MTOMed (ie
optimized) just before sending, that data is rearranged into the
multipart mime where the binary data is an attachment.

This is exactly the behaviour I see when I use tcpmon and SOAPMonitor at
the same time... so I don't think there is any problem with SOAPMonitor.

-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 28, 2007 8:41 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 not putting binary attachment on the wire

> ~Thilina
> PS: Please use TCPMON when sniffing messages with attachments..
> SOAPMonitor will not show you the attachments...
>

It used to. I'll take a look at that asap.

Robert

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



Unable to configure tcpmon for remote web service

2007-03-28 Thread Kulkarni

Hello,

  I am developing a Web Service client for a web service on
xmethods.com. The client is able to connect and invoke the web service 
perfectly. I am using Axis2-1.1.1

  I get an error when I configure tcpmon to monitor the messages.
Configuration:

local post: 
target host: 62.177.194.231
target port: 80

The sent message as shown in tcpmon ->

POST /websamples.countryinfo/CountryInfoService.wso HTTP/1.1
SOAPAction: "urn:ListOfContinentsByName"
User-Agent: Axis2
Host: 62.177.194.231:
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8

106
http://schemas.xmlsoap.org/soap/envelope/";>http://www.oorsprong.org/websamples.countryinfo";
/>
0

The received message as shown by tcpmon ->

HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.0
Date: Wed, 28 Mar 2007 12:57:20 GMT
X-Powered-By: ASP.NET

HTTP/1.1 405 Method not allowed
Server: Microsoft-IIS/5.0
Date: Wed, 28 Mar 2007 12:57:20 GMT
Connection: close
Allow: OPTIONS, TRACE, GET, HEAD
Content-Length: 3923
Content-Type: text/html






a:link  {font:8pt/11pt verdana; color:FF}
a:visited   {font:8pt/11pt verdana; color:#4e4e4e}

  
... plus lot of html

The error message on my console ->

entered client
Mar 28, 2007 8:57:25 AM org.apache.commons.httpclient.HttpMethodBase
readResponse
INFO: Discarding unexpected response: HTTP/1.1 100 Continue
org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method not
allowed'; nested exception is: 
org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method not
allowed'; nested exception is: 
org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method not
allowed'; nested exception is: 
org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method not
allowed'
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
at
com.client.country.CountryInfoServiceStub.ListOfContinentsByName(CountryInfoServiceStub.java:773)
at
com.client.country.CountryClient.ListOfContinentsByName(CountryClient.java:28)
at com.client.country.CountryClient.main(CountryClient.java:16)
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '405' -
'Method not allowed'; nested exception is: 
org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method not
allowed'
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
... 6 more
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '405' -
'Method not allowed'
at
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:144)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335)
... 7 more
requestDocument: http://www.oorsprong.org/websamples.countryinfo"/>
responseDocument: null
Exception in thread "main" java.lang.NullPointerException
at
com.client.country.CountryClient.ListOfContinentsByName(CountryClient.java:35)
at com.client.country.CountryClient.main(CountryClient.java:16)
   
Please help.
Thanks
Ravi


-- 
View this message in context: 
http://www.nabble.com/Unable-to-configure-tcpmon-for-remote-web-service-tf3480198.html#a9713268
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: slow response from server when transporting larger files

2007-03-28 Thread frogg
I managed to find the real source of the problem. When I set enableMTOM on 
server to false (I upload files from client to server and send back just one 
string indicating the result of the upload) the response comes back 
immediately. But when enableMTOM is set to true, the response never returns. 
But there is the problem, I need to have another WS on the same server which 
will resend these received data to another client (client makes request...). So 
I need to have enableMTOM set to true, what can I do? On server I can not use 
serviceStub, can I?

__
> Od: [EMAIL PROTECTED]
> Komu: 
> Datum: 28.03.2007 09:45
> Předmět: slow response from server when transporting larger files
>
>Hi,
>I experinece this behaviour: 
>I am sending files from client to server (without Rampart, using MTOM). I
use something like this:
>
> Object responseObject = serviceStub.uploadWithResponse(param4);
> UploadWithResponseResponse response =
(UploadWithResponseResponse)responseObject;
> System.out.println(response.getReturn_value());
>
>At the same time I have System.out.println (or via log4j) on server at
the beginning and at the end of the called method. The problem is that
when I send small files the server receives attachment and processes it
and informs me about the end of the method. Then promptly the client
receives the response,... But when I send larger files (~30MB) the server
do all his part without any problem, but the client still waits for
response. 
>
>Does anybody know why? Should I change some settings? Thanks Frogg
>
>
>-
>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 not putting binary attachment on the wire

2007-03-28 Thread robert lazarski

~Thilina
PS: Please use TCPMON when sniffing messages with attachments..
SOAPMonitor will not show you the attachments...



It used to. I'll take a look at that asap.

Robert

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



Define multiple services in services.xml

2007-03-28 Thread Milan Tomic

Is it possible to define more than 1 service in services.xml file? I have 2 
services.




 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

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



Axis2 versions compatibility question

2007-03-28 Thread José Antonio Sánchez

Hello, is there any backwards compatibility compromise in Axis2
versions? I've seen that a service generated with Axis2 1.0 is no
longer compatible with an installation of Axis2 1.1 since
org.apache.axis2.engine.DependencyManager.configureBusinessLogicProvider(obj,
msgContext.getOperationContext());

has been removed from Axis and it's a code that was introduced in
every generated skeleton and also the stub code generates errors.
Since Axis2 is going to be released in a short time, what kind of
backwards compatibility can we expect from that release respecting
Axis2 1.0 and 1.1?

--
Saludos.
José Antonio Sánchez

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



Re: AW: AW: [AXIS2] - Engaging addressing module on client

2007-03-28 Thread Sagar Yerunkar
Hello, 

Your code helped. I did not have the below line of code. Adding it did the 
trick.

options.setAction("urn:tryEcho");

The Axis2 User's Guide does not mention anything about enabling the 
addressing module on the client side. Hence, i had no idea that this line 
had to be added.

Thank you for resolving my problem.

Regards,

Sagar M. Yerunkar





"Stadelmann Josef" <[EMAIL PROTECTED]> 
03/28/2007 10:41 AM
Please respond to
axis-user@ws.apache.org


To

cc

Subject
AW: AW: [AXIS2] - Engaging addressing module on client






Hello Sagar,
 
Here is my SOAPClient.java code main() only, which engages 3 modules,  
 
Also I run my client and server in scope=soapsession. Therefore 
 
MyService5.java has a service.xml which defines

 
It works for me, and hope you can say the same now.
 
Josef
 
 
 
public static void main(String[] args) throws AxisFault {
 
try {
 
Options options = new Options();
options.setManageSession(true);
options.setTo(new EndpointReference(toEpr));
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
 
String home = System.getProperty("user.home");
// create this folder at your home. This folder could be 
anything
//then create the "modules" folder
//copy the LoggingModule.mar to "modules" folder.
//copy the axis2.xml to the client-repository 
 
File repository = new File(home + File.separator + 
"client-repository");
if (!repository.exists()) {
throw new 
FileNotFoundException(repository.getAbsolutePath() + " does not Exist");
};
 
String str_axis2xml = repository.getAbsolutePath() + 
File.separator + "axis2.xml";
File axis2_xml = new File(str_axis2xml);
if (!axis2_xml.exists()) {
throw new 
FileNotFoundException(axis2_xml.getAbsolutePath() + " does not Exist");
};
 
FileSystemConfigurator fsc = new FileSystemConfigurator(
repository.getAbsolutePath(),
axis2_xml.getAbsolutePath());
 
AxisConfiguration er = fsc.getAxisConfig();
 
ConfigurationContext configContext =
 ConfigurationContextFactory.createConfigurationContextFromFileSystem(
repository.getAbsolutePath(),
axis2_xml.getAbsolutePath()
);
 
 
//ServiceClient sender = new ServiceClient();
ServiceClient sender = new ServiceClient(configContext,null);
 
//sender.engageModule(new QName(Constants.MODULE_LOGGING));
sender.engageModule(new QName("logging"));
 
+++>>> Sagar, do you have something like that in your code?
 
//sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
sender.engageModule(new QName("addressing-1.1"));
 
//sender.engageModule(new 
QName(Constants.MODULE_SOAPMONITOR));
sender.engageModule(new QName("soapmonitor-1.1"));
 
 
+++>>> Sagar, do you have something like that in your code?
 
// invoke the start method first using it's StartPaylod
options.setAction("urn:start");
sender.setOptions(options);
 
 
 
OMElement start = sender.sendReceive(getStartPayload());
// from now on use this sender so that WS-address stuff i.e. 
ServiceGroupeContextID info is sent
// where in the dark of the code is that?
 
 
String s = intObj.toString(i);
System.out.print("No"+s);
 
XMLStreamWriter startWriter = 
XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
start.serialize(startWriter);
startWriter.flush();// write every-thing out
System.out.println(""); // and add a CRLF
 
 
+++>>> Sagar, do you have something like that in your code?start was 
the initial method called, now lets use echo 
options.setAction("urn:echo");
sender.setOptions(options);
 
for(int i=0;i<500;i++){
 
OMElement result = sender.sendReceive(getPayload());
 
Thread.sleep(4000);
 
s = intObj.toString(i);
System.out.print("No"+s);
 
XMLStreamWriter writer = 
XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
result.serialize(writer);
writer.flush();   // write every-thing out
System.out.println("");   // and add a CRLF
 
if (i==100){
System.gc();// do an explicit Garbage Collection 
and get it all back
}
if (0 == i % 100){ 
System.gc();// do an explicit Garbage Collection 
once evry 100 loops-through
}
} // end-for - so do a cleanup now to give up sender resource
sender.cleanup();   //

Re: Getting started with axis 2

2007-03-28 Thread Charitha Kankanamge

Hi Kencana,

To run wsdl2java;

Navigate to axis2_home/bin directory and execute wsdl2java as follows,

wsdl2java -uri  -o generated classes>


eg:- wsdl2java.bat -uri C:/webservice/wsdl/test.wsdl -o C:/output

Please refer http://ws.apache.org/axis2/1_1_1/quickstartguide.html for 
more information.


regards
Charitha


Kencana wrote:



Hi all,

I am a new bie in axis 2. I tried to create a services from a wsdl file.
however whenever i run the following command:
java -cp %axis2_cp% org.apache.axis2.wsdl.WSDL2Java -uri helloAxis2.wsdl -ss
-sd -s -d none

it always gave me this error message, Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/axis2/
wsdl/WSDL2Java.

what i did for the installation is:
1. extract the axis2-1.1.1 to c:/

2. create new environment variable for AXIS2_HOME with the value
c:/axis2-1.1.1

3. set the PATH variable value to %AXIS2_HOME%/bin

4. include the classpath (in the environment setting window) C:\Program
Files\Apache Software Foundation\Tomcat 6.0\webapps\axis2\WEB-INF\lib

5. install the apache ant and set the environment variables, create the
axis2.war to the C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps

6. restart the tomcat and run the axis2server.bat

am i missing something for the initial axis2 setup?or maybe there is several
things need to be done before creating
the service?

I wonder if there is a step by step tutorial about the usage of axis 2.

Thank you

Regards,
Kencana
 





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



Re: [Axis2] Axis2 1.2 RC1 Released

2007-03-28 Thread Eric Chow

Hi Deepal,

Any example(annotation) for Axis2-1.2 ?

Best regards,
Eric


On 3/26/07, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

Hi all,

I uploaded Axis2 1.2 RC1 release artifacts. Please help us by downloading and 
reviewing them.

Download locations :
*binary distributions* -
http://people.apache.org/~deepal/axis2/1.2-RC1/axis2-1.2-RC1.zip 

*source distribution*
http://people.apache.org/~deepal/axis2/1.2-RC1/axis2-1.2-RC1-src.zip 

*docs distribution*
http://people.apache.org/~deepal/axis2/1.2-RC1/axis2-1.2-RC1-docs.zip 

*war distribution*
http://people.apache.org/~deepal/axis2/1.2-RC1/axis2.war 


*jars*
http://people.apache.org/~deepal/maven/org.apache.axis2/jars/ 


*mars* (addressing and soapmonitor)
http://people.apache.org/~deepal/maven/org.apache.axis2/mars/ 



According to the release plan, I'm expecting to release Axis2 1.2 on
6^th   April, 2007.


Features included in the release :
- WSDL 2.0 fully support
(Reading , writing and codegen)
- POJO – annotation
- JAX-WS integration
- JAX-WS -annotation
- Un-wrapping (Response)
- ADB - missing schema support
- Maven2 support
- JASON support
- Binary serialization
- Multiple services support in code gen
- HTTP code generation (both WSDL 1.1 and 2.0)
- Fix/update helper mode
- Custom deployers support
- Message formatters
- Message Builders

In addition to above major features we have fixed numerous JIRA issues.


Thanks,
 Deepal



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




[Axis2] War file from nightly build

2007-03-28 Thread Daniel . Kuschow
Is the generated axis2.war file not intend to work as standalone 
application in an application container ?
In current state it cannot be used, because many libraries are missing. If 
i am wrong, i would be grateful, if
someone could say me, which libraries are mandatory in axis2.war, without 
having to refer to an outstanding
axis2 folder.

thanks for answers,

Daniel Kuschow

[AXIS2] EndpointReference Serialization

2007-03-28 Thread Francesco Leone

Hi!
I have some trouble with EndpointReference serialization, in particular when
i use
an Endpoint Reference with ReferenceParameters, i have a notSerializable
exception
referred to org.apache.axiom.om.impl.llom .OMElementImpl . I guess that the
OMElement
used ad ReferenceParameters is the origin of the problem, i just take a look
to the EndpointReference source
of axis2-1.1.1 but i find that there is a Map to collect the OMElement
rappresenting ReferenceParameters but there are not
in the class the readObject and writeObject method to permit the
serialization of this map of OMElement.
One possible solution is to transform EndpointReference in the realtive
OMElement (by EndpointReferenceHelper), then serializing with
OMElement.serialize()
and then, after the deserialization, transforming the OMElement in
EndpointReference. A little bit complicated..any suggestions?
Thanks
Francesco Leone


java.net.BindException

2007-03-28 Thread seehamster
Hi,

during stress test of ADB service stubs, I got a java.net.BindException: 
"Address already in use: JVM_Bind". I have already read the article at 
http://wso2.org/library/165, but some things are still a bit unclear. 

I just want to call a service without asynchronous receiving. Every thread gets 
his own instance of stub (stored in commons pool) due to thread-safety.

- How do I disable Client side Http server? Just uncomment  in axis2.xml? I have already tried this, but without effect. 

- In order to use axis.xml for stubs, do I simply have to put this file into 
classpath?

- Do I have to call cleanup() of stubs before the stub is finalized? If 
multiple stubs for the same service are used, will this call affect the other 
stubs?

Thanks for answers!

Christoph
-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out

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



[AXIS2] EndpointReference Serialization

2007-03-28 Thread Francesco Leone

Hi!
I have some trouble with EndpointReference serialization, in particular when
i use
an Endpoint Reference with ReferenceParameters, i have a notSerializable
exception
referred to org.apache.axiom.om.impl.llom.OMElementImpl . I guess that the
OMElement
used ad ReferenceParameters is the origin of the problem, i just take a look
to the EndpointReference source
of axis2-1.1.1 but i find that there is a Map to collect the OMElement
rappresenting ReferenceParameters but there are not
in the class the readObject and writeObject method to permit the
serialization of this map of OMElement.
One possible solution is to transform EndpointReference in the realtive
OMElement (by EndpointReferenceHelper), then serializing with
OMElement.serialize()
and then, after the deserialization, transforming the OMElement in
EndpointReference. A little bit complicated..any suggestions?
Thanks
Francesco Leone