Re: Dump is axis

2008-04-30 Thread Samisa Abeysinghe

Raghavendra SM wrote:


In axutil_hash_free(), util/src/hash.c, I found the following,

 


The for loop is /for(i=0; i=ht-max; i++)/

Is it intended or was it supposed to be iht-max ??

 

My core dump points to free() which is present in both the for loop 
and outside.




This is the expected logic. It crashes here, because there was some 
corruption somewhere else.


Also,  are you using Axis2/C 1.0?  If so you have to look into using 
latest 1.3 release.


Samisa...

 


Regards,

~raghav

 



  


*From:* Raghavendra SM
*Sent:* Tuesday, April 29, 2008 2:53 PM
*To:* axis-c-user
*Subject:* RE: Dump is axis

 


Please find the axis log attached

 


Regards,

~raghav

 



  

  


*From:* Dinesh Premalal [mailto:[EMAIL PROTECTED]
*Sent:* Tuesday, April 29, 2008 2:42 PM
*To:* Apache AXIS C User List
*Subject:* Re: Dump is axis

 

 

On Tue, Apr 29, 2008 at 12:31 PM, Raghavendra SM [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Please find the back trace of the core dump I encountered while using
axis2c.0.
This is not seen constantly but rarely.

Can you please suggest what needs to be done to fix this.


Could you please attach your axis2.log file please ?

thanks,
Dinesh



--
http://nethu.org/



No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.6/1404 - Release Date: 4/29/2008 6:27 PM
  



--
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.


http://www.wso2.com/ - The Open Source SOA Company


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



Re: Failed in creating DLL / axis2_http_server (linux)

2008-04-30 Thread Samisa Abeysinghe
If you use the latest package, you should get the detailed error in the 
log on what exactly going wrong.


Samisa...

Supun Kamburugamuva wrote:

Hi,

Do you have all those other linked libraries(required by your service) 
in the path as well?


Supun...

On Wed, Apr 30, 2008 at 5:50 AM, Paulo Vicentini 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:


LD_LIBRARY_PATH is set (AXIS2C_HOME/lib) as well as  AXIS2C_HOME.

I got  Failed in creating DLL.

tks
Paulo




On Wed, Apr 30, 2008 at 1:06 AM, Kaushalye Kapuruge
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

Have you set your LD_LIBRARY_PATH to AXIS2C_HOME/lib?
Cheers,
Kaushalye


Paulo Vicentini wrote:

Hi,
I am facing problems in order to call my service, I got
Failed in creating DLL.

The service is deployed with success in the
axis2_http_server (linux) but when I call it i get  the
message above.
Since the service itself is linked against other shared
libraries (.so), is there anything else I should set up
(services.xml) ?

Should I dynamically load the  other libraries (*dlopen*)
or the dynamic linker will do that ?

thanks
Paulo



-- 
http://blog.kaushalye.org/

http://wso2.org/


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





No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date: 4/30/2008 6:10 PM
  



--
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.


http://www.wso2.com/ - The Open Source SOA Company


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



[Axis2] removed Annogen dependency

2008-04-30 Thread Deepal jayasinghe

Hi all,

As we discussed in the mailing list I removed the annogen dependency and 
just use JDK support for annotation processing. So  now the Axis2 code 
base will not work with JDK 1.4. Removing annogen from Axis2 was a major 
code change because Axis2 uses annogen all over the code base. Anyway I 
make sure all the test cases are working as well as I tested some 
samples created by myslef.  However there may be some issues, since this 
was a major change. While doing this I experienced few backward 
compatibility issues , and we do not have any workaround for that :(
- Order of the operations appear in the WSDL change due the short 
algorithms different.
- Sequence of elements appear in the Types sections and responses 
different. That also due to the sort algorithm differences.



Please check Java2WSDL and POJO as much as you can with the new changes 
and create JIRA if you find anything.


Thank you!
Deepal
 


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



WG: Axis2 webservice using MTOM/.NET client

2008-04-30 Thread Roeder, Andreas
 Hi everybody,
 
 I'm just started to use Axis2 for developing a webservice. So I'm just
 a bloody beginner ;-)
 
 I want to send and receive files via an Axis2 webservice to/from a
 .NET client written in C#. 
 Now I red serveral times that the Web Service Enhancements (WSE) 3.0
 of .NET and Axis2 both support MTOM. 
 Unfortunately I cannot find samples how get it implemented. Could
 someone provide me some code for doing that?
 
 Thank you in advance.
 
 Best Regards,
 
 Andreas


AW: using JAX-WS in Axis2

2008-04-30 Thread Tezcan.Dilshener.extern
Hi Johan
thanks for this info but I am using JAX-WS style with annotations and the two 
tools are not generating server/client code the way it is supposed to. For 
example no objectFactory class is created. 
Any ideas on this?
 
cheers
Tezcan
 

-Ursprüngliche Nachricht-
Von: Johan Östrand XX [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 29. April 2008 18:22
An: axis-user@ws.apache.org
Betreff: RE: using JAX-WS in Axis2


...or you can use java2wsdl and wsdl2java
 
brgds
Johan



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: den 29 april 2008 15:56
To: axis-user@ws.apache.org
Subject: using JAX-WS in Axis2



Hi 

is there a wsgen / wsimport type tools that I can use in Axis2. 

cheers 
Tezcan 



Re: Custom MEP sample impl?

2008-04-30 Thread Markus Tost

Deepal jayasinghe wrote:

Markus Tost wrote:

Hi,

I want to implement custom MEPs with Axis2. As I see so far, I have 
to extend the OperationClient and the OperationContext. Also a custom 
MessageReceiver may be needed.
If you are going to implement that in the server side then you do not 
need to extend OperationClient. And also OperationContext is generic , 
what you have to implement is new AxisOperation and  a MessageReceiver.
Actually, I want to implement both the server side and the client side. 
They will have matching MEPs, e.g. In-Out-In at server side and 
Out-In-Out at client side.

Good point about the description class(es). I shouldn't forget them.



Is there any sample code of a MEP implementation which goes beyond 
the request-response style of the built-in WSDL 2.0 MEPs (e.g. 
Out-In-In, Out-Out-In, In-In-Out)?



Not in the Axis2 code base
Are there any written tutorials / best practises / guidelines for 
implementing such custom MEPs?

Would you share your experience with me?
I will try to write a sample and a tutorial soon.  (I was waiting 
until a user ask for such a request :) )

Sounds great! I'm looking forward to read it. :)

Thank you!
Markus

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



axis2 rc1.4 error in wsdl2java generated stub

2008-04-30 Thread Tezcan.Dilshener.extern
Hi 

I am receiving the following error in my wsdl2java generated stub for my
simple service in Eclipse.

The type EchoStub.EchoResponse must implement the inherited abstract
method ADBBean.serialize(QName, OMFactory, MTOMAwareXMLStreamWriter,
boolean)

When I replace the axis2 v1.4 jars with axis2 v1.3 the error does not
occur.

Is there a newer version of the axis2 code gerator tools that are for
v1.4?

This also occurs when I use the command line version of wsdl2java.bat
found under \bin directory.

Cheers
Tezcan 




AW: RAMPRAT examples question/help

2008-04-30 Thread Tezcan.Dilshener.extern

Hi Dimuthu
thanks for the example.
I am having a problem with enagging the modules and receiving 
org.apache.axis2.AxisFault: Unable to engage module : addressing

what, exactly, do I need to have in my repo directory, apart from rampart.mar 
and addressing.mar ?

cheers
Tezcan
-Ursprüngliche Nachricht-
Von: Dimuthu Leelarathne [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 30. April 2008 04:46
An: axis-user@ws.apache.org
Betreff: Re: RAMPRAT examples question/help


Hi,

On Tue, 2008-04-29 at 14:39 +0200, [EMAIL PROTECTED]
wrote:
 Hi
 
 I am going thru the ramprat v1.3 examples and seems to me that all the 
 examples are also using use Axis2 as a client to invoke the service.
 
 Hence requiring all the ramprat/axis2 jars, axis2.xml,  etc.
 1-) Is this a MUST criteria? 
It is not a must. Rampart successfully passes interop tests with many. 

 2-) Can some one point me to ramprat examples that use the WSDL2Java
 gereated stubs? 
Here is a sample code. In this code EchoStub is a WSDL2Java generated
stub and the repo folder is the client repo which has the required
rampart.mar and addressing.mar [1]


Thank you,
Dimuthu
http://wso2.org


public static void main(String[] args) throws Exception{

ConfigurationContext ctx = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo, 
null);


EchoStub stub = new
EchoStub(ctx,http://localhost:9763/services/echo;);

EchoString str = new EchoString();
str.setIn(hi dimuthu);

ServiceClient client = stub._getServiceClient();
Options options = client.getOptions();
options.setProperty(RampartMessageData.KEY_RAMPART_POLICY,
loadPolicy(policy.xml));
client.setOptions(options);

client.engageModule(rampart);


EchoStringResponse res = stub.echoString(str);
System.out.println(res.get_return());

}

 cheers 
 Tezcan
 
 
 


-
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: RAMPRAT examples question/help

2008-04-30 Thread Nandana Mihindukulasooriya
Hi Tezcan,

 2-) Can some one point me to ramprat examples that use the WSDL2Java
 gereated stubs?

