Re: [axis2] new ports show up in my WSDL with axis2 1.2

2007-06-29 Thread Deepal Jayasinghe
You can pick either one you want :)
 we generate multiple ports for different transports , so if you want
http then select port which has http  portAddress .

Thanks
Deepal

Vickram Jain wrote:
 I've just upgraded to Axis2 1.2 for an existing set of service
 developed and deployed under 1.1.1. I include a WSDL file that I
 created in my aar -- but it now generates additional ports as below:

 - # wsdl:service name=*MyService*
 - # wsdl:port name=*MyServiceSOAP11port_http*
 binding=*fc:MyServiceSOAP11Binding*
   soap:address
 location=*http://192.168.2.10:8080/axis2/services/MyService*; /
   /wsdl:port
 - # wsdl:port name=*MyServiceSOAP11port_tcp1*
 binding=*fc:MyServiceSOAP11Binding*
   soap:address
 location=*tcp://192.168.2.10:6061/axis2/services/MyService* /
   /wsdl:port
 - # wsdl:port name=*MyServiceSOAP12port_http*
 binding=*fc:MyServiceSOAP12Binding*
   soap12:address
 location=*http://192.168.2.10:8080/axis2/services/MyService*; /
   /wsdl:port
 - # wsdl:port name=*MyServiceSOAP12port_tcp1*
 binding=*fc:MyServiceSOAP12Binding*
   soap12:address
 location=*tcp://192.168.2.10:6061/axis2/services/MyService* /
   /wsdl:port
 - # wsdl:port name=*MyServiceHttpport*
 binding=*fc:MyServiceHttpBinding*
   http:address
 location=*http://192.168.2.10:8080/axis2/services/MyService*; /
   /wsdl:port

 The _tcp1 ports were not in the WSDL generated in 1.1.1 -- my
 (non-AXIS) client gets confused now because it cannot determine which
 is the default SOAP11 or SOAP12 binding it should use (that's what it
 says at least). Is this customizable somehow?

 Thanks,

 Vickram

-- 
Thanks,
Deepal

The highest tower is built one brick at a time



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



Re: Problem with axis2/adb stub handling array containing null values

2007-06-29 Thread Amila Suriarachchi

Thank you for reporting this issue.
I fixed it in the trunk. Please have a look at with a nightly build.

On 6/28/07, Konstantinos Karadamoglou [EMAIL PROTECTED]
wrote:



Hello all,

I 've got a problem using the axis2/adb generated stubs when calling a
specific method of my targeted web-service. In details an exception occurs
when axis2  fails to unmarshal a array of xsd:decimal which contain
 xsd:nill=true values to an array of BigDecimal.

Here is the exception:

*java.lang.RuntimeException*: *
org.apache.axis2.databinding.utils.ConverterUtil$ObjectConversionException
*: *java.lang.ArrayStoreException*
at com.db.DBWebServiceStub.fromOM(*DBWebServiceStub.java:5629*)
at com.db.DBWebServiceStub.getHistoricNav(*DBWebServiceStub.java
:582*)
at com.db.DBWebServiceStubTest.testGetHistoricNav(*
DBWebServiceStubTest.java:66*)

By debugging the axis2 code I found out that the code fails in the
following method which tries using refletion to create a BigDecimal object
from its string constructor having null as a parameter. Here is the axis 2
code:

 *public* *static* Object getObjectForClass(Class clazz, String value) {
//first see whether this class has a constructor that can
//take the string as an argument.
*boolean* continueFlag = *false*;
*try* {
Constructor stringConstructor = 
clazz.getConstructor(*new*Class[]{String.
*class*});
*return* stringConstructor.newInstance(*new* Object[]{value});
} *catch* (NoSuchMethodException e) {
//oops - no such constructors - continue with the
//parse method
continueFlag = *true*;
}
...

Sould the code above code handle cases of null values?

Do you know how can I force adb to unmarshal the array of xsd:decimal
(containing a mix of null and not null values) into an BigDecimal array?
(the stub works whenever I get an array of only null values or only not null
values)

I use the apache axis2-1.2 distribution.

The wsdl definition of the call is the following:

 xsd:complexType name=*ArrayOfDecimal*
*-*http://localhost:52979/wsexplorer//wsdl/forms/WSDLDetailsSourceView.jsp#
xsd:sequence
* * xsd:element maxOccurs=*unbounded* minOccurs=*0* 
name=*decimal*nillable
=*true* type=*xsd:decimal* /
* * /xsd:sequence
* * /xsd:complexType

*-*http://localhost:52979/wsexplorer//wsdl/forms/WSDLDetailsSourceView.jsp#
xsd:element name=*getHistoricNavResponse*
*-*http://localhost:52979/wsexplorer//wsdl/forms/WSDLDetailsSourceView.jsp#
xsd:complexType
*-*http://localhost:52979/wsexplorer//wsdl/forms/WSDLDetailsSourceView.jsp#
xsd:sequence
* * xsd:element maxOccurs=*1* minOccurs=*1* name=*out* nillable=*
true* type=*tns:ArrayOfDecimal* /
* * /xsd:sequence
* * /xsd:complexType
* * /xsd:element

An example soap response which triggers the exception is included below:

soap:Envelope xmlns:soap=*http://schemas.xmlsoap.org/soap/envelope/*xmlns:xsd
=*http://www.w3.org/2001/XMLSchema*; xmlns:xsi=*
http://www.w3.org/2001/XMLSchema-instance*;
*-*http://localhost:52979/wsexplorer/wsdl/soap_envelope_xml.jsp?soapEnvelopeType=1#
soap:Body
*-*http://localhost:52979/wsexplorer/wsdl/soap_envelope_xml.jsp?soapEnvelopeType=1#
getHistoricNavResponse xmlns=*http://www.db.com*;
*-*http://localhost:52979/wsexplorer/wsdl/soap_envelope_xml.jsp?soapEnvelopeType=1#
out
* * decimal xsi:nil=*true* /
* * decimal xsi:nil=*true* /
   decimal*111.38*/decimal
* * decimal*111.38*/decimal
* * decimal*111.38*/decimal
* * decimal*111.54*/decimal
* * /out
* * /getHistoricNavResponse
* * /soap:Body
* * /soap:

Thank you in advance,


Konstantinos Karadamoglou
Rates eCommerce Autobahn FI Team
Investment Banking IT
Deutsche Bank London
Tel: +44 20 754 76349
---

This e-mail may contain confidential and/or privileged information. If you

are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.





--
Amila Suriarachchi,
WSO2 Inc.


Re: [Axis2-1.2] how to omit ReplyTo header in outgoing one-way messages

2007-06-29 Thread Brian De Pradine
Hi Eran,

Actually, I meant exactly the opposite that INCLUDE_OPTIONAL_HEADERS has 
nothing to do with fixing this particular problem. It may be that 
INCLUDE_OPTIONAL_HEADERS may be a bit of a misnomer which may have led to 
some of the confusion. I have now checked in the fix for this so let me 
know if there are any other issues.

Cheers

Brian DePradine
Web Services Development
IBM Hursley
External  +44 (0) 1962 816319 Internal 246319

If you can't find the time to do it right the first time, where will you 
find the time to do it again?


Eran Chinthaka [EMAIL PROTECTED] wrote on 28/06/2007 22:51:54:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Brian,
 
 Did you mean to say we should enable this for both addressing versions?
 Just wanted to clarify. If yes +1 from me.
 
 Thanks,
 Chinthaka
 
 Brian De Pradine wrote:
  
  Hello Andreas and Chinthaka,
  
  You are correct that the INCLUDE_OPTIONAL_HEADERS property is only 
used
  for 2005/08 addressing. It is used to turn on/off the spec defined
  defaulting behaviour with regard to the addressing headers sent in a
  message. As the 2004/08 spec does not define similar defaulting
  behaviour this property is not used when that spec is engaged.
  
  All that being said, the current behaviour is not correct, so please
  raise a JIRA to cover this issue [1].
  
  [1] http://issues.apache.org/jira/browse/AXIS2
  
  Cheers
  
  Brian DePradine
  Web Services Development
  IBM Hursley
  External  +44 (0) 1962 816319 Internal 246319
  
  If you can't find the time to do it right the first time, where will 
you
  find the time to do it again?
  
  
  Eran Chinthaka [EMAIL PROTECTED] wrote on 28/06/2007 04:01:13:
  
  Hi Andreas,
  
  I looked at the code and in AddressingOutHandler.java:425 it checks
  includeOptionalHeaders property together with the addressing version.
  Basically what it means is that includeOptionalProperty param will 
only
  work for WS-A final version.
  When I looked at svn history that line was committed by David Illsley,
  so I assume he must have a good reason to do it only for the final
  version.
  Let's wait and see why he did that.
  
  I cc'ed this to David also so I hope he will chime in.
  
  Chinthaka
  
  Andreas Bobek wrote:
  Hello,
  
  how can I omit the ReplyTo header in outgoing one way messages? I use
  submission version of WS-Addressing and a fire-and-forget client. I
  inspected the addressing code a little bit and found a
  INCLUDE_OPTIONAL_HEADERS option, but setting it to false was not
  successful.
  
  Here is the call:
  
  public static final void main(String[] s) {
  try {
 String repository = s[0];
 ConfigurationContext confCtxt = ConfigurationContextFactory
.createConfigurationContextFromFileSystem(repository,
   (new File(repository + /conf/axis2.xml))
  .getAbsolutePath());
 ListenerManager listenerManager = new ListenerManager();
 listenerManager.init(confCtxt);
 listenerManager.start();
 Options options = new Options();
  
  
options.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
 options.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,
AddressingConstants.Submission.WSA_NAMESPACE);
 options.setAction(anyAction);
  
  
options.setProperty(AddressingConstants.INCLUDE_OPTIONAL_HEADERS,false);
 // transport settings...
 ServiceClient client = new ServiceClient(confCtxt, null);
 client.setOptions(options);
 OMFactory factory = OMAbstractFactory.getOMFactory();
 OMElement el = factory.createOMElement(Test, null);
 client.fireAndForget(el);
  }
  catch (Exception e) {
 e.printStackTrace();
  }
  
  
  This is what is sent:
  
  ?xml version='1.0' encoding='UTF-8'?
  soapenv:Envelope
  xmlns:wsa=http://schemas.xmlsoap.org/ws/2004/08/addressing;
  xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
  soapenv:Header
  wsa:ReplyTo
  wsa:Address
  
  http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
  /wsa:Address
  /wsa:ReplyTo
  wsa:MessageID
  urn:uuid:01673833EEDE7612381182964039233
  /wsa:MessageID
  wsa:Action
  anyAction
  /wsa:Action
  /soapenv:Header
  soapenv:Body
  Test
  /Test
  /soapenv:Body
  /soapenv:Envelope
  
  
  ReplyTo is optional in Submission version. So why it is set? And how
  can I
  omit it?
  I think this was not the case in earlier versions.
  
  
  Thanks,
  Andreas Bobek.
  
  
  -
  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] Please VOTE for your favorite bug to be fixed.

