Re: [axis2]ERROR org.apache.axis2.transport.http.AxisServlet - java.lang.AbstractMethodError

2007-01-15 Thread sreenivas velagapudi
Thanks Deepal,

But I am getting the Error even before the control
goes to my handler.

I am getting this error during the  
phase. when it is invoking the
AddressingFinalInHandler , it is throwing the
Exception .The DEBUG Trace is shown below. 


54954 [http-9090-Processor24] DEBUG
org.apache.axis2.engine.Phase  - Checking
pre-condition for Phase "PreDispatch"
54954 [http-9090-Processor24] DEBUG
org.apache.axis2.engine.Phase  - Invoking phase
"PreDispatch"
54954 [http-9090-Processor24] DEBUG
org.apache.axis2.engine.Phase  - Invoking Handler
'AddressingFinalInHandler' in Phase 'PreDispatch'
54954 [http-9090-Processor24] ERROR
org.apache.axis2.transport.http.AxisServlet  -
java.lang.AbstractMethodError
54954 [http-9090-Processor24] DEBUG
org.apache.axis2.addressing.AddressingHelper  -
isReplyRedirected: FaultTo is null. Returning
isReplyRedirected
54954 [http-9090-Processor24] DEBUG
org.apache.axis2.addressing.AddressingHelper  -
isReplyRedirected: ReplyTo is null. Returning false


Thanks
Sreenivas

I am getting the problem before entering the 
--- Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

> From Axis2 1.0 to 1.1 there was an API change in
> handler class , that is
> why you are getting this error. Seems you need to
> update your java class
> to cope with those changes.
> 
> Thanks
> Deepal
> 
> sreenivas velagapudi wrote:
> 
> >Hi ,
> > 
> >I upgraded from Axis1.0 to Axis1.1. I am getting
> the
> >below Exception, when i tried to run my Soap Tests.
> > 
> >Earlier it was working fine with Axis1.0.
> > 
> >Can any body help on this.
> > 
> >27625 [http-9090-Processor25] ERROR
> >org.apache.axis2.transport.http.AxisServlet  -
> >java.lang.AbstractMethodError
> >27625 [http-9090-Processor25] ERROR
>
>org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/musicportal].[AxisServlet]
> > - Servlet.service() for servlet AxisServlet threw
> >exception
> >java.lang.AbstractMethodError
> > at
>
>org.apache.axis2.engine.Phase.invoke(Phase.java:381)
> > at
>
>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:518)
> > at
>
>org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:705)
> > at
>
>org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:305)
> > at
>
>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:287)
> > 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.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
> > at
>
>org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
> > at
>
>org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
> > at
>
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> > at
>
>org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
> > at
>
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> > at
>
>org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
> > at
>
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> > at
>
>org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
> > at
>
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> > at
>
>org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
> > at
>
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> > at
>
>org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:108)
> > at
>
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> > at
>
>org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:191)
> > at
>
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> > at
>
>org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
> > at
>
>org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90)
> > at
>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> > at
>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> > at
>
>org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:61)
> > at
>
>org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
> > at
>
>org.apache.c

Re: save location of attachment..

2007-01-15 Thread Thilina Gunarathne

D:\axis2-1.1.1\samples\soapwithattachments>ant run.client -Dfile
README.txt -Ddest README.txt

Please provide the "-Ddest" an absolute path...

Eg: D:\axis2-1.1.1\samples\soapwithattachments>ant run.client -Dfile
README.txt -Ddest D:\README.txt
  

~Thilina

On 1/16/07, Alex HO <[EMAIL PROTECTED]> wrote:

Hi all,
i just tried the attachment samples bundled with axis2 1.1.1
i would like to know where is the save location of attachment file on
server side?
i use the follow ant command to invoke the server:

D:\axis2-1.1.1\samples\soapwithattachments>ant run.client -Dfile
README.txt -Ddest README.txt
--
Regards,
Alex


--
Regards,
Alex

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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Re: Attachment problem

2007-01-15 Thread Thilina Gunarathne

D:\axis2-1.1.1\samples\soapwithattachments>ant run.client -Dfile
README.txt -Ddest README.txt

Please provide the "-Ddest" an absolute path...

Eg: D:\axis2-1.1.1\samples\soapwithattachments>ant run.client -Dfile
README.txt -Ddest D:\README.txt
   

~Thilina




--
Regards,

On 1/16/07, anant khandekar <> wrote:
> Hi,
>
> Putting a byte[] instead of A DataHandler works
> But one more query.
> Is there any workaround for making overloading possible in axis2.
>
> thanks in advance,
> anant
>
> -- Forwarded message --
> From: Thilina Gunarathne <[EMAIL PROTECTED]>
> Date: Jan 16, 2007 12:43 AM
> Subject: Re: Attachment problem
> To: axis-user@ws.apache.org
>
> AFAIK Axis2 still does not support the deployment of POJO based
> services with dataHandler parameters..
> Please try putting a byte[] instead of the data handler.
>
> >
> > Is there any other way to send attachments (using an
> > RPCServiceClientjust as the one above)
> There are other ways such as using Axiom & databinding. Once again I'm
> not sure whether the RPCServiceClient supports it..
>
> You can log couple of improvement JIRA's for the pojo & rpcClient
> support for DataHandlers.
>
> Thanks,
> Thilina
>
> >
> >
> >
> > Thanks,
> >
> > Anant
>
>
> --
> Thilina Gunarathne
> WSO2, Inc.; http://www.wso2.com/
> Home page: http://webservices.apache.org/~thilina/
> Blog: http://thilinag.blogspot.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Regards,
Alex




--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



WSDLReader with HTTP basic authorization problem

2007-01-15 Thread Frank Zhou
Hi all, 

I'm having a problem with WSDLReader trying to parse a
WSDL url, the URL is under HTTP Basic authentication.
My browsing through the WSDLReader api, I couldn't
find any method to pass the userid/passwd information
when I call readWSDL(...) on it. I am using AXIS 1.2
and WSDL4J-1.5.1.

My code is something like this:

  WSDLFactory factory = WSDLFactory.newInstance();
  WSDLReader reader = factory.newWSDLReader();
  reader.setFeature("javax.wsdl.verbose", true);
  reader.setFeature("javax.wsdl.importDocuments",
true);
  Definition wsdlDef = reader.readWSDL( _wsdlURL );

When I run this, I got the following error:

  WSDLException: faultCode=OTHER_ERROR: Unable to
resolve imported document at
'http://sj-w-01-xzhou:28080/diAdmin/servlet/webservices?wsdlxml'.:
Server returned HTTP response code: 401 for URL:
http://sj-w-01-xzhou:28080/diAdmin/servlet/webservices?wsdlxml:
java.io.IOException: Server returned HTTP response
code: 401 for URL:
http://sj-w-01-xzhou:28080/diAdmin/servlet/webservices?wsdlxml
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800)
at
java.net.URLConnection.getContent(URLConnection.java:585)
at java.net.URL.getContent(URL.java:927)
at
com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown
Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
Source)
..
===

I tried to search mail archive but couldn't find any
useful info. Any help is much appreicated.

Thanks in advance.
Frank


 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

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



Re: Re: Re: Re: Re: WSDL2Java Help

2007-01-15 Thread Paul Fremantle

Don't try older versions of Axis2. You should be using 1.1.1

You just need to clean up your classpath and system. Your software
levels are just fine.

Paul

On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:

Thanks a lot, i guess the problem is done.

probably i think Windows' CLASSPATH has some problem with AXIS2, i will try old 
versions of AXIS2.  :)

cheers!!

-Original Message-
From: "Paul Fremantle" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Date: Tue, 16 Jan 2007 05:36:03 +
Subject: Re: Re: Re: Re: WSDL2Java Help

Jiang

This is something you have to watch out with XMLBeans. XMLBeans
generates a lot of .xsb files which are binary mapping data between
the XML and the Java objects. You need to make sure these files are in
the classpath.

Usually the best way to do that is create a client jar by using the
ant build script that WSDL2Java generates.

You can do this just by typing ant in the client directory.

Paul

On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> Yeh, thank you so much and i guess it is the school's firewall.
>
> And, the story is not over, here is the new problem when running the same 
command twice(or even more):
>
> e:\GlobalWeather\client\build\classes>java 
-Djava.ext.dirs=H:\Webservice_source\axis2-1.1.1\lib net.webservicex.www.Client
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at 
net.webservicex.www.GetWeatherDocument$Factory.newInstance(GetWeather
> Document.java:132)
> at net.webservicex.www.Client.main(Client.java:7)
> Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable 
to l
> oad class with name 
schemaorg_apache_xmlbeans.system.s22C110A411CB415190A42F6FFD
> BFB022.TypeSystemHolder. Make sure the generated binary files are on the 
classpa
> th.
> at 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:7
> 83)
> at 
net.webservicex.www.GetWeatherDocument.(GetWeatherDocument.ja
> va:19)
> ... 2 more
> Caused by: java.lang.ClassNotFoundException: 
schemaorg_apache_xmlbeans.system.s2
> 2C110A411CB415190A42F6FFDBFB022.TypeSystemHolder
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:7
> 69)
> ... 3 more
>
>
> Exception: schemaorg_apache_xmlbeans.system.s2
> 2C110A411CB415190A42F6FFDBFB022.TypeSystemHolder also happened when i hand 
copied all required classes from AXIS2.
>
> Cheers!!
>
>
> -Original Message-
> From: "Paul Fremantle" <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Date: Tue, 16 Jan 2007 05:04:33 +
> Subject: Re: Re: Re: WSDL2Java Help
>
> Jiang
>
> You just need to have your classpath correct. You shouldn't need to
> copy class files around.
>
> Do you have a personal firewall? Maybe its blocking access to the service.
>
> Paul
>
> On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> > Thank you so much! :)
> > Now it works but still, i got connect refused exceptions, i am not sure 
this is caused by the service which requires user authorization or still, WSDL2Java's 
problem. Here are the exceptions:
> >
> > e:\GlobalWeather\client\build\classes>java -Djava.ext.dirs=
> > H:\Webservice_source\axis2-1.1.1\lib net.webservicex.www.Client
> >
> > Jan 16, 2007 3:51:20 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry INFO: I/O exception (java.net.ConnectException) caught when 
processing request: Connection refused: connect
> > Jan 16, 2007 3:51:20 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry INFO: Retrying request Jan 16, 2007 3:51:21 PM 
org.apache.commons.httpclient.HttpMethodDirector execute WithRetry INFO: I/O 
exception (java.net.ConnectException) caught when processing request: Connection 
refused: connect
> > Jan 16, 2007 3:51:21 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry INFO: Retrying request
> > Jan 16, 2007 3:51:22 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry
> > INFO: I/O exception (java.net.ConnectException) caught when processing 
request: Connection refused: connect
> > Jan 16, 2007 3:51:22 PM org.apache.commons.httpclient.HttpMethodDirector 
execute withRetry
> > INFO: Retrying request
> > org.apache.axis2.AxisFault: Connection refused: connect; nested exception 
is:
> > java.net.ConnectException: Connection refused: connect; nested 
exception
> >  is:
> > org.apache.axis2.AxisFault: Connection refused: connect; nested 
exceptio
> > n is:
> > java.net.ConnectException: Connection refused: connect
> >
> >
> > and BTW, is that everybody has 

Re: Re: Re: Re: Re: WSDL2Java Help

2007-01-15 Thread Jiang Liu
Thanks a lot, i guess the problem is done.

probably i think Windows' CLASSPATH has some problem with AXIS2, i will try old 
versions of AXIS2.  :)

cheers!!

-Original Message-
From: "Paul Fremantle" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Date: Tue, 16 Jan 2007 05:36:03 +
Subject: Re: Re: Re: Re: WSDL2Java Help

Jiang

This is something you have to watch out with XMLBeans. XMLBeans
generates a lot of .xsb files which are binary mapping data between
the XML and the Java objects. You need to make sure these files are in
the classpath.

Usually the best way to do that is create a client jar by using the
ant build script that WSDL2Java generates.

You can do this just by typing ant in the client directory.

Paul

On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> Yeh, thank you so much and i guess it is the school's firewall.
>
> And, the story is not over, here is the new problem when running the same 
> command twice(or even more):
>
> e:\GlobalWeather\client\build\classes>java 
> -Djava.ext.dirs=H:\Webservice_source\axis2-1.1.1\lib 
> net.webservicex.www.Client
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at 
> net.webservicex.www.GetWeatherDocument$Factory.newInstance(GetWeather
> Document.java:132)
> at net.webservicex.www.Client.main(Client.java:7)
> Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable 
> to l
> oad class with name 
> schemaorg_apache_xmlbeans.system.s22C110A411CB415190A42F6FFD
> BFB022.TypeSystemHolder. Make sure the generated binary files are on the 
> classpa
> th.
> at 
> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:7
> 83)
> at 
> net.webservicex.www.GetWeatherDocument.(GetWeatherDocument.ja
> va:19)
> ... 2 more
> Caused by: java.lang.ClassNotFoundException: 
> schemaorg_apache_xmlbeans.system.s2
> 2C110A411CB415190A42F6FFDBFB022.TypeSystemHolder
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at 
> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:7
> 69)
> ... 3 more
>
>
> Exception: schemaorg_apache_xmlbeans.system.s2
> 2C110A411CB415190A42F6FFDBFB022.TypeSystemHolder also happened when i hand 
> copied all required classes from AXIS2.
>
> Cheers!!
>
>
> -Original Message-
> From: "Paul Fremantle" <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Date: Tue, 16 Jan 2007 05:04:33 +
> Subject: Re: Re: Re: WSDL2Java Help
>
> Jiang
>
> You just need to have your classpath correct. You shouldn't need to
> copy class files around.
>
> Do you have a personal firewall? Maybe its blocking access to the service.
>
> Paul
>
> On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> > Thank you so much! :)
> > Now it works but still, i got connect refused exceptions, i am not sure 
> > this is caused by the service which requires user authorization or still, 
> > WSDL2Java's problem. Here are the exceptions:
> >
> > e:\GlobalWeather\client\build\classes>java -Djava.ext.dirs=
> > H:\Webservice_source\axis2-1.1.1\lib net.webservicex.www.Client
> >
> > Jan 16, 2007 3:51:20 PM org.apache.commons.httpclient.HttpMethodDirector 
> > execute WithRetry INFO: I/O exception (java.net.ConnectException) caught 
> > when processing request: Connection refused: connect
> > Jan 16, 2007 3:51:20 PM org.apache.commons.httpclient.HttpMethodDirector 
> > execute WithRetry INFO: Retrying request Jan 16, 2007 3:51:21 PM 
> > org.apache.commons.httpclient.HttpMethodDirector execute WithRetry INFO: 
> > I/O exception (java.net.ConnectException) caught when processing request: 
> > Connection refused: connect
> > Jan 16, 2007 3:51:21 PM org.apache.commons.httpclient.HttpMethodDirector 
> > execute WithRetry INFO: Retrying request
> > Jan 16, 2007 3:51:22 PM org.apache.commons.httpclient.HttpMethodDirector 
> > execute WithRetry
> > INFO: I/O exception (java.net.ConnectException) caught when processing 
> > request: Connection refused: connect
> > Jan 16, 2007 3:51:22 PM org.apache.commons.httpclient.HttpMethodDirector 
> > execute withRetry
> > INFO: Retrying request
> > org.apache.axis2.AxisFault: Connection refused: connect; nested exception 
> > is:
> > java.net.ConnectException: Connection refused: connect; nested 
> > exception
> >  is:
> > org.apache.axis2.AxisFault: Connection refused: connect; nested 
> > exceptio
> > n is:
> > java.net.ConnectException: Connection refused: connect
> >
> >
> > and BTW, is that everybody has to provide -Djava... when running the 
> > generated client or just me? I used to hand copy all required classes from 
> > A

Re: Re: Re: Re: WSDL2Java Help

2007-01-15 Thread Paul Fremantle

Jiang

This is something you have to watch out with XMLBeans. XMLBeans
generates a lot of .xsb files which are binary mapping data between
the XML and the Java objects. You need to make sure these files are in
the classpath.

Usually the best way to do that is create a client jar by using the
ant build script that WSDL2Java generates.

You can do this just by typing ant in the client directory.

Paul

On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:

Yeh, thank you so much and i guess it is the school's firewall.

And, the story is not over, here is the new problem when running the same 
command twice(or even more):

e:\GlobalWeather\client\build\classes>java 
-Djava.ext.dirs=H:\Webservice_source\axis2-1.1.1\lib net.webservicex.www.Client
Exception in thread "main" java.lang.ExceptionInInitializerError
at net.webservicex.www.GetWeatherDocument$Factory.newInstance(GetWeather
Document.java:132)
at net.webservicex.www.Client.main(Client.java:7)
Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to l
oad class with name schemaorg_apache_xmlbeans.system.s22C110A411CB415190A42F6FFD
BFB022.TypeSystemHolder. Make sure the generated binary files are on the classpa
th.
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:7
83)
at net.webservicex.www.GetWeatherDocument.(GetWeatherDocument.ja
va:19)
... 2 more
Caused by: java.lang.ClassNotFoundException: schemaorg_apache_xmlbeans.system.s2
2C110A411CB415190A42F6FFDBFB022.TypeSystemHolder
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:7
69)
... 3 more