This tutorial [1] may help you.

thanks,
/nandana

[1] - http://wso2.org/library/3190


can I use use rampart with JAX-WS style webservice

2008-04-30 Thread Tezcan.Dilshener.extern
Hi

I have a web service developed using jax-ws style annotations.
So it does not require a services.xml, It is deployed to axis2 as jar
file under WEB-INF\servicejars directory.

Now if I want to secure this service using rampart how do I link the
policy.xml?

Where do I add the stuff such as module ref=rampart that one usually
adds into services.xml ? 


cheers
Tezcan


Bad types exception whith DataHandler attatchment invocation

2008-04-30 Thread dancantong

Hi!
I'm trying to invoke a Web Service published through AXIS from a Spring
based web application.
The operation being invoked has some DataHandler arguments.
Here is how I construct the DataHandler client code:

Code:

OctetStreamDataSource(objectData, new OctetStream(readBytes(themeFile)));
DataHandler objectData = new DataHandler(dataSource);

The invocation returns with the following exception:

Code:

org.xml.sax.SAXException: Bad types (class [B - class
javax.activation.DataHandler)
 at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
 at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
 at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
 at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
 at javax.xml.parsers.SAXParser.parse(Unknown Source)
 at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
 at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
 at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
 at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
 at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
 at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
 at org.apache.axis.client.Call.invoke(Call.java:2767)
 at org.apache.axis.client.Call.invoke(Call.java:2443)
 at org.apache.axis.client.Call.invoke(Call.java:2366)
 at org.apache.axis.client.Call.invoke(Call.java:1812)
 at
org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.performJaxRpcCall(JaxRpcPortClientInterceptor.java:657)
 at
org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.doInvoke(JaxRpcPortClientInterceptor.java:591)
 at
org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:562)
 at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
 at $Proxy11.addMediaObject(Unknown Source)
 at ...