2007-06-29 Thread Michele Mazzucco
Dims,

what about postponing the 1.3 release and fixing (at least) all the
blockers? ;)


Michele

On Thu, 2007-06-28 at 17:37 -0400, Davanum Srinivas wrote:
 Dear Axis2 Users,
 
 We are working hard on cleaning up the issues in JIRA. If there is a
 bug you definitely want fixed in the forthcoming Axis2 1.3, please add
 a comment in the specific bug. Or better still click on the VOTE
 button in JIRA and indicate that you would like that bug fixed
 quickly.
 
 If you don't see a bug report, please add one and upload whatever you
 can that will help with recreating the problem
 (wsdl/xsd/request/response/code..). We've marked a lot of items as
 blockers. But may end up deciding to downgrade them if there are
 workarounds or for other reasons. So it's important to put in your 2
 cents in the JIRA via VOTE's/comments.
 
 thanks,
 dims
 


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



Re: xmlbeans databinding?

2007-06-29 Thread Josh

Thanks Martin,  I check that out now.




On 6/27/07, Martin Gainty [EMAIL PROTECTED] wrote:


 Hi Josh

When you get a chance take a look at this tutorial on Generating
WebServiceClient using XMLBeans
http://ws.apache.org/axis2/1_1_1/userguide-creatingclients-xmlbeans.html

HTH
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.


- Original Message -
*From:* Josh [EMAIL PROTECTED]
*To:* axis-user axis-user@ws.apache.org
*Sent:* Tuesday, June 26, 2007 11:22 AM
*Subject:* xmlbeans databinding?


Hello,

I saw a section for ADB and Jibx databinding on the apache site.  Did I
miss the section on xmlbeans databinding or does it not exist?  Where can I
find more information on this?

Regards,

Joshua




Re: [Axis2] Please VOTE for your favorite bug to be fixed.

2007-06-29 Thread Davanum Srinivas

Michele,

We did not under the value of the Fix Version and we just kept
marking stuff as blockers. if you see my prev email, there are 2
buckets. first bucket is a blocker which mean stuff is totally broken
with no work around. 2nd is let's try to fix this for 1.3 bucket..

-- dims

On 6/29/07, Michele Mazzucco [EMAIL PROTECTED] wrote:

Dims,

what about postponing the 1.3 release and fixing (at least) all the
blockers? ;)


Michele

On Thu, 2007-06-28 at 17:37 -0400, Davanum Srinivas wrote:
 Dear Axis2 Users,

 We are working hard on cleaning up the issues in JIRA. If there is a
 bug you definitely want fixed in the forthcoming Axis2 1.3, please add
 a comment in the specific bug. Or better still click on the VOTE
 button in JIRA and indicate that you would like that bug fixed
 quickly.

 If you don't see a bug report, please add one and upload whatever you
 can that will help with recreating the problem
 (wsdl/xsd/request/response/code..). We've marked a lot of items as
 blockers. But may end up deciding to downgrade them if there are
 workarounds or for other reasons. So it's important to put in your 2
 cents in the JIRA via VOTE's/comments.

 thanks,
 dims



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





--
Davanum Srinivas :: http://davanum.wordpress.com

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



Re: WSDL2Java: generated classes in 1 gigantic java file

2007-06-29 Thread ro test

I tried the '-u' option and I'm still getting the same problem.  I used the
command below:


bin\wsdl2java.bat -u -p com.org1.service -uri org1.wsdl



On 6/28/07, Davanum Srinivas [EMAIL PROTECTED] wrote:


-u

On 6/28/07, ro test [EMAIL PROTECTED] wrote:
 Hi,

 I've a WSDL file and xsd file and I used the Axis2, bin/wsdl2java
utility to
 generate the java classes from wsdl using the following command:

 bin\wsdl2java.bat -p com.org1.service -uri org1.wsdl

 I see 5 different files created under com/org1/service directory with
the
 AWSServiceServiceStub.java file containing number of java classes.  This
is
 inconvenient for us.  Is it possible to generate all the classes in
separate
 files instead of 1 file?  If so, what is the command to use?

 Thanks a bunch.
 -Ray



--
Davanum Srinivas :: http://davanum.wordpress.com

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




order in the list of deployed Web services ?

2007-06-29 Thread Celinio . Fernandes
http://localhost:9000/myproject/servlet/AxisServlet

And now... Some Services

Is there a parameter in the globalConfiguration part that orders the 
list of services ?
they seem to appear randomly.

Thanks

Re: order in the list of deployed Web services ?

2007-06-29 Thread Martin Gainty
$CATALINA_HOME/webapps/axis2/WEB-INF/services/services.list

HTH
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

  - Original Message - 
  From: [EMAIL PROTECTED] 
  To: axis-user@ws.apache.org 
  Sent: Friday, June 29, 2007 9:15 AM
  Subject: order in the list of deployed Web services ?



  http://localhost:9000/myproject/servlet/AxisServlet 

  And now... Some Services 

  Is there a parameter in the globalConfiguration part that orders the list 
of services ? 
  they seem to appear randomly. 

  Thanks

Re: order in the list of deployed Web services ?

2007-06-29 Thread Celinio . Fernandes
It does not help since I am not using Axis2, but an older version.
There is no such services.list file.






Martin Gainty [EMAIL PROTECTED] 
29/06/2007 16:08
Veuillez répondre à
axis-user@ws.apache.org


A
axis-user@ws.apache.org
cc

Objet
Re: order in the list of deployed Web services ?






$CATALINA_HOME/webapps/axis2/WEB-INF/services/services.list

HTH
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please 
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.
- Original Message - 
From: [EMAIL PROTECTED] 
To: axis-user@ws.apache.org 
Sent: Friday, June 29, 2007 9:15 AM
Subject: order in the list of deployed Web services ?


http://localhost:9000/myproject/servlet/AxisServlet 

And now... Some Services 

Is there a parameter in the globalConfiguration part that orders the 
list of services ? 
they seem to appear randomly. 

Thanks


[Axis2}Addressing Problem

2007-06-29 Thread Amila Suriarachchi

I generated Code for the following wsdl [1] which is listed in the microsoft
interop site.
used the following command to codegen with a build I locally created for the
current svn.

sh wsdl2java.sh -uri
http://131.107.72.15/WSAddressingCR_Service_WCF/WSAddressingAugust2004.svc?wsdl-o
~/projects/microsoftInterop/addressing/ -ap -uw -u -p
org.tempuri.submission.echo

try to send a request to CustomBinding_Echo2 in following way

public void testCustomBinding_Echo2() {
   try {
   WSAddressingCRCustomBinding_Echo2Stub stub = new
WSAddressingCRCustomBinding_Echo2Stub(
   configurationContext,
   
http://131.107.72.15/WSAddressingCR_Service_WCF/WSAddressingAugust2004.svc/Soap11/Manual
);
   stub._getServiceClient().getOptions().setProperty(
AddressingConstants.WS_ADDRESSING_VERSION,
   AddressingConstants.Submission.WSA_NAMESPACE);
   stub._getServiceClient().getOptions().setProperty(
AddressingConstants.INCLUDE_OPTIONAL_HEADERS,true);

  // this is to redirect the message to tcpmon with out changing
the To field
   stub._getServiceClient().getOptions().setProperty(
Constants.Configuration.TRANSPORT_URL,
   
http://localhost:8085/WSAddressingCR_Service_WCF/WSAddressingAugust2004.svc/Soap11/Manual
);

   String result = stub.Echo(Test String);
   assertEquals(result,Test String);
  } catch (AxisFault axisFault) {
   axisFault.printStackTrace();
   fail();
   } catch (java.rmi.RemoteException e) {
   fail();
   }
}

here configuration context is point to defult axis2.xml and repository.

I got the follwing exception
org.apache.axis2.AxisFault: A required message information header, To,
MessageID, or Action, is not present.
   at
org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(
AddressingFaultsHelper.java:352)
   at
org.apache.axis2.addressing.AddressingFaultsHelper.triggerMessageAddressingRequiredFault
(AddressingFaultsHelper.java:272)
   at
org.apache.axis2.handlers.addressing.AddressingSubmissionInHandler.checkForMandatoryHeaders
(AddressingSubmissionInHandler.java:53)
   at
org.apache.axis2.handlers.addressing.AddressingInHandler.extractAddressingInformation
(AddressingInHandler.java:185)
   at org.apache.axis2.handlers.addressing.AddressingInHandler.invoke(
AddressingInHandler.java:94)
   at org.apache.axis2.engine.Phase.invoke(Phase.java:288)
   at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:225)
   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:146)
   at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
