Re: [Axis2] Does axis2 support RPC-style Interactions and How?

2006-05-25 Thread 蘇 軼(CEC)



hi anne,
 
Thank you very much !
 
- sukie

  - Original Message - 
  From: 
  Anne Thomas 
  Manes 
  To: axis-user@ws.apache.org 
  Sent: Wednesday, May 24, 2006 9:44 
  PM
  Subject: Re: [Axis2] Does axis2 
  support RPC-style Interactions and How?
  Use the RPCMessageReceiver.Anne
  On 5/23/06, 蘇 
  軼(CEC) <[EMAIL PROTECTED]> wrote:
  


Hi all,
 
I think it is a little matter when 
create a OMElement with message-style,
Does axis2 support RPC-style 
interactions like axis1.x? and How?
 
Any help or web resources are 
greatly appreciated !
 
- 
  sukie.y


RE: Re[2]: Axis2 High memory usage, OutOfMemory exception

2006-05-25 Thread Ramanathan, Subramanyam
Hi,

Regarding setting the session-timeout, I found that session-timeout in Axis1 
was set to 5 minutes by default, so I set it to 30 minutes in axis1 as well, 
just to compare. However, I don't find any big memory consumption increase when 
I pump requests. 

As a matter of fact, the memory usage stays between 10 and 25 M, whereas with 
axis2, even after setting session-timeout to 2 min, usage touches 100M 
frequently. So I am not sure that setting the session-timeout is a good 
workaround.
Is there any reason for this high memory usage in axis2 as against axis1 ?

I have not yet tried Andreas' suggestion, though, and I will do so now.

Thanks and Regards, 
Subramanyam


-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 11:43 PM
To: axis-user@ws.apache.org; Andreas Hörnicke
Subject: Re: Re[2]: Axis2 High memory usage, OutOfMemory exception


Andreas,

Could you *please* add this info to bug report AXIS2-766?

thanks,
dims

On 5/25/06, Andreas Hörnicke <[EMAIL PROTECTED]> wrote:
>
> Here is what i did to overcome this "problem": After defining my
> own SessionListener and invalidating the created sessions
> immediately i got some exceptions thrown by axis. So my current
> solution is to extend the AxisServlet, overriding the service
> method and invalidate the session after super.service was called.
> Works fine in my testing environment.
>
> -- Andreas
>
>
> KI> (tomcat)/conf/web.xml will contains session-timeout settings,
> KI> and that value is default to 30 min.
> KI> (tomcat)/webapps/axis2/WEB-INF/web.xml will not have this settings.
>
> KI> I'm not sure but here is my guess,
>
> KI> Service will run as servlet of tomcat, I think.
> KI> And each servlet threads for invoked services will remain as session.
> KI> After receiving request and send back response,
> KI> web service session should be clear or invalidate by Axis2.
> KI> But results of your test seems to remain those sessions until timeout.
> KI> So, set the session-timeout to minimum value is work around for this.
>
> KI> How everyone think about this ?
>
> KI> Regards,
> KI> kinichiro
>
> KI> __
> KI> Do You Yahoo!?
> KI> Tired of spam?  Yahoo! Mail has the best spam protection around
> KI> http://mail.yahoo.com
>
> KI> -
> KI> To unsubscribe, e-mail: [EMAIL PROTECTED]
> KI> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Davanum Srinivas : http://wso2.com/blogs/

-
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 1.0 RC1 Weblogic 9.1 installation problem

2006-05-25 Thread Deepal Jayasinghe
One problem could be it does not unpack the war , can u please check
that and let us know. If so I will tell u how to solve the problem.

Gopal Patwa wrote:

>Does anybody treid Axis2 on Weblogic 9.1
>
>--
>View this message in context: 
>http://www.nabble.com/Axis2-1.0-RC1-Weblogic-9.1-installation-problem-t1495632.html#a4223798
>Sent from the Axis - User forum at Nabble.com.
>
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 




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



Re: BPEL and Axis2 Asynchronous

2006-05-25 Thread Deepal Jayasinghe
Hi Gopal
I am sorry for late reply , I did not see the mail in the first place
pls see my comment below;

Gopal Patwa wrote:

>Hi Developers,
>
>I am using axis2 async service with Oracle BPEL and I want to use
>AsyncMessageReceiver from inetegration module in SVN.
>  
>
>BPEL need In-Only type for Async but AsyncMessageReceiver extend
>AbstractInOutAsyncMessageReceiver type Any suggestion?? is there any In-Only
>type AsyncMessageReceiver extend AbstractInAsyncMessageReceiver.
>  
>
hmmm , initially I could not find any use case of having such a message
receiver , I will add AyncInOnly message receiver before next release.
If you can please create a JIRA as well.

>Or do I missing something here !!
>
>Note:
>I got successful working with In-Only way and using ServiceClient to make
>Call to BPEL process with fireAndForget method but this methode create
>always new Message Context to call EPR,  so how to specify existing Messsage
>Context to this method.
>  
>
It is by design we Axis2 create Message context for each message
invocation , but if you want to keep state you can use context like
service context , service group context or Configuration context.

>But I want to use AsyncMessageReceiver so thread and resources management
>can be handle by axis2 engine.
>
>  
>
Not clear to me , pls explain a bit please.

>Thanks
>Gopal
>
>--
>View this message in context: 
>http://www.nabble.com/BPEL-and-Axis2-Asynchronous-t1469698.html#a3973256
>Sent from the Axis - User forum at Nabble.com.
>
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 




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



Re: [axis2] Getting Axis2 working under Websphere 5.1

2006-05-25 Thread Davanum Srinivas

David,

Could you please open a JIRA bug for the getParameter problem?

thanks,
dims

On 5/25/06, David Wilkinson <[EMAIL PROTECTED]> wrote:

Hi Robert

Thanks for that it has given me a direction to look-in.

I have also noticed that Websphere 5.1.x is not handling HttpServletRequest
parameters in a way that is expected, if a parameter is passed to the server
with no value the method getParameter is returning "null" and therefore the
wsdl is not being displayed but if I change the URL to
http://localhost:9080/Test/services/version?wsdl=true then the wsdl is
displayed as expected.


Thanks again

David Wilkinson



From: robert lazarski [mailto:[EMAIL PROTECTED]
Sent: 25 May 2006 13:14
To: axis-user@ws.apache.org
Subject: Re: [axis2] Getting Axis2 working under Websphere 5.1


I'll take a shot at trying to help...

My guess is that you are running WAS 5.1 using JDK 1.4 . If so, try putting
the stax-api jar that comes with axis2 somewhere in one of the lib
directories that WAS uses to find its jars. This jar should already be
present in the axis2 war.

This error would probably cause the war not to start, and somewhere (been a
few years since I ran WAS) there should be logs saying so. You can turn on
logging by putting an apropriate log4j.properties under
axis2/WEB-INF/classses , assuming the commons-logging is pointing to log4j .


HTH,
Robert
http://www.braziloutsource.com/


On 5/25/06, David Wilkinson <[EMAIL PROTECTED] > wrote:

Hi

I'm currently trying to get the Axis2 War Distribution to work under

websphere 5.1. I have managed to get round the error Invalid service
version.aar due to java.lang.NoSuchMethodError:
javax.xml.namespace.QName:
method
(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V not
found by setting the Classloader Mode to PARENT_LAST

But when I go to the url
http://localhost:9080/Test/services/version?wsdl
all I get is a 404 error Requested resource not found!

There are no error messages appearing in my log files and so I'm
feeling a
bit stumped.

Has anyone else come across the same issue and can suggest anything
else
that I need to do


Thanks in advance


David Wilkinson



-
To unsubscribe, e-mail: [EMAIL PROTECTED]

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






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





--
Davanum Srinivas : http://wso2.com/blogs/

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



Re: REPOST FOR HELP: Axis client logging from web applet causes security error

2006-05-25 Thread Davanum Srinivas

Please check the archives...you need a fresh jar of commons-discovery
built from the SVN sources for discovery.

thanks,
dims

On 5/25/06, ANTHONY ZIOLKOWSKI <[EMAIL PROTECTED]> wrote:



I moved to axis 1.4 and the problem went away. Unfortunately to be replaced
by another problem.
My console client stub still works fine.

Running under firefox i get the following message in the Java Console
window:
Failure trying to get the Call object; nested exception is:
java.lang.NoClassDefFoundError

That's it, no stack trace, nothing in the Tomcat logs

When I run under IE6 I get the following error and stack trace:
Exception in thread "AWT-EventQueue-2"
java.lang.ExceptionInInitializerError
at
org.apache.commons.discovery.jdk.JDKHooks.(JDKHooks.java:75)
at
org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412)
at
org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378)
at
org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
at java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
at
org.apache.axis.components.logger.LogFactory.(LogFactory.java:33)
at
org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43)
at
org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.(Service.java:113)
at
com.zeesol.bizservice.client.BizService_ServiceLocator.(BizService_ServiceLocator.java:12)
at
com.mazuma.applets.BaseRunner$1.actionPerformed(BaseRunner.java:156)
at
javax.swing.AbstractButton.fireActionPerformed(Unknown
Source)
at
javax.swing.AbstractButton$Handler.actionPerformed(Unknown
Source)
at
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown
Source)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown
Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
Source)
at
java.awt.LightweightDispatcher.processMouseEvent(Unknown
Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown
Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown
Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.security.AccessControlException: access
denied (java.lang.RuntimePermission createClassLoader)
at
java.security.AccessControlContext.checkPermission(Unknown
Source)
at
java.security.AccessController.checkPermission(Unknown
Source)
at java.lang.SecurityManager.checkPermission(Unknown
Source)
at
java.lang.SecurityManager.checkCreateClassLoader(Unknown
Source)
at java.lang.ClassLoader.(Unknown Source)
at
org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.(PsuedoSystemClassLoader.java:73)
at
org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215)
at
org.apache.commons.discovery.jdk.JDK12Hooks.(JDK12Hooks.java:73)
... 35 more

- Original Message 
From: robert lazarski <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org; ANTHONY ZIOLKOWSKI <[EMAIL PROTECTED]>
Sent: Monday, May 8, 2006 8:36:16 AM
Subject: Re: REPOST FOR HELP: Axis client logging from web applet causes
security error