The generated SOAP invocation is as follows:

Code:

POST /oma-dl-server/services/ThemeProvisioningService HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.4
Host: 127.0.0.1:8085
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: 
Content-Length: 1130

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
soapenv:Body
addMediaObject xmlns=http://theme-provisioning;
objectIDtestObjectID/objectIDobjectVersion1/objectVersion
objectSize/objectSizeobjectInstallSize/objectInstallSize
progressiveDownloadDatafalse/progressiveDownloadDatamimeTypeasdf/mimeType
fileNametestFile/fileNameobjectData
xsi:nil=true/metaNameasdf/metaName
metaDescriptionasdf/metaDescriptionmetaTextDisplayasdf/metaTextDisplay
metaTextIDasdf/metaTextIDmetaInfoURLsdfg/metaInfoURLmetaInstallParamasdf/metaInstallParam
metaLicenseMimeTypeasdf/metaLicenseMimeTypemetaLicenseTypeasdf/metaLicenseType
metaLicenseOrderasdf/metaLicenseOrdermetaLicenseData xsi:nil=true/
metaEnvironmentTypeasdf/metaEnvironmentTypemetaEnvironmentData
xsi:nil=true/
metaSupressUserConfirmationad/metaSupressUserConfirmation/addMediaObject
/soapenv:Body
/soapenv:Envelope

The WSDL operations is:

Code:

element name=addMediaObject
complexType
 sequence
  element name=objectID type=xsd:string/
  element name=objectVersion type=xsd:string/
  element name=objectSize type=xsd:int/
  element name=objectInstallSize type=xsd:int/
  element name=progressiveDownloadData type=xsd:boolean/
  element name=mimeType type=xsd:string/
  element name=fileName type=xsd:string/
  element name=objectData type=xsd:base64Binary/
  element name=metaName type=xsd:string/
  element name=metaDescription type=xsd:string/
  element name=metaTextDisplay type=xsd:string/
  element name=metaTextID type=xsd:string/
  element name=metaInfoURL type=xsd:string/
  element name=metaInstallParam type=xsd:string/
   

{AXIS2] Rampart 1.3.mar throws error with Axis2 1.3

2008-04-30 Thread Victor Solakhian
When I start Tomcat with Axis2 1.3 (includes Rampant 1.3) I get the following 
error:

 

[ERROR] The rampart-1.3.mar module, which is not valid, caused 
org/apache/axis2/wsdl/codegen/extension/ModulePolicyExten

sion

java.lang.NoClassDefFoundError: 
org/apache/axis2/wsdl/codegen/extension/ModulePolicyExtension

 

I found many references on the web and in this mailing list about this error 
and one of them is

 

HYPERLINK 
https://issues.apache.org/jira/browse/RAMPART-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522580https://issues.apache.org/jira/browse/RAMPART-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522580

 

assuring that this bug is RESOLVED.

 

I downloaded Axis2 1.3 a week ago and this bug is still there. Question: where 
can I get the fixed version?

 

Thanks,

 

Victor

 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.6/1407 - Release Date: 4/30/2008 
11:35 AM
 


ConfigurationContext

2008-04-30 Thread Kurt Kavanaugh
Background:

 

Java: 1.5

Tomcat 5.25

Mod_JK Connector

Apache web server

Axis 2

 

IDE: Intellij 7.x

 

We have non-standard web layout, I am using the init-params and params
in the axis.xml to explicitly set up the contexts and other entry
points.

 

I have some experience with Axis back in 2001/2 at Swingtide when we
were building a SOAP inference engine, handlers building SOAP
endpoints,etc.

 

I have the axis kernel sources setup in my IDE so I can step through and
learn more

 

Goal(s):

 

We are using, or more correctly put, going to be using, axis2 in a
legacy web environment. (I.e. We are using Axis2 in an embedded mode).
I/we are going to be using Document Style SOAP to integrate with other
distributed applications.

 

I like the ability to programmatically introduce new services but I do
not see an easy way, or a pattern for accessing the
ConfigurationContext. In stepping through the code it is obvious that it
is fairly expensive operation to create one. Even if were not expensive
I would like, in a singleton way to access the Configuration Context, as
created by the AxisServlet and install new Java services as they come to
fruition.

 

public static void install()

{

try

{

 

ConfigurationContext context =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(
OurPath\\conf, null );

HashMap services =
context.getAxisConfiguration().getServices();

if ( ! services.containsKey(
BuildingController.class.getName() ))

{

AxisService service = AxisService.createService(
BuildingController.class.getName(), context.getAxisConfiguration() );

context.getAxisConfiguration().addService( service );

}

 

}

catch ( Exception e )

{

Trace.error(Problem adding service:  + e.getMessage(), e
);

}

 

Problem:

 

I am encountering the below exception which I am getting ready to debug.
But I was hoping to access same configuration context, unless this is
not an accepted usage, or is is not thread-safe, or...

 

ERROR 2008-04-30 14:15:18,344 [Thread-1] - Problem adding service: The
system is attempting to engage a module that is not available:
addressing

org.apache.axis2.AxisFault: The system is attempting to engage a module
that is not available: addressing

at
org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration
.java:440)

at
org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(AxisConfig
uration.java:567)

at
org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEng
ine.java:589)

at
org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(F
ileSystemConfigurator.java:141)

at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:77)

at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
ContextFromFileSystem(ConfigurationContextFactory.java:180)

 

Thanks for reading and considering

 

Kurt

 

 



Re: ConfigurationContext

2008-04-30 Thread Davanum Srinivas

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

rename address.mar as addressing.jar and drop it into WEB-INF/lib.