OutInAxisOperation.java:345)
   at org.apache.axis2.description.OutInAxisOperationClient.send(
OutInAxisOperation.java:388)
   at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
OutInAxisOperation.java:202)
   at org.apache.axis2.client.OperationClient.execute(OperationClient.java
:142)
   at
org.tempuri.submission.echo.WSAddressingCRCustomBinding_Echo2Stub.Echo
(WSAddressingCRCustomBinding_Echo2Stub.java:178)
   at
org.tempuri.submission.echo.WSAddressingCRSubmissionTest.testCustomBinding_Echo2
(WSAddressingCRSubmissionTest.java:184)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)

Here is the request and response messages
?xml version='1.0' encoding='UTF-8'?
  soapenv:Envelope xmlns:wsa=
http://schemas.xmlsoap.org/ws/2004/08/addressing; xmlns:soapenv=
http://schemas.xmlsoap.org/soap/envelope/;
 soapenv:Header
wsa:To
http://131.107.72.15/WSAddressingCR_Service_WCF/WSAddressingAugust2004.svc/Soap11/Manual
/wsa:To
wsa:ReplyTo
   wsa:Address
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
/wsa:Address
/wsa:ReplyTo

wsa:MessageIDurn:uuid:A26E71AFEBE8477B8D1183128682560/wsa:MessageID
wsa:Actionhttp://example.org/action/echoIn/wsa:Action
 /soapenv:Header
 soapenv:Body
s1:echoIn xmlns:s1=http://example.org/echo;Test
String/s1:echoIn
 /soapenv:Body
  /soapenv:Envelope0

response
s:Envelope xmlns:s=http://schemas.xmlsoap.org/soap/envelope/; xmlns:a=
http://schemas.xmlsoap.org/ws/2004/08/addressing;
  s:Header
 a:Action s:mustUnderstand=1http://example.org/action/echoOut
/a:Action
 a:RelatesTourn:uuid:A26E71AFEBE8477B8D1183128682560/a:RelatesTo
  /s:Header
  s:Body
 echoOut xmlns=http://example.org/echo;Test String/echoOut
  /s:Body/s:Envelope

A part from CustomBinding_Echo2 and CustomBinding_Echo3 ports in submmision
wsdl all other ports works fine.
(i.e final version wsdl works fine for all casses)

Can someone please explain the reason?

Thanks
Amila.

[1]

Re: [axis2] new ports show up in my WSDL with axis2 1.2

2007-06-29 Thread Vickram Jain

Deepal,

Ok, fair enough, I can do that. But to clarify my original point (which 
was not clear enough):


1) can I remove what I consider to be unnecessary ports in the WSDL and 
also prevent AXIS2 from providing services on those ports?
2) the WSDL that appears references IPs that are not active -- 
192.168.2.10? This is also confusing my client. Axis2 1.1.1 referenced 
localhost usually when I used that...


Thanks.
VJ



Deepal Jayasinghe wrote:

You can pick either one you want :)
 we generate multiple ports for different transports , so if you want
http then select port which has http  portAddress .

Thanks
Deepal

Vickram Jain wrote:
  

I've just upgraded to Axis2 1.2 for an existing set of service
developed and deployed under 1.1.1. I include a WSDL file that I
created in my aar -- but it now generates additional ports as below:

- # wsdl:service name=*MyService*
- # wsdl:port name=*MyServiceSOAP11port_http*
binding=*fc:MyServiceSOAP11Binding*
  soap:address
location=*http://192.168.2.10:8080/axis2/services/MyService*; /
  /wsdl:port
- # wsdl:port name=*MyServiceSOAP11port_tcp1*
binding=*fc:MyServiceSOAP11Binding*
  soap:address
location=*tcp://192.168.2.10:6061/axis2/services/MyService* /
  /wsdl:port
- # wsdl:port name=*MyServiceSOAP12port_http*
binding=*fc:MyServiceSOAP12Binding*
  soap12:address
location=*http://192.168.2.10:8080/axis2/services/MyService*; /
  /wsdl:port
- # wsdl:port name=*MyServiceSOAP12port_tcp1*
binding=*fc:MyServiceSOAP12Binding*
  soap12:address
location=*tcp://192.168.2.10:6061/axis2/services/MyService* /
  /wsdl:port
- # wsdl:port name=*MyServiceHttpport*
binding=*fc:MyServiceHttpBinding*
  http:address
location=*http://192.168.2.10:8080/axis2/services/MyService*; /
  /wsdl:port

The _tcp1 ports were not in the WSDL generated in 1.1.1 -- my
(non-AXIS) client gets confused now because it cannot determine which
is the default SOAP11 or SOAP12 binding it should use (that's what it
says at least). Is this customizable somehow?

Thanks,

Vickram



  


[AXIS2] Client API in EJB

2007-06-29 Thread Huy Tran
Hi,
I have EJB that needs to invoke web service
asynchronously. Is the ServiceClient's
sendReceiveNonBlocking method spawn a new thread to
handle the web service call? Because it's not
recommended to spawn user threads in EJB container, is
it safe to use sendReceiveNonBlocking from my ejb?

Huy


   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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



Re: [AXIS2] Client API in EJB

2007-06-29 Thread Martin Gainty
Appears that the asynchronous sendReceiveNonBlocking is not yet available in 
EJBProvider

http://www.stylusstudio.com/api/axis-1_1/org/apache/axis/providers/java/EJBProvider.htm

Anyone else?
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Huy Tran [EMAIL PROTECTED]

To: axis-user@ws.apache.org
Sent: Friday, June 29, 2007 12:00 PM
Subject: [AXIS2] Client API in EJB



Hi,
I have EJB that needs to invoke web service
asynchronously. Is the ServiceClient's
sendReceiveNonBlocking method spawn a new thread to
handle the web service call? Because it's not
recommended to spawn user threads in EJB container, is
it safe to use sendReceiveNonBlocking from my ejb?

Huy




Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

-
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: axis + tomcat tuning issue

2007-06-29 Thread Gabriela Gheorghe

Hi Michelle,

Thanks again for the quick reply.

Regarding the hyperthreading: in fact 196% in user space of out 200% is
different that 98% on the whole system. The top command shows two
categories of measurements: on the whole (this is the output I pasted, with:
80.2% CPU in userspace, and 5.9% idle, while in the same time, top showed
196% out of 200 , for the tomcat process).

I cannot use Axis2 but I can use Tomcat6.x. For the moment I am using Tomcat
5.5.

I managed to eliminate IO operations (logging in tomcat) and now I am using
another system monitor (mpstat from systat package); this one is a little
bit better and tells me the IO percents the CPU has: it is now 0 %. However,
the idle times are now up to 10% of the CPU, and now I have  no idea why.
The CPU waits because it was no data to process, but the receiver queue is
empty on the network card, so the data is coming ... somewhere on the way.

I tried to tune again the heap size (to very high and very low), the
connection timeout in tomcat is now 0. What could I have missed ?

Thank you for the help,
Gabriela

On 6/26/07, Michele Mazzucco [EMAIL PROTECTED] wrote:


Gabriela,

please see my comments inline.

On Tue, 2007-06-26 at 16:32 +0200, Gabriela Gheorghe wrote:
 Already done the 1rst thing: increased the pool size from JMeter. The
 results do not differ much, and this is my dilemma. You see, there are
 limits when increasing the pool size of requests, depending on the
 Tomcat configuration (no of active threads, request queue lenght , for
 example), and it was the first possible think to do when I noticed
 the server could do more.

As I said in my previous post there are 2 thread pools:
1 - the tomcat connector thread pool
2 - the axis2 thread pool: your requests are processed using threads
coming from here


 I changed and studied the heap size and thread pool size in Tomcat,
 but nothing new happened. The problem is: I have only 196 out of 200%
 CPU occupied and I cannot see why. The top command shows me

I don't get this point. How can you get 196%?, is it because of the
hyper-threading (and so it's actually 98%)? If so, don't you think it's
enough ;)?

 Cpu(s): 80.2%us, 11.7%sy ,  0.0%ni,  5.9%id,  0.0%wa,  0.5%hi,  1.8%si,
 0.0%s

 which means that some 5.9 of the processor is idle, while in Jmeter I
 have 100 threads running in a loop making requests, and in Tomcat I
 have 150 threads able to run simultaneously. Netstat -t shows me the
 receiver queue is empty, so everything is being handled, but still, a
 part of the processor is resting.

Which version of Tomcat are you running?, can you try Tomcat 6.x with
NIO connector?


Michele

 Why ?!

 [Thank you for the responses]

 --
 Kind regards / Freundliche Gruesse,
 Gabriela Gheorghe


 Email: [EMAIL PROTECTED] / [EMAIL PROTECTED]

 On 6/26/07, Michele Mazzucco  [EMAIL PROTECTED] wrote:
 On Tue, 2007-06-26 at 10:22 +0200, Gabriela Gheorghe wrote:
  Thanks for the reply!
 
  The problem is not caused by I/O, because my web services do
 no
  operations on the disk. The client is a JMeter instance
 and  the CPU
  load on the client machine is almost nothing (less than 8-10
 %).
 
 Try to increase the number of threads in JMeter.

  So what I am looking for is for tuning some other parameters
 in
  Tomcat, beside heap size and connection timeout. I am still
 loking for
  the explaination.
 
 Actually they do if services return results to JMeter. You
 could also
 try to increase the tomcat/axis2 thread pool size.


 Michele

  All the best,
  Gabriela
 
  On 6/25/07, Michele Mazzucco  [EMAIL PROTECTED]
 wrote:
 
  On 25 Jun 2007, at 19:33, Gabriela Gheorghe wrote:
 
   The problem is that I cannot run as many /
 time-consuming
  requests
   so that
   the processor on the server reaches 100% CPU load.
 It only
  reaches
   90%, so
   the measurements for throughput that I need to
 obtain by
  this testing,
   cannot be too relevant; I want 100% of the CPU
 working.
  
  Are you sure that the bottleneck is not the client?
 
   So my question would be - why is 10% of the CPU
 idle ?
 
  Couldn't it be because of I/O?
 
 
 
  Michele
 
 
 
 

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