Exception: schemaorg_apache_xmlbeans.system.s2
2C110A411CB415190A42F6FFDBFB022.TypeSystemHolder also happened when i hand 
copied all required classes from AXIS2.

Cheers!!


-Original Message-
From: "Paul Fremantle" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Date: Tue, 16 Jan 2007 05:04:33 +
Subject: Re: Re: Re: WSDL2Java Help

Jiang

You just need to have your classpath correct. You shouldn't need to
copy class files around.

Do you have a personal firewall? Maybe its blocking access to the service.

Paul

On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> Thank you so much! :)
> Now it works but still, i got connect refused exceptions, i am not sure this 
is caused by the service which requires user authorization or still, WSDL2Java's 
problem. Here are the exceptions:
>
> e:\GlobalWeather\client\build\classes>java -Djava.ext.dirs=
> H:\Webservice_source\axis2-1.1.1\lib net.webservicex.www.Client
>
> Jan 16, 2007 3:51:20 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry INFO: I/O exception (java.net.ConnectException) caught when 
processing request: Connection refused: connect
> Jan 16, 2007 3:51:20 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry INFO: Retrying request Jan 16, 2007 3:51:21 PM 
org.apache.commons.httpclient.HttpMethodDirector execute WithRetry INFO: I/O 
exception (java.net.ConnectException) caught when processing request: Connection 
refused: connect
> Jan 16, 2007 3:51:21 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry INFO: Retrying request
> Jan 16, 2007 3:51:22 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing 
request: Connection refused: connect
> Jan 16, 2007 3:51:22 PM org.apache.commons.httpclient.HttpMethodDirector 
execute withRetry
> INFO: Retrying request
> org.apache.axis2.AxisFault: Connection refused: connect; nested exception is:
> java.net.ConnectException: Connection refused: connect; nested 
exception
>  is:
> org.apache.axis2.AxisFault: Connection refused: connect; nested 
exceptio
> n is:
> java.net.ConnectException: Connection refused: connect
>
>
> and BTW, is that everybody has to provide -Djava... when running the 
generated client or just me? I used to hand copy all required classes from AXIS2 
jar files but why WSDL2Java can not create them automatically?
>
> cheers!!
>
>
>
> -Original Message-
> From: "Paul Fremantle" <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Date: Tue, 16 Jan 2007 04:46:38 +
> Subject: Re: Re: WSDL2Java Help
>
> Jiang
>
> It looks like you have run WSDL2Java successfully and the problem is
> running the client you've created.
>
> Try java -Djava.ext.dirs=[axis2directory]\lib
>
> Paul
>
> On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> > Hi, Thank you for your reply.
> > Heres the detail:
> >
> > (Win XPsp2, A

Fwd: Attachment problem

2007-01-15 Thread anant khandekar

Hi,

Putting a byte[] instead of A DataHandler works
But one more query.
Is there any workaround for making overloading possible in axis2.

thanks in advance,
anant

-- Forwarded message --
From: Thilina Gunarathne <[EMAIL PROTECTED]>
Date: Jan 16, 2007 12:43 AM
Subject: Re: Attachment problem
To: axis-user@ws.apache.org

AFAIK Axis2 still does not support the deployment of POJO based
services with dataHandler parameters..
Please try putting a byte[] instead of the data handler.



Is there any other way to send attachments (using an
RPCServiceClientjust as the one above)

There are other ways such as using Axiom & databinding. Once again I'm
not sure whether the RPCServiceClient supports it..

You can log couple of improvement JIRA's for the pojo & rpcClient
support for DataHandlers.

Thanks,
Thilina





Thanks,

Anant



--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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


Re: Re: Re: Re: WSDL2Java Help

2007-01-15 Thread Jiang Liu
Yeh, thank you so much and i guess it is the school's firewall.

And, the story is not over, here is the new problem when running the same 
command twice(or even more):

e:\GlobalWeather\client\build\classes>java 
-Djava.ext.dirs=H:\Webservice_source\axis2-1.1.1\lib net.webservicex.www.Client
Exception in thread "main" java.lang.ExceptionInInitializerError
at net.webservicex.www.GetWeatherDocument$Factory.newInstance(GetWeather
Document.java:132)
at net.webservicex.www.Client.main(Client.java:7)
Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to l
oad class with name schemaorg_apache_xmlbeans.system.s22C110A411CB415190A42F6FFD
BFB022.TypeSystemHolder. Make sure the generated binary files are on the classpa
th.
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:7
83)
at net.webservicex.www.GetWeatherDocument.(GetWeatherDocument.ja
va:19)
... 2 more
Caused by: java.lang.ClassNotFoundException: schemaorg_apache_xmlbeans.system.s2
2C110A411CB415190A42F6FFDBFB022.TypeSystemHolder
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:7
69)
... 3 more


Exception: schemaorg_apache_xmlbeans.system.s2
2C110A411CB415190A42F6FFDBFB022.TypeSystemHolder also happened when i hand 
copied all required classes from AXIS2.

Cheers!!


-Original Message-
From: "Paul Fremantle" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Date: Tue, 16 Jan 2007 05:04:33 +
Subject: Re: Re: Re: WSDL2Java Help

Jiang

You just need to have your classpath correct. You shouldn't need to
copy class files around.

Do you have a personal firewall? Maybe its blocking access to the service.

Paul

On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> Thank you so much! :)
> Now it works but still, i got connect refused exceptions, i am not sure this 
> is caused by the service which requires user authorization or still, 
> WSDL2Java's problem. Here are the exceptions:
>
> e:\GlobalWeather\client\build\classes>java -Djava.ext.dirs=
> H:\Webservice_source\axis2-1.1.1\lib net.webservicex.www.Client
>
> Jan 16, 2007 3:51:20 PM org.apache.commons.httpclient.HttpMethodDirector 
> execute WithRetry INFO: I/O exception (java.net.ConnectException) caught when 
> processing request: Connection refused: connect
> Jan 16, 2007 3:51:20 PM org.apache.commons.httpclient.HttpMethodDirector 
> execute WithRetry INFO: Retrying request Jan 16, 2007 3:51:21 PM 
> org.apache.commons.httpclient.HttpMethodDirector execute WithRetry INFO: I/O 
> exception (java.net.ConnectException) caught when processing request: 
> Connection refused: connect
> Jan 16, 2007 3:51:21 PM org.apache.commons.httpclient.HttpMethodDirector 
> execute WithRetry INFO: Retrying request
> Jan 16, 2007 3:51:22 PM org.apache.commons.httpclient.HttpMethodDirector 
> execute WithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing 
> request: Connection refused: connect
> Jan 16, 2007 3:51:22 PM org.apache.commons.httpclient.HttpMethodDirector 
> execute withRetry
> INFO: Retrying request
> org.apache.axis2.AxisFault: Connection refused: connect; nested exception is:
> java.net.ConnectException: Connection refused: connect; nested 
> exception
>  is:
> org.apache.axis2.AxisFault: Connection refused: connect; nested 
> exceptio
> n is:
> java.net.ConnectException: Connection refused: connect
>
>
> and BTW, is that everybody has to provide -Djava... when running the 
> generated client or just me? I used to hand copy all required classes from 
> AXIS2 jar files but why WSDL2Java can not create them automatically?
>
> cheers!!
>
>
>
> -Original Message-
> From: "Paul Fremantle" <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Date: Tue, 16 Jan 2007 04:46:38 +
> Subject: Re: Re: WSDL2Java Help
>
> Jiang
>
> It looks like you have run WSDL2Java successfully and the problem is
> running the client you've created.
>
> Try java -Djava.ext.dirs=[axis2directory]\lib
>
> Paul
>
> On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> > Hi, Thank you for your reply.
> > Heres the detail:
> >
> > (Win XPsp2, AIXS21.1.1, Ant 1.7, Java1.5)
> >
> > Comsumming the service from: 
> > http://www.webservicex.net/globalweather.asmx?WSDL
> >
> > WSDL2Java command is:
> > h:\wsdl2java -uri ...wsdl -p net.webservicex.www -d xmlbeans -o client
> >
> > When running:
> > e:\GlobalWeather\build\classes>java net.webservicex.www.Client
> >
> > Exception in thread "main" java.lang.NoClassDefFoundError: 
> > org/apache/axis2/clie
> > nt/Stub at

Re: Re: Re: WSDL2Java Help

2007-01-15 Thread Paul Fremantle

Jiang

You just need to have your classpath correct. You shouldn't need to
copy class files around.

Do you have a personal firewall? Maybe its blocking access to the service.

Paul

On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:

Thank you so much! :)
Now it works but still, i got connect refused exceptions, i am not sure this is 
caused by the service which requires user authorization or still, WSDL2Java's 
problem. Here are the exceptions:

e:\GlobalWeather\client\build\classes>java -Djava.ext.dirs=
H:\Webservice_source\axis2-1.1.1\lib net.webservicex.www.Client

Jan 16, 2007 3:51:20 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry INFO: I/O exception (java.net.ConnectException) caught when 
processing request: Connection refused: connect
Jan 16, 2007 3:51:20 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry INFO: Retrying request Jan 16, 2007 3:51:21 PM 
org.apache.commons.httpclient.HttpMethodDirector execute WithRetry INFO: I/O 
exception (java.net.ConnectException) caught when processing request: 
Connection refused: connect
Jan 16, 2007 3:51:21 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry INFO: Retrying request
Jan 16, 2007 3:51:22 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: 
Connection refused: connect
Jan 16, 2007 3:51:22 PM org.apache.commons.httpclient.HttpMethodDirector 
execute withRetry
INFO: Retrying request
org.apache.axis2.AxisFault: Connection refused: connect; nested exception is:
java.net.ConnectException: Connection refused: connect; nested exception
 is:
org.apache.axis2.AxisFault: Connection refused: connect; nested exceptio
n is:
java.net.ConnectException: Connection refused: connect


and BTW, is that everybody has to provide -Djava... when running the generated 
client or just me? I used to hand copy all required classes from AXIS2 jar 
files but why WSDL2Java can not create them automatically?

cheers!!



-Original Message-
From: "Paul Fremantle" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Date: Tue, 16 Jan 2007 04:46:38 +
Subject: Re: Re: WSDL2Java Help

Jiang

It looks like you have run WSDL2Java successfully and the problem is
running the client you've created.

Try java -Djava.ext.dirs=[axis2directory]\lib

Paul

On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> Hi, Thank you for your reply.
> Heres the detail:
>
> (Win XPsp2, AIXS21.1.1, Ant 1.7, Java1.5)
>
> Comsumming the service from: 
http://www.webservicex.net/globalweather.asmx?WSDL
>
> WSDL2Java command is:
> h:\wsdl2java -uri ...wsdl -p net.webservicex.www -d xmlbeans -o client
>
> When running:
> e:\GlobalWeather\build\classes>java net.webservicex.www.Client
>
> Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/axis2/clie
> nt/Stub at java.lang.ClassLoader.defineClass1(Native Method) at 
java.lang.ClassLoader.defineClass(ClassLoader.java:620) at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
> 4) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:56) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>
>
> There is no such folder "axis2" generated at:
> "e:\...\bulid\classes\" and i can not set CLASSPATH for 
"e:\..\bulid\classes\axis2\apache\org\xsd\"
>
> I think the proble is WSDL2Java can not generate AXIS2 classes for the client.
>
>
> Cheers!!
>
> -Original Message-
> From: "Paul Fremantle" <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Date: Tue, 16 Jan 2007 04:22:29 +
> Subject: Re: WSDL2Java Help
>
> Hey Jiang
>
> Unfortunately we need to know what the blah blah balh is!
>
> Can you post the actual fault message?
>
> Paul
>
> On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I got a wired problem when running WSDL2Java to generate service client.
> >
> > I am using Win XP with lastest AXIS2 and all environment and CLASSPATH 
variables have been set, when generating client, there is always a fault message that 
class can not be found, e.g org/apache/axis2/client/stub and blah blah
> >
> > I guess the problem is there isnt such a folder called "axis2" at 
"\client\build\".
> >
> > So why i can not generate axis2 folder and keeping missing those classes 
when i try to run the client?
> >
> >
> > cheers!!
> > -
> > Jiang Liu
> > Student Number: 3075163
> > CS/Yallara Name: ljiang
> >
> > -

Re: [axis2]ERROR org.apache.axis2.transport.http.AxisServlet - java.lang.AbstractMethodError

2007-01-15 Thread Deepal Jayasinghe
>From Axis2 1.0 to 1.1 there was an API change in handler class , that is
why you are getting this error. Seems you need to update your java class
to cope with those changes.

Thanks
Deepal

sreenivas velagapudi wrote:

>Hi ,
> 
>I upgraded from Axis1.0 to Axis1.1. I am getting the
>below Exception, when i tried to run my Soap Tests.
> 
>Earlier it was working fine with Axis1.0.
> 
>Can any body help on this.
> 
>27625 [http-9090-Processor25] ERROR
>org.apache.axis2.transport.http.AxisServlet  -
>java.lang.AbstractMethodError
>27625 [http-9090-Processor25] ERROR
>org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/musicportal].[AxisServlet]
> - Servlet.service() for servlet AxisServlet threw
>exception
>java.lang.AbstractMethodError
> at
>org.apache.axis2.engine.Phase.invoke(Phase.java:381)
> at
>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:518)
> at
>org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:705)
> at
>org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:305)
> at
>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:287)
> 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.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
> at
>org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
> at
>org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
> at
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> at
>org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
> at
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> at
>org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
> at
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> at
>org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
> at
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> at
>org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
> at
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> at
>org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:108)
> at
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> at
>org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:191)
> at
>org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
> at
>org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
> at
>org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
>org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:61)
> at
>org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> 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)
>
>
>
>
>   
>_

Re: Re: Re: WSDL2Java Help

2007-01-15 Thread Jiang Liu
Thank you so much! :)
Now it works but still, i got connect refused exceptions, i am not sure this is 
caused by the service which requires user authorization or still, WSDL2Java's 
problem. Here are the exceptions:

e:\GlobalWeather\client\build\classes>java -Djava.ext.dirs=
H:\Webservice_source\axis2-1.1.1\lib net.webservicex.www.Client

Jan 16, 2007 3:51:20 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry INFO: I/O exception (java.net.ConnectException) caught when 
processing request: Connection refused: connect
Jan 16, 2007 3:51:20 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry INFO: Retrying request Jan 16, 2007 3:51:21 PM 
org.apache.commons.httpclient.HttpMethodDirector execute WithRetry INFO: I/O 
exception (java.net.ConnectException) caught when processing request: 
Connection refused: connect
Jan 16, 2007 3:51:21 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry INFO: Retrying request
Jan 16, 2007 3:51:22 PM org.apache.commons.httpclient.HttpMethodDirector 
execute WithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: 
Connection refused: connect
Jan 16, 2007 3:51:22 PM org.apache.commons.httpclient.HttpMethodDirector 
execute withRetry
INFO: Retrying request
org.apache.axis2.AxisFault: Connection refused: connect; nested exception is:
java.net.ConnectException: Connection refused: connect; nested exception
 is:
org.apache.axis2.AxisFault: Connection refused: connect; nested exceptio
n is:
java.net.ConnectException: Connection refused: connect


and BTW, is that everybody has to provide -Djava... when running the generated 
client or just me? I used to hand copy all required classes from AXIS2 jar 
files but why WSDL2Java can not create them automatically?

cheers!!



-Original Message-
From: "Paul Fremantle" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Date: Tue, 16 Jan 2007 04:46:38 +
Subject: Re: Re: WSDL2Java Help

Jiang

It looks like you have run WSDL2Java successfully and the problem is
running the client you've created.

Try java -Djava.ext.dirs=[axis2directory]\lib

Paul

On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> Hi, Thank you for your reply.
> Heres the detail:
>
> (Win XPsp2, AIXS21.1.1, Ant 1.7, Java1.5)
>
> Comsumming the service from: 
> http://www.webservicex.net/globalweather.asmx?WSDL
>
> WSDL2Java command is:
> h:\wsdl2java -uri ...wsdl -p net.webservicex.www -d xmlbeans -o client
>
> When running:
> e:\GlobalWeather\build\classes>java net.webservicex.www.Client
>
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/axis2/clie
> nt/Stub at java.lang.ClassLoader.defineClass1(Native Method) at 
> java.lang.ClassLoader.defineClass(ClassLoader.java:620) at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
> 4) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:56) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>
>
> There is no such folder "axis2" generated at:
> "e:\...\bulid\classes\" and i can not set CLASSPATH for 
> "e:\..\bulid\classes\axis2\apache\org\xsd\"
>
> I think the proble is WSDL2Java can not generate AXIS2 classes for the client.
>
>
> Cheers!!
>
> -Original Message-
> From: "Paul Fremantle" <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Date: Tue, 16 Jan 2007 04:22:29 +
> Subject: Re: WSDL2Java Help
>
> Hey Jiang
>
> Unfortunately we need to know what the blah blah balh is!
>
> Can you post the actual fault message?
>
> Paul
>
> On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I got a wired problem when running WSDL2Java to generate service client.
> >
> > I am using Win XP with lastest AXIS2 and all environment and CLASSPATH 
> > variables have been set, when generating client, there is always a fault 
> > message that class can not be found, e.g org/apache/axis2/client/stub and 
> > blah blah
> >
> > I guess the problem is there isnt such a folder called "axis2" at 
> > "\client\build\".
> >
> > So why i can not generate axis2 folder and keeping missing those classes 
> > when i try to run the client?
> >
> >
> > cheers!!
> > -
> > Jiang Liu
> > Student Number: 3075163
> > CS/Yallara Name: ljiang
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>