I suspect this is primarily a log4j / commons-logging issue. Try editing the
properties  of each and comment out the file appenders. Or simply enable
log4j based logging in the commons property file, and use your own
log4j.properties file instead of the one that comes with axis. I'm enclosing
my log4j.properties file that should do just that (I removed the file
appender, but I didn't test it). It will still print lines to the console
via stdout / stderr , but that shouldn't be a problem. Look in your browser
in the tools section to view an applets stdout / stderr messages if you want
to see them.

 HTH,
 Robert
 http://www.braziloutsource.com/

On 5/8/06, ANTHONY ZIOLKOWSKI <[EMAIL PROTECTED] > wrote:
>
>
>
>
>
>
>
>
>
> This is second post of this message. I guess the first got lost in the
excitement about 2.0. However, I desparately need an answer to this.
>
> I have written my first w

[Axis 1.4] Unexpected return type of Attachment when add wsse header to SOAPEnvelope, bug?

2006-05-25 Thread 蘇 軼(CEC)



hi all,
 
I have got a problem when I tried to run 
the attachment sample 
of Axis1.4. All works fine when I don't 
change anything, but when
I tried to use WsseClientHandler, just 
adding below :
    >
    
call.setProperty(WsseClientHandler.PASSWORD_OPTION,    
WsseClientHandler.PASSWORD_CLEARTEXT);
    
call.setClientHandlers(new WsseClientHandler(), null);
    <
 
the echoDir() method got errors 
:
    ---> Received 
unexpected type :[Ljava.lang.Object;
 
because the expected return type is 
javax.activation.DataHandler[].
I found out that the return type is 
:
    ---> 
java.lang.Object[] {
        
            
org.apache.axis.attachment.AttachmentPart,
    
org.apache.axis.attachment.AttachmentPart
        
    }
 
Is it a bug, or I must to do 
more works on the return value?
 
BTW: the echo() method has no such 
error.
 
Any help or web resource are greatly 
appreciated !
 
- sukie
 


Re: OMSourcedElementImpl error when using an OMDataSource

2006-05-25 Thread Davanum Srinivas

*PLEASE* log this as a bug in JIRA:
http://issues.apache.org/jira/

under "WS-Commons  (WSCOMMONS)"

thanks,
dims

On 5/25/06, Jim Peterson <[EMAIL PROTECTED]> wrote:





PROBLEM:

I used Axis2's OMSourcedElementTest.java as an example of how to use a
custom OMDataSource.  In this case you construct an OMSourcedElementImpl
class and give it your custom OMDataSource.  When the service implementation
class the constructed OMSourcedElementImpl and Axiom streams it out, the
OMSerializerUtil class makes a call to
OMSourcedElementImpl.getXMLStreamReaderWithoutCaching(),
which returns an XMLStreamReader WITH caching.  This sends the code down an
execution path that fails to stream the OMSourcedElementImpl because it
looks for OMElement objects that aren't there.



CORRECTION:

I eliminated the
OMSourcedElementImpl.getXMLStreamReaderWithoutCaching()
method.  This caused the superclass
OMElementImpl.getXMLStreamReaderWithoutCaching() method to
be executed, which properly returns the an XMLStreamReader without caching
and allows the OMSourcedElementImpl to be serialized correctly.  Recommend
this code correction be included in the next Axiom release.



Please let me know if this code change will be included or if some other
correction is made.

Thanks,

Jim





--
Davanum Srinivas : http://wso2.com/blogs/

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



Re: StreamingOMSerializer error when using an OMDataSource

2006-05-25 Thread Davanum Srinivas

*PLEASE* log this as a bug in JIRA:
http://issues.apache.org/jira/

under "WS-Commons  (WSCOMMONS)"

thanks,
dims

On 5/25/06, Jim Peterson <[EMAIL PROTECTED]> wrote:





PROBLEM:  If the XML to be streamed back has a tag with attributes, but no
namespace, a null pointer exception is thrown in the streaming process.
This is because the
StreamingOMSerializer.serializeAttributes() method attempts
to use the namespace even if there isn't one.



CORRECTION:  I modified the method to perform a null check on the namespace
and not use it if it was null.  This allowed the xml to be properly streamed
out.  The modified code, in bold, is shown below:



/**

 * @param reader

 * @param writer

 * @throws XMLStreamException

 */

protected void serializeAttributes(XMLStreamReader
reader,

   XMLStreamWriter
writer)

throws XMLStreamException {

int count = reader.getAttributeCount();

String prefix = null;

String namespaceName = null;

String writerPrefix=null;

for (int i = 0; i < count; i++) {

prefix = reader.getAttributePrefix(i);

namespaceName = reader.getAttributeNamespace(i);



if ((namespaceName != null) && !"".equals(namespaceName)){

writerPrefix
=writer.getNamespaceContext().getPrefix(namespaceName);  //moved this line
into the if statement

//prefix has already being declared but this particular
attrib has a

//no prefix attached. So use the prefix provided by the
writer

if (writerPrefix!=null && (prefix==null ||
prefix.equals(""))){

writer.writeAttribute(writerPrefix, namespaceName,

reader.getAttributeLocalName(i),

reader.getAttributeValue(i));



//writer prefix is available but different from the
current

//prefix of the attrib. We should be decalring the new
prefix

//as a namespace declaration

}else if (prefix!=null && !"".equals(prefix)&&
!prefix.equals(writerPrefix)){

writer.writeNamespace(prefix,namespaceName);

writer.writeAttribute(prefix, namespaceName,

reader.getAttributeLocalName(i),

reader.getAttributeValue(i));



//prefix is null (or empty), but the namespace name is
valid! it has not

//being written previously also. So we need to generate
a prefix

//here

}else{

prefix =
generateUniquePrefix(writer.getNamespaceContext());

writer.writeNamespace(prefix,namespaceName);

writer.writeAttribute(prefix, namespaceName,

reader.getAttributeLocalName(i),

reader.getAttributeValue(i));

}

}else{

//empty namespace is equal to no namespace!

writer.writeAttribute(reader.getAttributeLocalName(i),

reader.getAttributeValue(i));

}





}

}



Recommend this code correction be included in the next Axiom release.



Please let me know if this code change will be included or if some other
correction is made.

Thanks,

Jim







--
Davanum Srinivas : http://wso2.com/blogs/

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



Re: String[] for xsd:anyType with axis1.2.1

2006-05-25 Thread Ravi Krishnamurthy




XinJun/Anne:
I was monitoring the soap message using the tcp monitor.

The soapresponse for the RPC is as below:

   "http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  
 "http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://testanytyperpc.webservice.com">
    
 
 "http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:SimpleJavaBeanRPC"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://testanytyperpc.webservice.com">
    
    
   one
   two
    
 
  
   

The soap response for the doc/lit/wrapped is as below:


   "http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  
 "http://testanytype.webservice.com">
    
   
   
  one
  two
   
    
 
  
   

Interestingly the value tag does not contain the type information with
the docl/lit/wrapped but in the rpc/encoded it does.

Any ideas are welcome.
Also since my webservice needed to be accessed by the .NET client, I
tried to use soap/encoded since it worked but when I used visual studio
2005 found out when I send String[2}, there is an third element that
comes with value null. Looks like the VB client is added one more index
with value null and my webservice throws NullPointer since the null
valeu is never expected.

Regards,
Ravi

Ravi Krishnamurthy wrote:

  
XinJun:
The exception stack trace on the client side is as below:
AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException: No deserializer for
{http://www.w3.org/2001/XMLSchema}anyType
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
No deserializer for {http://www.w3.org/2001/XMLSchema}anyType
    at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:314)
    at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
    at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
    at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
    at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
    at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
    at org.apache.axis.client.Call.invoke(Call.java:2467)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at
com.webservice.testanytype.TestAnyTypeSoapBindingStub.getSimpleBean(TestAnyTypeSoapBindingStub.java:191)
    at
com.webservice.testanytype.AnyTypeArrayTestServiceTestCase.test2TestAnyTypeGetSimpleBean(AnyTypeArrayTestServiceTestCase.java:61)
    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:324)
    at junit.framework.TestCase.runTest(TestCase.java:216)
    at junit.framework.TestCase.runBare(TestCase.java:188)
    at junit.framework.TestResult$1.protect(TestResult.java:150)
    at junit.framework.TestResult.runProtected(TestResult.java:168)
    at junit.framework.TestResult.run(TestResult.java:153)
    at junit.framework.TestCase.run(TestCase.java:179)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
  
    {http://xml.apache.org/axis/}hostname:chennai
  
org.xml.sax.SAXException: No deserializer for
{http://www.w3.org/2001/XMLSchema}anyType
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    at org.apache.axis.client.Call.invoke(Call.java:2470)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at
com.webservice.testanytype.TestAnyTypeSoapBindingStub.getSimpleBean(TestAnyTypeSoapBindingStub.java:191)
    at
com.webservice.testanytype.AnyTypeArrayTestServiceTestCase.test2TestAnyTypeGetSimpleBean(AnyTypeArrayTestServiceTestCase.java:61)
    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:324)
    at junit.framework.TestCase.runTest(TestCase.java:216)
    at junit.frame

Setting xsd:sequence in code

2006-05-25 Thread Jfk

I am using the Axis source codes -> samples\stock codes from Axis setup as a
base to start my coding.
 
There are the following codes in the GetQuote.java program:
call.setTargetEndpointAddress( url );
call.setOperationName( new QName("urn:xmltoday-delayed-quotes", "getQuote")
);
call.addParameter( "symbol", XMLType.XSD_STRING, ParameterMode.IN );
call.setReturnType( XMLType.XSD_FLOAT ); 

In this case, XXX will be sent to the remote web service.
 
I have 2 questions here.
1) How do i add params such that the symbols have children/sequence?
i.e. I want to sent symbol as
  
 12
 xxx
 999
  
2) How do i set the return values to more than 1 value? i might need to get
a couple of response values from the remote side rather than 1 float value.
 
thanks in advance.
--
View this message in context: 
http://www.nabble.com/Setting+xsd%3Asequence+in+code-t1684600.html#a4569470
Sent from the Axis - User forum at Nabble.com.


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



AXIS2 1.0 Serialization Problem

2006-05-25 Thread Suyog Gandhi
<>

AXIS2 1.0

2006-05-25 Thread Suyog Gandhi
<>

Re: String[] for xsd:anyType with axis1.2.1

2006-05-25 Thread Ravi Krishnamurthy




Anne:
Changing to Object[] also does not work.

Regards,
Ravi
Anne Thomas Manes wrote:
Perhaps you need Object[] rather than Object.
  
Anne
  
  On 5/25/06, Hariharasudhan.D Dhakshinamoorthy <
[EMAIL PROTECTED]> wrote:
  

Ravi ,
i too have the same problem , could you figure out something ?


 


On 5/25/06, Ravi Krishnamurthy <[EMAIL PROTECTED]
> wrote:
Hello;
Would be evry helpful if someone could reply this email.
  
thanks,
Ravi
  
Ravi Krishnamurthy wrote: 
  
> More information:
> The exception that I mentioned happens only if the webservice is a
> document/literal/wrapped but with RPC it is fine.
>
> Is there is any known bug related to wrapped/literal style,
anytype 
> and ArrayOfString and axis1.2.1
>
> Thanks,
> Ravi
>
> Ravi Krishnamurthy wrote:
>
>> Hello;
>> One of the javabean I have registered as a bean mapping has a
field 
>> of Object type which corresponds to xsd:anyType. But the
types  for
>> Object are always primitive types. As long they are primitives
it
>> works fine. I tried to pass String[] and it started to throw 
>> exception at the test cases generated by wsdl2java when I
executed
>> the JUnit test case as below:
>>
>> AxisFault
>>  faultCode:
>> {
http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>>  faultSubcode:
>>  faultString: org.xml.sax.SAXException: No deserializer for
>> {
http://www.w3.org/2001/XMLSchema}anyType
>>  faultActor:
>>  faultNode:
>>  faultDetail:
>> {
http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException :
>> No deserializer for {
http://www.w3.org/2001/XMLSchema}anyType
>> at
>> org.apache.axis.encoding.ser.BeanDeserializer.onStartChild
(BeanDeserializer.java:314)
>>
>> at
>> org.apache.axis.encoding.DeserializationContext.startElement
(DeserializationContext.java:1035)
>>
>> at
>> org.apache.axis.message.SAX2EventRecorder.replay
(SAX2EventRecorder.java:165)
>>
>> at
>> org.apache.axis.message.MessageElement.publishToHandler
(MessageElement.java:1141)
>>
>> at
>> org.apache.axis.message.RPCElement.deserialize
(RPCElement.java:236)
>> at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
  
>> at org.apache.axis.client.Call.invoke(Call.java:2448)
>> at org.apache.axis.client.Call.invoke (Call.java:2347)
>> at org.apache.axis.client.Call.invoke(Call.java:1804)
>> at
  
>>
com.savvion.webservice.workflow.BizLogic1SoapBindingStub.getProcessTemplateDataSlot(BizLogic1SoapBindingStub.java
:1704)
>>
>> at
>>
com.savvion.webservice.workflow.WorkFlowWSServiceTestCase.test20BizLogic1GetProcessTemplateDataSlot
(WorkFlowWSServiceTestCase.java:457)
>>
>> 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:324)
>> at junit.framework.TestCase.runTest(TestCase.java:216)
>> at junit.framework.TestCase.runBare(TestCase.java :188)
>> at
junit.framework.TestResult$1.protect(TestResult.java:150)
>> at junit.framework.TestResult.runProtected
(TestResult.java:168)
>> at junit.framework.TestResult.run(TestResult.java :153)
>> at junit.framework.TestCase.run(TestCase.java:179)
>> at
>>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:478)
>>
>> at 
>>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
>>
>> at
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java :196)
>>
>>
>> {http://xml.apache.org/axis/}hostname:chennai
  
>>
>> The returned soap envelop looks like below:
>> HTTP/1.1 200 OK
>>
>> Date: Wed, 24 May 2006 23:45:26 GMT
>>
>> Content-Type: text/xml; charset=utf-8
  
>>
>> Connection: Close
>>
>>
>> 
>> 
>>
>> xmlns:soapenv="
  http://schemas.xmlsoap.org/soap/envelope/
  "
>> xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
  ">
>>   
>>  
>> xmlns="
http://workflow.webservice.savvion.com ">
>> 
>>
>>false
  
>>false
>>listds
>>1
>>LIST 
>>
>>   one
>>   ten
>>
>>  
>>  
>>   
>>
>>
>> and the xsd:anytype if for the following element:
  
>> 
>>   one
>>   ten
>>
>>
>> Would appreciate any help on this. 
>>
>> Thanks,
>> Ravi
>
>
>
>
>
>
-
> To unsubscribe, e-mail: 
[EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
  
>
  
  
  

Re: XMLStreamException when streaming large data set returns from the server using OMDataSource

2006-05-25 Thread Davanum Srinivas

For #1, please log a JIRA bug.

For #2, please set the timeout options

options.setProperty(org.apache.axis2.transport.http.HTTPConstants.SO_TIMEOUT,new
Integer(48));
options.setProperty(org.apache.axis2.transport.http.HTTPConstants.CONNECTION_TIMEOUT,new
Integer(48));

thanks,
dims

On 5/25/06, Jim Peterson <[EMAIL PROTECTED]> wrote:





PROBLEM:  When an extremely large data set (i.e. 72 Mb of XML) is attempted
to be serialized and sent from the server using the OMSourcedElementImpl
with an OMDataSource, the XML streaming stops fairly early on with a
XMLStreamException shown below (note that the stack trace can only be seen
if you modify the StreamingOMSerializer to print it out):



17:03:03,562 INFO  [STDOUT]
javax.xml.stream.XMLStreamException

17:03:03,562 INFO  [STDOUT] at
com.ctc.wstx.sw.BaseNsStreamWriter.doWriteStartTag(BaseNsStreamWr

iter.java:495)

17:03:03,562 INFO  [STDOUT] at
com.ctc.wstx.sw.SimpleNsStreamWriter.writeStartOrEmpty(SimpleNsSt

reamWriter.java:247)

17:03:03,562 INFO  [STDOUT] at
com.ctc.wstx.sw.BaseNsStreamWriter.writeStartElement(BaseNsStream

Writer.java:273)

17:03:03,562 INFO  [STDOUT] at
org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeStartElement(MT

OMXMLStreamWriter.java:87)

17:03:03,578 INFO  [STDOUT] at
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializ

eElement(StreamingOMSerializer.java:129)

17:03:03,578 INFO  [STDOUT] at
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializ

eNode(StreamingOMSerializer.java:79)

17:03:03,578 INFO  [STDOUT] at
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializ

e(StreamingOMSerializer.java:60)

17:03:03,578 INFO  [STDOUT] at
org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStr

eam(OMSerializerUtil.java:315)

17:03:03,578 INFO  [STDOUT] at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OME

lementImpl.java:786)

17:03:03,593 INFO  [STDOUT] at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndC

onsume(OMElementImpl.java:809)

17:03:03,593 INFO  [STDOUT] at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OME

lementImpl.java:780)

17:03:03,593 INFO  [STDOUT] at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerializ

e(SOAPEnvelopeImpl.java:171)

17:03:03,593 INFO  [STDOUT] at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndC

onsume(OMElementImpl.java:809)

17:03:03,609 INFO  [STDOUT] at
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNo

deImpl.java:381)

17:03:03,609 INFO  [STDOUT] at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUs

ingOutputStream(CommonsHTTPTransportSender.java:256)

17:03:03,609 INFO  [STDOUT] at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke

(CommonsHTTPTransportSender.java:210)

17:03:03,609 INFO  [STDOUT] at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)





CORRECTION:  In the server axis2.xml file, set the enableMTOM parameter to
true.  This allows the entire data set to be serialized to the client.
Server memory spikes, but comes back down.



Why does MTOM have to enable on the server to make this work?  Is there a
way to make large data set returns work without using MTOM?  We would rather
not use MTOM in our server responses.



RELATED PROBLEM:  Even with MTOM set on the server side and client side
memory set to a high level, the client throws the following Read timed out
exception when trying to receive the large data set return:



org.apache.axis2.AxisFault: Read timed out; nested exception is:

  java.net.SocketTimeoutException: Read timed out; nested exception is:

  org.apache.axis2.AxisFault: Read timed out; nested exception is:

  java.net.SocketTimeoutException: Read timed out

  at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:223)

  at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)

  at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328)

  at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)

  at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457)

  at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)

  at
ipt.tas.gateway.service.data_maint.DataMaintenanceServiceTest.testLoadedQuery(DataMaintenanceServiceTest.java:474)

  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)

  at
junit.framework.TestCase.runTest(TestCase.java:154)

  at
junit.framework.TestCase.runBare(TestCase.java:127)

  at
junit.framework.TestResult$1.pr

XMLStreamException when streaming large data set returns from the server using OMDataSource

2006-05-25 Thread Jim Peterson








PROBLEM:  When an extremely
large data set (i.e. 72 Mb of XML) is attempted to be serialized and sent from
the server using the OMSourcedElementImpl with an OMDataSource, the XML
streaming stops fairly early on with a XMLStreamException shown below (note
that the stack trace can only be seen if you modify the StreamingOMSerializer
to print it out):

 

17:03:03,562 INFO  [STDOUT]
javax.xml.stream.XMLStreamException

17:03:03,562 INFO 
[STDOUT] at
com.ctc.wstx.sw.BaseNsStreamWriter.doWriteStartTag(BaseNsStreamWr

iter.java:495)

17:03:03,562 INFO 
[STDOUT] at
com.ctc.wstx.sw.SimpleNsStreamWriter.writeStartOrEmpty(SimpleNsSt

reamWriter.java:247)

17:03:03,562 INFO 
[STDOUT] at
com.ctc.wstx.sw.BaseNsStreamWriter.writeStartElement(BaseNsStream

Writer.java:273)

17:03:03,562 INFO 
[STDOUT] at
org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeStartElement(MT

OMXMLStreamWriter.java:87)

17:03:03,578 INFO 
[STDOUT] at
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializ

eElement(StreamingOMSerializer.java:129)

17:03:03,578 INFO 
[STDOUT] at
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializ

eNode(StreamingOMSerializer.java:79)

17:03:03,578 INFO 
[STDOUT] at
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializ

e(StreamingOMSerializer.java:60)

17:03:03,578 INFO 
[STDOUT] at
org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStr

eam(OMSerializerUtil.java:315)

17:03:03,578 INFO 
[STDOUT] at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OME

lementImpl.java:786)

17:03:03,593 INFO 
[STDOUT] at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndC

onsume(OMElementImpl.java:809)

17:03:03,593 INFO 
[STDOUT] at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OME

lementImpl.java:780)

17:03:03,593 INFO 
[STDOUT] at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerializ

e(SOAPEnvelopeImpl.java:171)

17:03:03,593 INFO 
[STDOUT] at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndC

onsume(OMElementImpl.java:809)

17:03:03,609 INFO 
[STDOUT] at
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNo

deImpl.java:381)

17:03:03,609 INFO 
[STDOUT] at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUs

ingOutputStream(CommonsHTTPTransportSender.java:256)

17:03:03,609 INFO 
[STDOUT] at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke

(CommonsHTTPTransportSender.java:210)

17:03:03,609 INFO 
[STDOUT] at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)

 

 

CORRECTION:  In the server
axis2.xml file, set the enableMTOM parameter to true.  This allows the
entire data set to be serialized to the client.  Server memory spikes, but
comes back down.

 

Why does MTOM have to enable on the
server to make this work?  Is there a way to make large data set returns
work without using MTOM?  We would rather not use MTOM in our server
responses.

 

RELATED PROBLEM:  Even with
MTOM set on the server side and client side memory set to a high level, the
client throws the following Read timed out exception when trying to receive the
large data set return:

 

org.apache.axis2.AxisFault: Read
timed out; nested exception is: 

  java.net.SocketTimeoutException:
Read timed out; nested exception is: 

  org.apache.axis2.AxisFault:
Read timed out; nested exception is: 

  java.net.SocketTimeoutException:
Read timed out

  at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:223)

  at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)

  at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328)

  at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)

  at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457)

  at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)

  at
ipt.tas.gateway.service.data_maint.DataMaintenanceServiceTest.testLoadedQuery(DataMaintenanceServiceTest.java:474)

  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)

  at
junit.framework.TestCase.runTest(TestCase.java:154)

  at
junit.framework.TestCase.runBare(TestCase.java:127)

  at
junit.framework.TestResult$1.protect(TestResult.java:106)

  at
junit.framework.TestResult.runProtected(TestResult.java:124)

  at
junit.framework.TestResult.run(TestResult.java:109)

  at
junit.framework.TestCase.run(TestCase.java:118)

  at
junit.framework.TestSuite.runTest(TestSuite.java:208)

  at
