Need help with MIME attachments

2009-06-22 Thread Vadim Letitchevski
Hi all.
I am new to the SOAP. I was able to build some working source code (client as 
well as service) from WSDL using WSDL2C.
Unfortunately our customer demands using MIME attachments (not MTOM). The 
source code generated from WSDL containing reference to MIME attachments does 
not even mention anything related to MIME.
Can anyone direct me to the good sample code, may be manual or other kind of 
information on how to implement MIME attachments manually in axis2c?
Also may be since MTOM is build on top of MIME concept, could MTOM be used in 
the manner backward compatible to SOAP 1.1 standard in axis2c?
And finally is there a chance that such MIME v.s. MTOM implementation used to 
exist in old releases of axis2c and API still internally supports it, but 
manual does not shed a light?

Thanks
Vadim.




Re: Help -- Need to figure out what has changed in source code

2009-06-22 Thread Uthaiyashankar
Hi Vivian,

I think, this[1] is the fix, but could not confirm. You can try it and see.
By the way, it is better to move to Axis2/C 1.6.0 because it has lots of bug
fixes.

Regards,
Shankar

[1]
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/hash.c?r1=762752r2=762751pathrev=762752

On Fri, Jun 19, 2009 at 1:26 PM, Vivian Wang vivianwan...@yahoo.com wrote:

 Hi Shankar,

 The access violation happens in the following line when it tries to free
 om_builder (See code snappet in my previous message).

 AXIS2_FREE(env-allocator, (ht-array));
 Looking from the debugger, env-allocator points to an invalid address
 (0xfeeefeee), suggesting it has been released already.

 Here is the stack trace in debugger:
 ==
 axutil.dll!axutil_hash_free(axutil_hash_t * ht=0x089df150, const axutil_env
 * env=0x089deaf0)  Line 623 + 0x12
  axiom.dll!axiom_element_free(axiom_element * om_element=0x089def50, const
 axutil_env * env=0x089deaf0)  Line 723
  axiom.dll!axiom_node_free_detached_subtree(axiom_node *
 om_node=0x089deee8, const axutil_env * env=0x089deaf0)  Line 165
   axiom.dll!axiom_node_free_tree(axiom_node * om_node=0x089deee8, const
 axutil_env * env=0x089deaf0)  Line 224 + 0xd
 axiom.dll!axiom_document_free(axiom_document * document=0x089ded48, const
 axutil_env * env=0x089deaf0)  Line 89
   axiom.dll!axiom_stax_builder_free(axiom_stax_builder *
 om_builder=0x089debf8, const axutil_env * env=0x089deaf0)  Line 898
 ==
 Again, I am working on axis2/c 1.5+ code, I verified that the code works in
 1.6 or even 1.3.

 Thanks for your help!
 Vivian

  --
 *From:* Uthaiyashankar shan...@wso2.com
 *To:* Apache AXIS C User List axis-c-user@ws.apache.org
 *Sent:* Thursday, June 18, 2009 7:38:33 PM
 *Subject:* Re: Help -- Need to figure out what has changed in source code

 Hi Vivian,

 Can you run your client with valgrind and send the logs when it crashes? We
 need the stack trace when it is crashing.

 Regards,
 Shankar

 On Fri, Jun 19, 2009 at 5:59 AM, Vivian Wang vivianwan...@yahoo.comwrote:


 Hi All,

 I am using axis2/c 1.5+ (checked out from trunk roughly one and half month
 before 1.6 release) for ws client. I have built my application first using
 1.3. I notice that one piece of my code for freeing resources goes working
 fine in 1.3, crashes in 1.5+ and now working again in 1.6. I need to figure
 out what caused the crash in 1.5+ and what change make it work again in 1.6,
 as I am not ready yet to upgrade fully to 1.6. Please help me if you can.
 Thanks in advance!

 Here is the code:

 //freeing resources
 //axiom_output_t* om_output
  if (om_output)
  {
 axiom_output_free(om_output, env);
 om_output = NULL;
  }
 // axis2_svc_client_t* wsf_service_client
  if (wsf_service_client)
  {
   axis2_svc_client_free(wsf_service_client, env);
   wsf_service_client = NULL;
  }
 //axiom_stax_builder_t* om_builder
  if(om_builder)
  {
axiom_stax_builder_free(om_builder, env);
om_builder = NULL;
  }

 //axutil_env_t* env
  if (env)
  {
   axutil_env_free((axutil_env_t *) env);
   env = NULL;
  }

 I am using axiom_output_t* to serialize ws reply node  (together with
 xml_write), and using axiom_stax_builder_t*  to create the request payload.

 Thanks again!
 Vivian






 --
 S.Uthaiyashankar
 Software Architect
 WSO2 Inc.
 http://wso2.com/ - The Open Source SOA Company






-- 
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - The Open Source SOA Company


Re: Need help with MIME attachments

2009-06-22 Thread Manjula Peiris
Hi Vadim,

From the start of the Axis2/C it supported MTOM. The Axis2/C MTOM
implementation is well tested. It can also handle SWA[1] but it is not
properly tested. So the best thing is to use MTOM.

Thanks,
-Manjula.

[1] http://www.w3.org/TR/SOAP-attachments

Thanks,
-Manjula.


On Mon, 2009-06-22 at 12:22 -0700, Vadim Letitchevski wrote:
  
 Hi all.
 I am new to the SOAP. I was able to build some working source code
 (client as well as service) from WSDL using WSDL2C. 
 Unfortunately our customer demands using MIME attachments (not MTOM).
 The source code generated from WSDL containing reference to MIME
 attachments does not even mention anything related to MIME.
 Can anyone direct me to the good sample code, may be manual or other
 kind of information on how to implement MIME attachments manually in
 axis2c?
 Also may be since MTOM is build on top of MIME concept, could MTOM be
 used in the manner backward compatible to SOAP 1.1 standard in axis2c?
 And finally is there a chance that such MIME v.s. MTOM implementation
 used to exist in old releases of axis2c and API still internally
 supports it, but manual does not shed a light?
 
 Thanks
 Vadim.
 
 
  



Re: axis2 on webshpere response != axis2 on glassfish response........ why?

2009-06-22 Thread xedus

did you just completely hijacked my thread ?   :)
now make it up for me and  help me solve my issue
-- 
View this message in context: 
http://www.nabble.com/axis2-on-webshpere-response-%21%3D-axis2-on-glassfish-response-why--tp24132443p24142133.html
Sent from the Axis - User mailing list archive at Nabble.com.



axis2-1.4.1 client side handlers

2009-06-22 Thread maalej

Hello

Is there somebody how can help me to implement client side handlers, 
knowing that I work with version axis2-1.4.1?


Thank you for your comprehension


Session Managment using .net client..

2009-06-22 Thread amardeep singh khera
Hi All,



I am facing an issue with managing session between  an axis2 java service
and C#.net console client. I am able to manage session between the same
axis2 java service and java client(axis client) by using following code in
my java  client:



Service Client client = stub._getServiceClient();

  Options opt = client.getOptions();

  opt.setTimeOutInMilliSeconds(60);

  opt.setManageSession(true);

  client.setOptions(opt);



And in my service implementation class I store user details into axis
session using following code



MessageContext msgContext = MessageContext.*getCurrentMessageContext*();

ServiceContext serviceContext = msgContext.getServiceContext();

serviceContext.setProperty(ROLE_ID, roleId.toString());

serviceContext.setProperty(AUTHENTICATION_STATUS,

authenticationStatus);

serviceContext.setProperty(USER_ID, userId);

msgContext.setServiceContext(serviceContext);



This is all working fine for me as long as I am using java client.


Now my other requirement is to develop a C# .net console client for the same
service. So I have generated the proxy class using Microsoft visual studio
from wsdl and written C#.net console client which is working fine. But now I
want to implement session management in a similar way as I am able to do so
in java client. Can anyone please suggest me a way to do so.

Thanks
Amardeep Singh


axis2 service endpoint address

2009-06-22 Thread gerhard presser

hi all!
i'm using axis2 1.5 inside an enterprise application.
now i want to display a custom table of all deployed services.

i'm using the
ListenerManager.defaultConfigurationContext.getAxisConfiguration() to list
all services. 
now i also want to display the url the service is available at.
i tried several methods, but none worked for me. some methods didn't return
anything at all (AxisService.getEndpointURL()), other methods returned a
url, but they are not 
using the right http-port. the host's ip is correct, but it seems a default
port (8080) is being used.