Re: axis + tomcat tuning issue

2007-06-29 Thread Gabriela Gheorghe

Could it be axis ? Do you know about any Axis performance tests, and how
they are done ?

Thanks again!

On 6/29/07, Gabriela Gheorghe [EMAIL PROTECTED] wrote:


Hi Michelle,

Thanks again for the quick reply.

Regarding the hyperthreading: in fact 196% in user space of out 200% is
different that 98% on the whole system. The top command shows two
categories of measurements: on the whole (this is the output I pasted, with:
80.2% CPU in userspace, and 5.9% idle, while in the same time, top showed
196% out of 200 , for the tomcat process).

I cannot use Axis2 but I can use Tomcat6.x. For the moment I am using
Tomcat 5.5.

I managed to eliminate IO operations (logging in tomcat) and now I am
using another system monitor (mpstat from systat package); this one is a
little bit better and tells me the IO percents the CPU has: it is now 0 %.
However, the idle times are now up to 10% of the CPU, and now I have  no
idea why. The CPU waits because it was no data to process, but the receiver
queue is empty on the network card, so the data is coming ... somewhere on
the way.

I tried to tune again the heap size (to very high and very low), the
connection timeout in tomcat is now 0. What could I have missed ?

Thank you for the help,
Gabriela

On 6/26/07, Michele Mazzucco [EMAIL PROTECTED] wrote:

 Gabriela,

 please see my comments inline.

 On Tue, 2007-06-26 at 16:32 +0200, Gabriela Gheorghe wrote:
  Already done the 1rst thing: increased the pool size from JMeter. The
  results do not differ much, and this is my dilemma. You see, there are

  limits when increasing the pool size of requests, depending on the
  Tomcat configuration (no of active threads, request queue lenght , for
  example), and it was the first possible think to do when I noticed
  the server could do more.

 As I said in my previous post there are 2 thread pools:
 1 - the tomcat connector thread pool
 2 - the axis2 thread pool: your requests are processed using threads
 coming from here

 
  I changed and studied the heap size and thread pool size in Tomcat,
  but nothing new happened. The problem is: I have only 196 out of 200%
  CPU occupied and I cannot see why. The top command shows me
 
 I don't get this point. How can you get 196%?, is it because of the
 hyper-threading (and so it's actually 98%)? If so, don't you think it's
 enough ;)?

  Cpu(s): 80.2%us, 11.7%sy ,  0.0%ni,  5.9%id,  0.0%wa,  0.5%hi,  1.8%si
 ,
  0.0%s
 
  which means that some 5.9 of the processor is idle, while in Jmeter I
  have 100 threads running in a loop making requests, and in Tomcat I
  have 150 threads able to run simultaneously. Netstat -t shows me the
  receiver queue is empty, so everything is being handled, but still, a
  part of the processor is resting.
 
 Which version of Tomcat are you running?, can you try Tomcat 6.x with
 NIO connector?


 Michele

  Why ?!
 
  [Thank you for the responses]
 
  --
  Kind regards / Freundliche Gruesse,
  Gabriela Gheorghe
 
 
  Email: [EMAIL PROTECTED] / [EMAIL PROTECTED]
 
  On 6/26/07, Michele Mazzucco  [EMAIL PROTECTED] wrote:
  On Tue, 2007-06-26 at 10:22 +0200, Gabriela Gheorghe wrote:
   Thanks for the reply!
  
   The problem is not caused by I/O, because my web services do

  no
   operations on the disk. The client is a JMeter instance
  and  the CPU
   load on the client machine is almost nothing (less than 8-10
  %).
  
  Try to increase the number of threads in JMeter.
 
   So what I am looking for is for tuning some other parameters
  in
   Tomcat, beside heap size and connection timeout. I am still
  loking for
   the explaination.
  
  Actually they do if services return results to JMeter. You
  could also
  try to increase the tomcat/axis2 thread pool size.
 
 
  Michele
 
   All the best,
   Gabriela
  
   On 6/25/07, Michele Mazzucco  [EMAIL PROTECTED]
  wrote:
  
   On 25 Jun 2007, at 19:33, Gabriela Gheorghe wrote:
  
The problem is that I cannot run as many /
  time-consuming
   requests
so that
the processor on the server reaches 100% CPU load.
  It only
   reaches
90%, so
the measurements for throughput that I need to
  obtain by
   this testing,
cannot be too relevant; I want 100% of the CPU
  working.
   
   Are you sure that the bottleneck is not the client?
  
So my question would be - why is 10% of the CPU
  idle ?
  
   Couldn't it be because of I/O?
  
  
  
   Michele
  
  
  
  
 
 

Re: Weird Generated WSDL with Axis 2

2007-06-29 Thread Davanum Srinivas

compile your classes with debug option on before you deploy the classes.

On 6/29/07, Petr V. [EMAIL PROTECTED] wrote:

I generated wsdl via Axis2 by accessing my service via URL and I see param
names as param0 and param1 etc.

I did not expect that, I was hoping to see my proper parameters name in
wsdl.

Can any one let me know please what is going on or is there any work around.

Thanks,

Petr




 
Shape Yahoo! in your own image. Join our Network Research Panel today!





--
Davanum Srinivas :: http://davanum.wordpress.com

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



Re: Weird Generated WSDL with Axis 2

2007-06-29 Thread Davanum Srinivas

It's a basic java problem. you can test it using javap command, if you
compile a class with debug on, it stores the names of the parameters,
if you don't then the class does not have that information. If the
class does not have that information, then obviously we can't get it
from the class when we construct the wsdl.

thanks,
dims

On 6/29/07, Petr V. [EMAIL PROTECTED] wrote:

Thanks for such a quick reply.

Would you like to see the log or would it solve the problem. Is that known
problem with Axis2, some one in my team told me that it is known issue and I
did not believe him as this is such a basic issue.

Thanks,

Petr


Davanum Srinivas [EMAIL PROTECTED] wrote:
 compile your classes with debug option on before you deploy the classes.

On 6/29/07, Petr V. wrote:
 I generated wsdl via Axis2 by accessing my service via URL and I see param
 names as param0 and param1 etc.

 I did not expect that, I was hoping to see my proper parameters name in
 wsdl.

 Can any one let me know please what is going on or is there any work
around.

 Thanks,

 Petr




 
 Shape Yahoo! in your own image. Join our Network Research Panel today!




--
Davanum Srinivas :: http://davanum.wordpress.com

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




 
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.





--
Davanum Srinivas :: http://davanum.wordpress.com

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



[axis2] Where can i get the latest version of nightly builds

2007-06-29 Thread Anil Chukkapalli

Hi

Where can i get the latest version of the nightly builds. If this is not
possible do i have to use svn to get the source and build it on my box.

Thanks
Anil


Re: [axis2] Where can i get the latest version of nightly builds

2007-06-29 Thread Davanum Srinivas

http://people.apache.org/dist/axis2/nightly/

On 6/29/07, Anil Chukkapalli [EMAIL PROTECTED] wrote:

Hi

 Where can i get the latest version of the nightly builds. If this is not
possible do i have to use svn to get the source and build it on my box.

Thanks
Anil




--
Davanum Srinivas :: http://davanum.wordpress.com

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



Re: Weird Generated WSDL with Axis 2

2007-06-29 Thread Deepal Jayasinghe
Hi Petr ,

If you compile your source file keeping debug option turn on , then you
will get the correct value.
It is not a problem of Axis2 , if the byte code has the correct value
then we will display that correctly.

Thanks
Deepal
 I generated wsdl via Axis2 by accessing my service via URL and I see
 param names as param0 and param1 etc.

 I did not expect that, I was hoping to see my proper parameters name
 in wsdl.

 Can any one let me know please what is going on or is there any work
 around.

 Thanks,

 Petr


 
 Shape Yahoo! in your own image. Join our Network Research Panel today!
 http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7


-- 
Thanks,
Deepal

The highest tower is built one brick at a time



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



Re: [AXIOM] How to serialize axiom document without building objects in memory

2007-06-29 Thread Tammy Dugan
After doing some more testing, it looks like my solution works. Before, 
I never got an out of memory message, but the returned xml file was 
empty for a long time (20 minutes or more even though content was being 
written to it the whole time). I never let the process finish, though. I 
guess a larger amount than I expected was buffered before being written. 
I received no out of memory errors on a 46MB file so I guess everything 
is fine. I will do a little more testing to confirm this.


Tammy

Davanum Srinivas wrote:

Ah. Sorry. need to think about that

On 6/28/07, Tammy Dugan [EMAIL PROTECTED] wrote:

I'm not streaming attachments. I am streaming soap body xml. Will the
custom dataHandler work for that too?

Thanks,

Tammy

Davanum Srinivas wrote:
 http://marc.info/?l=axis-userm=118282183314980w=2

 On 6/28/07, Tammy Dugan [EMAIL PROTECTED] wrote:
 With a little work, I was able to get streaming soap body xml output
 with input coming from a database to work for very large files 
(200MB).

 Thanks, Ryan. However, now I want to be able to stream dynamically
 created xml. Here is most of the code from my service:

 StringDOM dom = new StringDOM();
 PipedOutputStream output = new PipedOutputStream();
 final StringDocument variableListDoc =
 dom.createDocument(output);
 InputStream inputStream = new PipedInputStream(output);
 OMFactory factory = OMAbstractFactory.getOMFactory();
 OMElement resultElement =
 