junit.framework.TestSuite.run(TestSuite.j

standard business xml schemas

2006-05-25 Thread Len Takeuchi
Hi,

This is a little off topic but I'm looking for standard based xml schema for
business documents, in particular order document (with billing address,
shipping address and order lines), oriented towards small businesses.

I know there is Universal Business Language by OASIS.  Is this gaining any
traction?  In some ways, we would like something simpler since we are
oriented towards small businesses.

If you have any suggestions for schemas I should look at, please let me
know.

Thanks,
Len Takeuchi
Salescentrix



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



Problem with code generated by WSDL2Code

2006-05-25 Thread Paul Gonchar
Hi guys,
I've just started using Axis2. I need to generate
server skeletons. I used the following command:

call WSDL2Code.bat -uri
C:\project\cvs\gazoo\src\share\xml\webservice\userprofile\ver2.0\userProfile.wsdl
-ss -sd -d adb -p com.test.generated -o output/server

and I got a bunch of generated code that can't be
compiled. I've noticed things like calls to
org.apache.axis2.databinding.utils.ConverterUtil.convertToToken(content)
(there is no method convertToToken in ConverterUtil)
which may be fixed by replacing convertToToken with
convertTotoken

The same thing with 

org.apache.axis2.databinding.utils.ConverterUtil.convertToCalendar(content)
-> must be replaced with convertTodateTime

Finally I got into problem I can't fix :


private  java.lang.Object fromOM(

org.apache.axiom.om.OMElement param,
 java.lang.Class
type,
 java.util.Map
extraNamespaces) {

try {

if
(org.apache.axiom.om.OMElement.class.equals(type)){   

return
org.apache.axiom.om.OMElement.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}

} catch (Exception e) {
throw new RuntimeException(e);
}

return null;
}


The problem is in line
org.apache.axiom.om.OMElement.Factory - there is no
variable Factory in class  OMElement.


Am i doing something wrong or Axis2 is indeed that
buggy?


Thanks!
Paul Gonchar






__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



StreamingOMSerializer error when using an OMDataSource

2006-05-25 Thread Jim Peterson








PROBLEM:  If the XML to be
streamed back has a tag with attributes, but no namespace, a null pointer
exception is thrown in the streaming process.  This is because the
StreamingOMSerializer.serializeAttributes() method attempts to use the
namespace even if there isn’t one. 

 

CORRECTION:  I modified the
method to perform a null check on the namespace and not use it if it was
null.  This allowed the xml to be properly streamed out.  The
modified code, in bold, is shown
below:

 

    /**

 * @param
reader

 * @param
writer

 * @throws
XMLStreamException

 */

    protected void
serializeAttributes(XMLStreamReader reader,

  
XMLStreamWriter writer)

   
throws XMLStreamException {

   
int count = reader.getAttributeCount();

   
String prefix = null;

   
String namespaceName = null;

   
String writerPrefix=null;

   
for (int i = 0; i < count; i++) {

   
prefix = reader.getAttributePrefix(i);

   
namespaceName = reader.getAttributeNamespace(i);

 

   
if ((namespaceName != null) && !"".equals(namespaceName)){

   
writerPrefix =writer.getNamespaceContext().getPrefix(namespaceName); 
//moved this line into the if statement

  
 //prefix has already being declared but this
particular attrib has a

   
//no prefix attached. So use the prefix provided by the writer

   
if (writerPrefix!=null && (prefix==null ||
prefix.equals(""))){

   
writer.writeAttribute(writerPrefix, namespaceName,

   
reader.getAttributeLocalName(i),

   
reader.getAttributeValue(i));

 

   
//writer prefix is available but different from the current

   
//prefix of the attrib. We should be decalring the new prefix

   
//as a namespace declaration

   
}else if (prefix!=null && !"".equals(prefix)&&
!prefix.equals(writerPrefix)){

   
writer.writeNamespace(prefix,namespaceName);

   
writer.writeAttribute(prefix, namespaceName,

   
reader.getAttributeLocalName(i),

   
reader.getAttributeValue(i));

 

   
//prefix is null (or empty), but the namespace name is valid! it has not

   
//being written previously also. So we need to generate a prefix

   
//here

   
}else{

   
prefix = generateUniquePrefix(writer.getNamespaceContext());

   
writer.writeNamespace(prefix,namespaceName);

   
writer.writeAttribute(prefix, namespaceName,

   
reader.getAttributeLocalName(i),

   
reader.getAttributeValue(i));

   
}

   
}else{

   
//empty namespace is equal to no namespace!

   
writer.writeAttribute(reader.getAttributeLocalName(i),

   
reader.getAttributeValue(i));

   
}

 

 

   
}

    }

 

Recommend this code correction be
included in the next Axiom release.

 

Please let me know if this code
change will be included or if some other correction is made.

Thanks,

Jim

 

 








OMSourcedElementImpl error when using an OMDataSource

2006-05-25 Thread Jim Peterson








PROBLEM:  

I used Axis2’s OMSourcedElementTest.java
as an example of how to use a custom OMDataSource.  In this case you
construct an OMSourcedElementImpl class and give it your custom OMDataSource.  When
the service implementation class the constructed OMSourcedElementImpl and Axiom
streams it out, the OMSerializerUtil class makes a call to OMSourcedElementImpl.getXMLStreamReaderWithoutCaching(),
which returns an XMLStreamReader WITH caching.  This sends the code down
an execution path that fails to stream the OMSourcedElementImpl because it
looks for OMElement objects that aren’t there. 

 

CORRECTION:  

I eliminated the
OMSourcedElementImpl.getXMLStreamReaderWithoutCaching() method.  This caused
the superclass OMElementImpl.getXMLStreamReaderWithoutCaching() method to be
executed, which properly returns the an XMLStreamReader without caching and
allows the OMSourcedElementImpl to be serialized correctly.  Recommend
this code correction be included in the next Axiom release.

 

Please let me know if this code
change will be included or if some other correction is made.

Thanks,

Jim

 








RE: Buggy .aar deployment

2006-05-25 Thread Scudder, Jeffrey W
Thank you Robert and Junaid, 

Changing to RPCMessageReceiver did resolve the WSDL generation issue, however I 
am having a second problem when using a client I have written. I receive a 500 
error from the server and a look into the Tomcat logs reveals the following top 
level error (full trace below).

org.apache.axiom.om.OMException: SOAPEnvelope must contain a body element which 
is either first or second child element of the SOAPEnvelope.

The data I am sending to the server is:


http://schemas.xmlsoap.org/soap/envelope/";>
  
  Hello Axis2
  


I had also discovered another error, which was, my client code was in the 
"default package" which led to a null namespace error. I have corrected the 
problem by giving my service code a namespace and recompiling. The service 
looks to be deployed correctly from the Axis2 browser interface. I am starting 
to think that the problem is with my client. 
What really confuses me, is that all of this was working on Axis2 version 0.95. 
I have no idea where I am going wrong. 

Ideas?
Thank you,

Jeff Scudder

Full Tomcat error log trace from stdout...:

- Servlet.service() for servlet AxisServlet threw exception
org.apache.axiom.om.OMException: SOAPEnvelope must contain a body element which 
is either first or second child element of the SOAPEnvelope.
at 
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getBody(SOAPEnvelopeImpl.java:142)
at 
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.addChild(SOAPEnvelopeImpl.java:103)
at 
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:82)
at 
org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183)
at 
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
- Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for 
this response
at org.apache.catalina.connector.Response.getWriter(Response.java:599)
at 
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
at 
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
at 
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
at 
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
at 
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
at 
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
at 
org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp.java:97)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672

About out parameters with Serializer

2006-05-25 Thread Frederico Faria
Hi,

 I am novice for  Axis and I have implemented with
success a simple sample using Bean Serializer for
complex type  parameters and another sample using
Holder classes for basic types output parameters (
such as String ).
  Now I want to use  complex types as output
parameters. So I think I have "mix" my 2 samples: the
Bean Serializer with Holder classes. But I have not
had success. I want return an OrderInfo object then I
create the OrderInfoHolder class.
 
  My questions are:

 1-) Could the file below to be a correct wsdd file
for
a OrderInfo( a bean like )  class returned as an OUT
parameter ??


   http://xml.apache.org/axis/wsdd/";
   
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
 
  
  
  
   

   

 




2-)  In call.registerTypeMapping() call in client
should I keep the same call ( as below ),  or do I
have replace the OrderInfo with the OrderInfoHolder
class:

call.registerTypeMapping(OrderInfo.class, qn, new
org.apache.axis.encoding.ser.BeanSerializerFactory(OrderInfo.class,
qn),
new
org.apache.axis.encoding.ser.BeanDeserializerFactory(OrderInfo.class,
qn));   


Regards,

Frederico Faria








___ 
Yahoo! doce lar. Faça do Yahoo! sua homepage. 
http://br.yahoo.com/homepageset.html 


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



AW: ServiceLifecycle

2006-05-25 Thread ebaykunde
Hello,

I have still the same problem.

> Follow the example in the URL:
> 1. your impl class implements javax.xml.rpc.server.ServiceLifecycle
> 2. implement init(Object ctx) and destroy()
My problem is hat the init and destroy method is only called, if I implement
the ServiceLifecycle interface in the Skeleton class. But this is not what I
want to do, because this class is not very nice and would be overwritten if
I do another Java2WSDL task.

> It works for me in Axis 1.2.1 and Axis 1.3.
I use axis 1.4 but I think that's not the problem.

> Search for basic mistakes: are you overwriting your impl and deploying 
> that instead? Is the impl class in Tomcat's webapps/classes really the 
> one you made? Do you have two versions, one in web-inf/classes and one 
> in web-inf/lib?
I have checked this.

> IIRC, the init method will be called when the Axis servlet is activated.
> I believe Tomcat activates servlets at start-up time, but Servlet 
> container implementations are allowed to do this at first access (just 
> before the first incoming request).
I am a little bit confused about the ServiceLifecycle. The ServiceLifecycle
seems to be called every time if I call
http://localhost:7070/myapp/services/SyncService?method=getPerson
in the browser etc.. That's OK and what I want to have. But in some
documentations and also in books they write the init method of a service
will be called only ONCE before he can accept requests. I think that's not
correct?!?

> There is no need to set anything in the web.xml or wsdd to make it work.
OK.
 
> PS: If you really can't get it to work, send us your appl (or smaller 
> version of it).
That's very kindly from you. Please see the attached short code (including
also build.xml and server-config.wsdd). You have only to add the axis libs
to test it.

The code produces in my case:
Skeleton - init
Skeleton - destroy
Skeleton - init
Skeleton - destroy
..

I would think, he should generates:
Skeleton - init
ServiceImpl - init
PersonService - init
Skeleton - destroy
ServiceImpl - destroy
PersonService - destroy

The init and destroy method of ServieImpl will also not be called if I
comment the other two.

Your help is very, very appreciated!

Many thanks,
Ralph

PS:
Another ugly thing why overwrites Axis with every java2wsdl task the
ServiceImpl class?


test.wsdl
Description: Binary data



			
	
	

	
		
			
		
	

	

	
		
			http://www.name.com/myapp/";
			 package="com.name.myapp.websevice.axis" />
		
	



http://java.sun.com/xml/ns/j2ee"; 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
	http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

  Test - ServiceLifecycle
	
  
  
  	Apache-Axis Servlet
AxisServlet
org.apache.axis.transport.http.AxisServlet
  

  
  	Axis Admin Servlet
AdminServlet
org.apache.axis.transport.http.AdminServlet
100
  

  
  	SOAPMonitorService
SOAPMonitorService
org.apache.axis.monitor.SOAPMonitorService

  SOAPMonitorPort
  5001