if i call http://host:port/context/services/Service?wsdl the right port is
being used.

please help
-- 
View this message in context: 
http://www.nabble.com/axis2-service-endpoint-address-tp24145965p24145965.html
Sent from the Axis - User mailing list archive at Nabble.com.



anyType and til values/empty strings - exception thrown

2009-06-22 Thread Boris Klug
Hi!

I created a wsdl which contains a attribute/value pair where the
value is definied as xsd:anyType:

xs:complexType name=ZAttributeValue
  xs:sequence
xs:element name=nametype=xs:string /
xs:element name=displayName nillable=true type=xs:string /
xs:element name=value   nillable=true type=xs:anyType /
xs:element name=className   nillable=true type=xs:string /
  /xs:sequence
 /xs:complexType

Now I used wsdl2java to create client and server code using adb data binding.

When value is  (=empty string), the client throws this exception:

Exception in thread main org.apache.axis2.AxisFault: Current state 
END_ELEMENT is not among the statesCHARACTERS, COMMENT, CDATA, SPACE, 
ENTITY_REFERENCE, DTD valid for getText() 
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at 
de.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8846)
at 
de.mypackage.ZederbasicServiceStub.getZEDERObjects(ZederbasicServiceStub.java:1028)
at ZederBasicClientTest.main(ZederBasicClientTest.java:36)
Caused by: java.lang.IllegalStateException: Current state END_ELEMENT is not 
among the statesCHARACTERS, COMMENT, CDATA, SPACE, ENTITY_REFERENCE, DTD valid 
for getText() 
at 
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.getText(XMLStreamReaderImpl.java:1052)
at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.getText(OMStAXWrapper.java:418)
at 
org.apache.axis2.databinding.utils.ConverterUtil.getAnyTypeObject(ConverterUtil.java:1528)
at de.debeka.repository.zws

In this case, the soap message looks like this:

attributes xmlns=http://model.zws2.boq.debeka.gen/xsd;
  nameHINWEIS/name
  displayNameHinweis/displayName
  value xmlns:s45=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:s46=http://www.w3.org/2001/XMLSchema; s45:type=s46:string
  /value
  classNamejava.lang.String/className
/attributes

When value is set to null, I get this exception:

Exception in thread main org.apache.axis2.AxisFault: 
org.apache.axis2.databinding.ADBException: Unexpected subelement value
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at 
de.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8846)
at 
de.mypackage.ZederbasicServiceStub.getZEDERObjects(ZederbasicServiceStub.java:1028)
at ZederBasicClientTest.main(ZederBasicClientTest.java:36)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: 
Unexpected subelement value
at 
de.mypackage.ZederbasicServiceStub$ZAttributeValue$Factory.parse(ZederbasicServiceStub.java:2583)
at 
de.mypackage.ZederbasicServiceStub$ZDataObject$Factory.parse(ZederbasicServiceStub.java:7596)
at 
de.mypackage.ZederbasicServiceStub$GetZEDERObjectsResponse$Factory.parse(ZederbasicServiceStub.java:4833)
at 
de.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8833)
... 2 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement 
value
at 
de.mypackage.ZederbasicServiceStub$ZAttributeValue$Factory.parse(ZederbasicServiceStub.java:2569)
... 5 more

The soap message is:

attributes xmlns=http://model.zws2.boq.debeka.gen/xsd;
  nameKLASSE/name
  displayName xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:nil=1 /
  value xmlns:s29=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:s30=http://www.w3.org/2001/XMLSchema; 
s29:type=s30:stringC_Jobplan/value
  classNamejava.lang.Integer/className
/attributes 


I tried Axis2 1.4.1 and the new 1.5 version. The whole problem with nil and 
empty string values only exists with anyType, not if the element is declared 
as string or something else.

I really need anyType here.

Thank you for your help in advance. 


--
Boris Klug, Koblenz, bo...@klg.de, Fax: 0261-1334249


Re: axis2 on webshpere response != axis2 on glassfish response........ why?

2009-06-22 Thread jeffty
Hello xedus,

Thank you and Jack Sprat very much for your help!

I copy all jars from axis2 to Websphere's lib folder and it works because 
setting parent_last and single gets the servlet init exception again and again.l

Thank you again!

Regards
Jeffty

- Original Message - 
From: xedus some2...@gmail.com
To: axis-user@ws.apache.org
Sent: Monday, June 22, 2009 2:06 PM
Subject: Re: axis2 on webshpere response != axis2 on glassfish response 
why?


 
 did you just completely hijacked my thread ?   :)
 now make it up for me and  help me solve my issue
 -- 
 View this message in context: 
 http://www.nabble.com/axis2-on-webshpere-response-%21%3D-axis2-on-glassfish-response-why--tp24132443p24142133.html
 Sent from the Axis - User mailing list archive at Nabble.com.


Java ref problems

2009-06-22 Thread Miha Vitorovic
Hi all,

can someone please help me solve the following problem (it's a bit 
longish)

I have the following two AXIS generated Java classes:

/**
 * Customer.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package com.microsoft.schemas.crm._2006.WebServices;

public class Customer extends 
com.microsoft.schemas.crm._2006.WebServices.CrmReference implements 
java.io.Serializable {
public Customer() {
}

// Simple Types must have a String constructor
public Customer( java.lang.String _value ) {
super( _value );
}

private java.lang.Object__equalsCalc= null;

public synchronized boolean equals( java.lang.Object obj ) {
if( !( obj instanceof Customer ) ) return false;
Customer other = (Customer)obj;
if( obj == null ) return false;
if( this == obj ) return true;
if( __equalsCalc != null ) {
return ( __equalsCalc == obj );
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals( obj );
__equalsCalc = null;
return _equals;
}

private boolean __hashCodeCalc  = false;

public synchronized int hashCode() {
if( __hashCodeCalc ) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
__hashCodeCalc = false;
return _hashCode;
}

// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc = 
new org.apache.axis.description.TypeDesc( Customer.class, true );

static {
typeDesc.setXmlType( new javax.xml.namespace.QName( 
http://schemas.microsoft.com/crm/2006/WebServices;, Customer ) );
}

/**
 * Return type metadata object
 */
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}

/**
 * Get Custom Serializer
 */
public static org.apache.axis.encoding.Serializer getSerializer( 
java.lang.String mechType, java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType ) {
return new org.apache.axis.encoding.ser.SimpleSerializer( 
_javaType, _xmlType, typeDesc );
}

/**
 * Get Custom Deserializer
 */
public static org.apache.axis.encoding.Deserializer 
getDeserializer( java.lang.String mechType, java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType ) {
return new 
org.apache.axis.encoding.ser.SimpleDeserializer( _javaType, _xmlType, 
typeDesc );
}

}

And :

/**
 * CrmReference.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package com.microsoft.schemas.crm._2006.WebServices;

public abstract class CrmReference implements java.io.Serializable, 
org.apache.axis.encoding.SimpleType {
private com.microsoft.wsdl.types.Guid   value;

private boolean isNull; // 
attribute

private java.lang.Stringname;   // 
attribute

private java.lang.Stringtype;   // 
attribute

private int dsc;// 
attribute

public CrmReference() {
}

public CrmReference( com.microsoft.wsdl.types.Guid value ) {
this.value = value;
}

// Simple Types must have a String constructor
public CrmReference( java.lang.String value ) {
this.value = new com.microsoft.wsdl.types.Guid( value );
}

/**
 * Gets the isNull value for this CrmReference.
 * 
 * @return isNull
 */
public boolean isIsNull() {
return isNull;
}

/**
 * Sets the isNull value for this CrmReference.
 * 
 * @param isNull
 */
public void setIsNull( boolean isNull ) {
this.isNull = isNull;
}

/**
 * Gets the name value for this CrmReference.
 * 
 * @return name
 */
public java.lang.String getName() {
return name;
}

/**
 * Sets the name value for this CrmReference.
 * 
 * @param name
 */
public void setName( java.lang.String name ) {
this.name = name;
}

/**
 * Gets the type value for this CrmReference.
 * 
 * @return type
 */