XMLUtil.parseXMLFromStreamOM(inputStream,getQueryVariableListResponse,true,factory); 



 final StringElement resultXML = (StringElement)
 variableListDoc.createElement(RESPONSE_XML_NODENAME);
 Thread thread = new Thread(new Runnable()
 {
 public void run()
 {
 try
 {
 Connection con =
 db.openConnection();
 StringElement result =
 (StringElement) qdb.readQueryVariableList(con, db, variableListDoc);
 
resultXML.appendChild(result);

 result.closeBuffer();
 } catch (Exception e)
 {

 InitializationServlet.error(, e);
 }
 }
 });

 thread.start();

 return resultElement;


 StringDom is a DOM implementation one of our developers wrote that
 streams the content of a node added through an appendChild call, thus
 very little is ever held in memory.
 When the above service runs, it is buffering the content of
 resultElement in memory and not streaming it to the response. I
 copied the exact same code to a local test case and ran
 serializeAndConsume on resultElement.
 When I did this, everything streamed just fine. I am using a Custom
 OMDataSource to create resultElement as an OMSourcedElementImpl to
 facilitate the streaming. When I ran the local example that streamed,
 the following method was called in my custom data source:

 public void serialize(OutputStream output, OMOutputFormat format)
 throws XMLStreamException
 {
 System.out.println(CustomDataSource
 serialized(output,format));
 try
 {

 org.regenstrief.util.Util.bufferedReadWrite(this.data, output, 
false);

 } catch (IOException e)
 {
 throw new XMLStreamException(e);
 }
 }

 where bufferedReadWrite just reads the bytes from an input stream and
 writes them to an output stream in chunks. The serialization method
 called when I executed the service was the following:

 public void serialize(XMLStreamWriter xmlWriter) throws
 XMLStreamException
 {
 System.out.println(CustomDataSource
 serialized(xmlWriter));
 XMLStreamReader reader = null;

 try
 {
 StreamingOMSerializer serializer = new
 StreamingOMSerializer();
 reader =
 StAXUtils.createXMLStreamReader(this.data);
 serializer.serialize(reader, xmlWriter);//
 OutOfMemory error here
 } catch (Throwable e)
 {
 InitializationServlet.error(, e);
 }
 }

 This method would not stream the data to the output. Is there
 something about StreamingOMSerializer that it is hanging while the
 xml is getting dynamically built? This same method works just fine 
with

 an InputStream from a database so why doesn't it work for a
 PipedInputStream?

 Thanks,

 Tammy


 I've had some luck getting this to work by implementing an
 OMDataSource that
 doesn't start writing XML until it is passed a writer and then using
 it to
 create an 

Weird Generated WSDL with Axis 2

2007-06-29 Thread Petr V.
I generated wsdl via Axis2 by accessing my service via URL and I see param 
names as param0 and param1 etc.

I did not expect that, I was hoping to see my proper parameters name in wsdl.

Can any one let me know please what is going on or is there any work around.

Thanks,

Petr



   
-
Shape Yahoo! in your own image.  Join our Network Research Panel today!

Re: Weird Generated WSDL with Axis 2

2007-06-29 Thread Petr V.
Thanks for such a quick reply.

Would you like to see the log or would it solve the problem. Is that known 
problem with Axis2, some one in my team told me that it is known issue and I 
did not believe him as this is such a basic issue.

Thanks,

Petr


Davanum Srinivas [EMAIL PROTECTED] wrote: compile your classes with debug 
option on before you deploy the classes.

On 6/29/07, Petr V.  wrote:
 I generated wsdl via Axis2 by accessing my service via URL and I see param
 names as param0 and param1 etc.

 I did not expect that, I was hoping to see my proper parameters name in
 wsdl.

 Can any one let me know please what is going on or is there any work around.

 Thanks,

 Petr




  
 Shape Yahoo! in your own image. Join our Network Research Panel today!




-- 
Davanum Srinivas :: http://davanum.wordpress.com

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



   
-
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. 

Re: [AXIOM] How to serialize axiom document without building objects in memory

2007-06-29 Thread Tammy Dugan
Disregard my comment on the large buffer size. I found an error with my 
test sending program that was buffering the response. Anyway, the piped 
solution seems to work just fine and I tested the piping for a file up 
to 333MB in size. Thus, I can successfully stream data in an OMElement 
from the database or from dynamically generated xml. Thanks, Davanum, 
and everyone else for your help and being patient with me while I 
learning how Axis2 works. :)


In summary, these were the key steps:

1. create an OMSourcedElementImpl and be VERY CAREFUL not to manipulate 
it too much or the whole thing will build into memory. You can append it 
to a parent without it building, though, which is useful. Here is how I 
made it:


OMNamespace ns = new OMNamespaceImpl(,);
String localName = testing; //name of root element from xml input stream
OMFactory factory = OMAbstractFactory.getOMFactory();
OMDataSource dataSource = new CustomDataSource(xmlDefinition);
return new OMSourcedElementImpl(localName, ns, factory, dataSource);

2. create a custom data source that streams the output. Here is the 
datasource I created:


public class CustomDataSource implements OMDataSource
{
   private final InputStream data;

   public CustomDataSource(InputStream data)
   { this.data = data; }

   public void serialize(XMLStreamWriter xmlWriter) throws 
XMLStreamException

   {
   XMLStreamReader reader = null;

   try
   {
   StreamingOMSerializer serializer = new StreamingOMSerializer();
   reader =  StAXUtils.createXMLStreamReader(this.data);
  
   serializer.serialize(reader, xmlWriter);// OutOfMemory when 
MTOM enabled because output does not stream. Bug is filed and is being fixed

   } catch (Throwable e)
   {
   InitializationServlet.error(, e);
   }
   }
//need to implement other methods for interface but above method gets 
called when OMElement returned from a service

}

Make sure MTOM is disabled for streaming to work do to a bug that is 
currently being fixed.


Hope this helps someone.

Thanks,

Tammy

Tammy Dugan wrote:
After doing some more testing, it looks like my solution works. 
Before, I never got an out of memory message, but the returned xml 
file was empty for a long time (20 minutes or more even though content 
was being written to it the whole time). I never let the process 
finish, though. I guess a larger amount than I expected was buffered 
before being written. I received no out of memory errors on a 46MB 
file so I guess everything is fine. I will do a little more testing to 
confirm this.


Tammy

Davanum Srinivas wrote:

Ah. Sorry. need to think about that

On 6/28/07, Tammy Dugan [EMAIL PROTECTED] wrote:

I'm not streaming attachments. I am streaming soap body xml. Will the
custom dataHandler work for that too?

Thanks,

Tammy

Davanum Srinivas wrote:
 http://marc.info/?l=axis-userm=118282183314980w=2

 On 6/28/07, Tammy Dugan [EMAIL PROTECTED] wrote:
 With a little work, I was able to get streaming soap body xml output
 with input coming from a database to work for very large files 
(200MB).

 Thanks, Ryan. However, now I want to be able to stream dynamically
 created xml. Here is most of the code from my service:

 StringDOM dom = new StringDOM();
 PipedOutputStream output = new PipedOutputStream();
 final StringDocument variableListDoc =
 dom.createDocument(output);
 InputStream inputStream = new PipedInputStream(output);
 OMFactory factory = OMAbstractFactory.getOMFactory();
 OMElement resultElement =
 
XMLUtil.parseXMLFromStreamOM(inputStream,getQueryVariableListResponse,true,factory); 



 final StringElement resultXML = (StringElement)
 variableListDoc.createElement(RESPONSE_XML_NODENAME);
 Thread thread = new Thread(new Runnable()
 {
 public void run()
 {
 try
 {
 Connection con =
 db.openConnection();
 StringElement result =
 (StringElement) qdb.readQueryVariableList(con, db, variableListDoc);
 
resultXML.appendChild(result);

 result.closeBuffer();
 } catch (Exception e)
 {

 InitializationServlet.error(, e);
 }
 }
 });

 thread.start();

 return resultElement;


 StringDom is a DOM implementation one of our developers wrote that
 streams the content of a node added through an appendChild call, 
thus

 very little is ever held in memory.
 When the above service runs, it is buffering the content of
 resultElement in memory and not streaming it to the response. I
 copied the exact same code to a local test case and 

Re: Weird Generated WSDL with Axis 2

2007-06-29 Thread Petr V.
Thanks Davanum,

I am using maven to compile my classes and by default debug flag is on for 
compiling code.I als opexplicitly set it true.

Any more ideas please.

Thanks,

Petr


Davanum Srinivas [EMAIL PROTECTED] wrote: It's a basic java problem. you can 
test it using javap command, if you
compile a class with debug on, it stores the names of the parameters,
if you don't then the class does not have that information. If the
class does not have that information, then obviously we can't get it
from the class when we construct the wsdl.

thanks,
dims

On 6/29/07, Petr V.  wrote:
 Thanks for such a quick reply.

 Would you like to see the log or would it solve the problem. Is that known
 problem with Axis2, some one in my team told me that it is known issue and I
 did not believe him as this is such a basic issue.

 Thanks,

 Petr


 Davanum Srinivas  wrote:
  compile your classes with debug option on before you deploy the classes.

 On 6/29/07, Petr V. wrote:
  I generated wsdl via Axis2 by accessing my service via URL and I see param
  names as param0 and param1 etc.
 
  I did not expect that, I was hoping to see my proper parameters name in
  wsdl.
 
  Can any one let me know please what is going on or is there any work
 around.
 
  Thanks,
 
  Petr
 
 
 
 
  
  Shape Yahoo! in your own image. Join our Network Research Panel today!
 
 


 --
 Davanum Srinivas :: http://davanum.wordpress.com

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




  
 Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.