100
  

  
AxisServlet
/servlet/AxisServlet
  

  
AxisServlet
*.jws
  

  
AxisServlet
/services/*
  

  
SOAPMonitorService
/SOAPMonitor
  

 
 
  
index.html
index.jsp
index.jws
  



server-config.wsdd
Description: Binary data


ServiceImpl.java
Description: Binary data


PersonService.java
Description: Binary data


MyAppServiceBindingSkeleton.java
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Mentioning namespace for the SOAP Message

2006-05-25 Thread Suyog Gandhi
With the latest build ( as of 25 May nightly build) namespace problem
seems to be solved. And now many of the calls started working.

One method returns Array of String and input parameter is String. That
method is giving me following error. ( This method used to work with
Axis 1.0 release version.)
I am getting some error trace in server side but I cannot see SOAP
Request in SOAP monitor. Why would this happen?

Exception in thread "main" org.apache.axis2.AxisFault: Exception
occurred while trying to invoke service method getDimensionNames
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:287)
at
com.vistaar.clemenza.shared.webs.stub.WS_MDS32Stub.getDimensionNames(WS_
MDS32Stub.java:1429)
at
com.vistaar.clemenza.shared.webs.client.WSClient.main(WSClient.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: java.lang.Exception: org.apache.axis2.AxisFault: Exception
occurred while trying to invoke service method getDimensionNames; nested
exception is:
java.lang.NullPointerException
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RP
CMessageReceiver.java:141)
at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abst
ractInOutSyncMessageReceiver.java:37)
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques
t(HTTPTransportUtils.java:284)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
8)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:663)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RP
CMessageReceiver.java:86)
... 20 more

at org.apache.axis2.AxisFault.(AxisFault.java:159)
... 8 more



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 2:10 PM
To: axis-user@ws.apache.org
Subject: Re: Mentioning namespace for the SOAP Message


Suyog,
The WSDL generation has apparently been fixed as per:
http://issues.apache.org/jira/browse/AXIS2-721

Check if this also fixes your original problem of namespace mismatch for
the Response returned from the Web Service invocation.

- Junaid





 "Anne Thomas

 Manes"

 <[EMAIL PROTECTED]
To
 m>axis-user@ws.apache.org


cc
 05/25/2006 08:54

 AM
Subject
   Re: Mentioning namespace for the

   SOAP Message

 Please respond to

 [EMAIL PROTECTED]

  he.org











It's a bug. I believe it's been fixed in the latest build.

Anne

On 5/24/06, Suyog Gandhi <[EMAIL PROTECTED] > wrote:
  This WSDL is created by Axis2 upon the deploy of .aar
  file. How do I avoid that namespace attribute? Is there
  some kind of setting in some file?


  On Wed, 24 May 2006 20:39:14 -0400
"Anne Thomas Manes" <[EMAIL PROTECTED]> wrote:
  > You must remove the namespace attributes from your
  >
  > definitions, e.g., body defin

Re: [Axis2] disabling prefix optimization

2006-05-25 Thread Davanum Srinivas

woohooo!!! Please switch your email client to send plain text messages...

thanks,
dims

On 5/25/06, Daniel Jemiolo <[EMAIL PROTECTED]> wrote:



Hi - the latest snapshot did work - now I just to get the client side updated 
to Axis2.  :)

thanks,
Dan





 "Davanum Srinivas" <[EMAIL PROTECTED]>

05/23/2006 05:22 PM

Please respond to
 axis-user@ws.apache.org


To axis-user@ws.apache.org

cc


Subject Re: [Axis2] disabling prefix optimization








Dan,

 AFAIK, this problem has been fixed in AXIOM SVN. Could u please try that?

 thanks,
 dims

 On 5/23/06, Daniel Jemiolo <[EMAIL PROTECTED]> wrote:
 >
 > Hi,
 >
 > I'm encountering some behavior in Axis2/Axiom that I also saw in Axis 1.x,
 > and I want to make sure there's no flag/setting that's escaped me before I
 > go off and hack around it. I think the problem might be generic to Axiom,
 > but it definitely affects both versions of Axis, so I figure this list would
 > be a good place to start.
 >
 > My problem is that sometime in between the call to AxisEngine.send() and the
 > serialization of the SOAP response onto the wire, my SOAP response loses a
 > lot of prefix-namespace mappings. Here is an example:
 >
 >
 > SOAP body I create and return from an Axis2 service method:
 >
 >
 > 
 > 
 >foo:MyTopicName
 > 
 > 
 >
 >
 > SOAP body that I receive on the client side (w/ an Axis 1.x client):
 >
 >
 > 
 > 
 >foo:MyTopicName
 > 
 > 
 >
 >
 > Notice the lack of xmlns:foo="...". It has been "optimized away", because
 > there is no element name or attribute name within the XML fragment that has
 > foo: as a prefix. But the prefix IS being used - it is referenced in the
 > text value of the  element. When this XML is received on the
 > client side, I try to parse the value as a QName, and, finding no match for
 > the foo: prefix, must either throw an exception or treat the value as a
 > simple name (neither will produce the correct results).
 >
 > I have tried using OMElement.setText(QName) in the hopes that this would
 > solve the problem, but a) it does not appear to change the behavior, and b)
 > it does not address the use of QNames as attribute values. Both of these
 > situations occur frequently in the WSRF, WSN, and WSDM specifications, and
 > it's not possible to build spec-compliant implementations without these
 > "unused" prefix declarations.
 >
 > Axis 1.x had a configuration flag called
 > "enableNamespacePrefixOptimization" which supposedly turned
 > off this XML optimization. Changing the value never seemed to work for me,
 > but nevertheless, the idea is a good one. Is it possible to add a setting to
 > Axis2 so that it will leave the SOAP envelope alone and send it as-is? Or,
 > more immediately, is there a suggested way to work around this? My current
 > hack (which is very ugly), is to create a dummy attribute within every
 > namespace whose prefix is being deleted in order to "trick" the SOAP/OM
 > implementation into keeping them around. This doesn't hurt interop, it's
 > just ugly and bad for performance.
 >
 > I guess it's also extremely ironic, since the goal of the original author
 > was to minimize the size of the XML payload.  :)
 >
 >
 > Thanks,
 > Dan
 >
 >
 >  Dan Jemiolo
 >  IBM Corporation
 >  Research Triangle Park, NC
 >
 >
 >  +++ I'm an engineer. I make slides that people can't read. Sometimes I eat
 > donuts. +++
 >
 >


 --
 Davanum Srinivas : http://wso2.com/blogs/


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







--
Davanum Srinivas : http://wso2.com/blogs/

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



[Axis2] ServiceClient - empty SOAP headers

2006-05-25 Thread Daniel Jemiolo

Hi,

I'm trying to use Axis2's ServiceClient.sendReceive()
method, and it seems to be ignoring the Options that I specify. I've looked
through the code and figure out what step I'm missing - I've gotten all
the way to InOutAxisOperationClient and it seems as though the Options
object *is* used (plus, other people are using it successfully, which means
it must be me  :)  ).

My code looks like this:


        Options
options = new Options();
        options.setExceptionToBeThrownOnSOAPFault(false);
        options.setAction(action.toString());
        
        EndpointReference
toEPR = ...
        EndpointReference
fromEPR = ...
        
        options.setTo(toEPR);
        options.setFrom(fromEPR);

        OMElement
body = ...

        ServiceClient
client = new ServiceClient();
        client.setOptions(options);

        OMElement
result = client.sendReceive(body);


The resulting SOAP envelope has an empty soapenv:Header element - none
of the WS-Addressing headers specified in the Options object are present.
I've tried using setOverrideOptions() and addHeader(), but neither of these
changes the behavior. Through all of this, the soapenv:Body is correct.

Has anyone else experienced a blank
set of SOAP headers when trying to use ServiceClient.sendReceive()?

Dan


Dan Jemiolo
IBM Corporation
Research Triangle Park, NC


+++ I'm an engineer. I make slides that people can't read. Sometimes I
eat donuts. +++



Re: [Axis2] disabling prefix optimization

2006-05-25 Thread Daniel Jemiolo

Hi - the latest snapshot did work -
now I just to get the client side updated to Axis2.  :)

thanks,
Dan







"Davanum Srinivas"
<[EMAIL PROTECTED]> 
05/23/2006 05:22 PM



Please respond to
axis-user@ws.apache.org





To
axis-user@ws.apache.org


cc



Subject
Re: [Axis2] disabling prefix optimization








Dan,

AFAIK, this problem has been fixed in AXIOM SVN. Could u please try that?

thanks,
dims

On 5/23/06, Daniel Jemiolo <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm encountering some behavior in Axis2/Axiom that I also saw in Axis
1.x,
> and I want to make sure there's no flag/setting that's escaped me
before I
> go off and hack around it. I think the problem might be generic to
Axiom,
> but it definitely affects both versions of Axis, so I figure this
list would
> be a good place to start.
>
> My problem is that sometime in between the call to AxisEngine.send()
and the
> serialization of the SOAP response onto the wire, my SOAP response
loses a
> lot of prefix-namespace mappings. Here is an example:
>
>
> SOAP body I create and return from an Axis2 service method:
>
>
> 
>     
>        foo:MyTopicName
>     
> 
>
>
> SOAP body that I receive on the client side (w/ an Axis 1.x client):
>
>
> 
>       
 
>        foo:MyTopicName
>     
> 
>
>
> Notice the lack of xmlns:foo="...". It has been "optimized
away", because
> there is no element name or attribute name within the XML fragment
that has
> foo: as a prefix. But the prefix IS being used - it is referenced
in the
> text value of the  element. When this XML is received
on the
> client side, I try to parse the value as a QName, and, finding no
match for
> the foo: prefix, must either throw an exception or treat the value
as a
> simple name (neither will produce the correct results).
>
> I have tried using OMElement.setText(QName) in the hopes that this
would
> solve the problem, but a) it does not appear to change the behavior,
and b)
> it does not address the use of QNames as attribute values. Both of
these
> situations occur frequently in the WSRF, WSN, and WSDM specifications,
and
> it's not possible to build spec-compliant implementations without
these
> "unused" prefix declarations.
>
> Axis 1.x had a configuration flag called
> "enableNamespacePrefixOptimization" which supposedly turned
> off this XML optimization. Changing the value never seemed to work
for me,
> but nevertheless, the idea is a good one. Is it possible to add a
setting to
> Axis2 so that it will leave the SOAP envelope alone and send it as-is?
Or,
> more immediately, is there a suggested way to work around this? My
current
> hack (which is very ugly), is to create a dummy attribute within every
> namespace whose prefix is being deleted in order to "trick"
the SOAP/OM
> implementation into keeping them around. This doesn't hurt interop,
it's
> just ugly and bad for performance.
>
> I guess it's also extremely ironic, since the goal of the original
author
> was to minimize the size of the XML payload.  :)
>
>
> Thanks,
> Dan
>
>
>  Dan Jemiolo
>  IBM Corporation
>  Research Triangle Park, NC
>
>
>  +++ I'm an engineer. I make slides that people can't read. Sometimes
I eat
> donuts. +++
>
>


-- 
Davanum Srinivas : http://wso2.com/blogs/

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




Re: String[] for xsd:anyType with axis1.2.1

2006-05-25 Thread Ravi Krishnamurthy




Hello XinJun:
Sorry the zip files I sent was returned since it is not accepted.So I
have atatched the individual files in this email:

The client files generated by the wsdl2java are:
       AnyTypeArrayTest.java   
AnyTypeArrayTestServiceTestCase.java
       AnyTypeArrayTestService.java SimpleJavaBean.java
       AnyTypeArrayTestServiceLocator.java 
TestAnyTypeSoapBindingStub.java


Main Client  Test Program:
Please look at the file: AnyTypeArrayTestServiceTestCase
             method: test2TestAnyTypeGetSimpleBean()

The wsdl file is : 
wsdl part of the program should refer to the line 70 in
TestAnytype.wsdl and eventually to the definition of the SimpleBean
which is line 14:
       
    
 
 
    
   

The server.confif that describes the services looks like below:



http://testanytype.webservice.com
 
 
 
 "http://testanytype.webservice.com"
qname="ns:SimpleJavaBean"/>
 



Eventually I want to use this webservice pblished using axis from a
.NET client.

Thanks for your help in advance,
Ravi

Xinjun Chen wrote:

  Hi Ravi, 
   
  Can you provide relevant part of WSDL and client code? 
   
  Regards, 
  Xinjun
  
 
  On 5/25/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
  
Perhaps you need Object[] rather than Object.
 

Anne


On 5/25/06, Hariharasudhan.D Dhakshinamoorthy <
[EMAIL PROTECTED]> wrote:

  
  Ravi ,
  i too have the same problem , could you figure out something
? 
  
 
  
  
  On 5/25/06, Ravi Krishnamurthy <[EMAIL PROTECTED] >
wrote:
  Hello;
Would be evry helpful if someone could reply this email.

thanks,
Ravi

Ravi Krishnamurthy wrote: 

> More information:
> The exception that I mentioned happens only if the webservice is a
> document/literal/wrapped but with RPC it is fine.
>
> Is there is any known bug related to wrapped/literal style,
anytype 
> and ArrayOfString and axis1.2.1
>
> Thanks,
> Ravi
>
> Ravi Krishnamurthy wrote:
>
>> Hello;
>> One of the javabean I have registered as a bean mapping has a
field 
>> of Object type which corresponds to xsd:anyType. But the
types  for
>> Object are always primitive types. As long they are primitives
it
>> works fine. I tried to pass String[] and it started to throw 
>> exception at the test cases generated by wsdl2java when I
executed
>> the JUnit test case as below:
>>
>> AxisFault
>>  faultCode:
>> {
http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>>  faultSubcode:
>>  faultString: org.xml.sax.SAXException: No deserializer for
>> {
http://www.w3.org/2001/XMLSchema}anyType
>>  faultActor:
>>  faultNode:
>>  faultDetail:
>> {
http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException :
>> No deserializer for {
http://www.w3.org/2001/XMLSchema}anyType
>> at
>> org.apache.axis.encoding.ser.BeanDeserializer.onStartChild
(BeanDeserializer.java:314)
>>
>> at
>> org.apache.axis.encoding.DeserializationContext.startElement
(DeserializationContext.java:1035)
>>
>> at
>> org.apache.axis.message.SAX2EventRecorder.replay
(SAX2EventRecorder.java:165)
>>
>> at
>> org.apache.axis.message.MessageElement.publishToHandler
(MessageElement.java:1141)
>>
>> at
>> org.apache.axis.message.RPCElement.deserialize
(RPCElement.java:236)
>> at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>> at org.apache.axis.client.Call.invoke(Call.java:2448)
>> at org.apache.axis.client.Call.invoke (Call.java:2347)
>> at org.apache.axis.client.Call.invoke(Call.java:1804)
>> at 
>>
com.savvion.webservice.workflow.BizLogic1SoapBindingStub.getProcessTemplateDataSlot(BizLogic1SoapBindingStub.java
:1704)
>>
>> at
>>
com.savvion.webservice.workflow.WorkFlowWSServiceTestCase.test20BizLogic1GetProcessTemplateDataSlot
(WorkFlowWSServiceTestCase.java:457)
>>
>> 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:324)
>> at junit.framework.TestCase.runTest(TestCase.java:216)
>> at junit.framework.TestCase.runBare(TestCase.java :188)
>> at
junit.framework.TestResult$1.protect(TestResult.java:150)
>> at junit.framework.TestResult.runProtected
(TestResult.java:168)
>> at junit.framework.TestResult.run(TestResult.java :153)
>> at junit.framework.TestCase.run(TestCase.java:179)
>> at
>>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:478)
>>
>> at 
>>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
>>
>> at
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java :196)
>>
>>
>> {http://xml.apache.org/axis/}hostname:chennai

>>
>> The returned soap envelop looks 

Re: String[] for xsd:anyType with axis1.2.1

2006-05-25 Thread Ravi Krishnamurthy




XinJun:
The exception stack trace on the client side is as below:
AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException: No deserializer for
{http://www.w3.org/2001/XMLSchema}anyType
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
No deserializer for {http://www.w3.org/2001/XMLSchema}anyType
    at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:314)
    at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
    at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
    at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
    at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
    at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
    at org.apache.axis.client.Call.invoke(Call.java:2467)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at
com.webservice.testanytype.TestAnyTypeSoapBindingStub.getSimpleBean(TestAnyTypeSoapBindingStub.java:191)
    at
com.webservice.testanytype.AnyTypeArrayTestServiceTestCase.test2TestAnyTypeGetSimpleBean(AnyTypeArrayTestServiceTestCase.java:61)
    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:324)
    at junit.framework.TestCase.runTest(TestCase.java:216)
    at junit.framework.TestCase.runBare(TestCase.java:188)
    at junit.framework.TestResult$1.protect(TestResult.java:150)
    at junit.framework.TestResult.runProtected(TestResult.java:168)
    at junit.framework.TestResult.run(TestResult.java:153)
    at junit.framework.TestCase.run(TestCase.java:179)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

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

org.xml.sax.SAXException: No deserializer for
{http://www.w3.org/2001/XMLSchema}anyType
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    at org.apache.axis.client.Call.invoke(Call.java:2470)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at
com.webservice.testanytype.TestAnyTypeSoapBindingStub.getSimpleBean(TestAnyTypeSoapBindingStub.java:191)
    at
com.webservice.testanytype.AnyTypeArrayTestServiceTestCase.test2TestAnyTypeGetSimpleBean(AnyTypeArrayTestServiceTestCase.java:61)
    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:324)
    at junit.framework.TestCase.runTest(TestCase.java:216)
    at junit.framework.TestCase.runBare(TestCase.java:188)
    at junit.framework.TestResult$1.protect(TestResult.java:150)
    at junit.framework.TestResult.runProtected(TestResult.java:168)
    at junit.framework.TestResult.run(TestResult.java:153)
    at junit.framework.TestCase.run(TestCase.java:179)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.xml.sax.SAXException: No deserializer for
{http://www.w3.org/2001/XMLSchema}anyType
    at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:314)
    at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
    at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
    at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
    at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
    at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
    at org.apache.axis.client.Call.invoke(Call.java:2467)
    ... 17 more


Thanks,
Ravi
Ravi Krishnamurthy wrote:

  
Hello XinJun:
I have attached the zip file called testanytype.zip that contains the
wsdl and also the testcase generated by the axis wsdl2java.
  
Client  Program:
Please look at the file: AnyTypeArrayTestServiceTestCase
             method: test2TestAnyTypeGetSimpleBean()
  
wsdl part of the program should refer to the line 70 in
TestAnytype.wsdl 

Deserialization Error with SOAP:Fault

2006-05-25 Thread Peter Conrey
Title: Deserialization Error with SOAP:Fault






I am developing a Java client application, using classes auto-generated by WSDL2Java, that makes requests to a Perl web service. All of the service requests work fine unless the service returns a SOAP fault. In all cases, the fault causes the following error on the client:

[DEBUG][org.apache.axis.transport.http.HTTPSender]: org.xml.sax.SAXParseException: Comment must start with "

Error building Axis Web Service

2006-05-25 Thread Espinosa Martinez, Francisco Javier








Im having this error trying to built my web service does
anybody know what is this about?? 

Im doing this in Netbeans 5.0 whit tomcat 5.5.9

 

Thanx guys!!

 

init:



deps-module-jar:



deps-ear-jar:



deps-jar:



library-inclusion-in-archive:



library-inclusion-in-manifest:



compile:



compile-jsps:



Generating WSDL document



Overriding previous definition of reference to
axis.classpath



- Unable to find required classes
(javax.activation.DataHandler and javax.mail.internet.MimeMultipart).
Attachment support is disabled.



Java2WSDL test.HelloService



Overriding previous definition of reference to
axis.classpath



- Unable to find required classes
(javax.activation.DataHandler and javax.mail.internet.MimeMultipart).
Attachment support is disabled.



Processing file C:\Documents and
Settings\FRANCISCOES\AxisTest\web\WEB-INF\HelloService.undeploy.wsdd



AxisFault



 faultCode: {http://xml.apache.org/axis/}HTTP



 faultSubcode: 



 faultString: (404)/AxisTest/services/AdminService



 faultActor: 



 faultNode: 



 faultDetail: 



    {}:return code:  404



Apache
Tomcat/5.5.9 - Error
report 

HTTP Status 404 - /AxisTest/services/AdminService


type Status report

message /AxisTest/services/AdminService

description The requested resource (/AxisTest/services/AdminService) is not available.


Apache Tomcat/5.5.9

    {http://xml.apache.org/axis/}HttpErrorCode:404 Running axis-admin with parameters:   action:   url:http://localhost:8084/AxisTest/services/AdminService   hostname:null   port:0   servletPath:null   fileProtocol:null   username:null   password:null   transportChain:null   debug:true C:\Documents and Settings\FRANCISCOES\AxisTest\build.xml:146: axis-admin failed with  {http://xml.apache.org/axis/}HTTP (404)/AxisTest/services/AdminService BUILD FAILED (total time: 2 seconds)   Fco.JaVier Espinosa Martínez  Sistemas Development Center Tel: 12260676 Red:10676  

Re: Re[2]: Axis2 High memory usage, OutOfMemory exception

2006-05-25 Thread Davanum Srinivas

Andreas,

Could you *please* add this info to bug report AXIS2-766?

thanks,
dims

On 5/25/06, Andreas Hörnicke <[EMAIL PROTECTED]> wrote:


Here is what i did to overcome this "problem": After defining my
own SessionListener and invalidating the created sessions
immediately i got some exceptions thrown by axis. So my current
solution is to extend the AxisServlet, overriding the service
method and invalidate the session after super.service was called.
Works fine in my testing environment.

-- Andreas


KI> (tomcat)/conf/web.xml will contains session-timeout settings,
KI> and that value is default to 30 min.
KI> (tomcat)/webapps/axis2/WEB-INF/web.xml will not have this settings.

KI> I'm not sure but here is my guess,

KI> Service will run as servlet of tomcat, I think.
KI> And each servlet threads for invoked services will remain as session.
KI> After receiving request and send back response,
KI> web service session should be clear or invalidate by Axis2.
KI> But results of your test seems to remain those sessions until timeout.
KI> So, set the session-timeout to minimum value is work around for this.

KI> How everyone think about this ?

KI> Regards,
KI> kinichiro

KI> __
KI> Do You Yahoo!?
KI> Tired of spam?  Yahoo! Mail has the best spam protection around
KI> http://mail.yahoo.com

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


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





--
Davanum Srinivas : http://wso2.com/blogs/

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



Re: Buggy .aar deployment

2006-05-25 Thread Junaid . Bhatra
Jeff,

You are using the RawXMLINOutMessageReceiver. I believe in Axis2 1.0,
automatic WSDL generation only happens when you use the RPCMessageReceiver.
If you need to use RawXMLINOutMessageReceiver, then you have generate the
WSDL yourself and drop it in the META-INF folder.

- Junaid



   
 "robert lazarski" 
 <[EMAIL PROTECTED] 
 mail.com>  To 
   axis-user@ws.apache.org 
 05/25/2006 01:15   cc 
 PM
   Subject 
   Re: Buggy .aar deployment   
 Please respond to 
 [EMAIL PROTECTED] 
  he.org   
   
   
   




Post the stack trace for the 500 error and maybe we can help. The rules
changed for displaying a wsdl in the 1.0 release - search the forums with
the message for more info.

HTH,
Robert
http://www.braziloutsource.com/

On 5/24/06, Scudder, Jeffrey W < [EMAIL PROTECTED]> wrote:
  Hi all,

  I had previously deployed a web service as a .aar file in Axis2 version
  0.95 and the service broke when I upgraded to 1.0

  I rewrote the code for version 1.0 (libraries changed from 0.95 to 1.0)
  changed services.xml to fit the new example on the Axis2 website, and
  redeployed the .aar. Unfortunately the service I created does not work.
  When I attempt to view the WSDL on localhost:8080/axis2 I get the
  following message:

  
  Unable to generate WSDL for this service
  −
  
  Either user has not dropped the wsdl into META-INF or operations use
  message receivers other than RPC.
  
  

  The same message appears when I attempt to view WSDLs for most of the
  example web services which come with the Axis2 download. When I attempt
  to use my service, I receive an HTTP 500 error code.

  I am using Tomcat 5.5.17 and the services.xml and code I am using are
  copied below. Is there something I am doing wrong, are there unresolved
  version compatibility issues? Any help is greatly appreciated

  Thank you,

  Jeff Scudder



  services.xml
  
  
  This is Jeff's sample Web Service with two operations, echo and
  ping.
  
  JeffService
  
  
  urn:echo
  
   
  
  urn:ping
  
  




  JeffService.java
  import org.apache.axiom.om.*;

  public class JeffService {

  public void ping(OMElement element){
   return;
  }
  public OMElement echo(OMElement element){
   return element;
  }
  }



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



Re: Mentioning namespace for the SOAP Message

2006-05-25 Thread Junaid . Bhatra
Suyog,
The WSDL generation has apparently been fixed as per:
http://issues.apache.org/jira/browse/AXIS2-721

Check if this also fixes your original problem of namespace mismatch for
the Response returned from the Web Service invocation.

- Junaid



   
 "Anne Thomas  
 Manes"
 <[EMAIL PROTECTED]  To 
 m>axis-user@ws.apache.org 
cc 
 05/25/2006 08:54  
 AMSubject 
   Re: Mentioning namespace for the
   SOAP Message
 Please respond to 
 [EMAIL PROTECTED] 
  he.org   
   
   
   




It's a bug. I believe it's been fixed in the latest build.

Anne

On 5/24/06, Suyog Gandhi <[EMAIL PROTECTED] > wrote:
  This WSDL is created by Axis2 upon the deploy of .aar
  file. How do I avoid that namespace attribute? Is there
  some kind of setting in some file?


  On Wed, 24 May 2006 20:39:14 -0400
"Anne Thomas Manes" <[EMAIL PROTECTED]> wrote:
  > You must remove the namespace attributes from your
  >
  > definitions, e.g., body definitions should be:
  >
  > 
  >
  >
  > Make sure you're using the latest build of Axis2.
  >
  > Anne
  >
  >
  > On 5/24/06, Suyog Gandhi < [EMAIL PROTECTED]
  >  > wrote:
  >
  > Can somebody tell me how to set the namespace for the
  >soap message on
  > server side?
  > I wrote my java file, created service.xml and deployed
  >the .aar. Please
  > find atached wsdl file.
  > I am getting 2 different namesspaces for request and
  >response, due to
  > which I am getting Data Binding Error on the client
  >side.
  >
  > SOAP Request: Note the name space for getDimensionNames
  > 
  >  xmlns:soapenv="
  > 
  > http://schemas.xmlsoap.org/soap/envelope/";>
  >  
  >  
  > xmlns=" http://webs.shared.clemenza.vistaar.com/xsd
  >   " />
  >  
  > 
  >
  >
  > SOAP Reply (Upon successful server side execution) :
  >Note the name space
  > for getDimensioNamesResponse
  > 
  >  xmlns:soapenv="
  >http://schemas.xmlsoap.org/soap/envelope/
  > < http://schemas.xmlsoap.org/soap/envelope/> ">
  >  
  >  
  > xmlns:ns=" http://org.apache.axis2/xsd
  > ">
  >  Part
  >  Kit
  >  Customer
  >  Time
  >  Sales Type
  >  Campaign
  >  Discount Table
  >  Discount Code
  >  Currency
  >  Version
  >  Engine
  >  WhatIf
  >  Measures
  >
  >  
  > 
  >
  >
  >
  >
  >
  >
  > -
  > To unsubscribe, e-mail:
  >[EMAIL PROTECTED]
  > 
  >For additional commands, e-mail:
  >[EMAIL PROTECTED]
  > 
  >
  >
  >
  >
  >
  >


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




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



Re: [axis2] WSDL2Java.bat warning

2006-05-25 Thread robert lazarski
No problems here ... Try the log4j.properties file i posted, putting it in the bin dir and running WSDL2Java from the bin dir. 

Robert
http://www.braziloutsource.com/On 5/25/06, Mark Beckwith <[EMAIL PROTECTED]
> wrote:On Thu, May 25, 2006 at 11:02:18AM -0500, Flores, Raul wrote:> Try adding:
> log4j.rootCategory=ERROR, CONSOLEStill not working.  Have you (or anybody on this list) been able to confirmthat WSDL2Java (from axis2) doesn't show the log4 warnings?Thanks Raul,Mark
>>> Raul Flores>>> -Original Message-> From: Mark Beckwith [mailto:[EMAIL PROTECTED]]> Sent: Thursday, May 25, 2006 10:16 AM
> To: axis-user@ws.apache.org> Subject: [axis2] WSDL2Java.bat warning>> Hi, I'm new to axis2. Many people have reported having this same> problem, but I can't seem to fix it and would like your help.
>> If I type:>> ~> WSDL2Java.bat>> I get :>> Using AXIS2_HOME:   C:/java/axis2> Using JAVA_HOME:C:/Program Files/Java/jdk1.5.0_06> Using CLASSPATH:c:\java\lib
> log4j:WARN No appenders could be found for logger> (org.apache.axis2.i18n.ProjectResourceBundle).> log4j:WARN Please initialize the log4j system properly.> .> .> .
>> I can't get rid of the log4j warnings.  (I added "Using CLASSPATH"> line to the bat file myself)>> In C:\java\lib I have a log4j.properties file that looks like:>> 
log4j.rootLogger=DEBUG, CONSOLE> log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender> log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout> log4j.appender.CONSOLE.layout.ConversionPattern=%-5p
 %c %x:%m%n>>> Based on what I've read, this should have fixed the problem.  Also, I'm> using cygwin's rxvt as my console.>> Thanks,>> Mark>> --> Mark Beckwith, Intrig (
http://www.intrig.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]
>--Mark Beckwith, Intrig (http://www.intrig.com)-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]


Error Building AXIS Web Service in Netbeans 5

2006-05-25 Thread Espinosa Martinez, Francisco Javier








Hi all, Im kinda new at this Axis Web Services, Im doing  a
test service , but when I try to build the project in Netbeans 5.0 Im having
this Error

 

Can anybody help me please

 

Thanx

 

This is my Stack Trace

 

Compiling 1 source file to C:\Documents and
Settings\FRANCISCOES\AxisTest\build\web\WEB-INF\classes



compile:



Generating WSDL document



Overriding previous definition of reference to
axis.classpath



- Unable to find required classes
(javax.activation.DataHandler and javax.mail.internet.MimeMultipart).
Attachment support is disabled.



Java2WSDL test.HelloService



Overriding previous definition of reference to
axis.classpath



- Unable to find required classes (javax.activation.DataHandler
and javax.mail.internet.MimeMultipart). Attachment support is disabled.



Processing file C:\Documents and
Settings\FRANCISCOES\AxisTest\web\WEB-INF\HelloService.undeploy.wsdd



AxisFault



 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException



 faultSubcode: 



 faultString: java.net.ConnectException: Connection refused:
connect



 faultActor: 



 faultNode: 



 faultDetail: 



   
{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection
refused: connect



    at java.net.PlainSocketImpl.socketConnect(Native
Method)



    at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)



    at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)



    at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)



    at java.net.Socket.connect(Socket.java:452)



    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:324)



    at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)



    at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)



    at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)



    at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)



    at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)



    at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)



    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)



    at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)



    at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)



    at
org.apache.axis.client.Call.invokeEngine(Call.java:2784)



    at
org.apache.axis.client.Call.invoke(Call.java:2767)



    at
org.apache.axis.client.Call.invoke(Call.java:1792)



    at
org.apache.axis.client.AdminClient.process(AdminClient.java:439)



    at org.apache.axis.client.AdminClient.process(AdminClient.java:404)



    at
org.apache.axis.client.AdminClient.process(AdminClient.java:410)



    at
org.apache.axis.client.AdminClient.process(AdminClient.java:320)



    at
org.apache.axis.tools.ant.axis.AdminClientTask.executeInCurrentVM(AdminClientTask.java:356)



    at
org.apache.axis.tools.ant.axis.AdminClientTask.execute(AdminClientTask.java:316)



    at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)



    at org.apache.tools.ant.Task.perform(Task.java:364)



    at
org.apache.tools.ant.Target.execute(Target.java:341)



    at
org.apache.tools.ant.Target.performTasks(Target.java:369)



    at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)



    at
org.apache.tools.ant.Project.executeTarget(Project.java:1185)



    at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)



    at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)



    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)



    at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)



    at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)



    {http://xml.apache.org/axis/}hostname:54610_EIMF



Running axis-admin with parameters:



  action:



  url:http://localhost:8084/AxisTest/services/AdminService



  hostname:null



  port:0



  servletPath:null



  fileProtocol:null



  username:null



  password:null



  transportChain:null



  debug:true



C:\Documents and
Settings\FRANCISCOES\AxisTest\build.xml:146: axis-admin failed with 
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
java.net.ConnectException: Connection refused: connect



BUILD FAILED (total time: 12 seconds)



 








RE: Incorrect parameter type in WSDL2Java generated stub method OMElement instead of specific type

2006-05-25 Thread ozgur.y.gurkan
The WSDL operation:

















The Message definitions:












Why isn't the parameter in the method of type
"com.wellpoint.service.provider.
ProviderServiceUpdateMemberPCPDetailRequestDocument"

It is "org.apache.axiom.om.OMElement".

What am I doing wrong This is a doc/lit.


Thanks,
Ozzie

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Wednesday, May 24, 2006 10:07 AM
To: axis-user@ws.apache.org
Subject: Incorrect parameter type in WSDL2Java generated stub method
OMElement instead of specific type

The generated stub source doesn't contain the correct parameter type in
the service method. Instead of having the specific type as specified in
the WSDL for the parameter, it contains the generic
"org.apache.axiom.om.OMElement" type. 

The stub was generated using Axis2 1.0 WSDL2Java tool.

D:\dev\wellpoint\SAF\wsdl\ProviderDomain>d:\devtools\axis2-SNAPSHOT\bin\
WSDL2Java.bat -uri ProviderService_Binding_JMS_V0100.wsdl -s -o codegen
-d xmlbeans -p com.wellpoint.integration.saf.int.provider.axis2

   /**
* Auto generated method signature
* @see
com.wellpoint.integration.saf.int.provider.axis2.ProviderService#UpdateM
emberPCPDetail
* @param param0

* @param param1

* @param param2

*/
public org.apache.axiom.om.OMElement
UpdateMemberPCPDetail(
org.apache.axiom.om.OMElement
param0,com.wellpoint.esb.context.ContextDocument
param1,com.wellpoint.esb.header.ESBHeaderDocument param2)