public java.lang.String getType() {
return type;

Re: axis2 vs axis

2009-06-22 Thread rkrgarlapati

anyone came across this ? :rules:





rkrgarlapati wrote:
 
 Hi there!
 
 I have created WSDL using axis2(java2wsdl), can i use this WSDL to
 generate client files with axis.
 
 Regards,
 Kumar
 

-- 
View this message in context: 
http://www.nabble.com/axis2-vs-axis-tp23922760p24147512.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: axis2-1.4.1 client side handlers

2009-06-22 Thread Deepal Jayasinghe
If you know how to write a handler, then there is no difference b/w
client side and server side handlers.
What you just need is to write a handler and then create a module and
engage that to the client. For more information about writing a module
please refer to

http://blogs.deepal.org/2009/02/writing-axis2-module.html

On Mon, Jun 22, 2009 at 4:00 AM, maalejamaa...@laas.fr wrote:
 Hello

 Is there somebody how can help me to implement client side handlers, knowing
 that I work with version axis2-1.4.1?

 Thank you for your comprehension



Re: axis2 vs axis

2009-06-22 Thread Deepal Jayasinghe
Yes you can. Use WSDL2Java tool

On Mon, Jun 22, 2009 at 9:42 AM,
rkrgarlapatiravikumar.garlap...@mphasis.com wrote:

 anyone came across this ? :rules:





 rkrgarlapati wrote:

 Hi there!

 I have created WSDL using axis2(java2wsdl), can i use this WSDL to
 generate client files with axis.

 Regards,
 Kumar


 --
 View this message in context: 
 http://www.nabble.com/axis2-vs-axis-tp23922760p24147512.html
 Sent from the Axis - User mailing list archive at Nabble.com.




RE: Session Managment using .net client..

2009-06-22 Thread Raghu Upadhyayula
HI Amardeep,

 

Here is how you do it in C#.net

 

string url =
http://hostname/webservices/services/MyWSService;;

stub.CookieContainer = new CookieContainer();

stub.Timeout = 1000 * 60 * 60;

stub.Url = url;

 

Thanks

Raghu

 

From: amardeep singh khera [mailto:amardeepsinghkh...@gmail.com] 
Sent: Monday, June 22, 2009 4:00 AM
To: axis-user@ws.apache.org
Subject: Session Managment using .net client..

 

Hi All,

 

I am facing an issue with managing session between  an axis2 java
service and C#.net console client. I am able to manage session between
the same axis2 java service and java client(axis client) by using
following code in my java  client:

 

Service Client client = stub._getServiceClient();

  Options opt = client.getOptions();

  opt.setTimeOutInMilliSeconds(60);

  opt.setManageSession(true);

  client.setOptions(opt);

 

And in my service implementation class I store user details into axis
session using following code

 

MessageContext msgContext = MessageContext.getCurrentMessageContext();

ServiceContext serviceContext =
msgContext.getServiceContext();

serviceContext.setProperty(ROLE_ID, roleId.toString());

serviceContext.setProperty(AUTHENTICATION_STATUS,

authenticationStatus);

serviceContext.setProperty(USER_ID, userId);

msgContext.setServiceContext(serviceContext);

 

This is all working fine for me as long as I am using java client. 

 

Now my other requirement is to develop a C# .net console client for the
same service. So I have generated the proxy class using Microsoft visual
studio from wsdl and written C#.net console client which is working
fine. But now I want to implement session management in a similar way as
I am able to do so in java client. Can anyone please suggest me a way to
do so.

 

Thanks

Amardeep Singh



RE: Session Managment using .net client..

2009-06-22 Thread Martin Gainty

how is stub created?
   
string url = http://hostname/webservices/services/MyWSService;;

   
stub.CookieContainer = new CookieContainer();

   
stub.Timeout = 1000 * 60 * 60;

   
stub.Url = url;thanks,
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




Subject: RE: Session Managment using .net client..
Date: Mon, 22 Jun 2009 06:49:21 -0700
From: rupadhyay...@responsys.com
To: axis-user@ws.apache.org
















HI Amardeep,

 

Here
is how you do it in C#.net

 

   
string url = http://hostname/webservices/services/MyWSService;;

   
stub.CookieContainer = new CookieContainer();

   
stub.Timeout = 1000 * 60 * 60;

   
stub.Url = url;

 

Thanks

Raghu

 



From: amardeep singh
khera [mailto:amardeepsinghkh...@gmail.com] 

Sent: Monday, June 22, 2009 4:00 AM

To: axis-user@ws.apache.org

Subject: Session Managment using .net client..



 

Hi All,

 

I am facing
an issue with managing session between  an axis2 java service and C#.net
console client. I am able to manage session between the same axis2 java service
and java client(axis client) by using following code in my java  client:

 

Service Client client = stub._getServiceClient();

  Options
opt = client.getOptions();

  opt.setTimeOutInMilliSeconds(60);

  opt.setManageSession(true);

  client.setOptions(opt);

 

And in my service implementation class I store user details into
axis session using following code

 

MessageContext msgContext = MessageContext.getCurrentMessageContext();

ServiceContext
serviceContext = msgContext.getServiceContext();

serviceContext.setProperty(ROLE_ID,
roleId.toString());

serviceContext.setProperty(AUTHENTICATION_STATUS,

authenticationStatus);

serviceContext.setProperty(USER_ID, userId);

msgContext.setServiceContext(serviceContext);

 

This is all working fine for me as long as I am using java client.


 



Now my other
requirement is to develop a C# .net console client for the same service. So I
have generated the proxy class using Microsoft visual studio from wsdl and
written C#.net console client which is working fine. But now I want to
implement session management in a similar way as I am able to do so in java
client. Can anyone please suggest me a way to do so.





 





Thanks





Amardeep
Singh




_
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009

Re: anyType and til values/empty strings - exception thrown

2009-06-22 Thread Andreas Veithen
Anyway, the code is wrong and should use getElementText instead of
getText to make sure that it gives the expected result even if the
underlying parser is not coalescing. This would also solve the problem
with empty text (getElementText returns an empty string in that case)
and I think that is what the generated code does. Note that your last
comment implies that anyType handling uses totally different code than
the processing of typed elements. This is really strange!

Andreas

On Mon, Jun 22, 2009 at 14:14, Boris Klugbo...@klg.de wrote:
 Hi!

 I created a wsdl which contains a attribute/value pair where the
 value is definied as xsd:anyType:

 xs:complexType name=ZAttributeValue
  xs:sequence
    xs:element name=name                        type=xs:string /
    xs:element name=displayName nillable=true type=xs:string /
    xs:element name=value       nillable=true type=xs:anyType /
    xs:element name=className   nillable=true type=xs:string /
  /xs:sequence
  /xs:complexType

 Now I used wsdl2java to create client and server code using adb data binding.

 When value is  (=empty string), the client throws this exception:

 Exception in thread main org.apache.axis2.AxisFault: Current state 
 END_ELEMENT is not among the statesCHARACTERS, COMMENT, CDATA, SPACE, 
 ENTITY_REFERENCE, DTD valid for getText()
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at 
 de.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8846)
        at 
 de.mypackage.ZederbasicServiceStub.getZEDERObjects(ZederbasicServiceStub.java:1028)
        at ZederBasicClientTest.main(ZederBasicClientTest.java:36)
 Caused by: java.lang.IllegalStateException: Current state END_ELEMENT is not 
 among the statesCHARACTERS, COMMENT, CDATA, SPACE, ENTITY_REFERENCE, DTD 
 valid for getText()
        at 
 com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.getText(XMLStreamReaderImpl.java:1052)
        at 
 org.apache.axiom.om.impl.llom.OMStAXWrapper.getText(OMStAXWrapper.java:418)
        at 
 org.apache.axis2.databinding.utils.ConverterUtil.getAnyTypeObject(ConverterUtil.java:1528)
        at de.debeka.repository.zws

 In this case, the soap message looks like this:

 attributes xmlns=http://model.zws2.boq.debeka.gen/xsd;
  nameHINWEIS/name
  displayNameHinweis/displayName
  value xmlns:s45=http://www.w3.org/2001/XMLSchema-instance; 
 xmlns:s46=http://www.w3.org/2001/XMLSchema; s45:type=s46:string
  /value
  classNamejava.lang.String/className
 /attributes

 When value is set to null, I get this exception:

 Exception in thread main org.apache.axis2.AxisFault: 
 org.apache.axis2.databinding.ADBException: Unexpected subelement value
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at 
 de.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8846)
        at 
 de.mypackage.ZederbasicServiceStub.getZEDERObjects(ZederbasicServiceStub.java:1028)
        at ZederBasicClientTest.main(ZederBasicClientTest.java:36)
 Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: 
 Unexpected subelement value
        at 
 de.mypackage.ZederbasicServiceStub$ZAttributeValue$Factory.parse(ZederbasicServiceStub.java:2583)
        at 
 de.mypackage.ZederbasicServiceStub$ZDataObject$Factory.parse(ZederbasicServiceStub.java:7596)
        at 
 de.mypackage.ZederbasicServiceStub$GetZEDERObjectsResponse$Factory.parse(ZederbasicServiceStub.java:4833)
        at 
 de.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8833)
        ... 2 more
 Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement 
 value
        at 
 de.mypackage.ZederbasicServiceStub$ZAttributeValue$Factory.parse(ZederbasicServiceStub.java:2569)
        ... 5 more

 The soap message is:

 attributes xmlns=http://model.zws2.boq.debeka.gen/xsd;
  nameKLASSE/name
  displayName xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:nil=1 /
  value xmlns:s29=http://www.w3.org/2001/XMLSchema-instance; 
 xmlns:s30=http://www.w3.org/2001/XMLSchema; 
 s29:type=s30:stringC_Jobplan/value
  classNamejava.lang.Integer/className
 /attributes


 I tried Axis2 1.4.1 and the new 1.5 version. The whole problem with nil and
 empty string values only exists with anyType, not if the element is declared
 as string or something else.

 I really need anyType here.

 Thank you for your help in advance.


 --
 Boris Klug, Koblenz, bo...@klg.de, Fax: 0261-1334249