Re: axis looking in wrong place for generated ADB factory

2007-01-15 Thread Deepal Jayasinghe
Hi  ChadDavis ;
Please create a JIRA , that will be very helpful for us to fix the issue.

Thanks
Deepal

> I've created and partially successfully run the ADB client from the
> user guide.  See following link:
> http://ws.apache.org/axis2/1_1_1/userguide-creatingclients.html#adb
>
>
> My Problem:
>
> I've got 3 of four requests / responses behaving properly.  On the
> fourth, the multiple parameters in both directions one, it blows up
> with a classnotfound on the MultipleParametersAddItemRequest$Factory
> class.  This class does exist on the classpath.  The problem is that
> it is an inner class, as created by the wsdl2java with ADB set.  It
> seems that axis2 is looking for the the MPARequest as a toplevel
> class?  Below is the stack trace.  How is this generated Request any
> different than the ones for the first three requests?
>
>
> calling do in only
> done
> calling two way echo
> Knock Knock
> calling no parameters.
> [EMAIL PROTECTED]
>
> calling mulitp param
> org.apache.axis2.AxisFault: java.lang.NoClassDefFoundError:
> org/apache/axis2/axis2userguide/MultipleParametersAddItemRequest$Factory
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
>
> at
> org.apache.axis2.axis2userguide.Axis2UserGuideServiceStub.MultipleParametersAddItem(Axis2UserGuideServiceStub.java:398)
>
> at
> org.apache.axis2.axis2userguide.TestClient.multipleParameters(TestClient.java:89)
>
> at
> org.apache.axis2.axis2userguide.TestClient.main(TestClient.java:26)
>
> -
> 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: Override operation argument names in generated WSDL

2007-01-15 Thread Deepal Jayasinghe
Hi Soactive ;

> Some facts:
>
> 1. I am using axis2 - version 1.1.
> 2. I am using Java code-first approach (not WSDL first approach)
> 3. I am having the WSDL get generated automatically as
> http://something.com/serviceuri?wsdl
>
> I notice that the names of the arguments for each argument is randomly
> set to param0, param1, etc. Is there an an easy way to override these
> in the services.xml file as a configuration option within the
>  node. I also notice that the return value is being named
> 'return' by default. I have a need to rename this as well.

if you compile setting debug option turn on , then you will get the
correct method parameter name.Unfortunately  you can not override them
using services.xml

>
> Now, I do know that contract-first WSDL is being recommended by many
> to avoid interop issues with respect to data binding, but since the
> generated WSDL binding is (in most cases, at least) sufficient for my
> purposes, I am looking for a simple solution to override the generated
> names for the operation arguments and the return value.
>
> Thanks,
> Ron




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



Re: Re: WSDL2Java Help

2007-01-15 Thread Paul Fremantle

Jiang

It looks like you have run WSDL2Java successfully and the problem is
running the client you've created.

Try java -Djava.ext.dirs=[axis2directory]\lib

Paul

On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:

Hi, Thank you for your reply.
Heres the detail:

(Win XPsp2, AIXS21.1.1, Ant 1.7, Java1.5)

Comsumming the service from: http://www.webservicex.net/globalweather.asmx?WSDL

WSDL2Java command is:
h:\wsdl2java -uri ...wsdl -p net.webservicex.www -d xmlbeans -o client

When running:
e:\GlobalWeather\build\classes>java net.webservicex.www.Client

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/clie
nt/Stub at java.lang.ClassLoader.defineClass1(Native Method) at 
java.lang.ClassLoader.defineClass(ClassLoader.java:620) at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:56) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)


There is no such folder "axis2" generated at:
"e:\...\bulid\classes\" and i can not set CLASSPATH for 
"e:\..\bulid\classes\axis2\apache\org\xsd\"

I think the proble is WSDL2Java can not generate AXIS2 classes for the client.


Cheers!!

-Original Message-
From: "Paul Fremantle" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Date: Tue, 16 Jan 2007 04:22:29 +
Subject: Re: WSDL2Java Help

Hey Jiang

Unfortunately we need to know what the blah blah balh is!

Can you post the actual fault message?

Paul

On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> Hi,
> I got a wired problem when running WSDL2Java to generate service client.
>
> I am using Win XP with lastest AXIS2 and all environment and CLASSPATH 
variables have been set, when generating client, there is always a fault message 
that class can not be found, e.g org/apache/axis2/client/stub and blah blah
>
> I guess the problem is there isnt such a folder called "axis2" at 
"\client\build\".
>
> So why i can not generate axis2 folder and keeping missing those classes when 
i try to run the client?
>
>
> cheers!!
> -
> Jiang Liu
> Student Number: 3075163
> CS/Yallara Name: ljiang
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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


-
Jiang Liu
Student Number: 3075163
CS/Yallara Name: ljiang

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





--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Re: Re: WSDL2Java Help

2007-01-15 Thread Jiang Liu
Hi, Thank you for your reply.
Heres the detail:

(Win XPsp2, AIXS21.1.1, Ant 1.7, Java1.5)

Comsumming the service from: http://www.webservicex.net/globalweather.asmx?WSDL

WSDL2Java command is: 
h:\wsdl2java -uri ...wsdl -p net.webservicex.www -d xmlbeans -o client

When running:
e:\GlobalWeather\build\classes>java net.webservicex.www.Client

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/clie
nt/Stub at java.lang.ClassLoader.defineClass1(Native Method) at 
java.lang.ClassLoader.defineClass(ClassLoader.java:620) at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:56) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)


There is no such folder "axis2" generated at:
"e:\...\bulid\classes\" and i can not set CLASSPATH for 
"e:\..\bulid\classes\axis2\apache\org\xsd\"

I think the proble is WSDL2Java can not generate AXIS2 classes for the client.


Cheers!!

-Original Message-
From: "Paul Fremantle" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Date: Tue, 16 Jan 2007 04:22:29 +
Subject: Re: WSDL2Java Help

Hey Jiang

Unfortunately we need to know what the blah blah balh is!

Can you post the actual fault message?

Paul

On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:
> Hi,
> I got a wired problem when running WSDL2Java to generate service client.
>
> I am using Win XP with lastest AXIS2 and all environment and CLASSPATH 
> variables have been set, when generating client, there is always a fault 
> message that class can not be found, e.g org/apache/axis2/client/stub and 
> blah blah
>
> I guess the problem is there isnt such a folder called "axis2" at 
> "\client\build\".
>
> So why i can not generate axis2 folder and keeping missing those classes when 
> i try to run the client?
>
>
> cheers!!
> -
> Jiang Liu
> Student Number: 3075163
> CS/Yallara Name: ljiang
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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


-
Jiang Liu
Student Number: 3075163
CS/Yallara Name: ljiang

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



Re: WSDL2Java Help

2007-01-15 Thread Paul Fremantle

Hey Jiang

Unfortunately we need to know what the blah blah balh is!

Can you post the actual fault message?

Paul

On 1/16/07, Jiang Liu <[EMAIL PROTECTED]> wrote:

Hi,
I got a wired problem when running WSDL2Java to generate service client.

I am using Win XP with lastest AXIS2 and all environment and CLASSPATH 
variables have been set, when generating client, there is always a fault 
message that class can not be found, e.g org/apache/axis2/client/stub and blah 
blah

I guess the problem is there isnt such a folder called "axis2" at 
"\client\build\".

So why i can not generate axis2 folder and keeping missing those classes when i 
try to run the client?


cheers!!
-
Jiang Liu
Student Number: 3075163
CS/Yallara Name: ljiang

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





--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



WSDL2Java Help

2007-01-15 Thread Jiang Liu
Hi,
I got a wired problem when running WSDL2Java to generate service client.

I am using Win XP with lastest AXIS2 and all environment and CLASSPATH 
variables have been set, when generating client, there is always a fault 
message that class can not be found, e.g org/apache/axis2/client/stub and blah 
blah

I guess the problem is there isnt such a folder called "axis2" at 
"\client\build\".

So why i can not generate axis2 folder and keeping missing those classes when i 
try to run the client?


cheers!!
-
Jiang Liu
Student Number: 3075163
CS/Yallara Name: ljiang

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



Re: AXIS2 FEATURES

2007-01-15 Thread Paul Fremantle

Hi

Axis2 has full support for WS-Addressing, WS-Security, as well as
support for WS-ReliableMessaging, plus other specs. WS-Addressing is
built in (and was tested successfully at the W3C interop). A separate
module (Rampart) provides the WS-Security support.

The JAXBRI code looks ok to me. I played with it a bit and it looks
pretty decent so far. You definitely want the latest build (1.1.1) of
Axis2.

Paul


On 1/15/07, Evaristo José Camarero <[EMAIL PROTECTED]> wrote:


Hi:

I am in the phase to evaluate a WS-framework for a
project, and I need support for at least WS-Security
and WS-Addressing specifications. Is there any
detailed information regarding Axis2 compliance with
that specs?

Another important feature is the data-binding. We are
used to work with JAXBRI and we are confortable with
that technology. I have seen that Axis2 implements an
experimental binding for JAXBRI. Do you know what is
th status of that implementation, and if there is any
plan to include it like a stable implementation?

Thanks in advance,

Evaristo





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

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





--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Fwd: save location of attachment..

2007-01-15 Thread Alex HO

Hi all,
i just tried the attachment samples bundled with axis2 1.1.1
i would like to know where is the save location of attachment file on
server side?
i use the follow ant command to invoke the server:

D:\axis2-1.1.1\samples\soapwithattachments>ant run.client -Dfile
README.txt -Ddest README.txt
--
Regards,
Alex


--
Regards,
Alex

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



Consuming Web Service that returns object - blank object problem

2007-01-15 Thread Shyamal Shah

Hi,
  I am consuming a web service in a client. I have two methods one that