Kurt Kavanaugh wrote:
| Background:
|
|
|
| Java: 1.5
|
| Tomcat 5.25
|
| Mod_JK Connector
|
| Apache web server
|
| Axis 2
|
|
|
| IDE: Intellij 7.x
|
|
|
| We have non-standard web layout, I am using the init-params and params
| in the axis.xml to explicitly set up the contexts and other entry
| points.
|
|
|
| I have some experience with Axis back in 2001/2 at Swingtide when we
| were building a SOAP inference engine, handlers building SOAP
| endpoints,etc.
|
|
|
| I have the axis kernel sources setup in my IDE so I can step through and
| learn more
|
|
|
| Goal(s):
|
|
|
| We are using, or more correctly put, going to be using, axis2 in a
| legacy web environment. (I.e. We are using Axis2 in an embedded mode).
| I/we are going to be using Document Style SOAP to integrate with other
| distributed applications.
|
|
|
| I like the ability to programmatically introduce new services but I do
| not see an easy way, or a pattern for accessing the
| ConfigurationContext. In stepping through the code it is obvious that it
| is fairly expensive operation to create one. Even if were not expensive
| I would like, in a singleton way to access the Configuration Context, as
| created by the AxisServlet and install new Java services as they come to
| fruition.
|
|
|
| public static void install()
|
| {
|
| try
|
| {
|
|
|
| ConfigurationContext context =
| ConfigurationContextFactory.createConfigurationContextFromFileSystem(
| OurPath\\conf, null );
|
| HashMap services =
| context.getAxisConfiguration().getServices();
|
| if ( ! services.containsKey(
| BuildingController.class.getName() ))
|
| {
|
| AxisService service = AxisService.createService(
| BuildingController.class.getName(), context.getAxisConfiguration() );
|
| context.getAxisConfiguration().addService( service );
|
| }
|
|
|
| }
|
| catch ( Exception e )
|
| {
|
| Trace.error(Problem adding service:  + e.getMessage(), e
| );
|
| }
|
|
|
| Problem:
|
|
|
| I am encountering the below exception which I am getting ready to debug.
| But I was hoping to access same configuration context, unless this is
| not an accepted usage, or is is not thread-safe, or...
|
|
|
| ERROR 2008-04-30 14:15:18,344 [Thread-1] - Problem adding service: The
| system is attempting to engage a module that is not available:
| addressing
|
| org.apache.axis2.AxisFault: The system is attempting to engage a module
| that is not available: addressing
|
| at
| org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration
| .java:440)
|
| at
| org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(AxisConfig
| uration.java:567)
|
| at
| org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEng
| ine.java:589)
|
| at
| org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(F
| ileSystemConfigurator.java:141)
|
| at
| org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
| Context(ConfigurationContextFactory.java:77)
|
| at
| org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
| ContextFromFileSystem(ConfigurationContextFactory.java:180)
|
|
|
| Thanks for reading and considering
|
|
|
| Kurt
|
|
|
|
|
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFIGLmzgNg6eWEDv1kRAqx6AJ9W9fnH2M9SK0WU8b57DQhCKLWKAACg5jyr
wc0oDWo/KYp6EJOG6NtdUL4=
=L6yN
-END PGP SIGNATURE-

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



AXIS2: ADB: Namespace Optimization or removal??

2008-04-30 Thread Youtsey, Sean J CTR NAVSEA KPWA
I am using AXIS2 (1.3) with ADB as the data binding and am trying to
reduce the size of the XML message being sent across the wire (already
using gzip compression option).

The first question I have is related to namespace optimization...I think
I have seen mention of it, but am unable to find anything related.  It
seems namespaces are printed out many times where they could be defined
once (at a higher element) and referenced.  Is there a flag or parameter
to set to enable this?

The second question is I would like to have the option to remove
namespaces altogether, without having to create a different WSDL and
associated schemas.  If I trimmed out namespaces from the resulting XML
document, would drastically decrease the size.  Is there a flag or
parameter to allow for this?

Thanks in advance for your help!

- Sean


RE: AXIS2: ADB: Namespace Optimization or removal??

2008-04-30 Thread Raghu Upadhyayula
If you are using Java then use the -sp option in WSDL2Java when you are
generating your stubs.

 

 

Thanks

Raghu

 