-- 
Davanum Srinivas :: http://davanum.wordpress.com

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



   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 

Re: axis + tomcat tuning issue

2007-06-29 Thread Michele Mazzucco
On Fri, 2007-06-29 at 19:10 +0200, Gabriela Gheorghe wrote:
 Could it be axis ?

Are you speaking about Axis 1.x or Axis2?

Michele


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



Re: Weird Generated WSDL with Axis 2

2007-06-29 Thread Petr V.
Okay I figure out the issue but I have no solution.

If your service is implementing some interface then the parameters are named as 
param0 and param1 of functions from interface. It has nothing to do with debug 
option.

Is there any work around ??

Thanks



Petr V. [EMAIL PROTECTED] wrote: Thanks Davanum,

I am using maven to compile my classes and by default debug flag is on for 
compiling code.I als opexplicitly set it true.

Any more ideas please.

Thanks,

Petr


Davanum Srinivas [EMAIL PROTECTED] wrote: It's a basic java problem. you can 
test it using javap command, if you
compile a class with debug on, it stores the names of the parameters,
if you don't then the class does not have that information. If the
class does not have that information, then obviously we can't get it
from the class when we construct the wsdl.

thanks,
dims

On 6/29/07, Petr V.  wrote:
 Thanks for such a quick reply.

 Would you like to see the log or would it solve the problem. Is that known
 problem with Axis2, some one in my team told me  that it is known issue and I
 did not believe him as this is such a basic issue.

 Thanks,

 Petr


 Davanum Srinivas  wrote:
  compile your classes with debug option on before you deploy the classes.

 On 6/29/07, Petr V. wrote:
  I generated wsdl via Axis2 by accessing my service via URL and I see param
  names as param0 and param1 etc.
 
  I did not expect that, I was hoping to see my proper parameters name in
  wsdl.
 
  Can any one let me know please what is going on or is there any work
 around.
 
  Thanks,
 
  Petr
 
 
 
 
  
  Shape Yahoo! in your own image. Join our Network Research Panel today!
 
 


  --
 Davanum Srinivas :: http://davanum.wordpress.com

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




  
 Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.




-- 
Davanum Srinivas :: http://davanum.wordpress.com

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




-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 

   
-
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.

RE: Where to put Axis2 jar files on TOMCAT

2007-06-29 Thread Chen, John (N-Avatar Inc.)
Do you know why Axis2 is not able to locate the jar files I put under
common/lib. It looks to me an Axis2 service is able to locate some jar
files in common/lib such as Axis2-kernel.jar, but having problem with
some such as stax-api.jar. Is it the case?

I have to put my own jar file under common/lib since I have other web
applications using it and invoke Axis stub class from a class in that
jar file. Can anybody give me some help here? Please, I have tried all
the options I can think of, including adding Axis jar files to my
classpath(it didn't work either because of the tomcat class loader
mechanism)

Thanks

John


-Original Message-
From: Joe Nathan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 7:01 PM
To: axis-user@ws.apache.org
Subject: RE: Where to put Axis2 jar files on TOMCAT


Instead of common lib, place them all together in the service specific
lib.
Then it works. But this also creates another problem: duplicate resource
creations. Eventually, Axis and Tomcat should be merged as one.
Otherwise, duplication problems will remain.

regards.


Chen, John (N-Avatar Inc.) wrote:
 
 Dims,
 
 Actually when I put all jar files in common\lib, I could not even
 deploy, I got java.lang.IllegalStateException: No valid ObjectCreator
 found.
 
 Thanks
 
 John 
 
 -Original Message-
 From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 27, 2007 3:08 PM
 To: axis-user@ws.apache.org
 Cc: Jain, Kokil
 Subject: Re: Where to put Axis2 jar files on TOMCAT
 
 find all the stax related jars in your environment. easy thumb rule,
 you need to place the woodstox and stax jars in the same directory
 whether it is in WEB-INF/lib or commons/lib. more importantly remove
 any dups.
 
 thanks,
 dims
 
 On 6/27/07, Chen, John (N-Avatar Inc.) [EMAIL PROTECTED] wrote:




 I have been struggling with this issue for the last several days and
I
 believe it is the Axis2 class loader issue



 Basically I am developing a system can act as both Web Services
client
 and
 server. To use it as a Web Services client, I have to put my
 application jar
 file and all dependent Axis2 jar files under common/lib. To host my
 Web
 Services, I have a war file with my Web Services configuration and
 classes
 in it.



 My issue is, if I don't put any Axis2 jar files in the war file
 (WEB-INF/lib), I am getting the following exception,

 java.lang.IllegalStateException: No valid ObjectCreator found.

 at
 org.apache.axiom.om.util.StAXUtils$Pool.init(StAXUtils.java:44)

 at
 org.apache.axiom.om.util.StAXUtils.clinit(StAXUtils.java:68)

 at
 org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:555)

 at
 org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBui



 Then if I put those Axis2 jar files back in the war file, I don't
have
 any
 problem deploying it, but I got the following exception when invoking
 the
 Web Services,



 ERROR AxisServlet - java.lang.LinkageError: Class
 javax/xml/stream/XMLStreamRead

 er violates loader constraints





 Thanks



 John
 
 
 -- 
 Davanum Srinivas :: http://davanum.wordpress.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context:
http://www.nabble.com/Where-to-put-Axis2-jar-files-on-TOMCAT-tf3989363.h
tml#a11334198
Sent from the Axis - User mailing list archive at Nabble.com.


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


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



Re: Enable MTOM per operation

2007-06-29 Thread Tammy Dugan
I think this should work. Just put the following under the operation 
element:


parameter name=enableMTOM locked=falsetrue/parameter

Full service:

service name=QueryStatisticsReturn scope=soapsession
  parameter 
name=ServiceClassorg.regenstrief.queryposer.QueryStatisticsReturnServlet/parameter

  operation name=queryStatisticsReturn
 parameter name=enableMTOM locked=falsetrue/parameter
 messageReceiver 
class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/

  /operation
/service

Tammy

Chris Shah wrote:
I know this should be done in services.xml, but can anyone show me a 
sample.
 
TIA

Chris


Get the free Yahoo! toolbar 
http://us.rd.yahoo.com/evt=48226/*http://new.toolbar.yahoo.com/toolbar/features/norton/index.php 
and rest assured with the added security of spyware protection. 


--
Tammy Dugan
Computer Programmer

Regenstrief Institute, Inc.
Medical Informatics
Health Information and Translational Sciences (HITS) Building
410 West 10th Street, Suite 2000
Indianapolis, IN 46202
Main: 317.423.5500
Fax: 317.423.5695
IU campus mail address: HS, 2000

(317) 423 - 5541

Confidentiality Notice: The contents of this message and any files transmitted 
with it may contain confidential and/or privileged information and are intended 
solely for the use of the named addressee(s). Additionally, the information 
contained herein may have been disclosed to you from medical records with 
confidentiality protected by federal and state laws. Federal regulations and 
State laws prohibit you from making further disclosure of such information 
without the specific written consent of the person to whom the information 
pertains or as otherwise permitted by such regulations. A general authorization 
for the release of medical or other information is not sufficient for this 
purpose.

If you have received this message in error, please notify the sender by return 
e-mail and delete the original message. Any retention, disclosure, copying, 
distribution or use of this information by anyone other than the intended 
recipient is strictly prohibited.



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



Tomcat5.5+Axis with Security Enabled

2007-06-29 Thread Rodrigo de Avila
Hi all,

Someone have an list of grant permissions to make axis work in an
tomcat5.5 installation with security enabled?

Thanks the attetion.

-- 
Rodrigo de Avila [EMAIL PROTECTED]


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



Enable MTOM per operation

2007-06-29 Thread Chris Shah
I know this should be done in services.xml, but can anyone show me a sample. 
   
  TIA
  Chris

   
-
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection. 

Re: Unable to get the top element of an XML

2007-06-29 Thread Sunny44

Amila,

I am using Plain Java Object that doe not include any Factory. even Helper
class does not include and Factory definition that is the reason i am unable
to utilize the Factory.parse(). 

Please advice me how to get Factory on Plan Java objects

Thanks

Sunny




Amila Suriarachchi wrote:
 
 if you give me your schema I can help you more.
 
 instead of using the Helper use TopElement.Factory.parse() method to
 create the object and
 use TopElement.getOMElement() method to get the OM Element.
 
 please see some ADB test classes.
 
 Amila.
 
 
 On 6/28/07, Sunny44 [EMAIL PROTECTED] wrote:


 I have created the ADB object using ADB code generator. (PLAIN JAVA).

 My unit test works in following manner

 It UnMarshall the Input XML to OBJECTS and from OBJECT to XML

 But the Problem is in the result XML is

 1 It does not include the top element.
 2 It contains xsi:nil in reoccurring element headers.

 Sample code

 UN-Marshall
 reader = XMLInputFactory.newInstance().createXMLStreamReader(
 new ByteArrayInputStream(this.inputXML.getBytes()));
 Object returnObj = Helper.parse(reader); - WORKS

 MARSHALLER

 XMLStreamReader reader = Helper.getPullParser(ci,
 ContentItemsHelper.MY_QNAME);
 OMElement omElt =  new
 StAXOMBuilder(reader).getDocumentElement();
 String xml = omElt.toString();

 

 xml string does not contain the header element

 Sample XML
 items xmlns:p=bla bla xmlns:xsi=bla bla   - MISSING
 item
  id1234/id
 item
 /items   ---   MISSING

 Please advice how do i get the Top ELEMENT

 Thanks

 Sunny



 --
 View this message in context:
 http://www.nabble.com/Unable-to-get-the-top-element-of-an-XML-tf3995959.html#a11348317
 Sent from the Axis - User mailing list archive at Nabble.com.


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


 
 
 -- 
 Amila Suriarachchi,
 WSO2 Inc.
 
 