Re: axis2-1.4.1 client side handlers

2009-06-22 Thread Deepal Jayasinghe
serviceclient.engageModule(modeleName)

On Mon, Jun 22, 2009 at 10:44 AM, maalejamaa...@laas.fr wrote:
 actually, i already tried to implement handler within a module and i engaged
 it in the server side and it work fine, however i have no idea about
 engaging it in the client side
 so if you could help me to do that, i will be so gratefull

 Deepal Jayasinghe a écrit :

 If you know how to write a handler, then there is no difference b/w
 client side and server side handlers.
 What you just need is to write a handler and then create a module and
 engage that to the client. For more information about writing a module
 please refer to

 http://blogs.deepal.org/2009/02/writing-axis2-module.html

 On Mon, Jun 22, 2009 at 4:00 AM, maalejamaa...@laas.fr wrote:


 Hello

 Is there somebody how can help me to implement client side handlers,
 knowing
 that I work with version axis2-1.4.1?

 Thank you for your comprehension






Re: Session Managment using .net client..

2009-06-22 Thread amardeep singh khera
Thanks Guys I got it working...

And stub is reference to my proxy class ...

Thanks
Amardeep Singh

On Mon, Jun 22, 2009 at 7:45 PM, Martin Gainty mgai...@hotmail.com wrote:

  how is stub created?

 string url = 
 http://hostname/webservices/services/MyWSService;;

 stub.CookieContainer = new CookieContainer();

 stub.Timeout = 1000 * 60 * 60;

 stub.Url = url;
 thanks,
 Martin
 __
 Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
 Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
 Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
 dient lediglich dem Austausch von Informationen und entfaltet keine
 rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
 E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
 destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
 l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
 est interdite. Ce message sert à l'information seulement et n'aura pas 
 n'importe quel effet légalement obligatoire. Étant donné que les email 
 peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
 aucune responsabilité pour le contenu fourni.






 --
 Subject: RE: Session Managment using .net client..
 Date: Mon, 22 Jun 2009 06:49:21 -0700
 From: rupadhyay...@responsys.com

 To: axis-user@ws.apache.org

  HI Amardeep,



 Here is how you do it in C#.net



 string url = 
 http://hostname/webservices/services/MyWSService;;

 stub.CookieContainer = new CookieContainer();

 stub.Timeout = 1000 * 60 * 60;

 stub.Url = url;



 Thanks

 Raghu



 *From:* amardeep singh khera [mailto:amardeepsinghkh...@gmail.com]
 *Sent:* Monday, June 22, 2009 4:00 AM
 *To:* axis-user@ws.apache.org
 *Subject:* Session Managment using .net client..



 Hi All,



 I am facing an issue with managing session between  an axis2 java service
 and C#.net console client. I am able to manage session between the same
 axis2 java service and java client(axis client) by using following code in
 my java  client:



 Service Client client = stub._getServiceClient();

   Options opt = client.getOptions();

   opt.setTimeOutInMilliSeconds(60);

   opt.setManageSession(true);

   client.setOptions(opt);



 And in my service implementation class I store user details into axis
 session using following code



 MessageContext msgContext = MessageContext.*getCurrentMessageContext*();

 ServiceContext serviceContext = msgContext.getServiceContext();

 serviceContext.setProperty(ROLE_ID, roleId.toString());

 serviceContext.setProperty(AUTHENTICATION_STATUS,

 authenticationStatus);

 serviceContext.setProperty(USER_ID, userId);

 msgContext.setServiceContext(serviceContext);



 This is all working fine for me as long as I am using java client.



 Now my other requirement is to develop a C# .net console client for the
 same service. So I have generated the proxy class using Microsoft visual
 studio from wsdl and written C#.net console client which is working fine.
 But now I want to implement session management in a similar way as I am able
 to do so in java client. Can anyone please suggest me a way to do so.



 Thanks

 Amardeep Singh

 --
 Insert movie times and more without leaving Hotmail®. See 
 how.http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009



Re: axis2-1.4.1 client side handlers

2009-06-22 Thread maalej
actually, i already tried to implement handler within a module and i 
engaged it in the server side and it work fine, however i have no idea 
about engaging it in the client side

so if you could help me to do that, i will be so gratefull

Deepal Jayasinghe a écrit :

If you know how to write a handler, then there is no difference b/w
client side and server side handlers.
What you just need is to write a handler and then create a module and
engage that to the client. For more information about writing a module
please refer to

http://blogs.deepal.org/2009/02/writing-axis2-module.html

On Mon, Jun 22, 2009 at 4:00 AM, maalejamaa...@laas.fr wrote:
  

Hello

Is there somebody how can help me to implement client side handlers, knowing
that I work with version axis2-1.4.1?

Thank you for your comprehension






RE: Session Managment using .net client..

2009-06-22 Thread Raghu Upadhyayula
MyWSService stub = new MyWSWSService();

 

From: Martin Gainty [mailto:mgai...@hotmail.com] 
Sent: Monday, June 22, 2009 9:15 AM
To: axis-user@ws.apache.org
Subject: RE: Session Managment using .net client..

 

how is stub created?

string url = http://hostname/webservices/services/MyWSService;;

stub.CookieContainer = new CookieContainer();

stub.Timeout = 1000 * 60 * 60;

stub.Url = url;

thanks,
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.









Subject: RE: Session Managment using .net client..
Date: Mon, 22 Jun 2009 06:49:21 -0700
From: rupadhyay...@responsys.com
To: axis-user@ws.apache.org

HI Amardeep,

 

Here is how you do it in C#.net

 

string url = http://hostname/webservices/services/MyWSService;;

stub.CookieContainer = new CookieContainer();

stub.Timeout = 1000 * 60 * 60;

stub.Url = url;

 

Thanks

Raghu

 

From: amardeep singh khera [mailto:amardeepsinghkh...@gmail.com] 
Sent: Monday, June 22, 2009 4:00 AM
To: axis-user@ws.apache.org
Subject: Session Managment using .net client..

 

Hi All,

 

I am facing an issue with managing session between  an axis2 java service and 
C#.net console client. I am able to manage session between the same axis2 java 
service and java client(axis client) by using following code in my java  client:

 

Service Client client = stub._getServiceClient();

  Options opt = client.getOptions();

  opt.setTimeOutInMilliSeconds(60);

  opt.setManageSession(true);

  client.setOptions(opt);

 

And in my service implementation class I store user details into axis session 
using following code

 

MessageContext msgContext = MessageContext.getCurrentMessageContext();

ServiceContext serviceContext = msgContext.getServiceContext();