From: Youtsey, Sean J CTR NAVSEA KPWA [mailto:[EMAIL PROTECTED]

Sent: Wednesday, April 30, 2008 12:44 PM
To: axis-user@ws.apache.org
Subject: AXIS2: ADB: Namespace Optimization or removal??

 

I am using AXIS2 (1.3) with ADB as the data binding and am trying to
reduce the size of the XML message being sent across the wire (already
using gzip compression option).

The first question I have is related to namespace optimization...I think
I have seen mention of it, but am unable to find anything related.  It
seems namespaces are printed out many times where they could be defined
once (at a higher element) and referenced.  Is there a flag or parameter
to set to enable this?

The second question is I would like to have the option to remove
namespaces altogether, without having to create a different WSDL and
associated schemas.  If I trimmed out namespaces from the resulting XML
document, would drastically decrease the size.  Is there a flag or
parameter to allow for this?

Thanks in advance for your help! 

- Sean 



Bug in CommonsHTTPSender: cookies fail to send when using a virtual host.

2008-04-30 Thread Ebert, Chris
I'm using commons-httpclient 3.1 and found I couldn't send cookies. I have to 
set a virtual host: unavoidable for me, but the root of the problem.


A patch in CommonsHTTPClient solved the problem:
if (msgContext.getMaintainSession()) {
HttpState state = httpClient.getState();

method.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY);
+final String host = 
hostConfiguration.getParams().getVirtualHost() == null ? 
hostConfiguration.getHost() : hostConfiguration.getParams().getVirtualHost();
String path = targetURL.getPath();
boolean secure = hostConfiguration.getProtocol().isSecure();
fillHeaders(msgContext, state, HTTPConstants.HEADER_COOKIE, 
host, path, secure);
fillHeaders(msgContext, state, HTTPConstants.HEADER_COOKIE2, 
host, path, secure);
httpClient.setState(state);
}

The line used to assume hostConfiguration.getHost() was always the right host 
to set. Httpclient checks against the name of the virtual host if one is set.


Chris

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



RE: ConfigurationContext

2008-04-30 Thread Kurt Kavanaugh

Thanks, however...

This gets me *another* context. What is the expected pattern of usage?
Create n Contexts and use? Or do as the Axis System/AxisServLet does and
cache the Context for future use. It seems a better usage in my world to
access the WarBasedAxisConfigurator created Context.

Is there a reason not too? Are there risks involved in having multiple
contexts floating around? Do they all get consistently built based upon
the web.xml init params and axis.xml file?

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 30, 2008 2:26 PM
To: axis-user@ws.apache.org
Subject: Re: ConfigurationContext

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

rename address.mar as addressing.jar and drop it into WEB-INF/lib.

Kurt Kavanaugh wrote:
| Background:
|
|
|
| Java: 1.5
|
| Tomcat 5.25
|
| Mod_JK Connector
|
| Apache web server
|
| Axis 2
|
|
|
| IDE: Intellij 7.x
|
|
|
| We have non-standard web layout, I am using the init-params and params
| in the axis.xml to explicitly set up the contexts and other entry
| points.
|
|
|
| I have some experience with Axis back in 2001/2 at Swingtide when we
| were building a SOAP inference engine, handlers building SOAP
| endpoints,etc.
|
|
|
| I have the axis kernel sources setup in my IDE so I can step through
and
| learn more
|
|
|
| Goal(s):
|
|
|
| We are using, or more correctly put, going to be using, axis2 in a
| legacy web environment. (I.e. We are using Axis2 in an embedded mode).
| I/we are going to be using Document Style SOAP to integrate with other
| distributed applications.
|
|
|
| I like the ability to programmatically introduce new services but I do
| not see an easy way, or a pattern for accessing the
| ConfigurationContext. In stepping through the code it is obvious that
it
| is fairly expensive operation to create one. Even if were not
expensive
| I would like, in a singleton way to access the Configuration Context,
as
| created by the AxisServlet and install new Java services as they come
to
| fruition.
|
|
|
| public static void install()
|
| {
|
| try
|
| {
|
|
|
| ConfigurationContext context =
| ConfigurationContextFactory.createConfigurationContextFromFileSystem(
| OurPath\\conf, null );
|
| HashMap services =
| context.getAxisConfiguration().getServices();
|
| if ( ! services.containsKey(
| BuildingController.class.getName() ))
|
| {
|
| AxisService service = AxisService.createService(
| BuildingController.class.getName(), context.getAxisConfiguration() );
|
| context.getAxisConfiguration().addService( service );
|
| }
|
|
|
| }
|
| catch ( Exception e )
|
| {
|
| Trace.error(Problem adding service:  + e.getMessage(), e
| );
|
| }
|
|
|
| Problem:
|
|
|
| I am encountering the below exception which I am getting ready to
debug.
| But I was hoping to access same configuration context, unless this is
| not an accepted usage, or is is not thread-safe, or...
|
|
|
| ERROR 2008-04-30 14:15:18,344 [Thread-1] - Problem adding service: The
| system is attempting to engage a module that is not available:
| addressing
|
| org.apache.axis2.AxisFault: The system is attempting to engage a
module
| that is not available: addressing
|
| at
|
org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration
| .java:440)
|
| at
|
org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(AxisConfig
| uration.java:567)
|
| at
|
org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEng
| ine.java:589)
|
| at
|
org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(F
| ileSystemConfigurator.java:141)
|
| at
|
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
| Context(ConfigurationContextFactory.java:77)
|
| at
|
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
| ContextFromFileSystem(ConfigurationContextFactory.java:180)
|
|
|
| Thanks for reading and considering
|
|
|
| Kurt
|
|
|
|
|
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFIGLmzgNg6eWEDv1kRAqx6AJ9W9fnH2M9SK0WU8b57DQhCKLWKAACg5jyr
wc0oDWo/KYp6EJOG6NtdUL4=
=L6yN
-END PGP SIGNATURE-