The first parameter should have been
"com.wellpoint.service.provider.ProviderUpdateMemberPCPDetailRequestDocu
ment".


JIRA Issue: http://issues.apache.org/jira/browse/AXIS2-765

Thanks,
Ozgur (Ozzie) Gurkan
Wellpoint Member 2 - SAF Team



This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete
the original.  Any other use of the email by you is prohibited.

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



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

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



Re[2]: Axis2 High memory usage, OutOfMemory exception

2006-05-25 Thread Andreas Hörnicke

Here is what i did to overcome this "problem": After defining my
own SessionListener and invalidating the created sessions
immediately i got some exceptions thrown by axis. So my current
solution is to extend the AxisServlet, overriding the service
method and invalidate the session after super.service was called.
Works fine in my testing environment.

-- Andreas


KI> (tomcat)/conf/web.xml will contains session-timeout settings,
KI> and that value is default to 30 min.
KI> (tomcat)/webapps/axis2/WEB-INF/web.xml will not have this settings.

KI> I'm not sure but here is my guess,

KI> Service will run as servlet of tomcat, I think.
KI> And each servlet threads for invoked services will remain as session.
KI> After receiving request and send back response, 
KI> web service session should be clear or invalidate by Axis2.
KI> But results of your test seems to remain those sessions until timeout.
KI> So, set the session-timeout to minimum value is work around for this.

KI> How everyone think about this ?

KI> Regards,
KI> kinichiro

KI> __
KI> Do You Yahoo!?
KI> Tired of spam?  Yahoo! Mail has the best spam protection around
KI> http://mail.yahoo.com 

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


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



org.xml.sax.SAXException: SimpleDeserializer encountered a child element

2006-05-25 Thread Hoying, Ken








I am having some difficulty calling a .NET web service from
Axis 1.2.1 client.  I am getting the following error:

 

org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.    at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)    at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)    at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)    at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)    at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)    at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)    at org.tiaa.dsv.dao.WebServicesDao.formatResults(WebServicesDao.java:337)    at org.tiaa.dsv.dao.WebServicesDao.invokeWithSoapEnvelope(WebServicesDao.java:291)    at org.tiaa.dsv.dao.WebServicesDao.callWebService(WebServicesDao.java:208)    at org.tiaa.dsv.dao.WebServicesDao.retrieveData(WebServicesDao.java:75)    at org.tiaa.dsv.ejb.MessageBean.onMessage(MessageBean.java:242)    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)    at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)    at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

 

The WSDL for the web service is as follows:

 

                    s:sequence>    s:complexType>  s:element>            s:sequence>  s:complexType>              s:sequence>  s:complexType>              s:sequence>    s:complexType>  s:element>            s:sequence>  s:complexType>            s:complexType>    s:schema>  wsdl:types>        wsdl:message>        wsdl:message>              wsdl:operation>  wsdl:portType>                    wsdl:input>        wsdl:output>    wsdl:operation>  wsdl:binding>                  Re: [axis2] WSDL2Java.bat warning

On Thu, May 25, 2006 at 11:02:18AM -0500, Flores, Raul wrote:
> Try adding:
> log4j.rootCategory=ERROR, CONSOLE

Still not working.  Have you (or anybody on this list) been able to confirm
that WSDL2Java (from axis2) doesn't show the log4 warnings?

Thanks Raul,

Mark