serviceContext.setProperty(ROLE_ID, roleId.toString());

serviceContext.setProperty(AUTHENTICATION_STATUS,

authenticationStatus);

serviceContext.setProperty(USER_ID, userId);

msgContext.setServiceContext(serviceContext);

 

This is all working fine for me as long as I am using java client. 

 

Now my other requirement is to develop a C# .net console client for the same 
service. So I have generated the proxy class using Microsoft visual studio from 
wsdl and written C#.net console client which is working fine. But now I want to 
implement session management in a similar way as I am able to do so in java 
client. Can anyone please suggest me a way to do so.

 

Thanks

Amardeep Singh

 



Insert movie times and more without leaving Hotmail®. See how. 
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
 



Re: axis2 vs axis

2009-06-22 Thread rkrgarlapati

yeah, we can use WSDL2Java(of Axis) but the WSDL file which got generated
using Axis2 contains Axis2 schemas, will Axis still generates java files?
PS: Please note, i am talking about two different  versions of Axis(Axis and
Axis2)



Deepal Jayasinghe-2 wrote:
 
 Yes you can. Use WSDL2Java tool
 
 On Mon, Jun 22, 2009 at 9:42 AM,
 rkrgarlapatiravikumar.garlap...@mphasis.com wrote:

 anyone came across this ? :rules:





 rkrgarlapati wrote:

 Hi there!

 I have created WSDL using axis2(java2wsdl), can i use this WSDL to
 generate client files with axis.

 Regards,
 Kumar


 --
 View this message in context:
 http://www.nabble.com/axis2-vs-axis-tp23922760p24147512.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/axis2-vs-axis-tp23922760p24149239.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: axis2 vs axis

2009-06-22 Thread Deepal Jayasinghe
If Axis2 generate valid wsdl then it should be able to generate
correct code for any Web service framework. And you will not find any
Axis2 specific stuff in the generated wsdl.

Thanks,
Deepal

On Mon, Jun 22, 2009 at 11:35 AM,
rkrgarlapatiravikumar.garlap...@mphasis.com wrote:

 yeah, we can use WSDL2Java(of Axis) but the WSDL file which got generated
 using Axis2 contains Axis2 schemas, will Axis still generates java files?
 PS: Please note, i am talking about two different  versions of Axis(Axis and
 Axis2)



 Deepal Jayasinghe-2 wrote:

 Yes you can. Use WSDL2Java tool

 On Mon, Jun 22, 2009 at 9:42 AM,
 rkrgarlapatiravikumar.garlap...@mphasis.com wrote:

 anyone came across this ? :rules:





 rkrgarlapati wrote:

 Hi there!

 I have created WSDL using axis2(java2wsdl), can i use this WSDL to
 generate client files with axis.

 Regards,
 Kumar


 --
 View this message in context:
 http://www.nabble.com/axis2-vs-axis-tp23922760p24147512.html
 Sent from the Axis - User mailing list archive at Nabble.com.





 --
 View this message in context: 
 http://www.nabble.com/axis2-vs-axis-tp23922760p24149239.html
 Sent from the Axis - User mailing list archive at Nabble.com.




Re: SAXParseException on Linux

2009-06-22 Thread robert lazarski
On Mon, Jun 22, 2009 at 1:15 PM, callagc4 cathal.callag...@fineos.comwrote:


 Hi,

 We have been running our web services for quite some time now using Axis2
 on
 a Windows OS.
 Recently we attempted to run the services on a Linux OS and have been
 receiving a very generic error. An exception is being thrown during the
 creation of an XML Schema object. I have been unable to setup debugging for
 xerces correctly and as a result i am none the wiser as to why this
 exception is being thrown.

 Has anyone seen any problems like this on a Linux OS, which run fine on
 Windows?


snip

 'commontypes:FineosMoney' to a(n) 'type definition' component.
at
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
 Source)


Try running dos2unix on your schemas - you may be getting bit by Windows
type line returns.

HTH,
- R


SAXParseException on Linux

2009-06-22 Thread callagc4

Hi,

We have been running our web services for quite some time now using Axis2 on
a Windows OS.
Recently we attempted to run the services on a Linux OS and have been
receiving a very generic error. An exception is being thrown during the
creation of an XML Schema object. I have been unable to setup debugging for
xerces correctly and as a result i am none the wiser as to why this
exception is being thrown.

Has anyone seen any problems like this on a Linux OS, which run fine on
Windows?

Thanks,
Cathal

p.s also any pointers on why my eclipse debugger is not picking up any line
information when debugging xerces would be helpful aswell.

The stack trace received is as follows:

org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name
'commontypes:FineosMoney' to a(n) 'type definition' component.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown
Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown
Source)
at
org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseNamedElement(Unknown
Source)
at
org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseLocal(Unknown
Source)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.traverseLocalElements(Unknown
Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown
Source)
at javax.xml.validation.SchemaFactory.newSchema(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(Unknown Source)
at
com.fineos.ta.services2.validation.TaValidationHandler.getSchema(TaValidationHandler.java:227)
at
com.fineos.ta.services2.validation.TaValidationHandler.updateUnmarshallerWithSchemaForValidation(TaValidationHandler.java:156)

-- 
View this message in context: 
http://www.nabble.com/SAXParseException-on-Linux-tp24150497p24150497.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: anyType and til values/empty strings - exception thrown

2009-06-22 Thread Boris Klug

Hi!

Its not my code, its the code generated by wsdl2java - so what can I do?

Am 22.06.2009 um 16:51 schrieb Andreas Veithen:


Anyway, the code is wrong and should use getElementText instead of
getText to make sure that it gives the expected result even if the
underlying parser is not coalescing. This would also solve the problem
with empty text (getElementText returns an empty string in that case)
and I think that is what the generated code does. Note that your last
comment implies that anyType handling uses totally different code than
the processing of typed elements. This is really strange!

Andreas

On Mon, Jun 22, 2009 at 14:14, Boris Klugbo...@klg.de wrote:

Hi!

I created a wsdl which contains a attribute/value pair where the
value is definied as xsd:anyType:

xs:complexType name=ZAttributeValue
 xs:sequence
   xs:element name=nametype=xs:string /
   xs:element name=displayName nillable=true type=xs:string /
   xs:element name=value   nillable=true  
type=xs:anyType /

   xs:element name=className   nillable=true type=xs:string /
 /xs:sequence
 /xs:complexType

Now I used wsdl2java to create client and server code using adb  
data binding.


When value is  (=empty string), the client throws this exception:

Exception in thread main org.apache.axis2.AxisFault: Current  
state END_ELEMENT is not among the statesCHARACTERS, COMMENT,  
CDATA, SPACE, ENTITY_REFERENCE, DTD valid for getText()

   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
   at  
de 
.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java: 
8846)
   at  
de 
.mypackage 
.ZederbasicServiceStub.getZEDERObjects(ZederbasicServiceStub.java: 
1028)

   at ZederBasicClientTest.main(ZederBasicClientTest.java:36)
Caused by: java.lang.IllegalStateException: Current state  
END_ELEMENT is not among the statesCHARACTERS, COMMENT, CDATA,  
SPACE, ENTITY_REFERENCE, DTD valid for getText()
   at  
com 
.sun 
.org 
.apache 
.xerces 
.internal.impl.XMLStreamReaderImpl.getText(XMLStreamReaderImpl.java: 
1052)
   at  
org 
.apache.axiom.om.impl.llom.OMStAXWrapper.getText(OMStAXWrapper.java: 
418)
   at  
org 
.apache 
.axis2 
.databinding 
.utils.ConverterUtil.getAnyTypeObject(ConverterUtil.java:1528)

   at de.debeka.repository.zws

In this case, the soap message looks like this:

attributes xmlns=http://model.zws2.boq.debeka.gen/xsd;
 nameHINWEIS/name
 displayNameHinweis/displayName
 value xmlns:s45=http://www.w3.org/2001/XMLSchema-instance;  
xmlns:s46=http://www.w3.org/2001/XMLSchema; s45:type=s46:string

 /value
 classNamejava.lang.String/className
/attributes

When value is set to null, I get this exception:

Exception in thread main org.apache.axis2.AxisFault:  
org.apache.axis2.databinding.ADBException: Unexpected subelement  
value

   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
   at  
de 
.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java: 
8846)
   at  