-
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 webservice using MTOM/.NET client

2008-04-30 Thread Thilina Gunarathne
Hi,
Axis2 release contains a MTOM sample web service and a client which sends
files to the service. Download the binary distribution and you can find it
in the samples folder.. You can try creating a client for that using the
given wsdl..

Let us know if you need anything more..

thanks,
Thilina

PS: If you need to do it in quick  dirty way, check
http://thilinag.blogspot.com/2008/04/download-file-from-axis2-web-service.html


On Wed, Apr 30, 2008 at 4:26 AM, Roeder, Andreas 
[EMAIL PROTECTED] wrote:

  Hi everybody,

 I'm just started to use Axis2 for developing a webservice. So I'm just a
 bloody beginner ;-)

 I want to send and receive files via an Axis2 webservice to/from a .NET
 client written in C#.
 Now I red serveral times that the Web Service Enhancements (WSE) 3.0 of
 .NET and Axis2 both support MTOM.
 Unfortunately I cannot find samples how get it implemented. Could someone
 provide me some code for doing that?

 Thank you in advance.

 Best Regards,

 Andreas




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


Re: Axis2 accepting self signed certificate from the server

2008-04-30 Thread SGruverman
Nipa,Could you be more specific about what you're using the certificate for - WS-Security signing or encryption? or SSL to a stand-alone Axis2 server? or ...?I've been trying to get all three of those to work lately, so I may be able to help if I know some more.- Steve-"nipa dadbhawala" [EMAIL PROTECTED] wrote: -To:"axis-user@ws.apache.org"axis-user@ws.apache.orgFrom:"nipadadbhawala"[EMAIL PROTECTED] Date:04/30/200807:56PM Subject:Axis2acceptingselfsignedcertificatefromtheserver  HiAll,  Is there any way I can make Axis2 accept server's self signedcertificate?Itriedsettingsystempropertyas  System.setProperty("axis.socketSecureFactory","org.apache.axis.components.net.SunFakeTrustSocketFactory");  and it did not work. I also found an old thread on this topic whichsaysSunFakeTrustSocketFactoryisyettobewrittenforAxis2.  http://mail-archives.apache.org/mod_mbox/ws-axis-user/200706.mbox/%3C[EMAIL PROTECTED]  I am wondering if this is already written or is there any workaroundforthis?  Anyhelpwillbeappreciated.  Thanks, Nipa  MailScanner,andis
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



OutOfMemory error

2008-04-30 Thread Chinmoy Chakraborty
Hi All,

I have my own custom message receiver. In their I am creating the response
message and building the body node using StAXOMBuilder from response string
and setting the SOAP into the out message context.

It works fine for small xml but when the size becomes big it gives
OutOfMemory error. Following is the code I am using to build OMElement.

//create the parser for response string
XMLStreamReader parser =
XMLInputFactory.newInstance().createXMLStreamReader(new
ByteArrayInputStream  (xmlString.getBytes()));
//create the builder
StAXOMBuilder builder = new StAXOMBuilder(parser);
//get the root element (in this case the body)
OMElement bodyNode = builder.getDocumentElement();


Any solutions??


Chinmoy