-- 
View this message in context: 
http://www.nabble.com/Unable-to-get-the-top-element-of-an-XML-tf3995959.html#a11365412
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Enable MTOM per operation

2007-06-29 Thread Thilina Gunarathne

I think this should work.

Yes... It should work :)... exactly as Tammy mentioned..

Thanks,
Thilina

Just put the following under the operation
element:

parameter name=enableMTOM locked=falsetrue/parameter

Full service:

service name=QueryStatisticsReturn scope=soapsession
   parameter
name=ServiceClassorg.regenstrief.queryposer.QueryStatisticsReturnServlet/parameter
   operation name=queryStatisticsReturn
  parameter name=enableMTOM locked=falsetrue/parameter
  messageReceiver
class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/
   /operation
/service

Tammy

Chris Shah wrote:
 I know this should be done in services.xml, but can anyone show me a
 sample.

 TIA
 Chris

 
 Get the free Yahoo! toolbar
 
http://us.rd.yahoo.com/evt=48226/*http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
 and rest assured with the added security of spyware protection.

--
Tammy Dugan
Computer Programmer

Regenstrief Institute, Inc.
Medical Informatics
Health Information and Translational Sciences (HITS) Building
410 West 10th Street, Suite 2000
Indianapolis, IN 46202
Main: 317.423.5500
Fax: 317.423.5695
IU campus mail address: HS, 2000

(317) 423 - 5541

Confidentiality Notice: The contents of this message and any files transmitted 
with it may contain confidential and/or privileged information and are intended 
solely for the use of the named addressee(s). Additionally, the information 
contained herein may have been disclosed to you from medical records with 
confidentiality protected by federal and state laws. Federal regulations and 
State laws prohibit you from making further disclosure of such information 
without the specific written consent of the person to whom the information 
pertains or as otherwise permitted by such regulations. A general authorization 
for the release of medical or other information is not sufficient for this 
purpose.

If you have received this message in error, please notify the sender by return 
e-mail and delete the original message. Any retention, disclosure, copying, 
distribution or use of this information by anyone other than the intended 
recipient is strictly prohibited.



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





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

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



RE: Where to put Axis2 jar files on TOMCAT

2007-06-29 Thread Chen, John (N-Avatar Inc.)

I think the problem is stax-api.jar, somehow I have to either put my
Axis2 WEB-INF/lib or my classpath to expose it to Axis engine. So my
solution is have it in my classpath and all other jar files under
common/lib and it works for me.

But why?

John

-Original Message-
From: Chen, John (N-Avatar Inc.) 
Sent: Friday, June 29, 2007 2:29 PM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: RE: Where to put Axis2 jar files on TOMCAT

Do you know why Axis2 is not able to locate the jar files I put under
common/lib. It looks to me an Axis2 service is able to locate some jar
files in common/lib such as Axis2-kernel.jar, but having problem with
some such as stax-api.jar. Is it the case?

I have to put my own jar file under common/lib since I have other web
applications using it and invoke Axis stub class from a class in that
jar file. Can anybody give me some help here? Please, I have tried all
the options I can think of, including adding Axis jar files to my
classpath(it didn't work either because of the tomcat class loader
mechanism)

Thanks

John


-Original Message-
From: Joe Nathan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 7:01 PM
To: axis-user@ws.apache.org
Subject: RE: Where to put Axis2 jar files on TOMCAT


Instead of common lib, place them all together in the service specific
lib.
Then it works. But this also creates another problem: duplicate resource
creations. Eventually, Axis and Tomcat should be merged as one.
Otherwise, duplication problems will remain.

regards.


Chen, John (N-Avatar Inc.) wrote:
 
 Dims,
 
 Actually when I put all jar files in common\lib, I could not even
 deploy, I got java.lang.IllegalStateException: No valid ObjectCreator
 found.
 
 Thanks
 
 John 
 
 -Original Message-
 From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 27, 2007 3:08 PM
 To: axis-user@ws.apache.org
 Cc: Jain, Kokil
 Subject: Re: Where to put Axis2 jar files on TOMCAT
 
 find all the stax related jars in your environment. easy thumb rule,
 you need to place the woodstox and stax jars in the same directory
 whether it is in WEB-INF/lib or commons/lib. more importantly remove
 any dups.
 
 thanks,
 dims
 
 On 6/27/07, Chen, John (N-Avatar Inc.) [EMAIL PROTECTED] wrote:




 I have been struggling with this issue for the last several days and
I
 believe it is the Axis2 class loader issue



 Basically I am developing a system can act as both Web Services
client
 and
 server. To use it as a Web Services client, I have to put my
 application jar
 file and all dependent Axis2 jar files under common/lib. To host my
 Web
 Services, I have a war file with my Web Services configuration and
 classes
 in it.



 My issue is, if I don't put any Axis2 jar files in the war file
 (WEB-INF/lib), I am getting the following exception,

 java.lang.IllegalStateException: No valid ObjectCreator found.

 at
 org.apache.axiom.om.util.StAXUtils$Pool.init(StAXUtils.java:44)

 at
 org.apache.axiom.om.util.StAXUtils.clinit(StAXUtils.java:68)

 at
 org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:555)

 at
 org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBui



 Then if I put those Axis2 jar files back in the war file, I don't
have
 any
 problem deploying it, but I got the following exception when invoking
 the
 Web Services,



 ERROR AxisServlet - java.lang.LinkageError: Class
 javax/xml/stream/XMLStreamRead

 er violates loader constraints





 Thanks



 John
 
 
 -- 
 Davanum Srinivas :: http://davanum.wordpress.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context:
http://www.nabble.com/Where-to-put-Axis2-jar-files-on-TOMCAT-tf3989363.h
tml#a11334198
Sent from the Axis - User mailing list archive at Nabble.com.


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


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


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



RE: Where to put Axis2 jar files on TOMCAT

2007-06-29 Thread Chen, John (N-Avatar Inc.)

Actually, here is the reason 

http://issues.apache.org/jira/browse/WSCOMMONS-70

John

-Original Message-
From: Chen, John (N-Avatar Inc.) 
Sent: Friday, June 29, 2007 4:59 PM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: RE: Where to put Axis2 jar files on TOMCAT


I think the problem is stax-api.jar, somehow I have to either put my
Axis2 WEB-INF/lib or my classpath to expose it to Axis engine. So my
solution is have it in my classpath and all other jar files under
common/lib and it works for me.

But why?

John

-Original Message-
From: Chen, John (N-Avatar Inc.) 
Sent: Friday, June 29, 2007 2:29 PM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: RE: Where to put Axis2 jar files on TOMCAT

Do you know why Axis2 is not able to locate the jar files I put under
common/lib. It looks to me an Axis2 service is able to locate some jar
files in common/lib such as Axis2-kernel.jar, but having problem with
some such as stax-api.jar. Is it the case?

I have to put my own jar file under common/lib since I have other web
applications using it and invoke Axis stub class from a class in that
jar file. Can anybody give me some help here? Please, I have tried all
the options I can think of, including adding Axis jar files to my
classpath(it didn't work either because of the tomcat class loader
mechanism)

Thanks

John


-Original Message-
From: Joe Nathan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 7:01 PM
To: axis-user@ws.apache.org
Subject: RE: Where to put Axis2 jar files on TOMCAT


Instead of common lib, place them all together in the service specific
lib.
Then it works. But this also creates another problem: duplicate resource
creations. Eventually, Axis and Tomcat should be merged as one.
Otherwise, duplication problems will remain.

regards.


Chen, John (N-Avatar Inc.) wrote:
 
 Dims,
 
 Actually when I put all jar files in common\lib, I could not even
 deploy, I got java.lang.IllegalStateException: No valid ObjectCreator
 found.
 
 Thanks
 
 John 
 
 -Original Message-
 From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 27, 2007 3:08 PM
 To: axis-user@ws.apache.org
 Cc: Jain, Kokil
 Subject: Re: Where to put Axis2 jar files on TOMCAT
 
 find all the stax related jars in your environment. easy thumb rule,
 you need to place the woodstox and stax jars in the same directory
 whether it is in WEB-INF/lib or commons/lib. more importantly remove
 any dups.
 
 thanks,
 dims
 
 On 6/27/07, Chen, John (N-Avatar Inc.) [EMAIL PROTECTED] wrote:




 I have been struggling with this issue for the last several days and
I
 believe it is the Axis2 class loader issue



 Basically I am developing a system can act as both Web Services
client
 and
 server. To use it as a Web Services client, I have to put my
 application jar
 file and all dependent Axis2 jar files under common/lib. To host my
 Web
 Services, I have a war file with my Web Services configuration and
 classes
 in it.



 My issue is, if I don't put any Axis2 jar files in the war file
 (WEB-INF/lib), I am getting the following exception,

 java.lang.IllegalStateException: No valid ObjectCreator found.

 at
 org.apache.axiom.om.util.StAXUtils$Pool.init(StAXUtils.java:44)

 at
 org.apache.axiom.om.util.StAXUtils.clinit(StAXUtils.java:68)

 at
 org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:555)

 at
 org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBui



 Then if I put those Axis2 jar files back in the war file, I don't
have
 any
 problem deploying it, but I got the following exception when invoking
 the
 Web Services,



 ERROR AxisServlet - java.lang.LinkageError: Class
 javax/xml/stream/XMLStreamRead

 er violates loader constraints





 Thanks



 John
 
 
 -- 
 Davanum Srinivas :: http://davanum.wordpress.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context:
http://www.nabble.com/Where-to-put-Axis2-jar-files-on-TOMCAT-tf3989363.h
tml#a11334198
Sent from the Axis - User mailing list archive at Nabble.com.


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


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


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