de 
.mypackage 
.ZederbasicServiceStub.getZEDERObjects(ZederbasicServiceStub.java: 
1028)

   at ZederBasicClientTest.main(ZederBasicClientTest.java:36)
Caused by: java.lang.Exception:  
org.apache.axis2.databinding.ADBException: Unexpected subelement  
value
   at de.mypackage.ZederbasicServiceStub$ZAttributeValue 
$Factory.parse(ZederbasicServiceStub.java:2583)
   at de.mypackage.ZederbasicServiceStub$ZDataObject 
$Factory.parse(ZederbasicServiceStub.java:7596)
   at de.mypackage.ZederbasicServiceStub$GetZEDERObjectsResponse 
$Factory.parse(ZederbasicServiceStub.java:4833)
   at  
de 
.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java: 
8833)

   ... 2 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected  
subelement value
   at de.mypackage.ZederbasicServiceStub$ZAttributeValue 
$Factory.parse(ZederbasicServiceStub.java:2569)

   ... 5 more

The soap message is:

attributes xmlns=http://model.zws2.boq.debeka.gen/xsd;
 nameKLASSE/name
 displayName xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;  
xsi:nil=1 /
 value xmlns:s29=http://www.w3.org/2001/XMLSchema-instance;  
xmlns:s30=http://www.w3.org/2001/XMLSchema;  
s29:type=s30:stringC_Jobplan/value

 classNamejava.lang.Integer/className
/attributes


I tried Axis2 1.4.1 and the new 1.5 version. The whole problem with  
nil and
empty string values only exists with anyType, not if the element is  
declared

as string or something else.

I really need anyType here.

Thank you for your help in advance.


--
Boris Klug, Koblenz, bo...@klg.de, Fax: 0261-1334249



--
Boris Klug, bo...@klg.de





Re: anyType and til values/empty strings - exception thrown

2009-06-22 Thread Andreas Veithen
Yes I know. It needs to be fixed in Axis2. Can you please open a JIRA report?

Andreas

On Mon, Jun 22, 2009 at 20:57, Boris Klugbo...@klg.de wrote:
 Hi!

 Its not my code, its the code generated by wsdl2java - so what can I do?

 Am 22.06.2009 um 16:51 schrieb Andreas Veithen:

 Anyway, the code is wrong and should use getElementText instead of
 getText to make sure that it gives the expected result even if the
 underlying parser is not coalescing. This would also solve the problem
 with empty text (getElementText returns an empty string in that case)
 and I think that is what the generated code does. Note that your last
 comment implies that anyType handling uses totally different code than
 the processing of typed elements. This is really strange!

 Andreas

 On Mon, Jun 22, 2009 at 14:14, Boris Klugbo...@klg.de wrote:

 Hi!

 I created a wsdl which contains a attribute/value pair where the
 value is definied as xsd:anyType:

 xs:complexType name=ZAttributeValue
  xs:sequence
   xs:element name=name                        type=xs:string /
   xs:element name=displayName nillable=true type=xs:string /
   xs:element name=value       nillable=true type=xs:anyType /
   xs:element name=className   nillable=true type=xs:string /
  /xs:sequence
  /xs:complexType

 Now I used wsdl2java to create client and server code using adb data
 binding.

 When value is  (=empty string), the client throws this exception:

 Exception in thread main org.apache.axis2.AxisFault: Current state
 END_ELEMENT is not among the statesCHARACTERS, COMMENT, CDATA, SPACE,
 ENTITY_REFERENCE, DTD valid for getText()
       at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
       at
 de.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8846)
       at
 de.mypackage.ZederbasicServiceStub.getZEDERObjects(ZederbasicServiceStub.java:1028)
       at ZederBasicClientTest.main(ZederBasicClientTest.java:36)
 Caused by: java.lang.IllegalStateException: Current state END_ELEMENT is
 not among the statesCHARACTERS, COMMENT, CDATA, SPACE, ENTITY_REFERENCE, DTD
 valid for getText()
       at
 com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.getText(XMLStreamReaderImpl.java:1052)
       at
 org.apache.axiom.om.impl.llom.OMStAXWrapper.getText(OMStAXWrapper.java:418)
       at
 org.apache.axis2.databinding.utils.ConverterUtil.getAnyTypeObject(ConverterUtil.java:1528)
       at de.debeka.repository.zws

 In this case, the soap message looks like this:

 attributes xmlns=http://model.zws2.boq.debeka.gen/xsd;
  nameHINWEIS/name
  displayNameHinweis/displayName
  value xmlns:s45=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:s46=http://www.w3.org/2001/XMLSchema; s45:type=s46:string
  /value
  classNamejava.lang.String/className
 /attributes

 When value is set to null, I get this exception:

 Exception in thread main org.apache.axis2.AxisFault:
 org.apache.axis2.databinding.ADBException: Unexpected subelement value
       at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
       at
 de.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8846)
       at
 de.mypackage.ZederbasicServiceStub.getZEDERObjects(ZederbasicServiceStub.java:1028)
       at ZederBasicClientTest.main(ZederBasicClientTest.java:36)
 Caused by: java.lang.Exception:
 org.apache.axis2.databinding.ADBException: Unexpected subelement value
       at
 de.mypackage.ZederbasicServiceStub$ZAttributeValue$Factory.parse(ZederbasicServiceStub.java:2583)
       at
 de.mypackage.ZederbasicServiceStub$ZDataObject$Factory.parse(ZederbasicServiceStub.java:7596)
       at
 de.mypackage.ZederbasicServiceStub$GetZEDERObjectsResponse$Factory.parse(ZederbasicServiceStub.java:4833)
       at
 de.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8833)
       ... 2 more
 Caused by: org.apache.axis2.databinding.ADBException: Unexpected
 subelement value
       at
 de.mypackage.ZederbasicServiceStub$ZAttributeValue$Factory.parse(ZederbasicServiceStub.java:2569)
       ... 5 more

 The soap message is:

 attributes xmlns=http://model.zws2.boq.debeka.gen/xsd;
  nameKLASSE/name
  displayName xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:nil=1 /
  value xmlns:s29=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:s30=http://www.w3.org/2001/XMLSchema;
 s29:type=s30:stringC_Jobplan/value
  classNamejava.lang.Integer/className
 /attributes


 I tried Axis2 1.4.1 and the new 1.5 version. The whole problem with nil
 and
 empty string values only exists with anyType, not if the element is
 declared
 as string or something else.

 I really need anyType here.

 Thank you for your help in advance.


 --
 Boris Klug, Koblenz, bo...@klg.de, Fax: 0261-1334249


 --
 Boris Klug, bo...@klg.de






Re: anyType and til values/empty strings - exception thrown

2009-06-22 Thread Boris Klug

Hi!

Yes will do this tomorrow.

Thanks for your help

Am 22.06.2009 um 21:08 schrieb Andreas Veithen:

Yes I know. It needs to be fixed in Axis2. Can you please open a  
JIRA report?


Andreas

On Mon, Jun 22, 2009 at 20:57, Boris Klugbo...@klg.de wrote:

Hi!

Its not my code, its the code generated by wsdl2java - so what can  
I do?


Am 22.06.2009 um 16:51 schrieb Andreas Veithen:


Anyway, the code is wrong and should use getElementText instead of
getText to make sure that it gives the expected result even if the
underlying parser is not coalescing. This would also solve the  
problem
with empty text (getElementText returns an empty string in that  
case)
and I think that is what the generated code does. Note that your  
last
comment implies that anyType handling uses totally different code  
than

the processing of typed elements. This is really strange!

Andreas

On Mon, Jun 22, 2009 at 14:14, Boris Klugbo...@klg.de wrote:


Hi!

I created a wsdl which contains a attribute/value pair where the
value is definied as xsd:anyType:

xs:complexType name=ZAttributeValue
 xs:sequence
  xs:element name=name 
type=xs:string /
  xs:element name=displayName nillable=true  
type=xs:string /
  xs:element name=value   nillable=true  
type=xs:anyType /
  xs:element name=className   nillable=true  
type=xs:string /

 /xs:sequence
 /xs:complexType

Now I used wsdl2java to create client and server code using adb  
data

binding.

When value is  (=empty string), the client throws this exception:

Exception in thread main org.apache.axis2.AxisFault: Current  
state
END_ELEMENT is not among the statesCHARACTERS, COMMENT, CDATA,  
SPACE,