> 
> 
> Raul Flores
> 
> 
> -Original Message-
> From: Mark Beckwith [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 25, 2006 10:16 AM
> To: axis-user@ws.apache.org
> Subject: [axis2] WSDL2Java.bat warning
> 
> Hi, I'm new to axis2. Many people have reported having this same
> problem, but I can't seem to fix it and would like your help.
> 
> If I type:
> 
> ~> WSDL2Java.bat
> 
> I get :
> 
> Using AXIS2_HOME:   C:/java/axis2
> Using JAVA_HOME:C:/Program Files/Java/jdk1.5.0_06
> Using CLASSPATH:c:\java\lib
> log4j:WARN No appenders could be found for logger
> (org.apache.axis2.i18n.ProjectResourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> .
> .
> .
> 
> I can't get rid of the log4j warnings.  (I added "Using CLASSPATH"
> line to the bat file myself)
> 
> In C:\java\lib I have a log4j.properties file that looks like:
> 
> log4j.rootLogger=DEBUG, CONSOLE
> log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
> log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
> log4j.appender.CONSOLE.layout.ConversionPattern=%-5p %c %x:%m%n
> 
> 
> Based on what I've read, this should have fixed the problem.  Also, I'm
> using cygwin's rxvt as my console.
> 
> Thanks,
> 
> Mark
> 
> --
> Mark Beckwith, Intrig (http://www.intrig.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]
> 

-- 
Mark Beckwith, Intrig (http://www.intrig.com)

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



Re: Buggy .aar deployment

Post the stack trace for the 500 error and maybe we can help. The rules
changed for displaying a wsdl in the 1.0 release - search the forums
with the message for more info. 

HTH,
Robert
http://www.braziloutsource.com/On 5/24/06, Scudder, Jeffrey W <
[EMAIL PROTECTED]> wrote:Hi all,I had previously deployed a web service as a .aar file in Axis2 version 
0.95 and the service broke when I upgraded to 1.0I
rewrote the code for version 1.0 (libraries changed from 0.95 to 1.0)
changed services.xml to fit the new example on the Axis2 website, and
redeployed the .aar. Unfortunately the service I created does not work.
When I attempt to view the WSDL on localhost:8080/axis2 I get the
following message:Unable to generate WSDL for this service−Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC.
The
same message appears when I attempt to view WSDLs for most of the
example web services which come with the Axis2 download. When I attempt
to use my service, I receive an HTTP 500 error code.I am using
Tomcat 5.5.17 and the services.xml and code I am using are copied
below. Is there something I am doing wrong, are there unresolved
version compatibility issues? Any help is greatly appreciatedThank you,Jeff Scudderservices.xmlThis is Jeff's sample Web Service with two operations, echo and ping.
JeffServiceurn:echo urn:ping JeffService.java
import org.apache.axiom.om.*;public class JeffService {public void ping(OMElement element){ return;}public OMElement echo(OMElement element){ return element;
}}


Re: [axis2] WSDL2Java.bat warning

You need to have a log4j.properties in you bin directory. I'm including
mine here, which prints to the console all org.apache messages at the
debug level. I run linux, so cygwin should be fine. 

HTH,
Robert
http://www.braziloutsource.com/On 5/25/06, Mark Beckwith <[EMAIL PROTECTED]
> wrote:Hi, I'm new to axis2. Many people have reported having this same problem,
but I can't seem to fix it and would like your help.If I type:~> WSDL2Java.batI get :Using AXIS2_HOME:   C:/java/axis2Using JAVA_HOME:C:/Program Files/Java/jdk1.5.0_06Using CLASSPATH:c:\java\lib
log4j:WARN No appenders could be found for logger(org.apache.axis2.i18n.ProjectResourceBundle).log4j:WARN Please initialize the log4j system properly....I can't get rid of the log4j warnings.  (I added "Using CLASSPATH"
line to the bat file myself)In C:\java\lib I have a log4j.properties file that looks like:log4j.rootLogger=DEBUG, CONSOLElog4j.appender.CONSOLE=org.apache.log4j.ConsoleAppenderlog4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-5p %c %x:%m%nBased on what I've read, this should have fixed the problem.  Also, I'musing cygwin's rxvt as my console.Thanks,Mark
--Mark Beckwith, Intrig (http://www.intrig.com)-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]


log4j.properties
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Axis2 High memory usage, OutOfMemory exception

(tomcat)/conf/web.xml will contains session-timeout settings,
and that value is default to 30 min.
(tomcat)/webapps/axis2/WEB-INF/web.xml will not have this settings.

I'm not sure but here is my guess,

Service will run as servlet of tomcat, I think.
And each servlet threads for invoked services will remain as session.
After receiving request and send back response, 
web service session should be clear or invalidate by Axis2.
But results of your test seems to remain those sessions until timeout.
So, set the session-timeout to minimum value is work around for this.

How everyone think about this ?

Regards,
kinichiro

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: [axis2] WSDL2Java.bat warning

Try adding:
log4j.rootCategory=ERROR, CONSOLE


Raul Flores


-Original Message-
From: Mark Beckwith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:16 AM
To: axis-user@ws.apache.org
Subject: [axis2] WSDL2Java.bat warning

Hi, I'm new to axis2. Many people have reported having this same
problem, but I can't seem to fix it and would like your help.

If I type:

~> WSDL2Java.bat

I get :

Using AXIS2_HOME:   C:/java/axis2
Using JAVA_HOME:C:/Program Files/Java/jdk1.5.0_06
Using CLASSPATH:c:\java\lib
log4j:WARN No appenders could be found for logger
(org.apache.axis2.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
.
.
.

I can't get rid of the log4j warnings.  (I added "Using CLASSPATH"
line to the bat file myself)

In C:\java\lib I have a log4j.properties file that looks like:

log4j.rootLogger=DEBUG, CONSOLE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-5p %c %x:%m%n


Based on what I've read, this should have fixed the problem.  Also, I'm
using cygwin's rxvt as my console.

Thanks,

Mark

--
Mark Beckwith, Intrig (http://www.intrig.com)

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


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



[axis2] WSDL2Java.bat warning

Hi, I'm new to axis2. Many people have reported having this same problem,
but I can't seem to fix it and would like your help.

If I type:

~> WSDL2Java.bat

I get :

Using AXIS2_HOME:   C:/java/axis2
Using JAVA_HOME:C:/Program Files/Java/jdk1.5.0_06
Using CLASSPATH:c:\java\lib
log4j:WARN No appenders could be found for logger
(org.apache.axis2.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
.
.
.

I can't get rid of the log4j warnings.  (I added "Using CLASSPATH"
line to the bat file myself)

In C:\java\lib I have a log4j.properties file that looks like:

log4j.rootLogger=DEBUG, CONSOLE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-5p %c %x:%m%n


Based on what I've read, this should have fixed the problem.  Also, I'm
using cygwin's rxvt as my console.

Thanks,

Mark

-- 
Mark Beckwith, Intrig (http://www.intrig.com)

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



RE: [axis2] Getting Axis2 working under Websphere 5.1

Hi Robert
 
Thanks for that it has given me a direction to look-in.
 
I have also noticed that Websphere 5.1.x is not handling HttpServletRequest
parameters in a way that is expected, if a parameter is passed to the server
with no value the method getParameter is returning "null" and therefore the
wsdl is not being displayed but if I change the URL to
http://localhost:9080/Test/services/version?wsdl=true then the wsdl is
displayed as expected.


Thanks again

David Wilkinson



From: robert lazarski [mailto:[EMAIL PROTECTED] 
Sent: 25 May 2006 13:14
To: axis-user@ws.apache.org
Subject: Re: [axis2] Getting Axis2 working under Websphere 5.1


I'll take a shot at trying to help...

My guess is that you are running WAS 5.1 using JDK 1.4 . If so, try putting
the stax-api jar that comes with axis2 somewhere in one of the lib
directories that WAS uses to find its jars. This jar should already be
present in the axis2 war. 

This error would probably cause the war not to start, and somewhere (been a
few years since I ran WAS) there should be logs saying so. You can turn on
logging by putting an apropriate log4j.properties under
axis2/WEB-INF/classses , assuming the commons-logging is pointing to log4j .


HTH,
Robert
http://www.braziloutsource.com/


On 5/25/06, David Wilkinson <[EMAIL PROTECTED] > wrote: 

Hi

I'm currently trying to get the Axis2 War Distribution to work under

websphere 5.1. I have managed to get round the error Invalid service
version.aar due to java.lang.NoSuchMethodError:
javax.xml.namespace.QName:
method
(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V not 
found by setting the Classloader Mode to PARENT_LAST

But when I go to the url
http://localhost:9080/Test/services/version?wsdl
all I get is a 404 error Requested resource not found! 

There are no error messages appearing in my log files and so I'm
feeling a
bit stumped.

Has anyone else come across the same issue and can suggest anything
else
that I need to do


Thanks in advance 


David Wilkinson



-
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 High memory usage, OutOfMemory exception


I had not previously set the session-timeout in web.xml

As per your suggestion I tried setting it to 2 minutes , and I find the memory 
usage coming back to a low value much quicker than before. 

However, I am not totally clear as to what is the significance of this, and 
whether this is the fix to the issue.

Thanks and Regards, 
Subramanyam

-Original Message-
From: Kinichiro Inoguchi [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 6:41 PM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: Re: Axis2 High memory usage, OutOfMemory exception


> If I stop pumping requests at around that time, 
> and wait for around half an hour, 
> I notice that the memory usage begins to reduce, 
> and slowly come back to the original value (10M approx.)

What value is set to session-timeout in your web.xml ?
Deafault will be 30 min.

30


I'm not sure but it seems after keeping session, 
memory usage begins to reduce.

Regards,
kinichiro

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


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



RE: Axis2 High memory usage, OutOfMemory exception


I have logged an issue in jira with key AXIS2-766, and I have attached all the 
related files.

Thanks and Regards, 
Subramanyam

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 5:41 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 High memory usage, OutOfMemory exception


Could you please log a jira bug and upload your test code both on the
server and client. Am really surprised. I have been testing
performance for months now and i haven't seen this behavior.

thanks,
dims

On 5/25/06, Ramanathan, Subramanyam <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
>
> I have been trying out Axis 2.0 over the past week, with the configuration :
> Axis2 version 1.0
> Tomcat 5.5.17
> jdk 1.5.0_04
>
> I have tried using the sample "Axis2SampleDocLitService" that has been
> given. I generated the stubs and skeletons using the wsdl provided with the
> axis2 distribution (samples/wsdl/Axis2SampleDocLit.wsdl) ,
> as shown in the user guide, using the xmlbeans option for data binding.
>
> I have a http client which I use to post the xml request to the server, and
> I got proper responses when I tested it with the client.
>
> However, I have noticed that when I pump requests at a rapid rate, the
> memory usage keeps on increasing rapidly (checked using jmx console), in
> some cases ultimately leading to a jvm crash with an OutOfMemory Exception.
> This was occurring when default mx(which is 64M) was used.
>
> I also tried setting the JVM mx option to 128M (-Xmx128M)  and ran the test
> again. However, the memory usage keeps increasing all the way till it
> reaches 128 Mb, too, where it again crashes if I continue pumping further.
>
> If I stop pumping requests at around that time, and wait for around half an
> hour, I notice that the memory usage begins to reduce, and slowly come back
> to the original value (10M approx.)  upon forcing a GC.
>
> I have also deployed axis1 on the same tomcat installation, with the
> intention of comparing performance. When I try the same test there, ie,
> pumping requests, I don't find any alarming memory increase.
>
> Why is so much memory being used, and why does it grow to fill however much
> memory is available ? Is it a memory leak, or is there any way I can limit
> the amount of memory being used ? The memory usage does come down, but it
> takes a very long time for this. This would surely affect the performance of
> any webservice I try to deploy with axis2, and it may even result in the
> service being unavailable because of a crash.
>
> Could you please help me out ?
>
> Regards,
> Subramanyam


-- 
Davanum Srinivas : http://wso2.com/blogs/

-
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] ServiceClient.addStringHeader() problems

Sorry for the delay. Jira AXIS2-767 created.

Regards,
Michele

Deepal Jayasinghe wrote:
> can u pls create a JIRA , I think this is a bug.
> 
> Michele Mazzucco wrote:
> 
>> example1/MyService:
>>
>> 1) no headers added:
>> HTTP/1.1 200 OK
>> Server: Apache-Coyote/1.1
>> Set-Cookie: JSESSIONID=CF2A6A3A366706087FBBD8818E91A62C; Path=/axis2
>> Content-Type: multipart/related;
>> boundary=MIMEBoundaryurn_uuid_1CAAD3F62EB8F21F2011478815557861;
>> type="application/xop+xml";
>> start="<0.urn:uuid:[EMAIL PROTECTED]>";
>> start-info="text/xml";charset=UTF-8
>> Transfer-Encoding: chunked
>> Date: Wed, 17 May 2006 15:59:15 GMT
>>
>> 23e
>> --MIMEBoundaryurn_uuid_1CAAD3F62EB8F21F2011478815557861
>> content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> content-transfer-encoding:binary
>> content-id:<0.urn:uuid:[EMAIL PROTECTED]>
>>
>> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>> />> xmlns:example1="http://example1.org/example1";
>> xmlns:tns="http://ws.apache.org/axis2";>Axis2 Echo String
>> 
>> 3b
>>
>> --MIMEBoundaryurn_uuid_1CAAD3F62EB8F21F2011478815557861--
>> 0
>>
>>
>>
>> 2) sender.addHeader(OMElement), where the OMElement is very similar to
>> the object returned by ClientUtil.getEchoElement():
>>
>>
>> HTTP/1.1 500 Internal Server Error
>> Server: Apache-Coyote/1.1
>> Content-Type: text/html;charset=utf-8
>> Content-Length: 2118
>> Date: Wed, 17 May 2006 16:01:31 GMT
>> Connection: close
>>
>> Apache Tomcat/5.5.15 - Error
>> report
>> HTTP Status 500 - > noshade="noshade">type Exception reportmessage
>> description The server encountered an internal
>> error () that prevented it from fulfilling this
>> request.exception
>> org.apache.axiom.om.OMException:
>> com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
>> '>' (code 62) expected '='
>> at [row,col {unknown-source}]: [1,226]
>>  
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:207)
>>  
>> org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:263)
>>  
>> org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.next(OMChildrenQNameIterator.java:101)
>>  
>> org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:223)
>>  
>> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76)
>>  
>> org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:194)
>>  
>> org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168)
>>  org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> note The full stack trace of the root cause is
>> available in the Apache Tomcat/5.5.15 logs.> noshade="noshade">Apache Tomcat/5.5.15
>>
>>
>>
>>
>> 3) sender.addStringHeader(new QName("qname"), "Header text"):
>>
>> HTTP/1.1 500 Internal Server Error
>> Server: Apache-Coyote/1.1
>> Content-Type: text/html;charset=utf-8
>> Content-Length: 1857
>> Date: Wed, 17 May 2006 16:06:42 GMT
>> Connection: close
>>
>> Apache Tomcat/5.5.15 - Error
>> report
>> HTTP Status 500 - > noshade="noshade">type Exception reportmessage
>> description The server encountered an internal
>> error () that prevented it from fulfilling this
>> request.exception java.lang.NullPointerException
>>  
>> org.apache.axiom.soap.impl.llom.SOAPHeaderImpl.getHeaderBlocksWithNSURI(SOAPHeaderImpl.java:217)
>>  
>> org.apache.axis2.handlers.addressing.AddressingInHandler.invoke(AddressingInHandler.java:64)
>>  org.apache.axis2.engine.Phase.invoke(Phase.java:378)
>>  org.apache.axis2.engine.AxisEn

Re: REPOST FOR HELP: Axis client logging from web applet causes security error

I moved to axis 1.4 and the problem went away. Unfortunately to be replaced by another problem.My console client stub still works fine.Running under firefox i get the following message in the Java Console window:Failure trying to get the Call object; nested exception is:     java.lang.NoClassDefFoundErrorThat's it, no stack trace, nothing in the Tomcat logsWhen I run under IE6 I get the following error and stack trace:Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError    at org.apache.commons.discovery.jdk.JDKHooks.(JDKHooks.java:75)    at
 org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412)    at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378)    at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)    at java.security.AccessController.doPrivileged(Native Method)    at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)    at org.apache.axis.components.logger.LogFactory.(LogFactory.java:33)    at org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43)    at org.apache.axis.client.Service.getAxisClient(Service.java:104)    at org.apache.axis.client.Service.(Service.java:113)    at
 com.zeesol.bizservice.client.BizService_ServiceLocator.(BizService_ServiceLocator.java:12)    at com.mazuma.applets.BaseRunner$1.actionPerformed(BaseRunner.java:156)    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)    at java.awt.Component.processMouseEvent(Unknown Source)    at javax.swing.JComponent.processMouseEvent(Unknown Source)    at java.awt.Component.processEvent(Unknown Source)    at java.awt.Container.processEvent(Unknown Source)    at
 java.awt.Component.dispatchEventImpl(Unknown Source)    at java.awt.Container.dispatchEventImpl(Unknown Source)    at java.awt.Component.dispatchEvent(Unknown Source)    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)    at java.awt.Container.dispatchEventImpl(Unknown Source)    at java.awt.Component.dispatchEvent(Unknown Source)    at java.awt.EventQueue.dispatchEvent(Unknown Source)    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)    at java.awt.EventDispatchThread.pumpEvents(Unknown
 Source)    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)    at java.awt.EventDispatchThread.run(Unknown Source)Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)    at java.security.AccessControlContext.checkPermission(Unknown Source)    at java.security.AccessController.checkPermission(Unknown Source)    at java.lang.SecurityManager.checkPermission(Unknown Source)    at java.lang.SecurityManager.checkCreateClassLoader(Unknown Source)    at java.lang.ClassLoader.(Unknown Source)    at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.(PsuedoSystemClassLoader.java:73)    at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215)    at
 org.apache.commons.discovery.jdk.JDK12Hooks.(JDK12Hooks.java:73)    ... 35 more- Original Message From: robert lazarski <[EMAIL PROTECTED]>To: axis-user@ws.apache.org; ANTHONY ZIOLKOWSKI <[EMAIL PROTECTED]>Sent: Monday, May 8, 2006 8:36:16 AMSubject: Re: REPOST FOR HELP: Axis client logging from web applet causes security errorI suspect this is primarily a log4j / commons-logging issue. Try
editing the properties  of each and comment out the file
appenders. Or simply enable log4j based logging in the commons property
file, and use your own log4j.properties file instead of the one that
comes with axis. I'm enclosing my log4j.properties file that should do
just that (I removed the file appender, but I didn't test it). It will
still print lines to the console via stdout / stderr , but that
shouldn't be a problem. Look in your browser in the tools section to
view an applets stdout / stderr messages if you want to see them. 

HTH,
Robert
http://www.braziloutsource.com/On 5/8/06, ANTHONY ZIOLKOWSKI <[EMAIL PROTECTED]
> wrote:








This is second post of this message. I guess the first got lost in
the excitement about 2.0. However, I desparately need an answer to this.
 
I have written my first web service. It works fine in all the ways
I want except one - running from an applet in a web browser. As far as
I can tell from the trace below this is caused by the Axis code
accessing the file system to do logging which, of course, isn't allowed
cause it's outs

JAXBContext Error









Hi there,

 

I’m running Axis2 1.0 on Tomcat 5.5.16, while debugging
the code “JAXBContex jc = JAXBContext.newInstance(“contextPath”)”,
I got exceptions as following:

soapenv:Clientunknownorg.apache.axis2.AxisFault

    at
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)

    at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)

    at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:471)

    at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:283)

    at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:137)

    at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

    at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve..java:213)

    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve..java:178)

    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

    at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

    at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

    at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

    at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

    at
java.lang.Thread.run(Thread.java:595)



 

 

Does anybody have any idea what I’m doing wrong?
Thanks very much!










This e-mail and any files transmitted with it are intended solely
for the use of the entity or individual(s) to whom they are
addressed and not for reliance upon by unintended recipients.  If
you are not the intended recipient or the person responsible for
delivering the e-mail to the intended recipient be advised that you
have received this e-mail in error and that any use, dissemination,
forwarding, printing, or copying of this e-mail and any files
transmitted are strictly prohibited. If you have received this
e-mail in error please delete the entire email and immediately
notify us by email to the sender or by telephone to the AOC main
office number, (404) 656-5171. Thank you.



Re: [Axis 2][1.0] Enabling the SOAP Monitor


Hi James!

The axis part of the SOAPMonitor does not show up in the service list of 
axis2 because it is implemented as module and not as a service. In axis1 
a service was used.


Fabian

James Loghry wrote, On 24.05.2006 16:13:

One final problem I am having though, is I can access SOAPMonitor via
http://localhost:8080/axis2/SOAPMonitor, but it does not show up on the
axis2 services like it did for axis 1.x.  However, this issue is
insignificant.
  




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



RE: axis2 client to WinFX service via tcp [was RE: HOW TO: get axis2 client tcp to find Addressing module]

Title: HOW TO: get axis2 client tcp to find Addressing module



Thanks for the recommendations - and yes it is pretty fun 
as I get closer and closer to establishing communication between the two 
platforms.  
 
On the debugging side: I know that the transport layer 
is working becuase I am getting a request on the WinFX side - I can see it 
in the trace logic, along with the exception.  The problem is definitely in 
the expectations on the WinFX side.  I believe it may be in the SOAP 
and WS-Addressing versions, because the exception I get in the WinFX 
ServiceModel.Channel layer is: Expected 'Version', but got '60', so I expect 
there's simply some setting differences.
 
Finally, since I'm a hardcode MS guy, I know how to turn on 
all the debugging switches on that side, but how to I do low-level debugging of 
the Axis components?
 
Thanks again - more info as the saga 
continues,
Bob

  
  
  From: Martin Gainty 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 8:40 
  AMTo: axis-user@ws.apache.orgSubject: Re: axis2 client 
  to WinFX service via tcp [was RE: HOW TO: get axis2 client tcp to find 
  Addressing module]
  
  Good Morning  -
   
  I would wind my way up the ISO stack starting at 
  the Physical Layer and eventually winding up at Applicationso something 
  like 
  tracert hostnamewill prove or disprove basic 
  connectivity at the physical and network layersMy gut says you 
  this maybe a datatype conversion or some sort of encoding 
  issue...Using UTF-8 or UTF-16 are very safe encoding styles..UTF816 maybe 
  problematic as I havent seen any implementations thus far
  Finally following Keep it simple if 
  we passing information with datatypes as simple as possible then strings 
  (and possibly ints) are bestComplex (Classes which are constructed of 
  multiple primitive types)Datatypes are most problematic 
  Finally turn on max debugging ..grind thru every 
  method in every class and output every parameter as well as announce 
  entry and exit pointsIn any case this sounds like a fun project and I am 
  sure you're having a ball with it,Keep us apprised!
  Martin --
  *This 
  email message and any files transmitted with it contain 
  confidentialinformation intended only for the person(s) to whom this email 
  message isaddressed.  If you have received this email message in 
  error, please notifythe sender immediately by telephone or email and 
  destroy the originalmessage without making a copy.  Thank you.
   
   
  
- Original Message - 
From: 
DeRemer, 
Bob 
To: axis-user@ws.apache.org 
Sent: Thursday, May 25, 2006 6:55 
AM
Subject: RE: axis2 client to WinFX 
service via tcp [was RE: HOW TO: get axis2 client tcp to find Addressing 
module]

Martin for the suggestions!  I'm actually 
pushing the envelope beyond .NET 2.0 by using the WinFX beta software (i.e. 
Indigo or Windows Communication Framework - .NET 3.0 stuff).  I can get 
the WSDL from the http endpoint I host on the same service, but I'm trying 
to verify that I can talk TCP from WinFX to/from Axis2.  I will hook in 
TcpTrace to see what's going over the wire, as well as look at the actual 
WSDL my server is generating from the ?wsdl.  It's a good learning 
experience none the less to really see what's going on under the hood on 
both sides.
 
Thanks again for the help.  When I get the 
solution, I'll post it back here in case anyone else may come across this in 
the future.
 