-
To unsubscribe, e-mail: [EMAIL 

[axis2] NTLMv2 support / Oakland Software

2007-06-29 Thread Jake Goulding

Hey all:

After a marathon session of debugging issues connecting to an IIS server 
running Sharepoint, we think we have narrowed down the problem to 
NTLMv2. The IIS configuration is set to only allow NTLMv2, and the 
Commons HTTPClient simply does not support NTLMv2 [1]. Has anyone else 
run into this problem? Are there any known workarounds or plans for 
HTTPClient to support NTLMv2 in the future?


A cursory clusty.com search found the website of Oakland Software [2] 
which claims to support both NTLMv2 and Axis2, but at a minimum cost of 
$2000 per seat. Has anyone had an opportunity to use this software and 
would be willing to give feedback?


Thanks in advance for the usual good advice!

-Jake

[1] 
http://jakarta.apache.org/commons/httpclient/authentication.html#Known_limitations_and_problems

[2] http://oaklandsoftware.com/product_http/axis.html

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



RE: [Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-06-29 Thread Raghu Upadhyayula
Hi Dims,

I've attached the log file to the JIRA (AXIS2-2352), Can you
please take a look at it and see if you can find anything related to
this issue or if you need more info from me.

Thanks
Raghu

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 11:58 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] org.apache.axis2.AxisFault: First Element must
contain the local name, Envelope

Raghu,

I've reviewed the code in question..need more info. Can you switch on
log4j based logging and upload the log in a JIRA? You have to edit
commons-logging.properties and log4j.properties and put them in
WEB-INF/classes and then hit the server with your client again.

thanks,
dims

On 6/27/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:




 Hi,



 Has anyone got this issue?  I need a resolution as our
 development is not working because of this AxisFault.



 Just to recap the issue



 When I deploy my webservices on my localhost (desktop) and
test
 it using a java client, it is working fine.



 But when the same webservices project is built  deployed
on our
 development server and tested using java client, I'm getting the below
 exception.



 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 First Element must contain the local name, Envelope

 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:81)

 at

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:356)

 at

org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)

 at

com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j
ava:276)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

 at

com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav
a:40)

 Caused by: org.apache.axiom.soap.SOAPProcessingException:
 First Element must contain the local name, Envelope

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(St
AXSOAPModelBuilder.java:221)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:179)

 at

org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1
35)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:163)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPM
odelBuilder.java:111)

 at

org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474
)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:142)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:77)

 ... 6 more



 I've also specified the SOAP Request  Response to  from
this
 server in the below email for reference.



 PS: I'm using Axis2 1.2, deploying the application in
JBoss on a
 Linux machine.



 Thanks

 Raghu

  


 From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 25, 2007 11:29 AM

  To: axis-user@ws.apache.org; [EMAIL PROTECTED]
  Subject: RE: [Axis2] org.apache.axis2.AxisFault: First Element must
contain
 the local name, Envelope




 Hi Dims,



   I've tried to get the request  response SOAP messages for this
 request.  Here is the request  response for this.



   Any idea why I'm getting a NPE in AxisServlet.





 Dev-Orion Login SOAP Request

 POST /webservices/services/ResponsysWSService HTTP/1.1

 Content-Type: text/xml; charset=UTF-8

 SOAPAction: 

 User-Agent: Axis2

 Host: dev-orion.corp.responsys.com:1234

 Transfer-Encoding: chunked



 119

 ?xml version='1.0' encoding='UTF-8'?

 soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

 soapenv:Body

 ns1:login xmlns:ns1=urn:ws.rsys.com

 ns1:usernameraghu/ns1:username

 ns1:passwordraghu/ns1:password

 /ns1:login

 /soapenv:Body

 /soapenv:Envelope

 0



 Dev-Orion Login SOAP Response

 HTTP/1.1 500 Internal Server Error

 Server: Apache-Coyote/1.1

 Content-Type: text/html;charset=utf-8

 Content-Length: 1453

 Date: Mon, 25 Jun 2007 18:06:51 GMT

 Connection: close



 html

 head

 titleJBossWeb/2.0.0.GA - Error report/title

 style

 !--

 H1

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:22px;}

 H2

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;}

 H3


Re: [axis2] NTLMv2 support / Oakland Software

2007-06-29 Thread Davanum Srinivas

http://issues.apache.org/jira/browse/HTTPCLIENT-579

On 6/29/07, Jake Goulding [EMAIL PROTECTED] wrote:

Hey all:

After a marathon session of debugging issues connecting to an IIS server
running Sharepoint, we think we have narrowed down the problem to
NTLMv2. The IIS configuration is set to only allow NTLMv2, and the
Commons HTTPClient simply does not support NTLMv2 [1]. Has anyone else
run into this problem? Are there any known workarounds or plans for
HTTPClient to support NTLMv2 in the future?

A cursory clusty.com search found the website of Oakland Software [2]
which claims to support both NTLMv2 and Axis2, but at a minimum cost of
$2000 per seat. Has anyone had an opportunity to use this software and
would be willing to give feedback?

Thanks in advance for the usual good advice!

-Jake

[1]
http://jakarta.apache.org/commons/httpclient/authentication.html#Known_limitations_and_problems
[2] http://oaklandsoftware.com/product_http/axis.html

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





--
Davanum Srinivas :: http://davanum.wordpress.com

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



RE: Where to put Axis2 jar files on TOMCAT

2007-06-29 Thread Joe Nathan

This is a messy business. If you use JDK1.6, many of the jar archives are
already includes in the JVM per se. Then again, they may not compatile with
the versions on Axis and Tomcat. The safer way is to include in WEB-INF/lib.
However you ended up placing multiple places!





Chen, John (N-Avatar Inc.) wrote:
 
 
 Actually, here is the reason 
 
 http://issues.apache.org/jira/browse/WSCOMMONS-70
 
 John
 
 -Original Message-
 From: Chen, John (N-Avatar Inc.) 
 Sent: Friday, June 29, 2007 4:59 PM
 To: axis-user@ws.apache.org
 Cc: [EMAIL PROTECTED]
 Subject: RE: Where to put Axis2 jar files on TOMCAT
 
 
 I think the problem is stax-api.jar, somehow I have to either put my
 Axis2 WEB-INF/lib or my classpath to expose it to Axis engine. So my
 solution is have it in my classpath and all other jar files under
 common/lib and it works for me.
 
 But why?
 
 John
 
 -Original Message-
 From: Chen, John (N-Avatar Inc.) 
 Sent: Friday, June 29, 2007 2:29 PM
 To: axis-user@ws.apache.org
 Cc: [EMAIL PROTECTED]
 Subject: RE: Where to put Axis2 jar files on TOMCAT
 
 Do you know why Axis2 is not able to locate the jar files I put under
 common/lib. It looks to me an Axis2 service is able to locate some jar
 files in common/lib such as Axis2-kernel.jar, but having problem with
 some such as stax-api.jar. Is it the case?
 
 I have to put my own jar file under common/lib since I have other web
 applications using it and invoke Axis stub class from a class in that
 jar file. Can anybody give me some help here? Please, I have tried all
 the options I can think of, including adding Axis jar files to my
 classpath(it didn't work either because of the tomcat class loader
 mechanism)
 
 Thanks
 
 John
 
 
 -Original Message-
 From: Joe Nathan [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 27, 2007 7:01 PM
 To: axis-user@ws.apache.org
 Subject: RE: Where to put Axis2 jar files on TOMCAT
 
 
 Instead of common lib, place them all together in the service specific
 lib.
 Then it works. But this also creates another problem: duplicate resource
 creations. Eventually, Axis and Tomcat should be merged as one.
 Otherwise, duplication problems will remain.
 
 regards.
 
 
 Chen, John (N-Avatar Inc.) wrote:
 
 Dims,
 
 Actually when I put all jar files in common\lib, I could not even
 deploy, I got java.lang.IllegalStateException: No valid ObjectCreator
 found.
 
 Thanks
 
 John 
 
 -Original Message-
 From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 27, 2007 3:08 PM
 To: axis-user@ws.apache.org
 Cc: Jain, Kokil
 Subject: Re: Where to put Axis2 jar files on TOMCAT
 
 find all the stax related jars in your environment. easy thumb rule,
 you need to place the woodstox and stax jars in the same directory
 whether it is in WEB-INF/lib or commons/lib. more importantly remove
 any dups.
 
 thanks,
 dims
 
 On 6/27/07, Chen, John (N-Avatar Inc.) [EMAIL PROTECTED] wrote:




 I have been struggling with this issue for the last several days and
 I
 believe it is the Axis2 class loader issue



 Basically I am developing a system can act as both Web Services
 client
 and
 server. To use it as a Web Services client, I have to put my
 application jar
 file and all dependent Axis2 jar files under common/lib. To host my
 Web
 Services, I have a war file with my Web Services configuration and
 classes
 in it.



 My issue is, if I don't put any Axis2 jar files in the war file
 (WEB-INF/lib), I am getting the following exception,

 java.lang.IllegalStateException: No valid ObjectCreator found.

 at
 org.apache.axiom.om.util.StAXUtils$Pool.init(StAXUtils.java:44)

 at
 org.apache.axiom.om.util.StAXUtils.clinit(StAXUtils.java:68)

 at
 org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:555)

 at
 org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBui



 Then if I put those Axis2 jar files back in the war file, I don't
 have
 any
 problem deploying it, but I got the following exception when invoking
 the
 Web Services,



 ERROR AxisServlet - java.lang.LinkageError: Class
 javax/xml/stream/XMLStreamRead

 er violates loader constraints





 Thanks



 John
 
 
 -- 
 Davanum Srinivas :: http://davanum.wordpress.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/Where-to-put-Axis2-jar-files-on-TOMCAT-tf3989363.h
 tml#a11334198
 Sent from the Axis - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]