ENTITY_REFERENCE, DTD valid for getText()
  at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
  at
de 
.mypackage 
.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8846)

  at
de 
.mypackage 
.ZederbasicServiceStub.getZEDERObjects(ZederbasicServiceStub.java: 
1028)

  at ZederBasicClientTest.main(ZederBasicClientTest.java:36)
Caused by: java.lang.IllegalStateException: Current state  
END_ELEMENT is
not among the statesCHARACTERS, COMMENT, CDATA, SPACE,  
ENTITY_REFERENCE, DTD

valid for getText()
  at
com 
.sun 
.org 
.apache 
.xerces 
.internal 
.impl.XMLStreamReaderImpl.getText(XMLStreamReaderImpl.java:1052)

  at
org 
.apache 
.axiom.om.impl.llom.OMStAXWrapper.getText(OMStAXWrapper.java:418)

  at
org 
.apache 
.axis2 
.databinding 
.utils.ConverterUtil.getAnyTypeObject(ConverterUtil.java:1528)

  at de.debeka.repository.zws

In this case, the soap message looks like this:

attributes xmlns=http://model.zws2.boq.debeka.gen/xsd;
 nameHINWEIS/name
 displayNameHinweis/displayName
 value xmlns:s45=http://www.w3.org/2001/XMLSchema-instance;
xmlns:s46=http://www.w3.org/2001/XMLSchema; s45:type=s46:string
 /value
 classNamejava.lang.String/className
/attributes

When value is set to null, I get this exception:

Exception in thread main org.apache.axis2.AxisFault:
org.apache.axis2.databinding.ADBException: Unexpected subelement  
value

  at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
  at
de 
.mypackage 
.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8846)

  at
de 
.mypackage 
.ZederbasicServiceStub.getZEDERObjects(ZederbasicServiceStub.java: 
1028)

  at ZederBasicClientTest.main(ZederBasicClientTest.java:36)
Caused by: java.lang.Exception:
org.apache.axis2.databinding.ADBException: Unexpected subelement  
value

  at
de.mypackage.ZederbasicServiceStub$ZAttributeValue 
$Factory.parse(ZederbasicServiceStub.java:2583)

  at
de.mypackage.ZederbasicServiceStub$ZDataObject 
$Factory.parse(ZederbasicServiceStub.java:7596)

  at
de.mypackage.ZederbasicServiceStub$GetZEDERObjectsResponse 
$Factory.parse(ZederbasicServiceStub.java:4833)

  at
de 
.mypackage 
.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8833)

  ... 2 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected
subelement value
  at
de.mypackage.ZederbasicServiceStub$ZAttributeValue 
$Factory.parse(ZederbasicServiceStub.java:2569)

  ... 5 more

The soap message is:

attributes xmlns=http://model.zws2.boq.debeka.gen/xsd;
 nameKLASSE/name
 displayName xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:nil=1 /
 value xmlns:s29=http://www.w3.org/2001/XMLSchema-instance;
xmlns:s30=http://www.w3.org/2001/XMLSchema;
s29:type=s30:stringC_Jobplan/value
 classNamejava.lang.Integer/className
/attributes


I tried Axis2 1.4.1 and the new 1.5 version. The whole problem  
with nil

and
empty string values only exists with anyType, not if the element is
declared
as string or something else.

I really need anyType here.

Thank you for your help in advance.


--
Boris Klug, Koblenz, bo...@klg.de, Fax: 0261-1334249



--
Boris Klug, bo...@klg.de






--
Boris Klug, bo...@klg.de





package to namespace mapping

2009-06-22 Thread Suchitha Koneru (sukoneru)
Hello All , 
I am using axis 2 version 1.4.  The command line tool (java 2 wsdl)
is used with the following options.
 
java2wsdl  -wv 2.0 -cp ./classes -of UsermgmtService.wsdl -sn
UserMgmtServiceImpl  -p2n com.cisco.webservices.beans,usermgmt
com.cisco.webservices.impl,usermgmt
com.cisco.webservices.interfaces,usermgmt -cn
com.cisco.webservices.impl.UserMgmtServiceImpl
 
I am trying to associate the same namespace to all the packages used by
the usermgmt service. I have tried the option  -p2n all,usermgt as
well, but it did not work either.
 
 The generated wsdl  is attached. In this wsdl the namespace usermgmt
is not used at all. The src code UserMgmtServiceImpl.java is also
attached
 
Is this a bug in Axis or is my usage not correct ? Could you please help
me out
 
thank you,
suchitha
 
 


UsermgmtService.wsdl
Description: UsermgmtService.wsdl


UserMgmtServiceImpl.java
Description: UserMgmtServiceImpl.java


Re: anyType and til values/empty strings - exception thrown

2009-06-22 Thread Andreas Veithen
Was Du heute kannst besorgen, verschiebe nicht auf morgen...

https://issues.apache.org/jira/browse/AXIS2-4402

Created a JIRA and fixed the issue.

Andreas

On Mon, Jun 22, 2009 at 21:45, Boris Klugbo...@klg.de wrote:
 Hi!

 Yes will do this tomorrow.

 Thanks for your help

 Am 22.06.2009 um 21:08 schrieb Andreas Veithen:

 Yes I know. It needs to be fixed in Axis2. Can you please open a JIRA
 report?

 Andreas

 On Mon, Jun 22, 2009 at 20:57, Boris Klugbo...@klg.de wrote:

 Hi!

 Its not my code, its the code generated by wsdl2java - so what can I do?

 Am 22.06.2009 um 16:51 schrieb Andreas Veithen:

 Anyway, the code is wrong and should use getElementText instead of
 getText to make sure that it gives the expected result even if the
 underlying parser is not coalescing. This would also solve the problem
 with empty text (getElementText returns an empty string in that case)
 and I think that is what the generated code does. Note that your last
 comment implies that anyType handling uses totally different code than
 the processing of typed elements. This is really strange!

 Andreas

 On Mon, Jun 22, 2009 at 14:14, Boris Klugbo...@klg.de wrote:

 Hi!

 I created a wsdl which contains a attribute/value pair where the
 value is definied as xsd:anyType:

 xs:complexType name=ZAttributeValue
  xs:sequence
  xs:element name=name                        type=xs:string /
  xs:element name=displayName nillable=true type=xs:string /
  xs:element name=value       nillable=true type=xs:anyType /
  xs:element name=className   nillable=true type=xs:string /
  /xs:sequence
  /xs:complexType

 Now I used wsdl2java to create client and server code using adb data
 binding.

 When value is  (=empty string), the client throws this exception:

 Exception in thread main org.apache.axis2.AxisFault: Current state
 END_ELEMENT is not among the statesCHARACTERS, COMMENT, CDATA, SPACE,
 ENTITY_REFERENCE, DTD valid for getText()
      at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
      at

 de.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8846)
      at

 de.mypackage.ZederbasicServiceStub.getZEDERObjects(ZederbasicServiceStub.java:1028)
      at ZederBasicClientTest.main(ZederBasicClientTest.java:36)
 Caused by: java.lang.IllegalStateException: Current state END_ELEMENT
 is
 not among the statesCHARACTERS, COMMENT, CDATA, SPACE,
 ENTITY_REFERENCE, DTD
 valid for getText()
      at

 com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.getText(XMLStreamReaderImpl.java:1052)
      at

 org.apache.axiom.om.impl.llom.OMStAXWrapper.getText(OMStAXWrapper.java:418)
      at

 org.apache.axis2.databinding.utils.ConverterUtil.getAnyTypeObject(ConverterUtil.java:1528)
      at de.debeka.repository.zws

 In this case, the soap message looks like this:

 attributes xmlns=http://model.zws2.boq.debeka.gen/xsd;
  nameHINWEIS/name
  displayNameHinweis/displayName
  value xmlns:s45=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:s46=http://www.w3.org/2001/XMLSchema; s45:type=s46:string
  /value
  classNamejava.lang.String/className
 /attributes

 When value is set to null, I get this exception:

 Exception in thread main org.apache.axis2.AxisFault:
 org.apache.axis2.databinding.ADBException: Unexpected subelement value
      at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
      at

 de.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8846)
      at

 de.mypackage.ZederbasicServiceStub.getZEDERObjects(ZederbasicServiceStub.java:1028)
      at ZederBasicClientTest.main(ZederBasicClientTest.java:36)
 Caused by: java.lang.Exception:
 org.apache.axis2.databinding.ADBException: Unexpected subelement value
      at

 de.mypackage.ZederbasicServiceStub$ZAttributeValue$Factory.parse(ZederbasicServiceStub.java:2583)
      at

 de.mypackage.ZederbasicServiceStub$ZDataObject$Factory.parse(ZederbasicServiceStub.java:7596)
      at

 de.mypackage.ZederbasicServiceStub$GetZEDERObjectsResponse$Factory.parse(ZederbasicServiceStub.java:4833)
      at

 de.mypackage.ZederbasicServiceStub.fromOM(ZederbasicServiceStub.java:8833)
      ... 2 more
 Caused by: org.apache.axis2.databinding.ADBException: Unexpected
 subelement value
      at

 de.mypackage.ZederbasicServiceStub$ZAttributeValue$Factory.parse(ZederbasicServiceStub.java:2569)
      ... 5 more

 The soap message is:

 attributes xmlns=http://model.zws2.boq.debeka.gen/xsd;
  nameKLASSE/name
  displayName xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:nil=1 /
  value xmlns:s29=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:s30=http://www.w3.org/2001/XMLSchema;
 s29:type=s30:stringC_Jobplan/value
  classNamejava.lang.Integer/className
 /attributes


 I tried Axis2 1.4.1 and the new 1.5 version. The whole problem with nil
 and
 empty string values only exists with anyType, not if the element is
 declared
 as string or something else.

 I really need anyType here.

 Thank you for your help in advance.


 --
 Boris Klug, Koblenz, 