-bob

  
  
  From: Martin Gainty 
  [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 4:30 
  PMTo: axis-user@ws.apache.orgSubject: Re: axis2 
  client to WinFX service via tcp [was RE: HOW TO: get axis2 client tcp to 
  find Addressing module]
  
  Rob-
  This is a Shot in the dark but why not use 
  AXIS 1.3 to ensure compat with NET 2.0 framework
  go to server-config.wsdd with which you 
  are deploying the services verify these parameters to ensure compatibility 
  with NET
  
  
  
  redeploy the AXIS 1.3 service so that it will 
  pickup the new parametersFinally when client is constructing the 
  call the 3rd parameter is encoding and I suspect this is NOT the encoding 
  that is supported by the servicethis is identified as the 
  encoding attribute from the wsdl such as encoding="UTF-8" 
  Unfortunately 
  without the WSDL you're flying blind..
  Taking a quick peek at available charactersets I see UTF-8 and UTF-16 
  a more or less comprehensive list is located at http://www.oracle.com/technology/tech/xml/xdk/doc/production10g/doc/c/Getting_Started_C.html
  I dont see any implementation of UTF816 which I would assume uses a 
  transcoder
  Finally if you dont need DBCS why not use UTF-8 supported here
  http://schemas.xmlsoa

[Axis2 1.0] WSDL2Java, output option (-o) / package option (-p) and naming


Hi,

Another newbie question. I try to generate java code using wsdl2java
thus:

C:\java\axis2\bin>wsdl2java -uri createLeasingApplication.wsdl
-p com.antares.web.leasingWebService -ss -sd -s -g -u -d adb
-o c:\java\utvikling\leasing\src\java
-ns2p urn:leasingapplication=com.antares.web.leasingapplication

I have my project source code at c:\java\utvikling\leasing\src\java
and would expect that the packages be generated at that directory.

Instead wsdl2java seem to add the "src" directory at the beginning
and ignore my -ns2p option giving me two packages in the output directory:

src.com.antares.web.leasingWebService
src.leasingapplication

This also happens when using the eclipse plugin code generator.

I'm assuming that I just don't understand this stuff at all and is
doing something stupid, but would nevertheless be very grateful if
someone would take the time to explain what is going on here.

I can obviously just move the source where it needs to be, but I
though it would be possible to re-generate when changes in the
wsdl file happens?

WSDL file attached.

Many thanks,
Håkon
--
Antares Gruppen AS
Dir.phone: +47 - 23 29 05 75
Mobile: +47 - 911 79 505
http://www.antares.no


http://schemas.xmlsoap.org/wsdl/";
 xmlns:tns="urn:leasingApplication"
 xmlns:tnsTypes="urn:leasingApplication/types"
 xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
 xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
 xmlns:xsd="http://www.w3.org/2001/XMLSchema";
 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>













  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

































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
















https://localhost/leasing"/>







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

Re: Axis2 High memory usage, OutOfMemory exception

> If I stop pumping requests at around that time, 
> and wait for around half an hour, 
> I notice that the memory usage begins to reduce, 
> and slowly come back to the original value (10M approx.)

What value is set to session-timeout in your web.xml ?
Deafault will be 30 min.

30


I'm not sure but it seems after keeping session, 
memory usage begins to reduce.

Regards,
kinichiro

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: String[] for xsd:anyType with axis1.2.1

Hi Ravi, 
 
Can you provide relevant part of WSDL and client code? 
 
Regards, 
Xinjun 
On 5/25/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

Perhaps you need Object[] rather than Object. 
Anne

On 5/25/06, Hariharasudhan.D Dhakshinamoorthy <
 [EMAIL PROTECTED]> wrote: 


Ravi ,
i too have the same problem , could you figure out something ?  

On 5/25/06, Ravi Krishnamurthy <[EMAIL PROTECTED] 
> wrote: 
Hello;Would be evry helpful if someone could reply this email.thanks,Ravi
Ravi Krishnamurthy wrote: > More information:> The exception that I mentioned happens only if the webservice is a> document/literal/wrapped but with RPC it is fine.>> Is there is any known bug related to wrapped/literal style, anytype 
> and ArrayOfString and axis1.2.1>> Thanks,> Ravi>> Ravi Krishnamurthy wrote:>>> Hello;>> One of the javabean I have registered as a bean mapping has a field 
>> of Object type which corresponds to xsd:anyType. But the types  for>> Object are always primitive types. As long they are primitives it>> works fine. I tried to pass String[] and it started to throw 
>> exception at the test cases generated by wsdl2java when I executed>> the JUnit test case as below: AxisFault>>  faultCode:>> {
 http://schemas.xmlsoap.org/soap/envelope/}Server.userException>>  faultSubcode:>>  faultString: org.xml.sax.SAXException: No deserializer for>> {
 http://www.w3.org/2001/XMLSchema}anyType>>  faultActor:>>  faultNode:>>  faultDetail:>> {
 http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException :>> No deserializer for {
 http://www.w3.org/2001/XMLSchema}anyType>> at>> org.apache.axis.encoding.ser.BeanDeserializer.onStartChild (BeanDeserializer.java:314) at>> org.apache.axis.encoding.DeserializationContext.startElement
 (DeserializationContext.java:1035) at>> org.apache.axis.message.SAX2EventRecorder.replay (SAX2EventRecorder.java:165) at>> org.apache.axis.message.MessageElement.publishToHandler
 (MessageElement.java:1141) at>> org.apache.axis.message.RPCElement.deserialize (RPCElement.java:236)>> at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>> at org.apache.axis.client.Call.invoke(Call.java:2448)>> at org.apache.axis.client.Call.invoke (Call.java:2347)>> at org.apache.axis.client.Call.invoke(Call.java:1804)>> at 
>> com.savvion.webservice.workflow.BizLogic1SoapBindingStub.getProcessTemplateDataSlot(BizLogic1SoapBindingStub.java :1704) at>> com.savvion.webservice.workflow.WorkFlowWSServiceTestCase.test20BizLogic1GetProcessTemplateDataSlot
 (WorkFlowWSServiceTestCase.java:457) 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:324)>> at 
junit.framework.TestCase.runTest(TestCase.java:216)>> at junit.framework.TestCase.runBare(TestCase.java :188)>> at junit.framework.TestResult$1.protect(TestResult.java:150)>> at junit.framework.TestResult.runProtected
 (TestResult.java:168)>> at junit.framework.TestResult.run(TestResult.java :153)>> at junit.framework.TestCase.run(TestCase.java:179)>> at>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
 (RemoteTestRunner.java:478) at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) at>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
 (RemoteTestRunner.java :196)>> {http://xml.apache.org/axis/}hostname:chennai 
 The returned soap envelop looks like below:>> HTTP/1.1 200 OK Date: Wed, 24 May 2006 23:45:26 GMT Content-Type: text/xml; charset=utf-8 
 Connection: Close>> >> >>>> xmlns:soapenv=" 
http://schemas.xmlsoap.org/soap/envelope/ ">> xmlns:xsd="
 http://www.w3.org/2001/XMLSchema">> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
">>>   >>  >> xmlns="
 http://workflow.webservice.savvion.com ">>> >>>>false 
>>false>>listds>>1>>LIST 
>>>>   one>>   ten>>>>  
>>  >>   >> and the xsd:anytype if for the following element: 
>> >>   one>>   ten>>>>
>> Would appreciate any help on this.  Thanks,>> Ravi>> -> 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: Mentioning namespace for the SOAP Message

It's a bug. I believe it's been fixed in the latest build.AnneOn 5/24/06, Suyog Gandhi <[EMAIL PROTECTED]
> wrote:This WSDL is created by Axis2 upon the deploy of .aarfile. How do I avoid that namespace attribute? Is there
some kind of setting in some file?On Wed, 24 May 2006 20:39:14 -0400  "Anne Thomas Manes" <[EMAIL PROTECTED]> wrote:> You must remove the namespace attributes from your
>> definitions, e.g., body definitions should be:>> >>> Make sure you're using the latest build of Axis2.>
> Anne>>> On 5/24/06, Suyog Gandhi < [EMAIL PROTECTED]> [EMAIL PROTECTED]> > wrote:
>> Can somebody tell me how to set the namespace for the>soap message on> server side?> I wrote my java file, created service.xml and deployed>the .aar. Please> find atached wsdl file.
> I am getting 2 different namesspaces for request and>response, due to> which I am getting Data Binding Error on the client>side.>> SOAP Request: Note the name space for getDimensionNames
> > > xmlns:soapenv="> > http://schemas.xmlsoap.org/soap/envelope/">>  >  >
> xmlns=" http://webs.shared.clemenza.vistaar.com/xsd>   " />>  > >>> SOAP Reply (Upon successful server side execution) :>Note the name space> for getDimensioNamesResponse
> > > xmlns:soapenv=">http://schemas.xmlsoap.org/soap/envelope/> <
http://schemas.xmlsoap.org/soap/envelope/> ">>  >  >
> xmlns:ns=" http://org.apache.axis2/xsd> ">>  Part
>  Kit>  Customer>  Time>  Sales Type>  Campaign
>  Discount Table>  Discount Code>  Currency>  Version>  Engine
>  WhatIf>  Measures>>  > >
>> -> To unsubscribe, e-mail:>[EMAIL PROTECTED]
> [EMAIL PROTECTED]>>For additional commands, e-mail:>[EMAIL PROTECTED]
> [EMAIL PROTECTED]>>>-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]



Re: Complex type problem

I think you need to use a beanmapping element rather than a typemapping element.If that doesn't work, please post more information.AnneOn 5/25/06, 
Roy <[EMAIL PROTECTED]> wrote:Hello all,
I have deployed an ejb service with a method that takes as input a complex object (it contains 2 Strings and one int var). When i generate the code in the client with WSDL2Java and call the method i can see that this complex type object becomes null. I can see in the monitor that the request object isn't null but in the debug mode i can see that the service receives a null object. This problem doesn't occur when I use simple types to transfer.
I tried the same code on a non-ejb service and works normally. In the deploy wsdd i use a typemapping element to describe the object and i use the BeanSerializerFactory and BeanDeSerializer factory as serializer-deserializer.
Can someone explain why is this happening?Regards,Roy
		 
Χρησιμοποιείτε Yahoo! 
Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων  
http://login.yahoo.com/config/mail?.intl=gr 



Re: String[] for xsd:anyType with axis1.2.1

Perhaps you need Object[] rather than Object.AnneOn 5/25/06, Hariharasudhan.D Dhakshinamoorthy <
[EMAIL PROTECTED]> wrote:Ravi ,
i too have the same problem , could you figure out something ?  
On 5/25/06, Ravi Krishnamurthy <[EMAIL PROTECTED]
> wrote: 
Hello;Would be evry helpful if someone could reply this email.thanks,Ravi
Ravi Krishnamurthy wrote: 
> More information:> The exception that I mentioned happens only if the webservice is a> document/literal/wrapped but with RPC it is fine.>> Is there is any known bug related to wrapped/literal style, anytype 
> and ArrayOfString and axis1.2.1>> Thanks,> Ravi>> Ravi Krishnamurthy wrote:>>> Hello;>> One of the javabean I have registered as a bean mapping has a field 
>> of Object type which corresponds to xsd:anyType. But the types  for>> Object are always primitive types. As long they are primitives it>> works fine. I tried to pass String[] and it started to throw 
>> exception at the test cases generated by wsdl2java when I executed>> the JUnit test case as below: AxisFault>>  faultCode:>> {

 http://schemas.xmlsoap.org/soap/envelope/}Server.userException>>  faultSubcode:>>  faultString: org.xml.sax.SAXException: No deserializer for>> {

 http://www.w3.org/2001/XMLSchema}anyType>>  faultActor:>>  faultNode:>>  faultDetail:>> {

http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException :>> No deserializer for {

http://www.w3.org/2001/XMLSchema}anyType>> at>> org.apache.axis.encoding.ser.BeanDeserializer.onStartChild (BeanDeserializer.java:314) at>> org.apache.axis.encoding.DeserializationContext.startElement

(DeserializationContext.java:1035) at>> org.apache.axis.message.SAX2EventRecorder.replay (SAX2EventRecorder.java:165) at>> org.apache.axis.message.MessageElement.publishToHandler

(MessageElement.java:1141) at>> org.apache.axis.message.RPCElement.deserialize (RPCElement.java:236)>> at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>> at org.apache.axis.client.Call.invoke(Call.java:2448)>> at org.apache.axis.client.Call.invoke (Call.java:2347)>> at org.apache.axis.client.Call.invoke(Call.java:1804)>> at
>> com.savvion.webservice.workflow.BizLogic1SoapBindingStub.getProcessTemplateDataSlot(BizLogic1SoapBindingStub.java :1704) at>> com.savvion.webservice.workflow.WorkFlowWSServiceTestCase.test20BizLogic1GetProcessTemplateDataSlot

(WorkFlowWSServiceTestCase.java:457) 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:324)>> at 
junit.framework.TestCase.runTest(TestCase.java:216)>> at junit.framework.TestCase.runBare(TestCase.java :188)>> at junit.framework.TestResult$1.protect(TestResult.java:150)>> at 
junit.framework.TestResult.runProtected
(TestResult.java:168)>> at junit.framework.TestResult.run(TestResult.java :153)>> at junit.framework.TestCase.run(TestCase.java:179)>> at>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests

(RemoteTestRunner.java:478) at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) at>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main

(RemoteTestRunner.java :196)>> {http://xml.apache.org/axis/}hostname:chennai
 The returned soap envelop looks like below:>> HTTP/1.1 200 OK Date: Wed, 24 May 2006 23:45:26 GMT Content-Type: text/xml; charset=utf-8
 Connection: Close>> >> >>>> xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/ ">> xmlns:xsd="

http://www.w3.org/2001/XMLSchema">> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
">>>   >>  >> xmlns="

http://workflow.webservice.savvion.com ">>> >>>>false
>>false>>listds>>1>>LIST 
>>>>   one>>   ten>>>>  
>>  >>   >> and the xsd:anytype if for the following element:

>> >>   one>>   ten>> Would appreciate any help on this. 
 Thanks,>> Ravi>> -> 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 client to WinFX service via tcp [was RE: HOW TO: get axis2 client tcp to find Addressing module]

Title: HOW TO: get axis2 client tcp to find Addressing module



Good Morning  -
 
I would wind my way up the ISO stack starting at 
the Physical Layer and eventually winding up at Applicationso something like 

tracert hostnamewill prove or disprove basic 
connectivity at the physical and network layersMy gut says you 
this maybe a datatype conversion or some sort of encoding 
issue...Using UTF-8 or UTF-16 are very safe encoding styles..UTF816 maybe 
problematic as I havent seen any implementations thus far
Finally following Keep it simple if 
we passing information with datatypes as simple as possible then strings 
(and possibly ints) are bestComplex (Classes which are constructed of 
multiple primitive types)Datatypes are most problematic 
Finally turn on max debugging ..grind thru every 
method in every class and output every parameter as well as announce entry 
and exit pointsIn any case this sounds like a fun project and I am sure 
you're having a ball with it,Keep us apprised!
Martin --
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.
 
 

  - Original Message - 
  From: 
  DeRemer, 
  Bob 
  To: axis-user@ws.apache.org 
  Sent: Thursday, May 25, 2006 6:55 
AM
  Subject: RE: axis2 client to WinFX 
  service via tcp [was RE: HOW TO: get axis2 client tcp to find Addressing 
  module]
  
  Martin for the suggestions!  I'm actually 
  pushing the envelope beyond .NET 2.0 by using the WinFX beta software (i.e. 
  Indigo or Windows Communication Framework - .NET 3.0 stuff).  I can get 
  the WSDL from the http endpoint I host on the same service, but I'm trying to 
  verify that I can talk TCP from WinFX to/from Axis2.  I will hook in 
  TcpTrace to see what's going over the wire, as well as look at the actual WSDL 
  my server is generating from the ?wsdl.  It's a good learning experience 
  none the less to really see what's going on under the hood on both 
  sides.
   
  Thanks again for the help.  When I get the 
  solution, I'll post it back here in case anyone else may come across this in 
  the future.
   
  -bob
  


From: Martin Gainty 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 4:30 
PMTo: axis-user@ws.apache.orgSubject: Re: axis2 client 
to WinFX service via tcp [was RE: HOW TO: get axis2 client tcp to find 
Addressing module]

Rob-
This is a Shot in the dark but why not use AXIS 
1.3 to ensure compat with NET 2.0 framework
go to server-config.wsdd with which you are 
deploying the services verify these parameters to ensure compatibility with 
NET



redeploy the AXIS 1.3 service so that it will 
pickup the new parametersFinally when client is constructing the 
call the 3rd parameter is encoding and I suspect this is NOT the encoding 
that is supported by the servicethis is identified as the encoding 
attribute from the wsdl such as encoding="UTF-8" 
Unfortunately 
without the WSDL you're flying blind..
Taking a quick peek at available charactersets I see UTF-8 and UTF-16 a 
more or less comprehensive list is located at http://www.oracle.com/technology/tech/xml/xdk/doc/production10g/doc/c/Getting_Started_C.html
I dont see any implementation of UTF816 which I would assume uses a 
transcoder
Finally if you dont need DBCS why not use UTF-8 supported here
http://schemas.xmlsoaporg/soap/encoding/
 
Anyone else?M-
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this 
email message isaddressed.  If you have received this email message 
in error, please notifythe sender immediately by telephone or email and 
destroy the originalmessage without making a copy.  Thank 
you.
 
 

  - Original Message - 
  From: 
  DeRemer, 
  Bob 
  To: axis-user@ws.apache.org 
  Sent: Wednesday, May 24, 2006 3:36 
  PM
  Subject: axis2 client to WinFX 
  service via tcp [was RE: HOW TO: get axis2 client tcp to find Addressing 
  module]
  
  I've been working this a bit more by changing the 
  WinFX side to use a custom binding that is a tcp transport with a text 
  encoding, but still get the following warnings/exceptions on the Axis side 
  when debugging:
   
  Can anyone comment on the PrimitiveAssertion 
  warnings?  Also, what is the default settings when the URI passed 
  into the client stub is tcp-based?  Specifically, what is the 
  encoding, etc.

Start/Stop Deployed Services

Hi,

Is there any way in Axis 1.3 to remotely start and stop single services?
With start and stop I don't mean to deploy and undeploy it. I just want
to stop Axis to answer client requests for specific services, and bring
them up again after some time. I know there have been similar
discussions on this list in the past, but I couldn't find a satisfying
solution in the archives.

Throughout my research, I could find three different possible
approaches:

1) Deploy an AdminServlet instance and set the axis.development.system
init param to true
2) Use the AdminService to do a full undeploy/deploy
3) Use that JMX code that happens to come with Axis 1.3


Ad (1) As the init param implies, this shouldn't be used in production.
It doesn't provide any security and there might be other issues I'm not
aware of.

Ad (2) My management application that issues the start and stop calls
really shouldn't be required to ship with the deployment descriptors for
the web services it manages. 