returns back an xml string and another one that returns the object. When I
call the method that returns xml back it works fine as expected. In case of
calling method that returns object, it returns blank object. Is there
anything I am doing wrong in the client code? Could anyone please advise if
I am missing something obvious? Below is my client code :

   Service service = new Service();
   Call call = (Call) service.createCall();
   call.setTargetEndpointAddress(new
java.net.URL("http://localhost:8080/axis2/services/CustomerInformationWS?wsdl
"));

   String custId = "999";
   String maSrNo = "555";
   call.setOperationName(new QName("
http://businessobject.o2c.adt.com/xsd";, "getCustomerTO"));
   call.addParameter ("custId", org.apache.axis.encoding
.XMLType.XSD_INT,
javax.xml.rpc.ParameterMode.IN
);
   call.addParameter("maSrNo", org.apache.axis.encoding.XMLType.XSD_INT
, javax.xml.rpc.ParameterMode.IN );
   QName qnm = new QName("
http://transferobject.o2c.adt.com/xsd)",
"getCustomerTO");
   call.registerTypeMapping (CustInfoTO.class, qnm, new
org.apache.axis.encoding.ser.BeanSerializerFactory (CustInfoTO.class, qnm),
new org.apache.axis.encoding.ser.BeanDeserializerFactory(CustInfoTO.class,
qnm));
   call.setReturnType(new QName("http://transferobject.o2c.adt.com/xsd)
", "getCustomerTO"));
   CustInfoTO result = (CustInfoTO) call.invoke(new Object[] { custId,
maSrNo });
   System.out.println("Result is " + result.getCCVL_CU_NO());
//all the attributes in the object are set to null or 0 and not what
I expect in the object.


   I will appreciate any help/suggestion on this.

Thanks,
Shyam


can some one please help me about attachments in jax-ws?

2007-01-15 Thread legolas

Hi
Thank you for reading my post.
Its some days that i try to create a pair of client and a web service that
could handle attachments (I must use Jax-WS ) but i can not find any
document that show how to create the service itself.
All Sun tutorials and samples just show the clinet side and not the server
side of the problem.
can some one please help me about this?
whether by giving some links, sample code or hint that tell me what should i
do in service side.

Thanks
-- 
View this message in context: 
http://www.nabble.com/can-some-one-please-help-me-about-attachments-in-jax-ws--tf3017980.html#a8381591
Sent from the Axis - User mailing list archive at Nabble.com.


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



question regarding Axis Exception handling with Websphere Portal

2007-01-15 Thread Xu, Larry
When using axis2 1.1 with Websphere Portal 5.1, in the case where
exceptions are expected from the webservice, they cannot be caught.

 

Example below:(pseudo code)

 

try {

webservice = Factory.getWebservice();

String username = "111";

String password = "112"; //invalid password, should expect an exception

 

webservice.login(username, password);

System.out.println("succeeded");

}

catch(Exception e) {

e.printStackTrace();

}

 

When testing this using Websphere Application Server as a servlet, the
exception is caught, but when testing this using Portal Test
Environment, the exception is not caught when it should be.

 

Please help.

 

 

Larry

 



[Axis2] JiBX unwrapped with Fault example

2007-01-15 Thread Dennis Sosnoski
I've posted an example of using JiBX unwrapped handling with Axis2 1.1.1 
at http://www.sosnoski.com/jibx-wiki/space/axis2-jibx The Fault handling 
is especially confusing, so I included a detailed breakdown of how this 
works.


 - Dennis

--
Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117


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



Re: RE : Re: axis2 with jibx

2007-01-15 Thread Dennis Sosnoski
JiBX data binding is the only option that *does* support unwrapped in 
the 1.1.1 release. I'm not sure about the cause of your problem, Benoit, 
but I've posted a detailed example of JiBX unwrapped handling with full 
source code and build files at 
http://www.sosnoski.com/jibx-wiki/space/axis2-jibx Try running through 
that example and see if it helps.


 - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Benoit Decherf wrote:

Why is the wrapped style a prefered option ?

The big advantage of unwrapped style is to use my own class. If I use 
the wrapped style I would have to transform the object used by axis to 
my own object.
So, is there another databing which let me use my own class (so 
unwrapped style) with jdk 1.4 ? 


Thanks
Benoit

*/Nilesh Ghorpade <[EMAIL PROTECTED]>/* a écrit :

Hi,

I believe the JiBX has not got an extensive support for unwrapped
document style. Hence you had to change the WSDL as well as the
binding file.

I suggest you go in for the wrapped style which is also a
preffered option over unwrapped.

The way you are passing the binding file to the code gen task is
correct i.e. using the "-Ebindingfile" option.


Hope this helps :-)

Regards

Nile

*/Benoit Decherf <[EMAIL PROTECTED]>/* wrote:

Hi,

I'm trying to create a webservice using jibx.
So first, I create my business class and my dto.
Then, I create the jibx binding:
java -cp
~/tools/jibx-genbinding.jar:~/jibx/lib/jibx-bind.jar:src/ 
org.jibx.binding.BindingGenerator -f resources/binding.xml -m 
samples.quickstart.dto.Person


Then, the wsdl:
java2wsdl.sh -o resources/ -cp build -cn
samples.quickstart.service.jibx.TestService

And now, I want to create the message receiver and the
skeleton interface. But when if I just execute:
wsdl2java.sh -uri TestService.wsdl  -o build -d jibx
-Ebindingfile resources/binding.xml -uw -sd -ss --ssi
I've got an error:

Caused by: java.lang.RuntimeException: Cannot unwrap element
{http://jibx.service.quickstart.samples/xsd}getPersonResponse:
no abstract mapping definition found for type
{http://dto.quickstart.samples/xsd}Person (used by element
{http://jibx.service.quickstart.samples/xsd}return)
at

org.apache.axis2.jibx.CodeGenerationUtility.unwrapMessage(CodeGenerationUtility.java:576)


To generate the classes I need first to modify the binding and
the wsdl. What is wrong with the commands ?


My other question is :
How can I pass the binding file to the codegen task ?


Découvrez une nouvelle façon d'obtenir des réponses à toutes
vos questions ! Profitez des connaissances, des opinions et
des expériences des internautes sur Yahoo! Questions/Réponses
.


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



Découvrez une nouvelle façon d'obtenir des réponses à toutes vos 
questions ! Profitez des connaissances, des opinions et des 
expériences des internautes sur Yahoo! Questions/Réponses 
. 


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



Re: [Axis2] Client call using JiBX and rampart

2007-01-15 Thread Dennis Sosnoski

Hi Alex,

It looks to me like you've run into an error in the Axiom code, though 
it's possible the cause is due to misuse of Axiom (either by the JiBX 
linkage code, or by Rampart). I suggest you add a Jira report on this 
against Rampart as the best starting point, with example code.


I haven't tested using Rampart yet, so I can't verify that it works with 
JiBX binding. In theory it should - but both the JiBX binding code and 
the Rampart code rely on Axiom, and some parts of the Axiom interface 
are not clearly defined, so there's considerable problem potential.


 - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Alexander Grivnin wrote:

Hi,

 The usage of JiBX binding for issuing client calls works fine. But when we try 
adding WS-SECURITY to the picture axis throws the following exception.

 Any ideas?

 Thanks,

 Alex

 


[junit] Caused by: org.apache.axis2.AxisFault: WSDoAllReceiver: Error in 
converting to Document;

 nested exception is:

[junit] org.apache.ws.security.WSSecurityException: Error in converting 
SOAP Envelope to Doc

ument; nested exception is:

[junit] org.apache.axiom.om.OMException: 
javax.xml.stream.XMLStreamException

[junit] at 
org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:249)

[junit] at 
org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:86)

[junit] ... 23 more

[junit] Caused by: org.apache.ws.security.WSSecurityException: Error in 
converting SOAP Envelope

 to Document; nested exception is:

[junit] org.apache.axiom.om.OMException: 
javax.xml.stream.XMLStreamException

[junit] at 
org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:121)

 


[junit] at 
org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:247)

[junit] ... 24 more

[junit] Caused by: org.apache.axiom.om.OMException: 
javax.xml.stream.XMLStreamException

[junit] at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:199)

[junit] at 
org.apache.axiom.om.impl.dom.NodeImpl.build(NodeImpl.java:469)

[junit] at 
org.apache.axiom.om.impl.dom.DocumentImpl.build(DocumentImpl.java:476)

[junit] at 
org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:107)

 


[junit] ... 25 more

[junit] Caused by: javax.xml.stream.XMLStreamException

[junit] at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.updateLastNode(OMStAXWrapper.java:952

)

[junit] at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:913)

[junit] at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:116)

[junit] ... 28 more

 


[junit] Test com.mercury.itg.ws.dm.SampleDemandServiceJibxTest FAILED

  



-
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] JiBX with Faults

2007-01-15 Thread Dennis Sosnoski

Hi Alex,

I created a Fault example at 
http://www.sosnoski.com/jibx-wiki/space/axis2-jibx This has a fairly 
detailed analysis of how the Fault handling works, so hopefully it'll 
help you out. Faults are handled for both wrapped and unwrapped cases, 
but the Faults themselves are essentially always wrapped due to the 
Axis2 handling.


 - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Alexander Grivnin wrote:

Dennis,

 Yes the NPE went away and now I'm getting a different exception.

 Can it be that faults supported only for wrapped generation style?

Thanks,
Alex 


Exception:
---
[java] org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: No mapping defined for element {
http://mercury.com/ppm/common/1.0}PPMFault
 [java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:224)
 [java] at
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
 [java] at org.apache.axis2.wsdl.WSDL2Java.main
(WSDL2Java.java:21)
 [java] Caused by: java.lang.RuntimeException: No mapping defined
for element { http://mercury.com/ppm/common/1.0}PPMFault
 [java] at
org.apache.axis2.jibx.CodeGenerationUtility.mapQName(CodeGenerationUtili
ty.java:928)
 [java] at
org.apache.axis2.jibx.CodeGenerationUtility.mapMessage(CodeGenerationUti
lity.java:914)
 [java] at org.apache.axis2.jibx.CodeGenerationUtility.engage
(CodeGenerationUtility.java:396)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a :39)
 [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:324)
 [java] at
org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage
(JiBXExtension.java:74)
 [java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:177)
 [java] ... 2 more
 [java] Exception in thread "main"
 [java] Java Result: 1


---



-Original Message-
From: Dennis Sosnoski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 10, 2007 6:10 PM

To: axis-user@ws.apache.org
Subject: Re: [Axis2] JiBX with Faults

You should probably update to the new Axis 1.1.1 release - I haven't
seen this exception before, but I know there was an Axiom change for
1.1.1 that was related to NPEs with namespaces.

  - Dennis

Alexander Grivnin wrote:
  

Thanks Dennis,

 After I removed the abstract keyword from the mapping it started to
throw NPE. And it seems to be from namespace resolution. I'm posting


the
  

stack here.

Thanks very much for your help,
Alex

---
[java] java.lang.NullPointerException
[java] at



org.jibx.runtime.impl.StAXReaderWrapper.getNamespace(StAXReaderWrapper.j
  

ava:455)
[java] at



org.jibx.runtime.impl.UnmarshallingContext.getNamespaceUri(Unmarshalling
  

Context.java :3125
[java] at org.jibx.runtime.QName.deserialize(QName.java:234)
[java] at



org.jibx.binding.model.MappingElement.setQualifiedTypeName(MappingElemen
  

t.java:261)
[java] at
org.jibx.binding.model.MappingElement.JiBX_binding_unmarshalAttr_5_0
(MappingElement.java)
[java] at
org.jibx.binding.model.JiBX_bindingMappingElement_access.unmarshal()
[java] at



org.jibx.binding.model.BindingElement.JiBX_binding_unmarshal_3_0(Binding
  

Element.java)
[java] at
org.jibx.binding.model.JiBX_bindingBindingElement_access.unmarshal()
[java] at



org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(Unmarshallin
  

gContext.java:253
[java] at org.jibx.binding.model.BindingElement.readBinding
(BindingElement.java:609)
[java] at



org.jibx.binding.model.IncludeElement.prevalidate(IncludeElement.java:15
  

1)
[java] at



org.apache.axis2.jibx.CodeGenerationUtility$IncludePrevalidationVisitor.
  

visit(CodeGenerat
[java] at
org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:163)
[java] at
org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:232)
[java] at org.jibx.binding.model.TreeContext.tourTree
(TreeContext.java:122)
[java] at



org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility
  

.java:244)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
[java] at



sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
  

Impl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:324)
[java] at



org.apache.axis2.wsdl.codegen.extension.JiBXEx

Re: Axis2 client JAR requirements

2007-01-15 Thread ChadDavis

Danny,

The axis2 distribution, probably something similar in axis1, has a
script in the bin directory that sets an [EMAIL PROTECTED] variable
that includes all the jars from the lib directory automatically.  I
realize this doesn't answer your question about how many of the jars
from the lib are necessary, but . . . this script is convenient at any
rate.  Its called axis2 and you can use it similarly to 'java'; e.g.

   axis2.sh org.foo.bar.MyClient

Note, it sources a setenv.sh script to set up the classpath, and i
think it needs a environement varialbe for AXIS2_HOME set.

Chad

On 1/15/07, Danny Lin <[EMAIL PROTECTED]> wrote:



Right now I am getting NoClassDefFoundError (see below), when my code is
creating a stub. Any help is greatly appreciated.



InmateMatchServiceStub stub = new InmateMatchServiceStub(myURL);

java.lang.NoClassDefFoundError: org/apache/axis2/client/Stub
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
 at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
 at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
 at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
 at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
 at
us.sc.state.doc.intake.IntakeInmateMatchAction.searchSCDC(IntakeInmateMatchAction.java:108)


 
 From: Danny Lin [mailto:[EMAIL PROTECTED]
Sent: Monday, January 15, 2007 4:12 PM
To: axis-user@ws.apache.org; axis-dev@ws.apache.org
Subject: Axis2 client JAR requirements



I have a webservice written using XMLBeans databinding. The client is also
using XMLBeans. So far, I've got the web service running and the client (a
Java class with main() method) is able to talk to the service without
problems.

In practice, I need to have a client from another webapp. I want to do
something similar to my client.java in the test. The Axis2 is installed as a
webapp. What's the recommendation for sharing the JAR libraries? Should I
copy all Axis2 JAR to Tomcat shared/lib directory? Or, should I hand pick
the required JARs and pack them within my WAR file? Is there a list of the
required JAR files when using XMLBeans databinding?

Thanks.

Danny



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



RE: Axis2 client JAR requirements

2007-01-15 Thread Danny Lin
Right now I am getting NoClassDefFoundError (see below), when my code is
creating a stub. Any help is greatly appreciated.
 
InmateMatchServiceStub stub = new InmateMatchServiceStub(myURL);

 
java.lang.NoClassDefFoundError: org/apache/axis2/client/Stub
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
 at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
 at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCla
ssLoader.java:1634)
 at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader
.java:860)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1307)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1189)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
 at
us.sc.state.doc.intake.IntakeInmateMatchAction.searchSCDC(IntakeInmateMa
tchAction.java:108)




From: Danny Lin [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 15, 2007 4:12 PM
To: axis-user@ws.apache.org; axis-dev@ws.apache.org
Subject: Axis2 client JAR requirements


I have a webservice written using XMLBeans databinding. The client is
also using XMLBeans. So far, I've got the web service running and the
client (a Java class with main() method) is able to talk to the service
without problems.
 
In practice, I need to have a client from another webapp. I want to do
something similar to my client.java in the test. The Axis2 is installed
as a webapp. What's the recommendation for sharing the JAR libraries?
Should I copy all Axis2 JAR to Tomcat shared/lib directory? Or, should I
hand pick the required JARs and pack them within my WAR file? Is there a
list of the required JAR files when using XMLBeans databinding?
 
Thanks.
 
Danny
 


Axis2 client JAR requirements

2007-01-15 Thread Danny Lin
I have a webservice written using XMLBeans databinding. The client is
also using XMLBeans. So far, I've got the web service running and the
client (a Java class with main() method) is able to talk to the service
without problems.
 
In practice, I need to have a client from another webapp. I want to do
something similar to my client.java in the test. The Axis2 is installed
as a webapp. What's the recommendation for sharing the JAR libraries?
Should I copy all Axis2 JAR to Tomcat shared/lib directory? Or, should I
hand pick the required JARs and pack them within my WAR file? Is there a
list of the required JAR files when using XMLBeans databinding?
 
Thanks.
 
Danny
 


WS-Security in Axis2

2007-01-15 Thread Ted Jones
Is there any way to use Rampart in Axis2 with a non-Axis2 client, or is
that a pre-requisite? Has anyone used any other WS-Security providers
with Axis2.
 
Thanks,
Ted Jones


Axis 1.3 & .NET attachment issue

2007-01-15 Thread Mohanbabu Narayanasamy
Hi,
 
I'm integrating axis 1.3 client to send JPEG files as DIME attachment
to a .NET webservice. I'm able to successfully set the attachment, set
the content-id, etc and send it to the .NET webservice.
 
But the .NET service is unable to read the JPEG attachment because the
content-id (GUID in .NET world) is of different format. That's what I
think is the problem. 
 
When I trace the SOAP messages in TcpMon, I see that the GUID for the
attachment is set as "F663CD71E7527568801FD45B3D2CF59D". 
But the .NET guys tell me that it has to be set in this format
"----" - example:
"f663cd71-e752-7568-801f-d45b3d2cf59d" 
(Ignore the case - it's case insensitive). 
 
is this correct? If so, how can I intercept the SOAP call and set the
content id with dashes?
 
Please correct me If I'm wrong. 
 
thanks in advance,
Babu
 
 


empty element responses

2007-01-15 Thread ChadDavis

I'm using an authenticate service that doesn't return anything.
However, axis2 ( ADB with wsdl2java ) provides an empty response
object.  Do I need to inspect this emtpy response object for anything?
What is the purpose of having an empty response?

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



RE: Issue using client to deploy axis 1.4

2007-01-15 Thread Alick Buckley
 
You need to have JavaMail ( mail.jar ) and JAF ( activation.jar ) files in
your classpath
 

-Original Message-
From: DSL [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 16 January 2007 4:10 AM
To: axis-user@ws.apache.org
Subject: Issue using client to deploy axis 1.4


Hello All,

I have deployed using jboss 4.0.4 and I deploy my new axis based webservice.
Then I ran the client to deploy and I get the following error:

Jan 15, 2007 10:22:04 AM org.apache.axis.utils.JavaUtils
isAttachmentSupported 
WARNING: Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
Processing file deploy.wsdd
Exception: AxisFault
faultCode: {  
http://xml.apache.org/axis/}HTTP
faultSubcode: 
faultString: (400)HTTP method POST is not supported by this URL
faultActor: 
faultNode: 
faultDetail: 
{}:return code: 400

Anyone have any idea what the problem is? 





Re: [AXIS2] http1.1/100

2007-01-15 Thread Thilina Gunarathne

No.. It's not an error.. It means that the server is listening.
Everything is fine if you get a http/OK after this which will then be
followed by the expected response from the server.

IIS tend to send this as soon as it opens a connection, just like
greeting somebody who is going to enter your house ;-)..

~Thilina

On 1/16/07, ChadDavis <[EMAIL PROTECTED]> wrote:

I get the following INFO message when execturing my client.  Client is
ADB, wsdl2java generated.


Jan 15, 2007 12:45:50 PM org.apache.commons.httpclient.HttpMethodBase
readResponse
INFO: Discarding unexpected response: HTTP/1.1 100 Continue

Is this an error?  What does it indicate?

Thanks for your help.

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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



[AXIS2] http1.1/100

2007-01-15 Thread ChadDavis

I get the following INFO message when execturing my client.  Client is
ADB, wsdl2java generated.


Jan 15, 2007 12:45:50 PM org.apache.commons.httpclient.HttpMethodBase
readResponse
INFO: Discarding unexpected response: HTTP/1.1 100 Continue

Is this an error?  What does it indicate?

Thanks for your help.

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



Help with axis/tomcat

2007-01-15 Thread Luis Rivera


  Hi axis community,

I would like to know how could I jump start my web service in tomcat before 
any call from the client is made. My first version only needed to be 
stateless and that worked fine, since I noticed that each call from the 
client creates a new object in the server. However, now I would like to 
create some threads because I have a custom administration module 
(session/security/database).


I can create them when the first call is made (using statics), but I would 
like to get rid of the overhead in the first call by somehow jump starting 
the application to do the loading and initialization that the application 
threads need to do, so that the when the first call is made, there is no 
overhead to pay.


I am not sure. Is this possible? I am probably not understanding fully the 
servlet model or how axis is supposed to be stateful at the server side.


I guess, if there is a smarter way to do this without using threads/statics 
I would like to know where I could find an example.


  Thanks in advance,
  --Luis R.

_
Dave vs. Carl: The Insignificant Championship Series.  Who will win? 
http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://davevscarl.spaces.live.com/?icid=T001MSN38C07001



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



Re: Attachment problem

2007-01-15 Thread Thilina Gunarathne

AFAIK Axis2 still does not support the deployment of POJO based
services with dataHandler parameters..
Please try putting a byte[] instead of the data handler.



Is there any other way to send attachments (using an
RPCServiceClientjust as the one above)

There are other ways such as using Axiom & databinding. Once again I'm
not sure whether the RPCServiceClient supports it..

You can log couple of improvement JIRA's for the pojo & rpcClient
support for DataHandlers.

Thanks,
Thilina





Thanks,

Anant



--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



AXIS2 FEATURES

2007-01-15 Thread Evaristo José Camarero

Hi:

I am in the phase to evaluate a WS-framework for a
project, and I need support for at least WS-Security
and WS-Addressing specifications. Is there any
detailed information regarding Axis2 compliance with
that specs?

Another important feature is the data-binding. We are
used to work with JAXBRI and we are confortable with
that technology. I have seen that Axis2 implements an
experimental binding for JAXBRI. Do you know what is
th status of that implementation, and if there is any
plan to include it like a stable implementation?

Thanks in advance,

Evaristo





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

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



org.xml.sax.SAXException: Bad envelope tag

2007-01-15 Thread Shivram Rajamanickam

Hi everyone,

This is my first post on this forum as I am a real novice to Axis. I am 
working on an existing Java application which uses Axis to connect 
externally. When I tried to call a service by using the targeted path 
http://bagel.intrallect.com:8080/intralibrary/IntraLibrary-SRU, I get 
this exception.


Caused by: org.jafer.transport.ConnectionException: 
java.rmi.RemoteException: Axis Fault performing SRW search; nested 
exception is:

   org.xml.sax.SAXException: Bad envelope tag:  explainResponse
   at org.jafer.zclient.SRWSession.search(SRWSession.java:238)
   at org.jafer.zclient.AbstractClient.search(AbstractClient.java:440)
   ... 24 more
Caused by: java.rmi.RemoteException: Axis Fault performing SRW search; 
nested exception is:

   org.xml.sax.SAXException: Bad envelope tag:  explainResponse
   at 
org.jafer.zclient.SRWBinding.searchRetrieveOperation(SRWBinding.java:65)

   at org.jafer.zclient.SRWSession.search(SRWSession.java:208)
   ... 25 more
Caused by: org.xml.sax.SAXException: Bad envelope tag:  explainResponse
   at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
   at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
   at 
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) 


   at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
   at org.apache.axis.client.Call.invoke(Call.java:2767)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at 
gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingStub.searchRetrieveOperation(SRWSoapBindingStub.java:390) 

   at 
org.jafer.zclient.SRWBinding.searchRetrieveOperation(SRWBinding.java:55)

   ... 26 more
Caused by: org.xml.sax.SAXException: Bad envelope tag:  explainResponse
   at 
org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:71) 

   at 
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 

   at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
   at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)

   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)

   at javax.xml.parsers.SAXParser.parse(Unknown Source)
   at 
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) 


   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
   ... 36 more

I am just now a learner and do not have any idea what this exception 
means. I googled with the above exception details and still confused.


Could anyone please suggest where to look at and what I need to do to 
resolve this?


Thanks,
Shiv.

--
Shivram Rajamanickam, LTG Software Developer
Oxford University Computing Services
13, Banbury Road, Oxford OX2 6NN.
Tel: (01865) 283674 web: http://www.oucs.ox.ac.uk


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



Issue using client to deploy axis 1.4

2007-01-15 Thread DSL

Hello All,

I have deployed using jboss 4.0.4 and I deploy my new axis based webservice.
Then I ran the client to deploy and I get the following error:

Jan 15, 2007 10:22:04 AM org.apache.axis.utils.JavaUtilsisAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
Processing file deploy.wsdd
Exception: AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (400)HTTP method POST is not supported by this URL
faultActor:
faultNode:
faultDetail:
{}:return code: 400

Anyone have any idea what the problem is?


org.xml.sax.SAXException: Bad envelope tag

2007-01-15 Thread Shiv

Hi everyone,

This is my first post on this forum as I am a real novice to Axis. I am
working on an existing Java application which uses Axis to connect
externally. When I tried to call service by using this targeted path
http://bagel.intrallect.com:8080/intralibrary/IntraLibrary-SRU, I get this
exception.

Caused by: org.jafer.transport.ConnectionException:
java.rmi.RemoteException: Axis Fault performing SRW search; nested exception
is: 
org.xml.sax.SAXException: Bad envelope tag:  explainResponse
at org.jafer.zclient.SRWSession.search(SRWSession.java:238)
at org.jafer.zclient.AbstractClient.search(AbstractClient.java:440)
... 24 more
Caused by: java.rmi.RemoteException: Axis Fault performing SRW search;
nested exception is: 
org.xml.sax.SAXException: Bad envelope tag:  explainResponse
at 
org.jafer.zclient.SRWBinding.searchRetrieveOperation(SRWBinding.java:65)
at org.jafer.zclient.SRWSession.search(SRWSession.java:208)
... 25 more
Caused by: org.xml.sax.SAXException: Bad envelope tag:  explainResponse
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at
gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingStub.searchRetrieveOperation(SRWSoapBindingStub.java:390)
at 
org.jafer.zclient.SRWBinding.searchRetrieveOperation(SRWBinding.java:55)
... 26 more
Caused by: org.xml.sax.SAXException: Bad envelope tag:  explainResponse
at
org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:71)
at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
... 36 more

I am just now a learner and am not sure what this exception means. 

Could anyone please suggest where to look at and what I need to do to
resolve this?

Thanks,
Shiv.
-- 
View this message in context: 
http://www.nabble.com/org.xml.sax.SAXException%3A-Bad-envelope-tag-tf3015759.html#a8374841
Sent from the Axis - User mailing list archive at Nabble.com.


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



Fail web app deployment if web services fail to deploy... Production Monitoring

2007-01-15 Thread John Pfeifer

Is there a way to fail the axis2 web application deployment if any of the 
services in WEB-INF/services fail to startup properly?  This would be great for 
monitoring the production environment, such that we can determine that if the 
web app isn't deployed then something was wrong with one of the services.  Does 
anyone else have any suggestions that would accomplish the same thing?

Thanks,

jp4


RE: unexpected xmlns:tns in soap response xml.

2007-01-15 Thread Giuseppe Sarno
Hi,
just got this:
 
>From the RawInOutReceiver:
 
At some point it adds the tns namespace to result: 
 
if (result != null) {

AxisService service = msgContext.getAxisService();

result.declareNamespace(service.getTargetNamespace(),

service.getTargetNamespacePrefix());

envelope.getBody().addChild(result);

}

Why is that ? Why tns is mand in the response ?
 
Full funtion code:
public void invokeBusinessLogic(MessageContext msgContext,
MessageContext newmsgContext)

throws AxisFault {

try {

// get the implementation class for the Web Service

Object obj = getTheImplementationObject(msgContext);

// find the WebService method

Class implClass = obj.getClass();

AxisOperation opDesc = msgContext.getAxisOperation();

Method method = findOperation(opDesc, implClass);

if (method != null) {

OMElement result = (OMElement) method.invoke(

obj, new
Object[]{msgContext.getEnvelope().getBody().getFirstElement()});

SOAPFactory fac = getSOAPFactory(msgContext);

SOAPEnvelope envelope = fac.getDefaultEnvelope();

if (result != null) {

AxisService service = msgContext.getAxisService();

result.declareNamespace(service.getTargetNamespace(),

service.getTargetNamespacePrefix());

envelope.getBody().addChild(result);

}

newmsgContext.setEnvelope(envelope);




From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Sent: 15 January 2007 16:04
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.


Giuseppe, 

I'm sorry. You can specify the namespace only when you create the SOAP
elements "by hand".

Michele

On 15 Jan 2007, at 15:36, Giuseppe Sarno wrote:


Hi,
I don't understand I looked at the api and the only way to
create an OMFactory is to call

OMFactory fac = OMAbstractFactory.getOMFactory();
there is no option for namespace.
 
Also I printed the XML just before returning and the XML haven't
changed. 
It really looks like it's something whithin AXIS:
 
SERVER SIDE CODE:
 
 
OMElement res = XMLStringToOMElement(reply);
System.out.println(OMElementToString(res));  -->
this doesn't show any xmlns:tns  
return res;
 
Functions used below:
 
 
 public String OMElementToString(OMElement elm) throws
XMLStreamException, Facto
ryConfigurationError
{
 
StringWriter sw= new StringWriter();
XMLStreamWriter writer =
XMLOutputFactory.newInstance().createXMLStreamW
riter(
 sw);
 elm.serialize(writer);
 writer.flush();
 return sw.toString();
 
}
public OMElement XMLStringToOMElement(String xml) throws
XMLStreamException,
 FactoryConfigurationError
{
StringReader sr = new StringReader(xml);

XMLStreamReader parser =
XMLInputFactory.newInstance().createXMLStreamRe
ader(sr); 
StAXOMBuilder builder =
new StAXOMBuilder(OMAbstractFactory.getOMFactory(),
parser); 
OMElement documentElement =
builder.getDocumentElement();

return documentElement;
}

---
 
CLIENT SIDE CODE:
 
OMElement res = sender.sendReceive(msg);
System.out.println("done");
   
String response = OMElementToString(res);
System.out.println("response:"+res);--->
This contains the xmlns:tns


 
 
regards.
  




From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Sent: 15 January 2007 15:09
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.


Giuseppe, 

try to provide a "full" configured OMFactory object (i.e. with
the namespace - null is a legal value).


Michele

On 15 Jan 2007, at 15:01, Giuseppe Sarno wrote:


Thanks,
 
Hi, thanks for your reply,
This is how I convert the XML from a String to an
OMElement.
Do you see anything wrong with it ?
 
public OMElement XMLStringToOMElement(String xml) throws
XMLStreamException, F
actoryConfigurationError
{
StringReader sr = new StringReader(xml);

XMLStreamReader parser =
XMLInputFactory.newInstance().createXMLStreamRe
ader(sr); 
StAXOMBuilder builder =
 

Re: unexpected xmlns:tns in soap response xml.

2007-01-15 Thread Michele Mazzucco

Giuseppe,

I'm sorry. You can specify the namespace only when you create the  
SOAP elements "by hand".


Michele

On 15 Jan 2007, at 15:36, Giuseppe Sarno wrote:


Hi,
I don't understand I looked at the api and the only way to create  
an OMFactory is to call

OMFactory fac = OMAbstractFactory.getOMFactory();
there is no option for namespace.

Also I printed the XML just before returning and the XML haven't  
changed.

It really looks like it's something whithin AXIS:

SERVER SIDE CODE:


OMElement res = XMLStringToOMElement(reply);
System.out.println(OMElementToString(res));  --> this  
doesn't show any xmlns:tns

return res;

Functions used below:


 public String OMElementToString(OMElement elm) throws  
XMLStreamException, Facto

ryConfigurationError
{

StringWriter sw= new StringWriter();
XMLStreamWriter writer = XMLOutputFactory.newInstance 
().createXMLStreamW

riter(
 sw);
 elm.serialize(writer);
 writer.flush();
 return sw.toString();

}
public OMElement XMLStringToOMElement(String xml) throws  
XMLStreamException,

 FactoryConfigurationError
{
StringReader sr = new StringReader(xml);

XMLStreamReader parser = XMLInputFactory.newInstance 
().createXMLStreamRe

ader(sr);
StAXOMBuilder builder =
new StAXOMBuilder(OMAbstractFactory.getOMFactory(),  
parser);

OMElement documentElement = builder.getDocumentElement();

return documentElement;
}

---

CLIENT SIDE CODE:

OMElement res = sender.sendReceive(msg);
System.out.println("done");

String response = OMElementToString(res);
System.out.println("response:"+res);--->  
This contains the xmlns:tns



regards.


From: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Sent: 15 January 2007 15:09
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.

Giuseppe,

try to provide a "full" configured OMFactory object (i.e. with the  
namespace - null is a legal value).



Michele

On 15 Jan 2007, at 15:01, Giuseppe Sarno wrote:


Thanks,

Hi, thanks for your reply,
This is how I convert the XML from a String to an OMElement.
Do you see anything wrong with it ?

public OMElement XMLStringToOMElement(String xml) throws  
XMLStreamException, F

actoryConfigurationError
{
StringReader sr = new StringReader(xml);

XMLStreamReader parser = XMLInputFactory.newInstance 
().createXMLStreamRe

ader(sr);
StAXOMBuilder builder =
new StAXOMBuilder(OMAbstractFactory.getOMFactory(),  
parser);

OMElement documentElement = builder.getDocumentElement();

return documentElement;
}
Regards.

From: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Sent: 15 January 2007 14:57
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.

Giuseppe,

if I'm right the xmlns:tns element value comes from the factory  
object used to create the SOAP elements, while you get those  
numbers before and after the SOAP message because you have the  
chunked option enabled in axis2.xml (please check the transport  
out section).



Hope this helps,
Michele


On 15 Jan 2007, at 13:54, Giuseppe Sarno wrote:


Hi I used Tcpmon:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build:  
CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5

Set-Cookie: JSESSIONID=562AF18DB095A4637FCB5E666BAD1FD6; Path=/
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 15 Jan 2007 13:49:00 GMT



144

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
">blahsoapenv:Body>


0

(I also get those numbers 144 at the beginning of the SOAP  
message and 0 at the end, what are those ?)



XML I want to be sent back :

blah

Many thanks.



From: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Sent: 15 January 2007 13:32
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.

Hi Giuseppe,

try to post the full SOAP message please.


Thanks,
Michele


On 15 Jan 2007, at 10:44, Giuseppe Sarno wrote:


Hi,
can anyone tell me at least if this could be a bug ? or intended  
behaviour ?


Thanks.

From: Sarno, Giuseppe (MOP:GM15)
Sent: 13 January 2007 23:58
To: axis-user@ws.apache.org
Subject: unexpected xmlns:tns in soap response xml.

Hi,
I'm using AXIOM and I have a basic client/server similar to the  
one in the sample dir (quickstartaxiom)


the main difference is that I exchange request and response XML  
reading then from a String (which I than convert in OMElement  
and vice versa).


I noticed that in the response (at the client side) along with  
the expected namespaces declaration, I get a xmlns:tns="http// 
." in the root element which I didn't put in  
my response XML at the Server side..


Does anyone know why ?
How can I get rid of it (as I do

[axis2] size of wsdl2java generated stub

2007-01-15 Thread ChadDavis

Hello.  I've generated an ADB client stub with the wsdl2java tool.
The wsdl file was about 3600 lines long, and the geneerated stuf is
about 88,800 lines long.  Wow.  Does this sound within the realm of
the expected?

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



RE: [Axis2] Performance times

2007-01-15 Thread Punnoose, Roshan
Sorry maybe I'm explaining it wrong :-) 

 

Basically, my server is sending back a large document when the client
initiates a request, and I want to see how long it takes for the
document to be sent from the server to the client. If I had access to
the client it would be simple enough to take the time that the server
starts sending the document and the time the client finishes receiving
it, not bad. But, since I don't have access to the client, on the
AxisEngine.send() I want to be able to time how long it takes to send
the document back from the server to the client but only do the time
measurements on the server itself. Are there hooks to do this in Axis2?

 

I thought that I could do this with handlers in the OutFlow phase, but I
can't find out how to create a "post-send" handler. Is that possible?

 

Did I just make this more confusing? :-)

 

Roshan Punnoose

Phone: 301-497-6039



From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 15, 2007 10:37 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Performance times

 

Seems possible???, I'm sorry Roshan, but I don't get it.

 

Michele

 

 

On 15 Jan 2007, at 15:27, Punnoose, Roshan wrote:





Right I understand where you are going with this. But on production we
have no control over our clients, let alone trying to get a time from
them when the stream is done; however, is there anyway to do this just
from the server? (Seems possible)

 

Roshan Punnoose

Phone: 301-497-6039



From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 15, 2007 10:12 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Performance times

 

Roshan,

 

if I well understand you have a client submitting a request and a server
sending a MTOM message as response. So, if you want to measure the time
you need to take a timestamp (T1) before the server sends the message
and take another one after the client has received it (T2, on the client
side).

 

 

Michele

 

On 15 Jan 2007, at 15:05, Punnoose, Roshan wrote:






In the Axis code, is it possible to have a post send handler? That way,
if I have a pre-send handler (which I can do), then I can save the time
there and then save the time in the post-send handler too. (I have seen
Post-Dispatch stages for the InFlow, but I'm not sure if that applies
for the OutFlow phase. Any ideas? (I don't have access to the client
side at all.)

 

Roshan Punnoose

Phone: 301-497-6039



From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 15, 2007 9:58 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Performance times

 

Roshan,

 

if the client and the server run on the same machine there are no
problems, otherwise - if you want a precise value - you have to
synchronize the clocks.

 

 

Michele

 

 

On 15 Jan 2007, at 14:15, Punnoose, Roshan wrote:







Is there anyway that I can time how long it takes to return a document
to the client? My server is returning an MTOM document and I want to
keep a log on how long it takes to send the document back to the client.

 

Roshan Punnoose

Phone: 301-497-6039

 



-

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]

 

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Axis2] Performance times

2007-01-15 Thread Michele Mazzucco

Seems possible???, I'm sorry Roshan, but I don't get it.

Michele


On 15 Jan 2007, at 15:27, Punnoose, Roshan wrote:

Right I understand where you are going with this. But on production  
we have no control over our clients, let alone trying to get a time  
from them when the stream is done; however, is there anyway to do  
this just from the server? (Seems possible)




Roshan Punnoose

Phone: 301-497-6039

From: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Sent: Monday, January 15, 2007 10:12 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Performance times



Roshan,



if I well understand you have a client submitting a request and a  
server sending a MTOM message as response. So, if you want to  
measure the time you need to take a timestamp (T1) before the  
server sends the message and take another one after the client has  
received it (T2, on the client side).






Michele



On 15 Jan 2007, at 15:05, Punnoose, Roshan wrote:




In the Axis code, is it possible to have a post send handler? That  
way, if I have a pre-send handler (which I can do), then I can save  
the time there and then save the time in the post-send handler too.  
(I have seen Post-Dispatch stages for the InFlow, but I’m not sure  
if that applies for the OutFlow phase. Any ideas? (I don’t have  
access to the client side at all.)




Roshan Punnoose

Phone: 301-497-6039

From: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Sent: Monday, January 15, 2007 9:58 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Performance times



Roshan,



if the client and the server run on the same machine there are no  
problems, otherwise - if you want a precise value - you have to  
synchronize the clocks.






Michele





On 15 Jan 2007, at 14:15, Punnoose, Roshan wrote:





Is there anyway that I can time how long it takes to return a  
document to the client? My server is returning an MTOM document and  
I want to keep a log on how long it takes to send the document back  
to the client.




Roshan Punnoose

Phone: 301-497-6039





-

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: unexpected xmlns:tns in soap response xml.

2007-01-15 Thread Giuseppe Sarno
Hi,
I don't understand I looked at the api and the only way to create an
OMFactory is to call
OMFactory fac = OMAbstractFactory.getOMFactory();
there is no option for namespace.
 
Also I printed the XML just before returning and the XML haven't
changed. 
It really looks like it's something whithin AXIS:
 
SERVER SIDE CODE:
 
 
OMElement res = XMLStringToOMElement(reply);
System.out.println(OMElementToString(res));  --> this
doesn't show any xmlns:tns  
return res;
 
Functions used below:
 
 
 public String OMElementToString(OMElement elm) throws
XMLStreamException, Facto
ryConfigurationError
{
 
StringWriter sw= new StringWriter();
XMLStreamWriter writer =
XMLOutputFactory.newInstance().createXMLStreamW
riter(
 sw);
 elm.serialize(writer);
 writer.flush();
 return sw.toString();
 
}
public OMElement XMLStringToOMElement(String xml) throws
XMLStreamException,
 FactoryConfigurationError
{
StringReader sr = new StringReader(xml);

XMLStreamReader parser =
XMLInputFactory.newInstance().createXMLStreamRe
ader(sr); 
StAXOMBuilder builder =
new StAXOMBuilder(OMAbstractFactory.getOMFactory(), parser);

OMElement documentElement = builder.getDocumentElement();

return documentElement;
}

---
 
CLIENT SIDE CODE:
 
OMElement res = sender.sendReceive(msg);
System.out.println("done");
   
String response = OMElementToString(res);
System.out.println("response:"+res);---> This
contains the xmlns:tns

 
 
regards.
  




From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Sent: 15 January 2007 15:09
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.


Giuseppe, 

try to provide a "full" configured OMFactory object (i.e. with the
namespace - null is a legal value).


Michele

On 15 Jan 2007, at 15:01, Giuseppe Sarno wrote:


Thanks,
 
Hi, thanks for your reply,
This is how I convert the XML from a String to an OMElement.
Do you see anything wrong with it ?
 
public OMElement XMLStringToOMElement(String xml) throws
XMLStreamException, F
actoryConfigurationError
{
StringReader sr = new StringReader(xml);

XMLStreamReader parser =
XMLInputFactory.newInstance().createXMLStreamRe
ader(sr); 
StAXOMBuilder builder =
new StAXOMBuilder(OMAbstractFactory.getOMFactory(),
parser); 
OMElement documentElement =
builder.getDocumentElement();

return documentElement;
}

Regards.




From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Sent: 15 January 2007 14:57
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.


Giuseppe, 

if I'm right the xmlns:tns element value comes from the factory
object used to create the SOAP elements, while you get those numbers
before and after the SOAP message because you have the chunked option
enabled in axis2.xml (please check the transport out section).


Hope this helps,
Michele


On 15 Jan 2007, at 13:54, Giuseppe Sarno wrote:


Hi I used Tcpmon:
 
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build:
CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5
Set-Cookie: JSESSIONID=562AF18DB095A4637FCB5E666BAD1FD6;
Path=/
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 15 Jan 2007 13:49:00 GMT
 
 
 
144
 
http://schemas.xmlsoap.org/soap/envelope/
 
">blah
 
0

 
(I also get those numbers 144 at the beginning of the
SOAP message and 0 at the end, what are those ?)
 
 
XML I want to be sent back :
 
blah

 
Many thanks.

 
 



From: Michele Mazzucco
[mailto:[EMAIL PROTECTED] 
Sent: 15 January 2007 13:32
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.



Re: [Axis2]Are there problems dealing with big responses?

2007-01-15 Thread Michele Mazzucco

Thomas,

could it be a timeout problem?

Michele


On 15 Jan 2007, at 15:16, Morgante Thomas wrote:

I’ve generated my stub with databinding set to none. When I get a  
response of Content-Length: 4360, I get the following exception:




org.apache.axiom.om.OMException: java.lang.RuntimeException: [was  
class java.io.IOException] Attempted read on closed stream.




From what I can understand from the debug log the building of the  
OMElements goes all right for what seems the first chunk of data  
but as soon as it starts with the second chunk it throws the  
exception.






Invoking the same stub method with a smaller response it works  
fine. So I think the problem is related to the size of the response.




Is there a maximum size of the xml that axiom can deal with?

Can anybody please help?

Best regards

Thomas




CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by
replying to [EMAIL PROTECTED]
Thank you
www.telecomitalia.it






RE: [Axis2] Performance times

2007-01-15 Thread Punnoose, Roshan
Right I understand where you are going with this. But on production we
have no control over our clients, let alone trying to get a time from
them when the stream is done; however, is there anyway to do this just
from the server? (Seems possible)

 

Roshan Punnoose

Phone: 301-497-6039



From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 15, 2007 10:12 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Performance times

 

Roshan,

 

if I well understand you have a client submitting a request and a server
sending a MTOM message as response. So, if you want to measure the time
you need to take a timestamp (T1) before the server sends the message
and take another one after the client has received it (T2, on the client
side).

 

 

Michele

 

On 15 Jan 2007, at 15:05, Punnoose, Roshan wrote:





In the Axis code, is it possible to have a post send handler? That way,
if I have a pre-send handler (which I can do), then I can save the time
there and then save the time in the post-send handler too. (I have seen
Post-Dispatch stages for the InFlow, but I'm not sure if that applies
for the OutFlow phase. Any ideas? (I don't have access to the client
side at all.)

 

Roshan Punnoose

Phone: 301-497-6039



From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 15, 2007 9:58 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Performance times

 

Roshan,

 

if the client and the server run on the same machine there are no
problems, otherwise - if you want a precise value - you have to
synchronize the clocks.

 

 

Michele

 

 

On 15 Jan 2007, at 14:15, Punnoose, Roshan wrote:






Is there anyway that I can time how long it takes to return a document
to the client? My server is returning an MTOM document and I want to
keep a log on how long it takes to send the document back to the client.

 

Roshan Punnoose

Phone: 301-497-6039

 



-

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]

 

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Why is ServiceClass in services.xml compulsary ?

2007-01-15 Thread Angel Todorov

Hello,

I am wondering why the ServicesClass property when describing a
service in services.xml is made mandatory ? Doesn't it depend on the
message receiver to decide how to pass the SOAP request, to where to,
and/or what to call next ? Why is it assumed that the message receiver
actually uses a specific class for the web service business logic and
not some universal factory which only it is aware of ? Thanks.

Regards,
Angel

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



[Axis2]Are there problems dealing with big responses?

2007-01-15 Thread Morgante Thomas
I've generated my stub with databinding set to none. When I get a
response of Content-Length: 4360, I get the following exception:

 

org.apache.axiom.om.OMException: java.lang.RuntimeException: [was class
java.io.IOException] Attempted read on closed stream.

 

>From what I can understand from the debug log the building of the
OMElements goes all right for what seems the first chunk of data but as
soon as it starts with the second chunk it throws the exception.

 

 

Invoking the same stub method with a smaller response it works fine. So
I think the problem is related to the size of the response.

 

Is there a maximum size of the xml that axiom can deal with?

Can anybody please help?

Best regards

Thomas

 



CONFIDENTIALITY NOTICE

This message and its attachments are addressed solely to the persons above and 
may contain confidential information. If you have received the message in 
error, be informed that any use of the content hereof is prohibited. Please 
return it immediately to the sender and delete the message. Should you have any 
questions, please contact us by replying to [EMAIL PROTECTED]

Thank you

www.telecomitalia.it





Re: [Axis2] Performance times

2007-01-15 Thread Michele Mazzucco

Roshan,

if I well understand you have a client submitting a request and a  
server sending a MTOM message as response. So, if you want to measure  
the time you need to take a timestamp (T1) before the server sends  
the message and take another one after the client has received it  
(T2, on the client side).



Michele

On 15 Jan 2007, at 15:05, Punnoose, Roshan wrote:

In the Axis code, is it possible to have a post send handler? That  
way, if I have a pre-send handler (which I can do), then I can save  
the time there and then save the time in the post-send handler too.  
(I have seen Post-Dispatch stages for the InFlow, but I’m not sure  
if that applies for the OutFlow phase. Any ideas? (I don’t have  
access to the client side at all.)




Roshan Punnoose

Phone: 301-497-6039

From: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Sent: Monday, January 15, 2007 9:58 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Performance times



Roshan,



if the client and the server run on the same machine there are no  
problems, otherwise - if you want a precise value - you have to  
synchronize the clocks.






Michele





On 15 Jan 2007, at 14:15, Punnoose, Roshan wrote:




Is there anyway that I can time how long it takes to return a  
document to the client? My server is returning an MTOM document and  
I want to keep a log on how long it takes to send the document back  
to the client.




Roshan Punnoose

Phone: 301-497-6039





-

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: unexpected xmlns:tns in soap response xml.

2007-01-15 Thread Michele Mazzucco

Giuseppe,

try to provide a "full" configured OMFactory object (i.e. with the  
namespace - null is a legal value).



Michele

On 15 Jan 2007, at 15:01, Giuseppe Sarno wrote:


Thanks,

Hi, thanks for your reply,
This is how I convert the XML from a String to an OMElement.
Do you see anything wrong with it ?

public OMElement XMLStringToOMElement(String xml) throws  
XMLStreamException, F

actoryConfigurationError
{
StringReader sr = new StringReader(xml);

XMLStreamReader parser = XMLInputFactory.newInstance 
().createXMLStreamRe

ader(sr);
StAXOMBuilder builder =
new StAXOMBuilder(OMAbstractFactory.getOMFactory(),  
parser);

OMElement documentElement = builder.getDocumentElement();

return documentElement;
}
Regards.

From: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Sent: 15 January 2007 14:57
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.

Giuseppe,

if I'm right the xmlns:tns element value comes from the factory  
object used to create the SOAP elements, while you get those  
numbers before and after the SOAP message because you have the  
chunked option enabled in axis2.xml (please check the transport out  
section).



Hope this helps,
Michele


On 15 Jan 2007, at 13:54, Giuseppe Sarno wrote:


Hi I used Tcpmon:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build:  
CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5

Set-Cookie: JSESSIONID=562AF18DB095A4637FCB5E666BAD1FD6; Path=/
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 15 Jan 2007 13:49:00 GMT



144

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
">blahsoapenv:Body>


0

(I also get those numbers 144 at the beginning of the SOAP message  
and 0 at the end, what are those ?)



XML I want to be sent back :

blah

Many thanks.



From: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Sent: 15 January 2007 13:32
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.

Hi Giuseppe,

try to post the full SOAP message please.


Thanks,
Michele


On 15 Jan 2007, at 10:44, Giuseppe Sarno wrote:


Hi,
can anyone tell me at least if this could be a bug ? or intended  
behaviour ?


Thanks.

From: Sarno, Giuseppe (MOP:GM15)
Sent: 13 January 2007 23:58
To: axis-user@ws.apache.org
Subject: unexpected xmlns:tns in soap response xml.

Hi,
I'm using AXIOM and I have a basic client/server similar to the  
one in the sample dir (quickstartaxiom)


the main difference is that I exchange request and response XML  
reading then from a String (which I than convert in OMElement and  
vice versa).


I noticed that in the response (at the client side) along with  
the expected namespaces declaration, I get a xmlns:tns="http// 
." in the root element which I didn't put in  
my response XML at the Server side..


Does anyone know why ?
How can I get rid of it (as I don't want my request/response to  
be changed by AXIS)?


regards.
Giuseppe.








RE: [Axis2] Performance times

2007-01-15 Thread Punnoose, Roshan
In the Axis code, is it possible to have a post send handler? That way,
if I have a pre-send handler (which I can do), then I can save the time
there and then save the time in the post-send handler too. (I have seen
Post-Dispatch stages for the InFlow, but I'm not sure if that applies
for the OutFlow phase. Any ideas? (I don't have access to the client
side at all.)

 

Roshan Punnoose

Phone: 301-497-6039



From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 15, 2007 9:58 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Performance times

 

Roshan,

 

if the client and the server run on the same machine there are no
problems, otherwise - if you want a precise value - you have to
synchronize the clocks.

 

 

Michele

 

 

On 15 Jan 2007, at 14:15, Punnoose, Roshan wrote:





Is there anyway that I can time how long it takes to return a document
to the client? My server is returning an MTOM document and I want to
keep a log on how long it takes to send the document back to the client.

 

Roshan Punnoose

Phone: 301-497-6039

 



-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: unexpected xmlns:tns in soap response xml.

2007-01-15 Thread Giuseppe Sarno
Thanks,
 
Hi, thanks for your reply,
This is how I convert the XML from a String to an OMElement.
Do you see anything wrong with it ?
 
public OMElement XMLStringToOMElement(String xml) throws
XMLStreamException, F
actoryConfigurationError
{
StringReader sr = new StringReader(xml);

XMLStreamReader parser =
XMLInputFactory.newInstance().createXMLStreamRe
ader(sr); 
StAXOMBuilder builder =
new StAXOMBuilder(OMAbstractFactory.getOMFactory(), parser);

OMElement documentElement = builder.getDocumentElement();

return documentElement;
}

Regards.



From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Sent: 15 January 2007 14:57
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.


Giuseppe, 

if I'm right the xmlns:tns element value comes from the factory object
used to create the SOAP elements, while you get those numbers before and
after the SOAP message because you have the chunked option enabled in
axis2.xml (please check the transport out section).


Hope this helps,
Michele


On 15 Jan 2007, at 13:54, Giuseppe Sarno wrote:


Hi I used Tcpmon:
 
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build:
CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5
Set-Cookie: JSESSIONID=562AF18DB095A4637FCB5E666BAD1FD6; Path=/
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 15 Jan 2007 13:49:00 GMT
 
 
 
144
 
http://schemas.xmlsoap.org/soap/envelope/
 
">blah
 
0

 
(I also get those numbers 144 at the beginning of the SOAP
message and 0 at the end, what are those ?)
 
 
XML I want to be sent back :
 
blah

 
Many thanks.

 
 



From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Sent: 15 January 2007 13:32
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.


Hi Giuseppe, 

try to post the full SOAP message please.


Thanks,
Michele


On 15 Jan 2007, at 10:44, Giuseppe Sarno wrote:


Hi,
can anyone tell me at least if this could be a bug ? or
intended behaviour ?
 
Thanks.



From: Sarno, Giuseppe (MOP:GM15) 
Sent: 13 January 2007 23:58
To: axis-user@ws.apache.org
Subject: unexpected xmlns:tns in soap response xml.


Hi,
I'm using AXIOM and I have a basic client/server similar
to the one in the sample dir (quickstartaxiom)
 
the main difference is that I exchange request and
response XML reading then from a String (which I than convert in
OMElement and vice versa).
 
I noticed that in the response (at the client side)
along with the expected namespaces declaration, I get a
xmlns:tns="http//." in the root element which I
didn't put in my response XML at the Server side..
 
Does anyone know why ? 
How can I get rid of it (as I don't want my
request/response to be changed by AXIS)?
 
regards.
Giuseppe.





Re: [Axis2] Performance times

2007-01-15 Thread Michele Mazzucco

Roshan,

if the client and the server run on the same machine there are no  
problems, otherwise - if you want a precise value - you have to  
synchronize the clocks.



Michele


On 15 Jan 2007, at 14:15, Punnoose, Roshan wrote:

Is there anyway that I can time how long it takes to return a  
document to the client? My server is returning an MTOM document and  
I want to keep a log on how long it takes to send the document back  
to the client.




Roshan Punnoose

Phone: 301-497-6039




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




Re: unexpected xmlns:tns in soap response xml.

2007-01-15 Thread Michele Mazzucco

Giuseppe,

if I'm right the xmlns:tns element value comes from the factory  
object used to create the SOAP elements, while you get those numbers  
before and after the SOAP message because you have the chunked option  
enabled in axis2.xml (please check the transport out section).



Hope this helps,
Michele


On 15 Jan 2007, at 13:54, Giuseppe Sarno wrote:


Hi I used Tcpmon:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build:  
CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5

Set-Cookie: JSESSIONID=562AF18DB095A4637FCB5E666BAD1FD6; Path=/
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 15 Jan 2007 13:49:00 GMT



144

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
">blahsoapenv:Body>


0

(I also get those numbers 144 at the beginning of the SOAP message  
and 0 at the end, what are those ?)



XML I want to be sent back :

blah

Many thanks.



From: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Sent: 15 January 2007 13:32
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.

Hi Giuseppe,

try to post the full SOAP message please.


Thanks,
Michele


On 15 Jan 2007, at 10:44, Giuseppe Sarno wrote:


Hi,
can anyone tell me at least if this could be a bug ? or intended  
behaviour ?


Thanks.

From: Sarno, Giuseppe (MOP:GM15)
Sent: 13 January 2007 23:58
To: axis-user@ws.apache.org
Subject: unexpected xmlns:tns in soap response xml.

Hi,
I'm using AXIOM and I have a basic client/server similar to the  
one in the sample dir (quickstartaxiom)


the main difference is that I exchange request and response XML  
reading then from a String (which I than convert in OMElement and  
vice versa).


I noticed that in the response (at the client side) along with the  
expected namespaces declaration, I get a xmlns:tns="http// 
." in the root element which I didn't put in  
my response XML at the Server side..


Does anyone know why ?
How can I get rid of it (as I don't want my request/response to be  
changed by AXIS)?


regards.
Giuseppe.






InstantiationException: javax.activation.DataHandler

2007-01-15 Thread anant khandekar

Hi all,

Is there any way to get a webservice like  *public void
upLoadService(DataHandler attachment)  *to work in axis2. I hav used similar
web services in axis 1.4  and found it very convenient.

In axis2 i can deploy web services like *public String sampleService(String
[] msg, String moreMsgs , int number) (or any comination of these). *

But whenever i try to deploy something like *public void
upLoadService(DataHandler attachment) *the service gets deployed, but throws
an instantiation exception .TThe stack trace is something like


*SEVERE: Exception occurred while trying to invoke service method echo*

*org.apache.axis2.AxisFault: javax.activation.DataHandler; nested exception
is:*

*java.lang.InstantiationException: javax.activation.DataHandler*

*at org.apache.axis2.engine.DefaultObjectSupplier.getObject(
DefaultObjectSupplier.java:28)*

*at org.apache.axis2.databinding.utils.BeanUtil.deserialize(
BeanUtil.java:261)*

*at org.apache.axis2.databinding.utils.BeanUtil.processObject(
BeanUtil.java:549)*

*at org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(
BeanUtil.java:499)*

*at org.apache.axis2.databinding.utils.BeanUtil.deserialize(
BeanUtil.java:442)*

*at org.apache.axis2.rpc.receivers.RPCUtil.processRequest(
RPCUtil.java:109)*

*at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(
RPCMessageReceiver.java:116)*

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

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

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

*at org.apache.axis2.transport.http.HTTPWorker.service(
HTTPWorker.java:230)*

*at
org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.doService
(DefaultHttpServiceProcessor.java:179*

*)*

*at org.apache.http.protocol.HttpService.handleRequest(
HttpService.java:123)*

*at
org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.run(
DefaultHttpServiceProcessor.java:251)*

*at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:665)*

*at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:690)*

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

*Caused by: java.lang.InstantiationException: javax.activation.DataHandler*

*at java.lang.Class.newInstance0(Class.java:335)*

*at java.lang.Class.newInstance(Class.java:303)*

*at org.apache.axis2.engine.DefaultObjectSupplier.getObject(
DefaultObjectSupplier.java:26)*

*... 16 more*

I am using an RPCServiceClient (as the web service's client).

Thanks in advance,

Anant


Fwd: Attachment problem

2007-01-15 Thread anant khandekar

Hi all,

i am trying to deploy a web service that accepts attachments. The method
exposed as web service is something like

*

public
**class* SubEcho {

*public* String echo(String [] msgs,String [] moreMsgs , DataHandler dh){

 System.
*out*.println("Message array 1's length : " +msgs.length);

*   for*( *int* i=0 ;ihttp://localhost:8080/axis2/services/EchoService);

*   *options.setTo(targetEPR);

**options.setProperty(Constants.Configuration.
*ENABLE_MTOM*, Constants.* VALUE_TRUE*);

**String a[] = {
"a","b", "c"};

*   *String b[] = {
"d","e", "f"};

**DataHandler attachment1 =
*new* DataHandler(*new* FileDataSource("TestClient.java"));

*   *QName *opEcho* =
*new* QName(" http://service.echo.my/xsd";, "echo");

*Object*[] *opEchoArgs* =
*new* Object[] { a,b,attachment1};

   OMElement response = serviceClient.invokeBlocking(opEcho,
opEchoArgs);

}

  *catch* (AxisFault axisFault) {

   axisFault.printStackTrace();

 System.*out*.println(axisFault.getFaultCode());

  }

}

Runnig the client produces this exception stack trace at the server



SEVERE: Exception occurred while trying to invoke service method echo

org.apache.axis2.AxisFault: javax.activation.DataHandler; nested exception
is:

   java.lang.InstantiationException: javax.activation.DataHandler

   at org.apache.axis2.engine.DefaultObjectSupplier.getObject(
DefaultObjectSupplier.java:28)

   at org.apache.axis2.databinding.utils.BeanUtil.deserialize(
BeanUtil.java:261)

   at org.apache.axis2.databinding.utils.BeanUtil.processObject(
BeanUtil.java:549)

   at org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(
BeanUtil.java:499)

   at org.apache.axis2.databinding.utils.BeanUtil.deserialize(
BeanUtil.java:442)

   at org.apache.axis2.rpc.receivers.RPCUtil.processRequest(
RPCUtil.java:109)

   at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(
RPCMessageReceiver.java:116)

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

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

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

   at org.apache.axis2.transport.http.HTTPWorker.service(
HTTPWorker.java:230)

   at
org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.doService
(DefaultHttpServiceProcessor.java:179

)

   at org.apache.http.protocol.HttpService.handleRequest(
HttpService.java:123)

   at
org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.run(
DefaultHttpServiceProcessor.java:251)

   at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:665)

   at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:690)

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

Caused by: java.lang.InstantiationException: javax.activation.DataHandler

   at java.lang.Class.newInstance0(Class.java:335)

   at java.lang.Class.newInstance(Class.java:303)

   at org.apache.axis2.engine.DefaultObjectSupplier.getObject(
DefaultObjectSupplier.java:26)

   ... 16 more



What can be the reason behind this

Is there any other way to send attachments (using an
RPCServiceClientjust as the one above)



Thanks,

Anant


[Axis2] Performance times

2007-01-15 Thread Punnoose, Roshan
Is there anyway that I can time how long it takes to return a document
to the client? My server is returning an MTOM document and I want to
keep a log on how long it takes to send the document back to the client.

 

Roshan Punnoose

Phone: 301-497-6039

 

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Axis2 Hot update problem and unload native dll problem

2007-01-15 Thread Yong Yang

Hi, It seems AXIS2 hot update does not work. I have enable hotupdate by 
chnaging the value of parameter, hotupdate, to true in the axis2.xml. I am also 
seeing that org.apache.axis2.deployment.DeploymentEngine first undeploy and 
then deploy the web service when I copy the updated .aar into services dirtory. 
But I still access the old version web service, not latest version web service. 
If I restart the web server or stop axis2 and restart axis2 using application 
server adminstartion console, I can access the lastest web service.

The environment fot the test experiments is as follows:
AXIS2 : 1.1.1
web server: Tomcat


If my web service will load native dll using Java API System.load or 
System.loadLibrary, the dll is still in memory when I undeploy the web service. 
If I redeploy the web service or update the web service, there is an error 
message that the dll has been loaded by another class loader. This results that 
the web service is crashed. To solve the problem, I have to restart JVM(restart 
web server). Is there any possible solution to unload the dll when the web 
service is undeployed without restarting web server.

many thanks in advance.


best regards
yong

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



RE: unexpected xmlns:tns in soap response xml.

2007-01-15 Thread Giuseppe Sarno
Hi I used Tcpmon:
 
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA
date=200605151000)/Tomcat-5.5
Set-Cookie: JSESSIONID=562AF18DB095A4637FCB5E666BAD1FD6; Path=/
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 15 Jan 2007 13:49:00 GMT
 
 
 
144
 
http://schemas.xmlsoap.org/soap/envelope/
 
">blah
 
0

 
(I also get those numbers 144 at the beginning of the SOAP message and 0
at the end, what are those ?)
 
 
XML I want to be sent back :
 
blah

 
Many thanks.
 
 



From: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Sent: 15 January 2007 13:32
To: axis-user@ws.apache.org
Subject: Re: unexpected xmlns:tns in soap response xml.


Hi Giuseppe, 

try to post the full SOAP message please.


Thanks,
Michele


On 15 Jan 2007, at 10:44, Giuseppe Sarno wrote:


Hi,
can anyone tell me at least if this could be a bug ? or intended
behaviour ?
 
Thanks.



From: Sarno, Giuseppe (MOP:GM15) 
Sent: 13 January 2007 23:58
To: axis-user@ws.apache.org
Subject: unexpected xmlns:tns in soap response xml.


Hi,
I'm using AXIOM and I have a basic client/server similar to the
one in the sample dir (quickstartaxiom)
 
the main difference is that I exchange request and response XML
reading then from a String (which I than convert in OMElement and vice
versa).
 
I noticed that in the response (at the client side) along with
the expected namespaces declaration, I get a
xmlns:tns="http//." in the root element which I
didn't put in my response XML at the Server side..
 
Does anyone know why ? 
How can I get rid of it (as I don't want my request/response to
be changed by AXIS)?
 
regards.
Giuseppe.




Re: Parsing Returned XML String

2007-01-15 Thread Garth Keesler




Thilina,

Thanx for the reply. Attached is the modified and cleaned-up original
code as well as the result of the Ant build/run. It still appears that
all of the returned XML is being treated as a single string and does
not break out correctly when parsed. I probably misread your
instructions so feel free to correct. Ignore the Java warning since it
is on an unrelated source file.

Thanx,
Garth

import org.apache.axiom.om.*;
import org.apache.axiom.om.OMAbstractFactory;

import org.apache.axiom.om.OMElement;

import org.apache.axiom.om.OMFactory;

import org.apache.axiom.om.OMNamespace;

import org.apache.axis2.addressing.EndpointReference;

import org.apache.axis2.client.Options;

import org.apache.axis2.client.ServiceClient;
import java.util.Iterator;
import javax.xml.stream.*;
import java.io.*;
 
public class Scenario1Client {

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

    ServiceClient client = new ServiceClient();

    // create option object

    Options opts = new Options();

    //setting target EPR

    opts.setTo(new
EndpointReference("http://appsrv:8080/axis2/services/wsVendor"));

    //Setting action ,and which can be found from the wsdl of the
service

    opts.setAction("urn:wsgetVendor");

    client.setOptions(opts);

    OMElement res = client.sendReceive(createPayLoad());
    Iterator children = res.getChildren();
    while (children.hasNext())
 {
 OMNode node = (OMNode) children.next();
    System.out.println(node.toString());
 }
 
    }

 
    public static OMElement createPayLoad() {

    OMFactory fac = OMAbstractFactory.getOMFactory();

    OMNamespace omNs = fac.createOMNamespace("http://ttna.com/xsd",
"ns1");

    OMElement method = fac.createOMElement("wsgetVendor", omNs);

    OMElement value = fac.createOMElement("value", omNs);

    value.setText("hsv");

    method.addChild(value);

    return method;

    }

 
}


[EMAIL PROTECTED]:~/dev/MyService$ ant
Buildfile: build.xml

clean:

init:

compile:
    [javac] Compiling 6 source files to
/home/garthk/dev/MyService/build/classes
    [javac] /home/garthk/dev/MyService/src/Scenario6Client.java:19:
warning: unmappable character for encoding UTF8
    [javac] //assigning message context�s option object into
instance variable
    [javac]    ^
    [javac] 1 warning

compress:
  [jar] Building jar:
/home/garthk/dev/MyService/build/bin/WSClient.jar

test1:
 [java] "http://ttna.com/xsd">"http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://tier1.ttna.com/xsd" xsi:nil="true" />"http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://tier1.ttna.com/xsd" xsi:nil="true" />"http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://tier1.ttna.com/xsd" xsi:nil="true" />"http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://tier1.ttna.com/xsd" xsi:nil="true" />"http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://tier1.ttna.com/xsd" xsi:nil="true" />"http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://tier1.ttna.com/xsd" xsi:nil="true" />"http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://tier1.ttna.com/xsd" xsi:nil="true" />"http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://tier1.ttna.com/xsd" xsi:nil="true" />"http://tier1.ttna.com/xsd">0"http://tier1.ttna.com/xsd">garthk"http://tier1.ttna.com/xsd">hsv
"http://tier1.ttna.com/xsd">Huntsville

main:
 [echo] 
 [echo] Building the project...
 [echo] 

BUILD SUCCESSFUL
Total time: 2 seconds




Thilina Gunarathne wrote:
Hi Garth,
  
You should be able to do this with Axiom itself...
  
   opts.setAction("urn:wsgetVendor");

 client.setOptions(opts);

 OMElement res = client.sendReceive(createPayLoad());

  
You can use the "res" OMElement to access it's children...
  
Try adding the following to here..
  
 Iterator children = res.getChildren();
  
    while (children.hasNext())
  
 {
  
 OMNode node = (OMNode) children.next();
  
    System.out.println(node.toString());
  
 }
  
  
   XMLStreamReader reader =
XMLInputFactory.newInstance()

 .createXMLStreamReader(

 new

ByteArrayInputStream(res.toString().getBytes()));

 StAXOMBuilder builder = new StAXOMBuilder(reader); // get the
root

  
No need to do the above, since you already have a Axiom in place with
  
the web service response
  
  
You can find some articles & tutorials about Axiom from here [1].
  
  
Thanks,
  
Thilina
  
[1] http://www.wso2.org/projects/axiom/java
  





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



Re: unexpected xmlns:tns in soap response xml.

2007-01-15 Thread Michele Mazzucco

Hi Giuseppe,

try to post the full SOAP message please.


Thanks,
Michele


On 15 Jan 2007, at 10:44, Giuseppe Sarno wrote:


Hi,
can anyone tell me at least if this could be a bug ? or intended  
behaviour ?


Thanks.

From: Sarno, Giuseppe (MOP:GM15)
Sent: 13 January 2007 23:58
To: axis-user@ws.apache.org
Subject: unexpected xmlns:tns in soap response xml.

Hi,
I'm using AXIOM and I have a basic client/server similar to the one  
in the sample dir (quickstartaxiom)


the main difference is that I exchange request and response XML  
reading then from a String (which I than convert in OMElement and  
vice versa).


I noticed that in the response (at the client side) along with the  
expected namespaces declaration, I get a xmlns:tns="http// 
." in the root element which I didn't put in my  
response XML at the Server side..


Does anyone know why ?
How can I get rid of it (as I don't want my request/response to be  
changed by AXIS)?


regards.
Giuseppe.




Re: Parsing Returned XML String

2007-01-15 Thread Thilina Gunarathne

Hi Garth,
You should be able to do this with Axiom itself...

 opts.setAction("urn:wsgetVendor");
 client.setOptions(opts);
 OMElement res = client.sendReceive(createPayLoad());

You can use the "res" OMElement to access it's children...
Try adding the following to here..
 Iterator children = res.getChildren();
while (children.hasNext())
 {
 OMNode node = (OMNode) children.next();
System.out.println(node.toString());
 }


 XMLStreamReader reader = XMLInputFactory.newInstance()
 .createXMLStreamReader(
 new
ByteArrayInputStream(res.toString().getBytes()));
 StAXOMBuilder builder = new StAXOMBuilder(reader); // get the root

No need to do the above, since you already have a Axiom in place with
the web service response

You can find some articles & tutorials about Axiom from here [1].

Thanks,
Thilina
[1] http://www.wso2.org/projects/axiom/java


 // element (in
this
 // case the
 OMElement documentElement = builder.getDocumentElement();
 OMDocument doc = builder.getDocument();
 //OMNode node = doc.getFirstOMChild();
 //OMNode sib = node.getNextOMSibling();
 //System.out.println("sib = " + sib.toString());
 //System.out.println("count = " + doc.getAttributeCount());
 // dump the out put to console with caching




 /*
  * try { DocumentBuilderFactory factory = DocumentBuilderFactory
  * .newInstance(); DocumentBuilder db =
factory.newDocumentBuilder();
  * InputSource inStream = new InputSource();
  * inStream.setCharacterStream(new StringReader(res.toString()));
  * Document doc1 = db.parse(inStream); System.out.println("
doc1.version = " +
  * doc1.getXmlVersion()); System.out.println(" doc1.baseuri = " +
  * doc1.getBaseURI()); System.out.println(" doc1.docuri = " +
  * doc1.getDocumentURI()); System.out.println(" doc1.inputencoding
= " +
  * doc1.getInputEncoding()); System.out.println(" doc1.localname =
" +
  * doc1.getLocalName()); System.out.println(" doc1.namespace = " +
  * doc1.getNamespaceURI()); System.out.println(" doc1.nodename = "
+
  * doc1.getNodeName()); System.out.println(" doc1.value = " +
  * doc1.getNodeValue()); System.out.println(" doc1.prefix = " +
  * doc1.getPrefix()); System.out.println(" doc1.textcontent = " +
  * doc1.getTextContent()); System.out.println(" doc1.xmlencoding =
" +
  * doc1.getXmlEncoding()); System.out.println(" doc1.type = " +
  * doc1.getNodeType()); Element ele =
doc1.getElementById("address1");
  * System.out.println(" ele = " + ele.toString()); } catch
(Exception e) {
  * System.out.println(e); }
  */
 }

 public static OMElement createPayLoad()
 {
 OMFactory fac = OMAbstractFactory.getOMFactory();
 OMNamespace omNs = fac.createOMNamespace("http://ttna.com/xsd";,
"ns1");
 OMElement method = fac.createOMElement("wsgetVendor", omNs);
 OMElement value = fac.createOMElement("value", omNs);
 value.setText("hsv");
 method.addChild(value);
 return method;
 }



 }

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



--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Re: MTOM question

2007-01-15 Thread Thilina Gunarathne

Hi Angel,
If possible please file a JIRA[1]  for this behaviour of SOAP Monitor..

Cheers,
~Thilina

[1] http://issues.apache.org/jira/browse/AXIS2

On 1/15/07, Angel Todorov <[EMAIL PROTECTED]> wrote:

Hi Thilina,

yes with tcpmon everything looks fine by looking at the HTTP requests
(binary data + xop include reference) , it's actually logical to have
the SOAP request constructed before SOAPMonitor is invoked.

Regards,
Angel

On 1/15/07, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:
> Hi Angel,
> Hope you have a OMText with optimised set to "true" in the above case.
> Are you using any databinding mechanisms..
>
> I'm not sure whether it is an issue with SOAPMonitor... Can you please
> try sniffing the message with tcpmon[1].
>
> Thanks,
> Thilina
>
> [1] http://ws.apache.org/commons/tcpmon/
>
> On 1/14/07, Angel Todorov <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I am doing a test of MTOM - sending a binary file and then saving it
> > somewhere on the server. I follow the MTOM guide for Axis2. I am using
> > the SOAP Monitor applet in order to investigate the SOAP requests and
> > responses, and in both cases where MTOM is enabled and disabled on the
> > client side, the SOAP request 's contents is the same, more
> > specifically :
> >
> > http://www.w3c.org/2005/05/xmlmime";
> > ns0:contentType="application/octet-stream"> (binary sting here )
> > 
> >
> > the contents of the binary string is also the same. Can anyone provide
> > some clarification ? Thanks
> >
> > Regards,
> > Angel
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Thilina Gunarathne
> WSO2, Inc.; http://www.wso2.com/
> Home page: http://webservices.apache.org/~thilina/
> Blog: http://thilinag.blogspot.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Re: Parsing Returned XML String

2007-01-15 Thread Garth Keesler




Got it! I tracked it down in "Java & XML" by Brett McLaughlin,
published by O'Reilly.

BTW, the book makes use of Apache Xerces in its examples and that's
what I used.

Thanx,
Garth

Garth Keesler wrote:

  
The following xml text is what gets returned from the web service call.
I have tried a variety of methods to extract the values, as shown in
the included client source, using examples found on the web but with no
success. They all return the OMElement from the web service invocation
as a string with no children or siblings. Eclipse, however, seems to
understand the text as xml just fine, allowing me to use the graphical
view to view the elements and their values. 
  
What tool(s) should I use to extract the values?
  
Thanx,
Garth
  

  
"http://ttna.com/xsd">
    "http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://tier1.ttna.com/xsd"
xsi:nil="true" />
    "http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://tier1.ttna.com/xsd"
xsi:nil="true" />
    "http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://tier1.ttna.com/xsd"
xsi:nil="true" />
    "http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://tier1.ttna.com/xsd"
xsi:nil="true" />
    "http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://tier1.ttna.com/xsd"
xsi:nil="true" />
    "http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://tier1.ttna.com/xsd"
xsi:nil="true" />
    "http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://tier1.ttna.com/xsd"
xsi:nil="true" />
    "http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://tier1.ttna.com/xsd"
xsi:nil="true" />
    "http://tier1.ttna.com/xsd">0
    "http://tier1.ttna.com/xsd">garthk
    "http://tier1.ttna.com/xsd">hsv
    "http://tier1.ttna.com/xsd">
        Huntsville
    

  


  
package com.ttna;
  
import org.apache.axiom.om.*;
import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axiom.om.impl.serialize.StreamingOMSerializer;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.client.ServiceClient;
import java.util.Iterator;
import javax.xml.stream.*;
import java.io.*;
import org.xml.sax.InputSource;
import org.apache.axiom.om.impl.builder.StAXOMBuilder;
import org.w3c.dom.*;
//import javax.xml.parsers.DocumentBuilder;
//import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.*;
  
public class Scenario1Client
{
  
    public static void main(String[] args) throws Exception
    {
        ServiceClient client = new ServiceClient();
        // create option object
        Options opts = new Options();
        // setting target EPR
        opts.setTo(new EndpointReference(
                "http://appsrv:8080/axis2/services/wsVendor"));
        // Setting action ,and which can be found from the wsdl of the
service
        opts.setAction("urn:wsgetVendor");
        client.setOptions(opts);
        OMElement res = client.sendReceive(createPayLoad());
  
        XMLStreamReader reader = XMLInputFactory.newInstance()
                .createXMLStreamReader(
                        new
ByteArrayInputStream(res.toString().getBytes()));
        StAXOMBuilder builder = new StAXOMBuilder(reader); // get the
root
                                                            // element
(in this
                                                            // case the
        OMElement documentElement = builder.getDocumentElement();
        OMDocument doc = builder.getDocument();
//        OMNode node = doc.getFirstOMChild();
//        OMNode sib = node.getNextOMSibling();
//        System.out.println("sib = " + sib.toString());
//        System.out.println("count = " + doc.getAttributeCount());
        // dump the out put to console with caching
        Iterator children = documentElement.getChildren();
        while (children.hasNext())
        {
            OMNode node = (OMNode) children.next();
            System.out.println(node.toString());
        }
  
        /*
         * try { DocumentBuilderFactory factory = DocumentBuilderFactory
         * .newInstance(); DocumentBuilder db =
factory.newDocumentBuilder();
         * InputSource inStream = new InputSource();
         * inStream.setCharacterStream(new
StringReader(res.toString()));
         * Document doc1 = db.parse(inStream); System.out.println("
doc1.version = " +
         * doc1.getXmlVersion()); System.out.println(" doc1.baseuri = "
+
         * doc1.getBaseURI()); System.out.println(" doc1.docuri = " +
         * doc1.getDocumentURI()); System.out.println("
doc1.inputencoding = " +
         * doc1.getInputEncoding()); System.out.println("
doc1.localname = " +
         * doc1.getLocalName()); System.out.println(" doc1.namespace =
" +
         * doc1.getNamespaceURI()); System.out.println(" doc1.nodename
= " +
         * doc1.getNodeName()); Sys

Re: MTOM question

2007-01-15 Thread Angel Todorov

Hi Thilina,

yes with tcpmon everything looks fine by looking at the HTTP requests
(binary data + xop include reference) , it's actually logical to have
the SOAP request constructed before SOAPMonitor is invoked.

Regards,
Angel

On 1/15/07, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:

Hi Angel,
Hope you have a OMText with optimised set to "true" in the above case.
Are you using any databinding mechanisms..

I'm not sure whether it is an issue with SOAPMonitor... Can you please
try sniffing the message with tcpmon[1].

Thanks,
Thilina

[1] http://ws.apache.org/commons/tcpmon/

On 1/14/07, Angel Todorov <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am doing a test of MTOM - sending a binary file and then saving it
> somewhere on the server. I follow the MTOM guide for Axis2. I am using
> the SOAP Monitor applet in order to investigate the SOAP requests and
> responses, and in both cases where MTOM is enabled and disabled on the
> client side, the SOAP request 's contents is the same, more
> specifically :
>
> http://www.w3c.org/2005/05/xmlmime";
> ns0:contentType="application/octet-stream"> (binary sting here )
> 
>
> the contents of the binary string is also the same. Can anyone provide
> some clarification ? Thanks
>
> Regards,
> Angel
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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




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



AW: [Axis2] A required header representing a Message Addressing Property is not present

2007-01-15 Thread korges
Hi Brian, 

 

it works! Thanks a lot!

 

Best regards

 

nicholas

 

Von: Brian De Pradine [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 15. Januar 2007 11:54
An: axis-user@ws.apache.org
Betreff: Re: [Axis2] A required header representing a Message Addressing
Property is not present

 


Hello Nicholas, 

I believe that you need to explicitly add an action in your client code. 

options.setAction("urn:doWork"); 

Cheers

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

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


"korges" <[EMAIL PROTECTED]> wrote on 14/01/2007 20:36:59:

> Hi, 
>   
> I try to get a asynchronous webservice via smtp working. But I get a
> “A required header representing a Message Addressing Property is not
> present” exception during the predispatch phase. 
> AxisEngine.sendfault() sents me a faultmessage back. It seems that 
> no Message Addressing Header is provided. How / where do I add such 
> a header? Do I have to modify the wsdl? 
> Does a Message Addressing refer to  name="PAServiceSOAP11port_mail1" binding="axis2:
> PAServiceSOAP11Binding">? 
>   
> Please take a look at the code bellow. 
>   
> Thanks a lot! 
>   
> Best regards 
>   
> Nicholas 
>   
>  sending the request on the client side
*** 
>   
> ConfigurationContext configurationContext = 
> ConfigurationContextFactory.
> createConfigurationContextFromFileSystem(set.getRepo(),set.getXml()); 
> 
> HttpTransportProperties.MailProperties mailProps  = new 
> HttpTransportProperties.MailProperties(); 
>
mailProps.addProperty("mail.smtp.host",set.getSmtpProps()[0]); 
>
mailProps.addProperty("mail.smtp.user",set.getSmtpProps()[1]); 
> mailProps.setPassword(set.getSmtpProps()[2]); 
>   
> ServiceClient sender = new 
> ServiceClient(configurationContext, null); 
> Options options = new Options(); 
> options.setProperty(HTTPConstants.MAIL_SMTP, mailProps); 
> options.setTo(targetEPR); 
> options.setTransportInProtocol(Constants.TRANSPORT_HTTP); 
>   
> sender.setOptions(options); 
> 
> sender.fireAndForget(payload); 
>   
>  the request  sent from the client by
email*** 
> http://www.w3.org/2005/08/addressing"; xmlns:soapenv="http://schemas.
> xmlsoap.org/soap/envelope/">mail:
> [EMAIL PROTECTED]/axis2/services/PAService ReplyTo>http://www.w3.
> org/2005/08/addressing/anonymous MessageID>urn:uuid:1E0F17FB3C4D0EEECC11688059456521 MessageID>http://localhost:8080/axis2/services/PAService";> symbol>548452444239 doWork> 
>   
>   
>  the answer message sent back by the server   by email 
> *** 
>   
> http://www.w3.org/2005/08/addressing"; xmlns:soapenv="http://schemas.
> xmlsoap.org/soap/envelope/">http://www.w3.
> org/2005/08/addressing/anonymous Address>http://www.w3.org/2005/08/addressing/none Address>urn:uuid:
> 4C2B6D41577BC6294D11687875529684 RelationshipType="http://www.w3.org/2005/08/addressing/reply";>urn:
> uuid:456A6FA9785DE40833116878753628125 FaultDetail>wsa:Action ProblemHeaderQName> Body>wsa:
> MessageAddressingHeaderRequiredA required 
> header representing a Message Addressing Property is not 
> present Body> 
>   
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.16.10/625 - Release Date: 13.
> 01.2007 17:40

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.11/627 - Release Date: 15.01.2007
07:54


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.11/627 - Release Date: 15.01.2007
07:54
 


How to get operation name from MessageContext

2007-01-15 Thread Sherman Uri
Hi,
I wrote a handler (axis 1.4) that needs to obtain the operation name
from every incomming request. For some of my services, the
msgCtx.getOperation() method returns null. 
After a little investigation debugging axis cocde I found out that for
operations that are "overloaded", that is, 
more than one operation with the same name (but different arguments),
the OperationDesc is set only at a later stage, after my handler is
invoked, after the style is determind and arguments are investigated. 
When the operation name itself in a request has just one match in the
service interface, the OperationDesc is set right away, since the
arguments don't need to be investigated.
So that's just fine by me, question is how do I get my handler to be
invoked only after the OperationDesc is set, or alternatively, how can I
obtain just the operation name in the request, I don't care about the
whole OperationDesc object, all I want is the name of the operation.
Thanks,
Uri.



Re: MTOM question

2007-01-15 Thread Thilina Gunarathne

Hi Angel,
Hope you have a OMText with optimised set to "true" in the above case.
Are you using any databinding mechanisms..

I'm not sure whether it is an issue with SOAPMonitor... Can you please
try sniffing the message with tcpmon[1].

Thanks,
Thilina

[1] http://ws.apache.org/commons/tcpmon/

On 1/14/07, Angel Todorov <[EMAIL PROTECTED]> wrote:

Hi all,

I am doing a test of MTOM - sending a binary file and then saving it
somewhere on the server. I follow the MTOM guide for Axis2. I am using
the SOAP Monitor applet in order to investigate the SOAP requests and
responses, and in both cases where MTOM is enabled and disabled on the
client side, the SOAP request 's contents is the same, more
specifically :

http://www.w3c.org/2005/05/xmlmime";
ns0:contentType="application/octet-stream"> (binary sting here )


the contents of the binary string is also the same. Can anyone provide
some clarification ? Thanks

Regards,
Angel

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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Re: [Axis2] A required header representing a Message Addressing Property is not present

2007-01-15 Thread Brian De Pradine
Hello Nicholas,

I believe that you need to explicitly add an action in your client code.

options.setAction("urn:doWork");

Cheers

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

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


"korges" <[EMAIL PROTECTED]> wrote on 14/01/2007 20:36:59:

> Hi,
> 
> I try to get a asynchronous webservice via smtp working. But I get a
> ?A required header representing a Message Addressing Property is not
> present? exception during the predispatch phase.
> AxisEngine.sendfault() sents me a faultmessage back. It seems that 
> no Message Addressing Header is provided. How / where do I add such 
> a header? Do I have to modify the wsdl?
> Does a Message Addressing refer to  name="PAServiceSOAP11port_mail1" binding="axis2:
> PAServiceSOAP11Binding">?
> 
> Please take a look at the code bellow.
> 
> Thanks a lot!
> 
> Best regards
> 
> Nicholas
> 
>  sending the request on the client side 
***
> 
> ConfigurationContext configurationContext = 
> ConfigurationContextFactory.
> createConfigurationContextFromFileSystem(set.getRepo(),set.getXml());
> 
> HttpTransportProperties.MailProperties mailProps  = new 
> HttpTransportProperties.MailProperties();
> mailProps.addProperty("mail.smtp.host",set.getSmtpProps()[0]);
> mailProps.addProperty("mail.smtp.user",set.getSmtpProps()[1]);
> mailProps.setPassword(set.getSmtpProps()[2]);
> 
> ServiceClient sender = new 
> ServiceClient(configurationContext, null);
> Options options = new Options();
> options.setProperty(HTTPConstants.MAIL_SMTP, mailProps);
> options.setTo(targetEPR);
> options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> 
> sender.setOptions(options);
> 
> sender.fireAndForget(payload);
> 
>  the request  sent from the client by 
email***
> http://www.w3.org/2005/08/addressing"; xmlns:soapenv="http://schemas.
> xmlsoap.org/soap/envelope/">mail:
> [EMAIL PROTECTED]/axis2/services/PAService ReplyTo>http://www.w3.
> org/2005/08/addressing/anonymous MessageID>urn:uuid:1E0F17FB3C4D0EEECC11688059456521 MessageID>http://localhost:8080/axis2/services/PAService";> symbol>548452444239 doWork>
> 
> 
>  the answer message sent back by the server   by email 
> ***
> 
> http://www.w3.org/2005/08/addressing"; xmlns:soapenv="http://schemas.
> xmlsoap.org/soap/envelope/">http://www.w3.
> org/2005/08/addressing/anonymous Address>http://www.w3.org/2005/08/addressing/none Address>urn:uuid:
> 4C2B6D41577BC6294D11687875529684 RelationshipType="http://www.w3.org/2005/08/addressing/reply";>urn:
> uuid:456A6FA9785DE40833116878753628125 FaultDetail>wsa:Action ProblemHeaderQName> Body>wsa:
> MessageAddressingHeaderRequiredA required 
> header representing a Message Addressing Property is not 
> present Body>
> 
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.16.10/625 - Release Date: 13.
> 01.2007 17:40

RE: unexpected xmlns:tns in soap response xml.

2007-01-15 Thread Giuseppe Sarno
Hi,
can anyone tell me at least if this could be a bug ? or intended
behaviour ?
 
Thanks.



From: Sarno, Giuseppe (MOP:GM15) 
Sent: 13 January 2007 23:58
To: axis-user@ws.apache.org
Subject: unexpected xmlns:tns in soap response xml.


Hi,
I'm using AXIOM and I have a basic client/server similar to the one in
the sample dir (quickstartaxiom)
 
the main difference is that I exchange request and response XML reading
then from a String (which I than convert in OMElement and vice versa).
 
I noticed that in the response (at the client side) along with the
expected namespaces declaration, I get a
xmlns:tns="http//." in the root element which I
didn't put in my response XML at the Server side..
 
Does anyone know why ? 
How can I get rid of it (as I don't want my request/response to be
changed by AXIS)?
 
regards.
Giuseppe.


pojo in userguide example question

2007-01-15 Thread Alex HO

Hi Developers,
I just download the latest version of axis2 1.1.1, and then tried some
examples by following the user guide.
i am stopped on the pojo example, i have compiled it and got response output.
here is the result
--


rpc.client.run:
   [java] [JAM] Warning: You are running under a pre-1.5 JDK.  JSR175-style so
urce annotations will not be available
   [java] Temperature   : 39.3
   [java] Forecast  : Cloudy with showers
   [java] Rain  : true
   [java] How much rain (in inches) : 4.5

i would like to know what's the point of this example, or what's it
trying to tell us??

because after reviewed the client code, i saw that those values are
set in the client program.
w.setTemperature((float)39.3);
w.setForecast("Cloudy with showers");
w.setRain(true);
w.setHowMuchRain((float)4.5);

the weather service just return what the client set, and the client
just output what's those response, any "real" application can make use
this technique
--
Regards,

Alex

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



Re: [Axis2]:Re: Re: Axis2 and Pure messaging.

2007-01-15 Thread Sanjiva Weerawarana
On Sun, 2007-01-14 at 16:39 +0800, falom wrote:
> Hi Paul,
> 
> How can i in axis2 client code, before calling the operation,  set:
> http://server.com/axis2/services/serviceName/opName1
> http://server.com/axis2/services/serviceName/opName2

See http://wso2.org/library/290 and look at options.setTo().

> using option or other ways? Also does WSDL allow operations to be
> defined with different URL?

With WSDL 1.1 this is not possible unfortunately. WSDL 2.0 allows this-
see whttp:location that can be added to any SOAP binding on an
operation-by-operation basis.

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/


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