Re: Session Managment using .net client..

2009-06-22 Thread Deepal Jayasinghe
The only way you can get session working with .Net is using transport
session, that is by using cookies.In addition to that .Net does not send
the cookies as JSESSION_ID you need to do a an additional step in the
service client.
Try setting following property and see;

http://wso2.org/library/3464

Thanks,
Deepal

 Hi All,

  

 I am facing an issue with managing session between  an axis2 java
 service and C#.net console client. I am able to manage session between
 the same axis2 java service and java client(axis client) by using
 following code in my java  client:

  

 Service Client client = stub._getServiceClient();

   Options opt = client.getOptions();

   opt.setTimeOutInMilliSeconds(60);

   opt.setManageSession(true);

   client.setOptions(opt);

  

 And in my service implementation class I store user details into axis
 session using following code

  

 MessageContext msgContext = MessageContext./getCurrentMessageContext/();

 ServiceContext serviceContext =
 msgContext.getServiceContext();

 serviceContext.setProperty(ROLE_ID, roleId.toString());

 serviceContext.setProperty(AUTHENTICATION_STATUS,

 authenticationStatus);

 serviceContext.setProperty(USER_ID, userId);

 msgContext.setServiceContext(serviceContext);

  

 This is all working fine for me as long as I am using java client.

  

 Now my other requirement is to develop a C# .net console client for
 the same service. So I have generated the proxy class using Microsoft
 visual studio from wsdl and written C#.net console client which is
 working fine. But now I want to implement session management in a
 similar way as I am able to do so in java client. Can anyone please
 suggest me a way to do so.
  
 Thanks
 Amardeep Singh

-- 
Thank you!


http://blogs.deepal.org
http://deepal.org



Restful Service issues

2009-06-22 Thread Suchitha Koneru (sukoneru)
Hello All,
   I have implemented a user management restful service as
per the tutorial given in 
http://www.webmonkey.com/tutorial/RESTful_Web_Services_with_Apache_Axis2
http://www.webmonkey.com/tutorial/RESTful_Web_Services_with_Apache_Axis
2 .
Configuration details
Tomcat server 5.5
Java 1.6
Axis 2 1.4 version
 
 As per the instructions in the tutorial I have manually tweaked the
wsdl2.0 file to accomplish the following 
a) add whttp location and methods
b) Move all the beans/exceptions/complextypes under one namespace
 
The modifed wsdl is placed in the service archive. However, I have
landed into the following issues 
 
1)  when I access the url  
http://localhost:8080/Axis2Demo/services/UserMgmtServiceImpl?wsdl2 I do
not get 
the modified wsdl
 
2) when I try to access an existing user using the url  
http://localhost:8080/Axis2Demo/services/UserMgmtServiceImpl/User/1 , It
leads to End point reference not found error  as shown below.
ERROR] The service cannot be found for the endpoint reference (EPR)
/Axis2Demo/services/User/1

org.apache.axis2.AxisFault: The service cannot be found for the endpoint
reference (EPR) /Axis2Demo/services/User/1

 
I have attached the java code and wsdl2.0 for ready reference. I can
also provide additional details if needed. 
 
Do we need to explicitly pass the manually tweaked wsdl to services.xml
? I did not find any element/parameter in services.xml which can be used
for this purpose
 
 
Could you please let me know as to what could be the issue here? 
 
 
Thank you , 
Suchitha.


UserMgmtServiceImpl.java
Description: UserMgmtServiceImpl.java


UserMgmtServiceImpl.wsdl
Description: UserMgmtServiceImpl.wsdl


aar made by jax-ws

2009-06-22 Thread monna
I don't know how to deploy aar made by jax-ws.

[Configuration]
Axis2 1.5
Java 1.6

[behavior]

1) deploy jar into servicejars
  service-name.port-name appeared in
http://localhost:8080/axis2/services/ like EchoService.EchoServicePort
  The client can get correct response by accessing EPR
(http://localhost:8080/axis2/services/EchoService.EchoServicePort).

2) deploy aar into services
  service-name appeared in http://localhost:8080/axis2/services/ like
EchoService

  A) The client get error (A) by accessing EPR
(http://localhost:8080/axis2/services/EchoService.EchoServicePort).
 javax.xml.ws.soap.SOAPFaultException: The service cannot be found
for the endpoint reference (EPR)
127.0.0.1/axis2/services/EchoService.EchoServicePort

  B) The client get error (B) by accessing EPR
(http://localhost:8080/axis2/services/EchoService).
 javax.xml.ws.soap.SOAPFaultException: The service class cannot be
found for this AxisService.


[test]
I used Axis2 1.5 Samples/jaxws-sample/echo.

1) changed location
/wsdl:definitions/wsdl:service/wsdl:port/soap:addr...@location in
Echo.wsdl to http://localhost:8080/axis2/services/EchoService;.

Server Side:
2) generated source by wsimprt(jdk1.6.0_13).
3) using implement class (EchoServicePortImpl.java)
   comment out wsdLocation in @WebService and @HandlerChain
4) made aar (attachment:service.xml) and deployed services

Client Side:
5) generated source by wsimprt(jdk1.6.0_13).
6) using client (attachment:JaxwsClient.java)

//
package org.apache.axis2.jaxws.samples.echo;

 
public class JaxwsClient {

/**
 * @param args
 */
public static void main(String[] args) {
new JaxwsClient();
}

public JaxwsClient() {
EchoService service = new EchoService();
EchoServicePortType port = service.getEchoServicePort();
 
try {
EchoStringInput in = new ObjectFactory().createEchoStringInput();
in.setEchoInput(client string);
EchoStringResponse res = port.echoOperation(in);
System.out.println(res.getEchoResponse());
} catch (Exception e) {
System.out.println(e.getLocalizedMessage());
}
}
 
}
serviceGroup
service name=EchoService
parameter name=useOriginalwsdltrue/parameter
messageReceivers
messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out;
 class=org.apache.axis2.jaxws.server.JAXWSMessageReceiver/
/messageReceivers
parameter name=ServiceClassorg.apache.axis2.jaxws.samples.echo.EchoServicePortImpl/parameter
operation name=echoOperation mep=http://www.w3.org/2004/08/wsdl/in-out;
actionMapping/
/operation
/service
/serviceGroup



The referenced jar from a jar in servicejars

2009-06-22 Thread monna
I want to deploy a new service, but I don't want to stop Axis2.

I tested following in Axis2 1.4.1
I make sure hot deployment to servicejars is valid.
And I make sure that additional jar to Axis2's lib is not valid (not
able to referenced).

What can I do?

I make sure that the jar has referenced jars in it's lib directory like
aar is valid.
Is this new spec?

//