Ad (3) I couldn't find any documentation and only sparse discussions on
the list of how to use that code, although, as it seems, it sits in the
repository for quite some time. 

>From those possibilites, the JMX approach seems to provide the
functionality that comes closest to what I require. But how can I make
it work? Where are the MBeans registered? Should I use that feature at
all, or are there other possibilites?


Best regards,
Volker

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



Re: [axis2] Getting Axis2 working under Websphere 5.1

I'll take a shot at trying to help...

My guess is that you are running WAS 5.1 using JDK 1.4 . If so, try
putting the stax-api jar that comes with axis2 somewhere in one of the
lib directories that WAS uses to find its jars. This jar should already
be present in the axis2 war. 

This error would probably cause the war not to start, and somewhere
(been a few years since I ran WAS) there should be logs saying so. You
can turn on logging by putting an apropriate log4j.properties under
axis2/WEB-INF/classses , assuming the commons-logging is pointing to
log4j . 

HTH,
Robert
http://www.braziloutsource.com/On 5/25/06, David Wilkinson <[EMAIL PROTECTED]
> wrote:HiI'm currently trying to get the Axis2 War Distribution to work under
websphere 5.1. I have managed to get round the error Invalid serviceversion.aar due to java.lang.NoSuchMethodError: javax.xml.namespace.QName:method (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V not
found by setting the Classloader Mode to PARENT_LASTBut when I go to the url http://localhost:9080/Test/services/version?wsdlall I get is a 404 error Requested resource not found!
There are no error messages appearing in my log files and so I'm feeling abit stumped.Has anyone else come across the same issue and can suggest anything elsethat I need to doThanks in advance
David Wilkinson-To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Axis2 High memory usage, OutOfMemory exception


Could you please log a jira bug and upload your test code both on the
server and client. Am really surprised. I have been testing
performance for months now and i haven't seen this behavior.

thanks,
dims

On 5/25/06, Ramanathan, Subramanyam <[EMAIL PROTECTED]> wrote:




Hi,

I have been trying out Axis 2.0 over the past week, with the configuration :
Axis2 version 1.0
Tomcat 5.5.17
jdk 1.5.0_04

I have tried using the sample "Axis2SampleDocLitService" that has been
given. I generated the stubs and skeletons using the wsdl provided with the
axis2 distribution (samples/wsdl/Axis2SampleDocLit.wsdl) ,
as shown in the user guide, using the xmlbeans option for data binding.

I have a http client which I use to post the xml request to the server, and
I got proper responses when I tested it with the client.

However, I have noticed that when I pump requests at a rapid rate, the
memory usage keeps on increasing rapidly (checked using jmx console), in
some cases ultimately leading to a jvm crash with an OutOfMemory Exception.
This was occurring when default mx(which is 64M) was used.

I also tried setting the JVM mx option to 128M (-Xmx128M)  and ran the test
again. However, the memory usage keeps increasing all the way till it
reaches 128 Mb, too, where it again crashes if I continue pumping further.

If I stop pumping requests at around that time, and wait for around half an
hour, I notice that the memory usage begins to reduce, and slowly come back
to the original value (10M approx.)  upon forcing a GC.

I have also deployed axis1 on the same tomcat installation, with the
intention of comparing performance. When I try the same test there, ie,
pumping requests, I don't find any alarming memory increase.

Why is so much memory being used, and why does it grow to fill however much
memory is available ? Is it a memory leak, or is there any way I can limit
the amount of memory being used ? The memory usage does come down, but it
takes a very long time for this. This would surely affect the performance of
any webservice I try to deploy with axis2, and it may even result in the
service being unavailable because of a crash.

Could you please help me out ?

Regards,
Subramanyam



--
Davanum Srinivas : http://wso2.com/blogs/

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



Axis2 High memory usage, OutOfMemory exception

Title: Axis2 High memory usage, OutOfMemory exception






Hi, 


I have been trying out Axis 2.0 over the past week, with the configuration :

Axis2 version 1.0

Tomcat 5.5.17

jdk 1.5.0_04


I have tried using the sample "Axis2SampleDocLitService" that has been given. I generated the stubs and skeletons using the wsdl provided with the axis2 distribution (samples/wsdl/Axis2SampleDocLit.wsdl) ,  as shown in the user guide, using the xmlbeans option for data binding.

I have a http client which I use to post the xml request to the server, and I got proper responses when I tested it with the client.

However, I have noticed that when I pump requests at a rapid rate, the memory usage keeps on increasing rapidly (checked using jmx console), in some cases ultimately leading to a jvm crash with an OutOfMemory Exception.  This was occurring when default mx(which is 64M) was used.

I also tried setting the JVM mx option to 128M (-Xmx128M)  and ran the test again. However, the memory usage keeps increasing all the way till it reaches 128 Mb, too, where it again crashes if I continue pumping further. 

If I stop pumping requests at around that time, and wait for around half an hour, I notice that the memory usage begins to reduce, and slowly come back to the original value (10M approx.)  upon forcing a GC. 

I have also deployed axis1 on the same tomcat installation, with the intention of comparing performance. When I try the same test there, ie, pumping requests, I don't find any alarming memory increase.

Why is so much memory being used, and why does it grow to fill however much memory is available ? Is it a memory leak, or is there any way I can limit the amount of memory being used ? The memory usage does come down, but it takes a very long time for this. This would surely affect the performance of any webservice I try to deploy with axis2, and it may even result in the service being unavailable because of a crash.

Could you please help me out ?


Regards, 

Subramanyam





[axis2] Getting Axis2 working under Websphere 5.1

Hi

I'm currently trying to get the Axis2 War Distribution to work under
websphere 5.1. I have managed to get round the error Invalid service
version.aar due to java.lang.NoSuchMethodError: javax.xml.namespace.QName:
method (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V not
found by setting the Classloader Mode to PARENT_LAST

But when I go to the url http://localhost:9080/Test/services/version?wsdl
all I get is a 404 error Requested resource not found!

There are no error messages appearing in my log files and so I'm feeling a
bit stumped.

Has anyone else come across the same issue and can suggest anything else
that I need to do


Thanks in advance


David Wilkinson


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



Axis Security with WSS4J

Hi everbody,I am new in webservices. I have created a web project with eclipse. There are some simple beans like user, products etc... I created web service with Axis plugin for eclipse (like a wizard. ) for those beans. Services are working fine. 
Also I want to add some security to my services without modifying my beans. How can I do this? Thanks for advance.. 



RE: axis2 client to WinFX service via tcp [was RE: HOW TO: get axis2 client tcp to find Addressing module]

Title: HOW TO: get axis2 client tcp to find Addressing module



Martin for the suggestions!  I'm actually pushing 
the envelope beyond .NET 2.0 by using the WinFX beta software (i.e. Indigo or 
Windows Communication Framework - .NET 3.0 stuff).  I can get the WSDL from 
the http endpoint I host on the same service, but I'm trying to verify that I 
can talk TCP from WinFX to/from Axis2.  I will hook in TcpTrace to see 
what's going over the wire, as well as look at the actual WSDL my server is 
generating from the ?wsdl.  It's a good learning experience none the less 
to really see what's going on under the hood on both sides.
 
Thanks again for the help.  When I get the 
solution, I'll post it back here in case anyone else may come across this in the 
future.
 
-bob

  
  
  From: Martin Gainty 
  [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 4:30 
  PMTo: axis-user@ws.apache.orgSubject: Re: axis2 client 
  to WinFX service via tcp [was RE: HOW TO: get axis2 client tcp to find 
  Addressing module]
  
  Rob-
  This is a Shot in the dark but why not use AXIS 
  1.3 to ensure compat with NET 2.0 framework
  go to server-config.wsdd with which you are 
  deploying the services verify these parameters to ensure compatibility with 
  NET
  
  
  
  redeploy the AXIS 1.3 service so that it will 
  pickup the new parametersFinally when client is constructing the call 
  the 3rd parameter is encoding and I suspect this is NOT the encoding that is 
  supported by the servicethis is identified as the encoding 
  attribute from the wsdl such as encoding="UTF-8" 
  Unfortunately 
  without the WSDL you're flying blind..
  Taking a quick peek at available charactersets I see UTF-8 and UTF-16 a 
  more or less comprehensive list is located at http://www.oracle.com/technology/tech/xml/xdk/doc/production10g/doc/c/Getting_Started_C.html
  I dont see any implementation of UTF816 which I would assume uses a 
  transcoder
  Finally if you dont need DBCS why not use UTF-8 supported here
  http://schemas.xmlsoaporg/soap/encoding/
   
  Anyone else?M-
  *This 
  email message and any files transmitted with it contain 
  confidentialinformation intended only for the person(s) to whom this email 
  message isaddressed.  If you have received this email message in 
  error, please notifythe sender immediately by telephone or email and 
  destroy the originalmessage without making a copy.  Thank you.
   
   
  
- Original Message - 
From: 
DeRemer, 
Bob 
To: axis-user@ws.apache.org 
Sent: Wednesday, May 24, 2006 3:36 
PM
Subject: axis2 client to WinFX service 
via tcp [was RE: HOW TO: get axis2 client tcp to find Addressing 
module]

I've been working this a bit more by changing the 
WinFX side to use a custom binding that is a tcp transport with a text 
encoding, but still get the following warnings/exceptions on the Axis side 
when debugging:
 
Can anyone comment on the PrimitiveAssertion 
warnings?  Also, what is the default settings when the URI passed into 
the client stub is tcp-based?  Specifically, what is the encoding, 
etc.
 
Thanks,
Bob
===
Warning: cannot find a 
module for process PrimitiveAssertion - 
{http://schemas.xmlsoap.org/ws/2004/09/policy/encoding}Utf816FFFECharacterEncoding

Warning: cannot find a module for process PrimitiveAssertion - 
{http://schemas.microsoft.com/ws/06/2004/mspolicy/netframing1}Streamed
Warning: cannot find a module for process PrimitiveAssertion - 
{http://www.w3.org/2005/08/addressing}UsingAddressing
org.apache.axis2.AxisFault: Connection reset; nested exception is: 
com.ctc.wstx.exc.WstxIOException: Connection reset
at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:126)
at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:349)
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
at Service1Stub.MyOperation1(Service1Stub.java:177)
at InteropClientJava.main(InteropClientJava.java:49)
Caused by: com.ctc.wstx.exc.WstxIOException: Connection reset
at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:539)
at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:592)
at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:617)
at 
com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:315)
at 
org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:51)
at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:117)
... 5 more
Caused by: java.net.SocketException: 
  

Problems with Service Archive Wizard - eclipse Plug-in

Hi all!

I'am facing troubles with the Service Archive Wizard - eclipse Plug-in,
seems to be extremly buggy:

When I select "Generate service xml automatically" on the wizard page:
1) the "finish-button" becomes available, by pressing it i get the following
message: There are no methods selected to generate this service.
2) the "next" button remains active but without any actions.

When I select the service.xml file on this wizard page "by browsing" I'am
not able to push the finish button, i have to go back to select "Generate
service xml automatically" and then deselct it again. Now i get the wizard
page "Set the output loacation and the output file name" with an active
finish-button but with the two input fields "Service Name", "class Namen"
and not "output File Location" and "Output File Name".

Thx and greetings,

Thomas
 


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



[Axis2] How to build aar and Axis2 war with Maven2?









I would like to start using
Axis2 in a new project.  The project will use Maven2 as the build system.  How
can I integrate Axis2?  Specifically, how do I?

 

-   
Compile my sources into the
Axis aar format?  Or take my application’s jar and create the Axis2 aar
format?

-   
Take the Axis2 aar and make
the Axis war needed for deployment. 

 

I would greatly appreciate
info on how to do this.

 

-dh

 








Re: [Axis2] wsdl2java: How do I find uot whats wrong with the WSDL?


Chathura Herath wrote:

There was an error in ur wsdl. The part attribute name in the
definition/binding/operation/input/header doesn't match with the part
name in the message. login against Login
Attached is the corrected wsdl, which works.


Thank you very, very much.  I know I have stared at that piece for days
without seeing it.

Very strange that none of those validation tools could pick that up.

Thanks again.
Håkon
--
Antares Gruppen AS
Dir.phone: +47 - 23 29 05 75
Mobile: +47 - 911 79 505
http://www.antares.no

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



Re: Client Authentication using Certificates for restricting access to an Axis Web Service

could we use wildchars ? such as:Alias /l3ci "/home/dev/myapphome/site/server1/l3ci/** "  Options MultiViews  AllowOverride None
  Order allow,deny  Allow from all  SSLRequireSSL  SSLVerifyClient require  SSLVerifyDepth 12006/5/20, Stephen BROOKE <
[EMAIL PROTECTED]>:I have an Axis 1.x web service available via Apache using SSL only.  Our
requirement is that we authenticate users of the service with Apacheclient authentication using certificates.The URL for the web service is something like:
https://www.mydomain.com/l3ci/services/myoperationIn my Apache configuration I have the following:---SSLCACertificateFile /usr/local/apache/conf/ssl.crt/ca-bundle.crt
Alias /l3ci "/home/dev/myapphome/site/server1/l3ci"  Options MultiViews  AllowOverride None  Order allow,deny  Allow from all
  SSLRequireSSL  SSLVerifyClient require  SSLVerifyDepth 1---I have the root certificate in the 'ca-bundle.crt' file and I have boththe root cert and a valid client cert signed by that CA imported into my
browsers.I use a browser such as Firefox and IE to test the client authenticationconfiguration but I can only get it to work from the URL:https://www.mydomain.com/l3ci
   but I need authentication to work fromthefull service URL above.As I understand it, Apache client authentication can at best serve atthe  directive level.  But my web service URL does not
correspond to an actual directory on disk!My question is:   Has anyone encountered this problem and found a way todothis or does anyone have any ideas to try?--Steve-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]



Re: String[] for xsd:anyType with axis1.2.1

Ravi ,
i too have the same problem , could you figure out something ?  
On 5/25/06, Ravi Krishnamurthy <[EMAIL PROTECTED]
> wrote: 
Hello;Would be evry helpful if someone could reply this email.thanks,RaviRavi Krishnamurthy wrote: 
> More information:> The exception that I mentioned happens only if the webservice is a> document/literal/wrapped but with RPC it is fine.>> Is there is any known bug related to wrapped/literal style, anytype 
> and ArrayOfString and axis1.2.1>> Thanks,> Ravi>> Ravi Krishnamurthy wrote:>>> Hello;>> One of the javabean I have registered as a bean mapping has a field 
>> of Object type which corresponds to xsd:anyType. But the types  for>> Object are always primitive types. As long they are primitives it>> works fine. I tried to pass String[] and it started to throw 
>> exception at the test cases generated by wsdl2java when I executed>> the JUnit test case as below: AxisFault>>  faultCode:>> {
 http://schemas.xmlsoap.org/soap/envelope/}Server.userException>>  faultSubcode:>>  faultString: org.xml.sax.SAXException: No deserializer for>> {
 http://www.w3.org/2001/XMLSchema}anyType>>  faultActor:>>  faultNode:>>  faultDetail:>> {
http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException :>> No deserializer for {
http://www.w3.org/2001/XMLSchema}anyType>> at>> org.apache.axis.encoding.ser.BeanDeserializer.onStartChild (BeanDeserializer.java:314) at>> org.apache.axis.encoding.DeserializationContext.startElement
(DeserializationContext.java:1035) at>> org.apache.axis.message.SAX2EventRecorder.replay (SAX2EventRecorder.java:165) at>> org.apache.axis.message.MessageElement.publishToHandler
(MessageElement.java:1141) at>> org.apache.axis.message.RPCElement.deserialize (RPCElement.java:236)>> at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>> at org.apache.axis.client.Call.invoke(Call.java:2448)>> at org.apache.axis.client.Call.invoke (Call.java:2347)>> at org.apache.axis.client.Call.invoke(Call.java:1804)>> at
>> com.savvion.webservice.workflow.BizLogic1SoapBindingStub.getProcessTemplateDataSlot(BizLogic1SoapBindingStub.java :1704) at>> com.savvion.webservice.workflow.WorkFlowWSServiceTestCase.test20BizLogic1GetProcessTemplateDataSlot
(WorkFlowWSServiceTestCase.java:457) 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:324)>> at 
junit.framework.TestCase.runTest(TestCase.java:216)>> at junit.framework.TestCase.runBare(TestCase.java :188)>> at junit.framework.TestResult$1.protect(TestResult.java:150)>> at junit.framework.TestResult.runProtected
(TestResult.java:168)>> at junit.framework.TestResult.run(TestResult.java :153)>> at junit.framework.TestCase.run(TestCase.java:179)>> at>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:478) at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) at>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java :196)>> {http://xml.apache.org/axis/}hostname:chennai
 The returned soap envelop looks like below:>> HTTP/1.1 200 OK Date: Wed, 24 May 2006 23:45:26 GMT Content-Type: text/xml; charset=utf-8
 Connection: Close>> >> >>>> xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/ ">> xmlns:xsd="
http://www.w3.org/2001/XMLSchema">> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
">>>   >>  >> xmlns="
http://workflow.webservice.savvion.com ">>> >>>>false
>>false>>listds>>1>>LIST 
>>>>   one>>   ten>>>>  
>>  >>   >> and the xsd:anytype if for the following element:
>> >>   one>>   ten>> Would appreciate any help on this. 
 Thanks,>> Ravi>> -> 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] 



Complex type problem

Hello all,I have deployed an ejb service with a method that takes as input a complex object (it contains 2 Strings and one int var). When i generate the code in the client with WSDL2Java and call the method i can see that this complex type object becomes null. I can see in the monitor that the request object isn't null but in the debug mode i can see that the service receives a null object. This problem doesn't occur when I use simple types to transfer.I tried the same code on a non-ejb service and works normally. In the deploy wsdd i use a typemapping element to describe the object and i use the BeanSerializerFactory and BeanDeSerializer factory as serializer-deserializer.Can someone explain why is this happening?Regards,Roy
		 
Χρησιμοποιείτε Yahoo! 
Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων  
http://login.yahoo.com/config/mail?.intl=gr