Re: non-repudiation with signature using rampart 1.2

2007-08-03 Thread Pavan Madiraju
Thanks Dimuthu,
Does anyone have example code for WS security using only digital signature ?

Tried to modify the simple example ( Sample4) to implement one way security.
Client has only OutflowSecurity and service has only InflowSecurity.
Can I do this using Rampart 1.2 ?

Getting the following error on the client side

\[java] Exception in thread "main" org.apache.axis2.AxisFault:
WSDoAllReceiver: security processing fail
and recieving the following error on the server
WSDoAllReceiver: security processing 
failed




On 8/2/07, Dimuthu <[EMAIL PROTECTED]> wrote:
> Hi Pavan,
>
> I think this issue is related to
> https://issues.apache.org/jira/browse/RAMPART-10
>
> Regards,
> Dimuthu
>
> On Thu, 2007-08-02 at 23:29 -0400, Pavan Madiraju wrote:
> > Hi,
> > I am trying to implement  non-repudiation with signature with  Axis2
> > 1.2  &  Rampart 1.2.
> >
> > Here is my service.xml enabling rampart
> >
> >   
> >   
> >   
> >   Signature
> >   
> > service.properties
> >   
> >   
> >
> > I have placed my service.properties file in
> >
> >   
> > \base_v61\profiles\AppSrv01\installedApps\NW815856Node02Cell\axis2_war.ear\axis2.war\WEB-INF\classes
> > folder
> >
> > service.properties contents are
> > org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
> > org.apache.ws.security.crypto.merlin.keystore.type=jks
> > org.apache.ws.security.crypto.merlin.keystore.password=servertrust
> > org.apache.ws.security.crypto.merlin.keystore.alias=wasclient
> > org.apache.ws.security.crypto.merlin.alias.password=servertrust
> > org.apache.ws.security.crypto.merlin.file=servertrust.jks
> >
> > I am getting the following error
> >
> > [8/2/07 8:28:10:326 EDT] 0027 SystemErr R at
> > com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
> > [8/2/07 8:28:10:326 EDT] 0027 SystemErr R at
> > com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
> > [8/2/07 8:28:10:326 EDT] 0027 SystemErr R at
> > com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
> > [8/2/07 8:28:10:326 EDT] 0027 SystemErr R at
> > com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
> > [8/2/07 8:28:10:326 EDT] 0027 SystemErr R at
> > com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
> > [8/2/07 8:28:10:326 EDT] 0027 SystemErr R at
> > com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
> > [8/2/07 8:28:10:326 EDT] 0027 SystemErr R at
> > com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
> > [8/2/07 8:28:10:326 EDT] 0027 SystemErr R at
> > com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
> > [8/2/07 8:28:10:326 EDT] 0027 SystemErr R at
> > com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
> > [8/2/07 8:28:10:326 EDT] 0027 SystemErr R at
> > com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
> > [8/2/07 8:28:10:326 EDT] 0027 SystemErr R Caused by:
> > org.apache.ws.security.components.crypto.CredentialException: Failed
> > to load credentials. Inner Exception: [DerInputStream.getLength():
> > lengthTag=109, too big.]
> >   at 
> > org.apache.ws.security.components.crypto.AbstractCrypto.load(AbstractCrypto.java:141)
> >   at 
> > org.apache.ws.security.components.crypto.AbstractCrypto.(AbstractCrypto.java:97)
> >   at 
> > org.apache.ws.security.components.crypto.Merlin.(Merlin.java:65)
> >   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> > Method)
> >   at 
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
> >   at 
> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >
> >
> >
> >
> >   at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
> >   at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
> >   at 
> > com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
> >   at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
> >   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
> >
> > [8/2/07 8:28:10:346 EDT] 0027 SystemErr R at
> > org.apache.ws.security.components.crypto.AbstractCrypto.load(AbstractCrypto.java:141)
> > [8/2/07 8:28:10:346 EDT] 0027 SystemErr R at
> > org.apache.ws.security.components.crypto.AbstractCrypto.(AbstractCrypto.java:97)
> > [8/2/07 8:28:10:346 EDT] 0027 SystemErr R at
> > org.apache.ws.security.components.crypto.Merlin.(Merlin.j

Rampart Sample 4 -

2007-08-03 Thread Pavan Madiraju
I am trying to execute sample 4 from Rampart samples. I am getting the
following soap fault


http://www.w3.org/2005/08/addressing";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>


http://www.w3.org/2005/08/addressing/soap/fault



soapenv:Client
WSDoAllReceiver: security processing 
failed





not sure what'z is the problem.
Here is what I see while executing the client
Buildfile: C:\Development\axis\rampart-1.2\samples\basic\build.xml
check.dependency:
client.04:
 [copy] Copying 1 file to
C:\Development\axis\rampart-1.2\samples\basic\build\client_repositories\sample04\conf
 [copy] Copying 1 file to
C:\Development\axis\rampart-1.2\samples\basic\build\client_repositories\sample04\modules
 [copy] Copying 1 file to
C:\Development\axis\rampart-1.2\samples\basic\build\client_repositories\sample04\modules
 [copy] Copying 1 file to
C:\Development\axis\rampart-1.2\samples\basic\build\temp_client
 [copy] Copying 1 file to
C:\Development\axis\rampart-1.2\samples\basic\build\temp_client
 [java] Aug 4, 2007 12:25:02 AM
org.apache.axis2.deployment.DeploymentEngine prepareRepository
 [java] INFO: No services directory was found under
C:\Development\axis\rampart-1.2\samples\basic\build\client_repositories\sample04.
 [java] Aug 4, 2007 12:25:02 AM
org.apache.axis2.deployment.ModuleDeployer deploy
 [java] INFO: Deploying module: addressing-1.2
 [java] Aug 4, 2007 12:25:03 AM
org.apache.axis2.deployment.ModuleDeployer deploy
 [java] INFO: Deploying module: rampart-1.2
 [java] Exception in thread "main" org.apache.axis2.AxisFault:
WSDoAllReceiver: security processing failed
 [java] at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:434)
 [java] at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:373)
 [java] at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
 [java] at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)
 [java] at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:500)
 [java] at org.apache.rampart.samples.sample04.Client.main(Unknown Source)
 [java] Java Result: 1
BUILD SUCCESSFUL
Total time: 5 seconds


I don't see anything in the console. Not sure why. I am running WAS
6.1 , Axis2 1.2 and Rampart 1.2

Attached are my request and response as well as the log property file.

Please help.

Regards,
Pavam


log4j.properties
Description: Binary data


commons-logging.properties
Description: Binary data

http://www.w3.org/2005/08/addressing"; xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
	
		http://www.w3.org/2005/08/addressing/soap/fault
	
	
		
			soapenv:Client
			WSDoAllReceiver: security processing failed
			
		
	


http://schemas.xmlsoap.org/soap/envelope/";>
	
		http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; soapenv:mustUnderstand="1">
			http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"; ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"; wsu:Id="CertId-3468159">MIIC7DCCAlWgAwIBAgIBATANBgkqhkiG9w0BAQQFADBNMQswCQYDVQQGEwJMSzEQMA4GA1UECBMHV2VzdGVybjEQMA4GA1UEBxMHQ29sb21ibzENMAsGA1UEChMEV1NPMjELMAkGA1UEAxMCQ0EwHhcNMDYwNzIxMTAwOTIxWhcNMDcwNzIxMTAwOTIxWjBOMQswCQYDVQQGEwJMSzEQMA4GA1UECBMHV2VzdGVybjENMAsGA1UEChMEV1NPMjENMAsGA1UECxMEV1NPMjEPMA0GA1UEAxMGQ2xpZW50MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLZbE6nuAkO6f4xEAmjwkbt83/kLZOC09h8XIzTpNgowkSE7fEffmZ55auT4kr+ZlQWPntN6yUL3UdjCjswzgb6YxCYXAN+AIwdEDfHiY2LEhWJIUi4wxvELEBohUOtvFD6U/Wb3bp0inHW9kjueqvTQPvY/E+DxWJtdcAAPbIKQIDAQABo4HaMIHXMAkGA1UdEwQCMAAwLAYJYIZIAYb4QgENBB8WHU9wZW5TU0wgR2VuZXJhdGVkIENlcnRpZmljYXRlMB0GA1UdDgQWBBQxLMCTSZb+3pG0f+eXvVT8HWn7UDB9BgNVHSMEdjB0gBTqjpU/ODKOIhKC4vphl14m26jJh6FRpE8wTTELMAkGA1UEBhMCTEsxEDAOBgNVBAgTB1dlc3Rlcm4xEDAOBgNVBAcTB0NvbG9tYm8xDTALBgNVBAoTBFdTTzIxCzAJBgNVBAMTAkNBggkAo5RPqifQLL0wDQYJKoZIhvcNAQEEBQADgYEAdqTpO79RlL+e50rmK+tcEhB/SJw4cwXCtHWkloLdrIcdRxl6uDEZBGacxyQtBeLbgTp7jCTKLPuhJ7Hhguyp2ggr26a/Prt32zsu5XTUVIQMrZLJ2CemA0sOS8UJ7KSvG1ksE38whcFJnaGMbGdP5H2hzDpgQ1DAN38D/eQr3dI=
			http://www.w3.org/2000/09/xmldsig#"; Id="Signature-1558863082">

	http://www.w3.org/2001/10/xml-exc-c14n#"/>
	http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
	
		
			http://www.w3.org/2001/10/xml-exc-c14n#"/>
		
		http://www.w3.org/2000/09/xmldsig#sha1"/>
		7T2EVE1aK1hsJ74cQ4dgYyWrt98=
	


sdwPo5ROCQgfmp0NPkUyNNbQ55Vlv9jdM9rB2C9p1btj/AdZsX61i+hzLqBL0WdhaKG1VY6x2fRt
mHTkVNojTwKiXnhk4Ge1YEhImdAI6PBV7Th10m1ulV4+UQ9wbLu8JGNMMc+ohWgEZ4toi26ZpNr9
wUER5m3TcFOxGluQykw=


	http://docs.oasis-op

Re: listServices do not show all services deployed under folder\axis2\WEB-INF\services

2007-08-03 Thread Davanum Srinivas
David,

Under tomcat, we are able to "walk" the directory to get the list of
aar files. the services.list is the backup especially for your
situation where your container does not allow us to enumerate the
services or modules for that matter. So, yes, please add it manually.

thanks,
dims

On 8/3/07, Du, David (US SSA) <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi, all.
>
>
>
> I got axis2-1.2 working in my Netscape Enterprise Server with Linux
> environment, but there are still some minor issues, one of them is that:
>
>
>
> After I copied my StockQuoteService.aar file into tomcat 4.1.36 under folder
> \axis2\WEB-INF\services, from this URL:
> http://localhost:8080/axis2/services/listServices, I can
> see all the services including Version and StockQuoteService, I did the same
> thing to NES6.2, I could not see the StockQuoteService from the listServices
> URL, for NES, only I manually added StockQuoteService.aar to services.LIST
> file under \axis2\WEB-INF\services, then I can see the StockQuoteService and
> everything works normally. But I checked the result on tomcat, nothing is
> added to services.LIST file, but it still lists all the services.
>
>
>
> Anybody can explain what happened? Is it supposed to be added manually or
> automatically to the services.list file, or it has nothing to do with it?
>
>
>
>
>
> Thanks in advance.
>
>
>
> David


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

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



Re: End-to-End Streaming Support

2007-08-03 Thread Davanum Srinivas
Please check the archives, example:
http://marc.info/?t=11835330166&r=1&w=2

thanks,
dims

On 8/3/07, Chad La Joie <[EMAIL PROTECTED]> wrote:
> After thinking about this a bit more I realized that I didn't provide
> enough information to be able to answer this as external things, outside
> of Axis, will impact this, specifically I'm thinking the DataSource and
> the Servlet container Axis is deployed in.
>
> In way of DataSources, it will be a file based data source and hence
> able to report the number of bytes available to the stream and I can
> deploy the application in any container, the environment is not set.
>
> So, I guess my question is expanded a bit.  Does Axis support streaming
> and if so, are there particular containers that support Axis's support
> for streaming?
>
> If there are other factors/constraints that I'm missing let me know.
> Thanks.
>
> Chad La Joie wrote:
> > I'm working on a project that may (read: almost certainly will) require
> > very large binary blobs (many GBs) to be transported.  The specification
> > I'm working with requires at least SOAP over HTTP support and allows for
> > the use of MTOM.
> >
> > My question is, does Axis 2 (client and service side) support true
> > end-to-end streaming.  By this I mean can a service stream data from
> > disk, over HTTP to the client and provide a stream on the client side
> > which can be dumped direct to disk?
> >
> > I had read the MTOM guide [1] and while I see data handlers and sources
> > being used it doesn't say whether Axis 2 is architected in such a way
> > that the data is never buffered in memory.
> >
> > Thanks for the help.
> >
> >
> > [1] http://ws.apache.org/axis2/1_0/mtom-guide.html
>
> --
> Chad La Joie 2052-C Harris Bldg
> OIS-Middleware   202.687.0124
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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



Re: RE [Axis2] Axis2 1.3 RC3 released

2007-08-03 Thread Davanum Srinivas
Pierre,

Please try the nightly build, we've fixed the issue.

thanks,
dims

On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I've created the JIRA: https://issues.apache.org/jira/browse/AXIS2-3064
> thanks for the quick reply.
>
> Pierre
>
>
>
>
>  "Davanum Srinivas" <[EMAIL PROTECTED]>
>
> 03/08/2007 16:17
>
> Veuillez répondre à
>  axis-user@ws.apache.org
>
>
> A axis-user@ws.apache.org
>
> cc
>
>
> Objet Re: RE [Axis2] Axis2 1.3 RC3 released
>
>
>
>
>
>
>
>
> Pierre,
>
>  JIRA please and upload your stripped down wsdl/build.xml etc.
>
>  thanks,
>  dims
>
>  On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>  >
>  > Hi,
>  > I'm testing the RC3 right now and I still have a problem with jaxbri 
> databinding:
>  > previous issue (JIRA 3043) is solved (thanks a lot) but now I have another 
> problem with the wsdl of another webservice:
>  >  [java] Exception in thread "main" 
> org.apache.axis2.wsdl.codegen.CodeGenerationException: 
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>  >  [java] at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
>  >  [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>  >  [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>  >  [java] Caused by: java.lang.RuntimeException: 
> java.lang.reflect.InvocationTargetException
>  >  [java] at 
> org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:112)
>  >  [java] at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:218)
>  >  [java] ... 2 more
>  >  [java] Caused by: java.lang.reflect.InvocationTargetException
>  >  [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  >  [java] at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>  >  [java] at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  >  [java] at java.lang.reflect.Method.invoke(Method.java:615)
>  >  [java] at 
> org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:101)
>  >  [java] ... 3 more
>  >  [java] Caused by: java.lang.RuntimeException: 
> java.lang.RuntimeException: Unable to generate code using jaxbri
>  >  [java] at 
> org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:177)
>  >  [java] ... 8 more
>  >  [java] Caused by: java.lang.RuntimeException: Unable to generate code 
> using jaxbri
>  >  [java] at 
> org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:152)
>  >  [java] ... 8 more
>  >  [java] Java Result: 1
>  >
>  > I'm using following ant task:
>  > 
>  > 
>  > 
>  > 
>  > 
>  > 
>  > 
>  > 
>  > 
>  > 
>  > 
>  > 
>  > 
>  >
>  > The WSDL is correctly parsed and the code generated when using official 
> jaxb 2.0.5 distribution and the included xjc.bat script file.
>  >
>  > Do I create a JIRA with the faulty wsdl?
>  >
>  > Thnaks,
>  > Pierre
>  >
>  >
>  >
>  >
>  >
>  >  Deepal jayasinghe <[EMAIL PROTECTED]>
>  >
>  > 03/08/2007 14:56
>  >
>  > Veuillez répondre à
>  >  axis-user@ws.apache.org
>  >
>  >
>  > A "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, "axis-user@ws.apache.org" 
> 
>  >
>  > cc
>  >
>  >
>  > Objet [Axis2] Axis2 1.3 RC3 released
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  > Hi all,
>  >
>  >  I have uploaded Axis2 1.3 RC3 into my Apache home location [1] . This
>  >  release does not have any SNAPSHOT dependencies and we have fixed a
>  >  number of issues between RC2 and RC3 so please test the release
>  >  candidate as much as you can. My plan is to make this is final RC and
>  >  upload the final release on coming Monday 6th Aug 2007 for voting.
>  >
>  >  You can find the release plugings [2] and the maven2 repo is available
>  >  at [3].
>  >
>  >  When we test please try to cover the following
>  >   - Code generation
>  >   - Sessions
>  >   - Web application
>  >   - In different application servers
>  >  - Both JDK 1.5 and JDK 1.4
>  >  - Java2WSDL
>  >  - POJOs
>  >  - And what ever the JIRA we have marked as fixed.
>  >
>  >
>  >  [1] : http://people.apache.org/~deepal/axis2/1.3-RC3/
>  >  [2] : http://people.apache.org/~deepal/axis2/1.3-RC3/tools/
>  >  [3] : http://people.apache.org/~deepal/axis2/1.3-RC3/m2-repo/
>  >
>  >  Thanks
>  >  Deepal
>  >
>  >
>  >  -
>  >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >  For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>  >
>
>
>
>  --
>  Davanum Srinivas :: ht

Re: classpath problem

2007-08-03 Thread keith chapman
Yes, xml beans creates some classes in the resources directory which need to
be in the class path. You can create a jar out of them and add it to your
clasapath. Its how xmlBeans work.

BTW did you try ADB? its much simpler than xml beans, although xmlbeans have
full schema support.

Thanks,
Keith.

On 8/4/07, Upul Godage <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Try adding the "resources" directory which contains some generated
> artifacts to the classpath. It is at the same level as the "src" directory.
>
> Upul
>
>
> On 8/4/07, New AxisU <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > I am using axis2 1.3 RC2 (maybe I'll try RC3 while waiting for an
> > answer) ... I dowloaded xmlbeans-2.3.0 and I put the following jars into
> > NetBeans "compile with these jars" and "run with these jars" lists.  Am I
> > using the right version of xmlbeans?  When I try to run my client I get
> > "Cannot load SchemaTypeSystem. Unable to load class with name
> > schemaorg_apache_xmlbeans.system.sD1970CAD33749EE685B296B2397B2093.TypeSystemHolder"
> >
> >
> > I am pretty confused about this architecturally (?) because that looks
> > like some kind of generated file but it isn't in with any of th e source
> > made by Axis2 from WSDL2Java.
> >
> > So what am I doing wrong?  Am I missing something that must also be on
> > the classpath?
> >
> > --
> > error output
> > --
> >
> > init:
> > deps-jar:
> > Deleted 1 out of date files in 1 seconds
> > Compiling 1 source file to D:\My
> > Documents\ABC\Data\NetBeans\Axis2RandQuote3\build\classes
> > compile:
> > run:
> > Exception in thread "main" java.lang.ExceptionInInitializerError
> > at org.abc.quote.GetQuoteResponseDocument$Factory.newInstance(
> > GetQuoteResponseDocument.java:112)
> > at org.abc.quote.client.RandomQuoteClient.getQuote(
> > RandomQuoteClient.java :26)
> > at org.abc.quote.client.RandomQuoteClient.main(
> > RandomQuoteClient.java:40)
> > Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem.
> > Unable to load class with name
> > schemaorg_apache_xmlbeans.system.sD1970CAD33749EE685B296B2397B2093.TypeSystemHolder.
> > Make sure the generated binary files are on the classpath.
> > at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(
> > XmlBeans.java:783)
> > at org.abc.quote.GetQuoteResponseDocument.(
> > GetQuoteResponseDocument.java:19)
> > ... 3 more
> > Caused by: java.lang.ClassNotFoundException:
> > schemaorg_apache_xmlbeans.system.sD1970CAD33749EE685B296B2397B2093.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:276)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> > at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(
> > XmlBeans.java:769)
> > ... 4 more
> > Java Result: 1
> > BUILD SUCCESSFUL (total time: 3 seconds)
> >
> > --
> > jars in classpath
> > --
> >  jsr173_1.0_api.jar
> >  resolver.jar
> >  xbean.jar
> >  xbean_xpath.jar
> >  xmlbeans-qname.jar
> >  xmlpublic.jar
> >
> >  activation-1.1.jar
> >  activemq-core-4.1.1.jar
> >  annogen-0.1.0.jar
> >  axiom-api-SNAPSHOT.jar
> >  axiom-dom-SNAPSHOT.jar
> >  axiom-impl-SNAPSHOT.jar
> >  axis2-adb-1.3-RC2.jar
> >  axis2-adb-codegen-1.3-RC2.jar
> >  axis2-codegen-1.3-RC2.jar
> >  axis2-fastinfoset-1.3-RC2.jar
> >  axis2-java2wsdl-1.3-RC2.jar
> >  axis2-jaxbri-1.3-RC2.jar
> >  axis2-jaxws-1.3-RC2.jar
> >  axis2-jaxws-api-1.3-RC2.jar
> >  axis2-jibx-1.3-RC2.jar
> >  axis2-json-1.3-RC2.jar
> >  axis2-kernel-1.3-RC2.jar
> >  axis2-metadata-1.3-RC2.jar
> >  axis2-saaj-1.3-RC2.jar
> >  axis2-saaj-api-1.3-RC2.jar
> >  axis2-spring-1.3-RC2.jar
> >  axis2-xmlbeans-1.3-RC2.jar
> >  backport-util-concurrent-2.2.jar
> >   commons-codec-1.3.jar
> >  commons-fileupload-1.1.1.jar
> >  commons-httpclient-3.0.1.jar
> >  commons-io-1.1.jar
> >  commons-logging-1.1.jar
> >  geronimo-jms_1.1_spec-1.1.jar
> >  httpcore-4.0-alpha5.jar
> >  httpcore-nio-4.0-alpha5.jar
> >  httpcore-niossl-4.0-alpha5.jar
> >  jalopy-1.5rc3.jar
> >  jaxb-api-2.0.jar
> >  jaxb-impl-2.0.5.jar
> >  jaxb-xjc-2.0.5.jar
> >  jaxen-1.1.1.jar
> >  jettison-1.0-RC1.jar
> >  jibx-bind-1.1.5.jar
> >  jibx-run-1.1.5.jar
> >  log4j-1.2.13.jar
> >  mail-1.4.jar
> >  neethi-SNAPSHOT.jar
> >  servlet-api-2.3.jar
> >  stax-api-1.0.1.jar
> >  woden-1.0-incubating-SNAPSHOT.jar
> >  wsdl4j-1.6.2.jar
> >  wstx-asl-3.2.1.jar
> >  xalan-2.7.0.jar
> >  xbean-2.2.0.jar
> >  xercesImpl-2.6.2.jar
> >  xml-apis-1.3.03.jar
> >  XmlSchema-SNAPSHOT.jar
> >
> >
> >
> >
>
>


-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


Re: classpath problem

2007-08-03 Thread Upul Godage
Hi,

Try adding the "resources" directory which contains some generated artifacts
to the classpath. It is at the same level as the "src" directory.

Upul


On 8/4/07, New AxisU <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I am using axis2 1.3 RC2 (maybe I'll try RC3 while waiting for an answer)
> ... I dowloaded xmlbeans-2.3.0 and I put the following jars into NetBeans
> "compile with these jars" and "run with these jars" lists.  Am I using the
> right version of xmlbeans?  When I try to run my client I get "Cannot load
> SchemaTypeSystem. Unable to load class with name
> schemaorg_apache_xmlbeans.system.sD1970CAD33749EE685B296B2397B2093.TypeSystemHolder"
>
>
> I am pretty confused about this architecturally (?) because that looks
> like some kind of generated file but it isn't in with any of th e source
> made by Axis2 from WSDL2Java.
>
> So what am I doing wrong?  Am I missing something that must also be on the
> classpath?
>
> --
> error output
> --
>
> init:
> deps-jar:
> Deleted 1 out of date files in 1 seconds
> Compiling 1 source file to D:\My
> Documents\ABC\Data\NetBeans\Axis2RandQuote3\build\classes
> compile:
> run:
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at org.abc.quote.GetQuoteResponseDocument$Factory.newInstance(
> GetQuoteResponseDocument.java:112)
> at org.abc.quote.client.RandomQuoteClient.getQuote(
> RandomQuoteClient.java :26)
> at org.abc.quote.client.RandomQuoteClient.main(
> RandomQuoteClient.java:40)
> Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem.
> Unable to load class with name
> schemaorg_apache_xmlbeans.system.sD1970CAD33749EE685B296B2397B2093.TypeSystemHolder.
> Make sure the generated binary files are on the classpath.
> at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(
> XmlBeans.java:783)
> at org.abc.quote.GetQuoteResponseDocument.(
> GetQuoteResponseDocument.java:19)
> ... 3 more
> Caused by: java.lang.ClassNotFoundException:
> schemaorg_apache_xmlbeans.system.sD1970CAD33749EE685B296B2397B2093.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 :276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(
> XmlBeans.java:769)
> ... 4 more
> Java Result: 1
> BUILD SUCCESSFUL (total time: 3 seconds)
>
> --
> jars in classpath
> --
>  jsr173_1.0_api.jar
>  resolver.jar
>  xbean.jar
>  xbean_xpath.jar
>  xmlbeans-qname.jar
>  xmlpublic.jar
>
>  activation-1.1.jar
>  activemq-core-4.1.1.jar
>  annogen-0.1.0.jar
>  axiom-api-SNAPSHOT.jar
>  axiom-dom-SNAPSHOT.jar
>  axiom-impl-SNAPSHOT.jar
>  axis2-adb-1.3-RC2.jar
>  axis2-adb-codegen-1.3-RC2.jar
>  axis2-codegen-1.3-RC2.jar
>  axis2-fastinfoset-1.3-RC2.jar
>  axis2-java2wsdl-1.3-RC2.jar
>  axis2-jaxbri-1.3-RC2.jar
>  axis2-jaxws-1.3-RC2.jar
>  axis2-jaxws-api-1.3-RC2.jar
>  axis2-jibx-1.3-RC2.jar
>  axis2-json-1.3-RC2.jar
>  axis2-kernel-1.3-RC2.jar
>  axis2-metadata-1.3-RC2.jar
>  axis2-saaj-1.3-RC2.jar
>  axis2-saaj-api-1.3-RC2.jar
>  axis2-spring-1.3-RC2.jar
>  axis2-xmlbeans-1.3-RC2.jar
>  backport-util-concurrent-2.2.jar
>  commons-codec-1.3.jar
>  commons-fileupload-1.1.1.jar
>  commons-httpclient-3.0.1.jar
>  commons-io-1.1.jar
>  commons-logging-1.1.jar
>  geronimo-jms_1.1_spec-1.1.jar
>  httpcore-4.0-alpha5.jar
>  httpcore-nio-4.0-alpha5.jar
>  httpcore-niossl-4.0-alpha5.jar
>  jalopy-1.5rc3.jar
>  jaxb-api-2.0.jar
>  jaxb-impl-2.0.5.jar
>  jaxb-xjc-2.0.5.jar
>  jaxen-1.1.1.jar
>  jettison-1.0-RC1.jar
>  jibx-bind-1.1.5.jar
>  jibx-run-1.1.5.jar
>  log4j-1.2.13.jar
>  mail-1.4.jar
>  neethi-SNAPSHOT.jar
>  servlet-api-2.3.jar
>  stax-api-1.0.1.jar
>  woden-1.0-incubating-SNAPSHOT.jar
>  wsdl4j-1.6.2.jar
>  wstx-asl-3.2.1.jar
>  xalan-2.7.0.jar
>  xbean-2.2.0.jar
>  xercesImpl-2.6.2.jar
>  xml-apis-1.3.03.jar
>  XmlSchema-SNAPSHOT.jar
>
>
>
>


Re: End-to-End Streaming Support

2007-08-03 Thread Chad La Joie
After thinking about this a bit more I realized that I didn't provide 
enough information to be able to answer this as external things, outside 
of Axis, will impact this, specifically I'm thinking the DataSource and 
the Servlet container Axis is deployed in.


In way of DataSources, it will be a file based data source and hence 
able to report the number of bytes available to the stream and I can 
deploy the application in any container, the environment is not set.


So, I guess my question is expanded a bit.  Does Axis support streaming 
and if so, are there particular containers that support Axis's support 
for streaming?


If there are other factors/constraints that I'm missing let me know. 
Thanks.


Chad La Joie wrote:
I'm working on a project that may (read: almost certainly will) require 
very large binary blobs (many GBs) to be transported.  The specification 
I'm working with requires at least SOAP over HTTP support and allows for 
the use of MTOM.


My question is, does Axis 2 (client and service side) support true 
end-to-end streaming.  By this I mean can a service stream data from 
disk, over HTTP to the client and provide a stream on the client side 
which can be dumped direct to disk?


I had read the MTOM guide [1] and while I see data handlers and sources 
being used it doesn't say whether Axis 2 is architected in such a way 
that the data is never buffered in memory.


Thanks for the help.


[1] http://ws.apache.org/axis2/1_0/mtom-guide.html


--
Chad La Joie 2052-C Harris Bldg
OIS-Middleware   202.687.0124

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



Re: Please suggest a some Best Tool for Web Services Load Testing.

2007-08-03 Thread omatzura

Hi,

Ole from the soapUI team here.. are you getting any errors in the soapUI
Log? Maybe you need to import the services' client certificate to your local
keystore and/or specify it in the SSL-Settings? 

regards!

/Ole
eviware.com



Srinivasa Rao Kusampudi wrote:
> 
> Hi,
> 
> In SOAPUI, I am not able to see any resposne (0 bytes). We are using HTTPS
> protocal, does it making any difference?
> I am able to see th response when I use Amazon WSDL. Any solution?
> 
> Thanks,
> Srini
> 
> 
> On 8/3/07, Srinivasa Rao Kusampudi <[EMAIL PROTECTED]> wrote:
>>
>> Thanks Niraj!
>>
>> On 8/3/07, Nath, Niraj <[EMAIL PROTECTED]> wrote:
>> >
>> >  Check if  SOAPUI works for you
>> >
>> >
>> >
>> > Regards
>> >
>> >
>> >
>> > Niraj Nath
>> >
>> > CNSI
>> >
>> > Ph - 240 399-2104 (O)
>> >  --
>> >
>> > *From:* Srinivasa Rao Kusampudi [mailto: [EMAIL PROTECTED]
>> > *Sent:* Friday, August 03, 2007 3:41 PM
>> > *To:* axis-user@ws.apache.org
>> > *Subject:* Please suggest a some Best Tool for Web Services Load
>> > Testing.
>> >
>> >
>> >
>> > Hi,
>> >
>> >
>> >
>> > Please suggest a Best Tool for Web Services Load Testing. We are having
>> > problem
>> >
>> > with JMeter as it is HTTPS. Which tool is the best one?
>> >
>> >
>> >
>> > Thanks,
>> >
>> > Srini
>> >
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Please-suggest-a-some-Best-Tool-for-Web-Services-Load-Testing.-tf4214402.html#a11991948
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Please suggest a some Best Tool for Web Services Load Testing.

2007-08-03 Thread Srinivasa Rao Kusampudi
Hi,

In SOAPUI, I am not able to see any resposne (0 bytes). We are using HTTPS
protocal, does it making any difference?
I am able to see th response when I use Amazon WSDL. Any solution?

Thanks,
Srini


On 8/3/07, Srinivasa Rao Kusampudi <[EMAIL PROTECTED]> wrote:
>
> Thanks Niraj!
>
> On 8/3/07, Nath, Niraj <[EMAIL PROTECTED]> wrote:
> >
> >  Check if  SOAPUI works for you
> >
> >
> >
> > Regards
> >
> >
> >
> > Niraj Nath
> >
> > CNSI
> >
> > Ph - 240 399-2104 (O)
> >  --
> >
> > *From:* Srinivasa Rao Kusampudi [mailto: [EMAIL PROTECTED]
> > *Sent:* Friday, August 03, 2007 3:41 PM
> > *To:* axis-user@ws.apache.org
> > *Subject:* Please suggest a some Best Tool for Web Services Load
> > Testing.
> >
> >
> >
> > Hi,
> >
> >
> >
> > Please suggest a Best Tool for Web Services Load Testing. We are having
> > problem
> >
> > with JMeter as it is HTTPS. Which tool is the best one?
> >
> >
> >
> > Thanks,
> >
> > Srini
> >
>
>


End-to-End Streaming Support

2007-08-03 Thread Chad La Joie
I'm working on a project that may (read: almost certainly will) require 
very large binary blobs (many GBs) to be transported.  The specification 
I'm working with requires at least SOAP over HTTP support and allows for 
the use of MTOM.


My question is, does Axis 2 (client and service side) support true 
end-to-end streaming.  By this I mean can a service stream data from 
disk, over HTTP to the client and provide a stream on the client side 
which can be dumped direct to disk?


I had read the MTOM guide [1] and while I see data handlers and sources 
being used it doesn't say whether Axis 2 is architected in such a way 
that the data is never buffered in memory.


Thanks for the help.


[1] http://ws.apache.org/axis2/1_0/mtom-guide.html
--
Chad La Joie 2052-C Harris Bldg
OIS-Middleware   202.687.0124

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



RE: Axis and wss4j debugging

2007-08-03 Thread Hillel Seltzer
>From the looks of things, the service is not even trying
to actually connect across the network.  I set my transparent
firewall to log any connection attempts between the machine
I am using and the remote service address, and it does not
see any connections when I run the client program.

The debug log settings finally worked.  I was having trouble
getting java to see the modified log4j.properties file, but
it is working now.  From the logs, I cannot see where it is
trying to use wss4j or insert the SOAP security header.  
Here is the debug log from trying to use the Ohio Tax Finder service:

- getBundle(org.apache.axis,org.apache.axis.i18n,resource,null,...)
- getBundle(org.apache.axis,org.apache.axis.i18n,resource,null,...)
- loadBundle: Ignoring MissingResourceException: Can't find bundle for base
name org.apache.axis.resource, locale en
- loadBundle: Ignoring MissingResourceException: Can't find bundle for base
name org.apache.axis.resource, locale en
- Created org.apache.axis.i18n.resource, linked to parent null
- Created org.apache.axis.i18n.resource, linked to parent null
- getBundle(org.apache.axis,org.apache.axis.utils,resource,null,...)
- getBundle(org.apache.axis,org.apache.axis.utils,resource,null,...)
- loadBundle: Ignoring MissingResourceException: Can't find bundle for base
name org.apache.axis.utils.resource, locale en
- loadBundle: Ignoring MissingResourceException: Can't find bundle for base
name org.apache.axis.utils.resource, locale en
- loadBundle: Ignoring MissingResourceException: Can't find bundle for base
name org.apache.axis.resource, locale en
- loadBundle: Ignoring MissingResourceException: Can't find bundle for base
name org.apache.axis.resource, locale en
- Root package not found, cross link to org.apache.axis.i18n.resource
- Root package not found, cross link to org.apache.axis.i18n.resource
- Root package not found, cross link to org.apache.axis.i18n.resource
- Root package not found, cross link to org.apache.axis.i18n.resource
- org.apache.axis.i18n.resource::handleGetObject(engineConfigLoadFactory)
- org.apache.axis.i18n.resource::handleGetObject(engineConfigLoadFactory)
- Factory org.apache.axis.configuration.EngineConfigurationFactoryServlet
Ignored: unable to load/resolve class.
- Factory org.apache.axis.configuration.EngineConfigurationFactoryServlet
Ignored: unable to load/resolve class.
- org.apache.axis.i18n.resource::handleGetObject(engineFactory)
- org.apache.axis.i18n.resource::handleGetObject(engineFactory)
- Got EngineFactory:
org.apache.axis.configuration.EngineConfigurationFactoryDefault
- Got EngineFactory:
org.apache.axis.configuration.EngineConfigurationFactoryDefault
- Enter: AxisEngine::init
- Enter: AxisEngine::init
- org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
- org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
- Attachment support is enabled?  true
- Attachment support is enabled?  true
- Enter/Exit: JAFDataHandlerDeserializerFactory(class java.lang.String,
{http://xml.apache.org/xml-soap}PlainText)
- Enter/Exit: JAFDataHandlerDeserializerFactory(class java.lang.String,
{http://xml.apache.org/xml-soap}PlainText)
- org.apache.axis.i18n.resource::handleGetObject(oddDigits00)
- org.apache.axis.i18n.resource::handleGetObject(oddDigits00)
- org.apache.axis.i18n.resource::handleGetObject(badChars01)
- org.apache.axis.i18n.resource::handleGetObject(badChars01)
- Enter/Exit: JAFDataHandlerDeserializerFactory(class java.awt.Image,
{http://xml.apache.org/xml-soap}Image)
- Enter/Exit: JAFDataHandlerDeserializerFactory(class java.awt.Image,
{http://xml.apache.org/xml-soap}Image)
- Enter/Exit: JAFDataHandlerDeserializerFactory(class
javax.mail.internet.MimeMultipart, {http://xml.apache.org/xml-soap}Multipart)
- Enter/Exit: JAFDataHandlerDeserializerFactory(class
javax.mail.internet.MimeMultipart, {http://xml.apache.org/xml-soap}Multipart)
- Enter/Exit: JAFDataHandlerDeserializerFactory(interface
javax.xml.transform.Source, {http://xml.apache.org/xml-soap}Source)
- Enter/Exit: JAFDataHandlerDeserializerFactory(interface
javax.xml.transform.Source, {http://xml.apache.org/xml-soap}Source)
- Enter/Exit: JAFDataHandlerDeserializerFactory(class
org.apache.axis.attachments.OctetStream,
{http://xml.apache.org/xml-soap}octet-stream)
- Enter/Exit: JAFDataHandlerDeserializerFactory(class
org.apache.axis.attachments.OctetStream,
{http://xml.apache.org/xml-soap}octet-stream)
- Enter/Exit: JAFDataHandlerDeserializerFactory()
- Enter/Exit: JAFDataHandlerDeserializerFactory()
- Exit: AxisEngine::init
- Exit: AxisEngine::init
- @3f9913c0 added parameter >name:  
{https://thefinder.tax.ohio.gov/OHFinderService/}AddressLine
typeEntry:  null
mode:   IN
position:   0
isReturn:   false
typeQName:  {http://www.w3.org/2001/XMLSchema}string
javaType:   class java.lang.String
inHeader:   false
outHeader:  false
@21bcd3c0name:  
{https://thefinder.tax.ohio.gov/OHFinderService/}AddressLine
typeEntry:  null
mode:   IN
position:   0
isReturn:   fa

listServices do not show all services deployed under folder\axis2\WEB-INF\services

2007-08-03 Thread Du, David (US SSA)
Hi, all.

 

I got axis2-1.2 working in my Netscape Enterprise Server with Linux
environment, but there are still some minor issues, one of them is that:

 

After I copied my StockQuoteService.aar file into tomcat 4.1.36 under
folder \axis2\WEB-INF\services, from this URL:
http://localhost:8080/axis2/services/listServices, I can see all the
services including Version and StockQuoteService, I did the same thing
to NES6.2, I could not see the StockQuoteService from the listServices
URL, for NES, only I manually added StockQuoteService.aar to
services.LIST file under \axis2\WEB-INF\services, then I can see the
StockQuoteService and everything works normally. But I checked the
result on tomcat, nothing is added to services.LIST file, but it still
lists all the services.

 

Anybody can explain what happened? Is it supposed to be added manually
or automatically to the services.list file, or it has nothing to do with
it?

 

 

Thanks in advance.

 

David



RE: Axis and wss4j debugging

2007-08-03 Thread Walker, Jeff
I don't know how to make Axis dump to stdout.

I had a similar issue a few weeks back. I was debugging Http headers on
the clientside.
I ended up subclassing HttpSender and making sure my new Sender class
got called by editing the client-config.wsdd file to pick up my class in
the transport tag. This allowed me to dump out all http headers in the
outgoing response. (You get access to the whole request as a string, if
I remember correctly). I had to add only a few lines here and there, but
it was a few hours determining the best places in my new subclass, then
it was 2 hours of painful debugging after that to determine how to make
Axis pick up my Sender instead of the expected HttpSender. But it did
work.

I still think tcpmon or SoapMonitor are your best bet, on the
clientside. Especially, since all you want to do is look at the request
envelope going out and the response coming back.
-jeff



-Original Message-
From: Hillel Seltzer [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 03, 2007 4:19 PM
To: axis-user@ws.apache.org
Subject: RE: Axis and wss4j debugging

Tried that, but nothing connected to tcpmon.

Is there anything that would force axis to dump to stdout
before attempting the remote connection?

Thanks.
---Hillel

On Fri, 3 Aug 2007 15:48:18 -0400, Walker, Jeff wrote
> If I remember correctly,
> edit the XXX_ServiceLocator.java class that was generated for you.
> In it there is a hardcoded URL (created from the WSDL you supplied).
> Edit the port number in the class and make it like, 1234. Then put
that
> port number into tcpmon's "Listen Port #" field and copy the IP
address
> from the WSDL and put that into Target Host name, in tcpmon.
> I might have screwed up the steps slightly, but it's something like
that
> :)
> -jeff
> 

-
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]



.NET Service with MTOM enabled operation

2007-08-03 Thread Shalab Goel
I have a service which exposes one of the operations with MTOM enabled 
response. Looking at the .NET Service WSDL 

I see the following:

 



 

  



  

 





 

   

 



 

How does Axis client make the determination that this is MTOM encoded data from 
server end?

 

I tried setting ENABLE_MTOM property in my client stub constructor code 
(generated using adb) as follows:

 

   org.apache.axis2.client.Options opts = _serviceClient.getOptions();

   opts.setProperty(Constants.Configuration.ENABLE_MTOM, 
Constants.VALUE_TRUE);

   _serviceClient.setOptions(opts);

 

but that does not solve the problem. Any suggestions on what I can try?

I get the following SOAP Fault, that the server was unreachable.

 



   soap:Server

   Server unavailable, please try later

   http://hola5/MyService/Service.asmx



 

 

If I remove Constants.Configuration.ENABLE_MTOM property, and try to run the 
client, I see base encoded string in TCPMON, something like:

 

   

   PD94bWwgdmVyc2lvbj0iMS4wIiBlbm. 



 



RE: Axis and wss4j debugging

2007-08-03 Thread Hillel Seltzer
Tried that, but nothing connected to tcpmon.

Is there anything that would force axis to dump to stdout
before attempting the remote connection?

Thanks.
---Hillel

On Fri, 3 Aug 2007 15:48:18 -0400, Walker, Jeff wrote
> If I remember correctly,
> edit the XXX_ServiceLocator.java class that was generated for you.
> In it there is a hardcoded URL (created from the WSDL you supplied).
> Edit the port number in the class and make it like, 1234. Then put that
> port number into tcpmon's "Listen Port #" field and copy the IP address
> from the WSDL and put that into Target Host name, in tcpmon.
> I might have screwed up the steps slightly, but it's something like that
> :)
> -jeff
> 

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



Re: Please suggest a some Best Tool for Web Services Load Testing.

2007-08-03 Thread Srinivasa Rao Kusampudi
Thanks Niraj!

On 8/3/07, Nath, Niraj <[EMAIL PROTECTED]> wrote:
>
>  Check if  SOAPUI works for you
>
>
>
> Regards
>
>
>
> Niraj Nath
>
> CNSI
>
> Ph - 240 399-2104 (O)
>  --
>
> *From:* Srinivasa Rao Kusampudi [mailto:[EMAIL PROTECTED]
> *Sent:* Friday, August 03, 2007 3:41 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Please suggest a some Best Tool for Web Services Load Testing.
>
>
>
> Hi,
>
>
>
> Please suggest a Best Tool for Web Services Load Testing. We are having
> problem
>
> with JMeter as it is HTTPS. Which tool is the best one?
>
>
>
> Thanks,
>
> Srini
>


RE: Transport Level Session Management -- is this .NET interop

2007-08-03 Thread Shalab Goel

Hi Deepal,

Thanks a lot. I am hoping this will solve the problem, but none of the 
Constants class in Axis2-1.2 JavaDocs reference constant string CUSTOM_COOKIE_ID
Is this something new for 1.3?


Thanks
Shalab

-Original Message-
From: Deepal jayasinghe [mailto:[EMAIL PROTECTED] =

Sent: Thursday, August 02, 2007 9:24 PM
To: axis-user@ws.apache.org
Subject: Re: Transport Level Session Management -- is this .NET interop Iss=
ue?

Hi Shalab ,
>
> Hello,
>
> I have a question about session management.
>
> My Axis client is a consumer of .NET service, I am noticing the
> following interoperability issue. The Service is returning Cookie as
>
> *Set-Cookie: ASP.NET_SessionId=3Dcml1mh45lc3yzf55flravg45; path=3D/; Http=
Only*
>
According the the servlet specification it should send the JSESSIONID ,
anyway Axis2 has a way to deal with this as well. So when you send the
request set the following property into the option.
 Options options =3D new Options();
options.setProperty(Constants.CUSTOM_COOKIE_ID,"ASP.NET_SessionId")=
;

That will definitely solve the issue. You have to use Axis2 1.3 RC1 or
RC2 for this case.

Thanks
Deepal

> And this is not getting processed by Axis client.
>
> I have also created a test Axis service where I have enabled transport
> level sessions. The Cookie gets set here as:
>
> *Set-Cookie: JSESSIONID=3D0E2ACECB8CF2E5E91F55B5F8E6CEA150; Path=3D/axis2=
*
>
> In this case, Axis client is able to return back the sessionid to the
> Axis Service.
>
> Appreciate any input on how to work around this issue.
>
> Does Axis provide any API to inspect the incoming Cookies, and set
> outgoing Cookies explicitly?
>
> Thanks
>
> Shalab
>
>
>


-
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: Please suggest a some Best Tool for Web Services Load Testing.

2007-08-03 Thread Nath, Niraj
Check if  SOAPUI works for you

 

Regards

 

Niraj Nath

CNSI

Ph - 240 399-2104 (O)



From: Srinivasa Rao Kusampudi [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 03, 2007 3:41 PM
To: axis-user@ws.apache.org
Subject: Please suggest a some Best Tool for Web Services Load Testing.

 

Hi,

 

Please suggest a Best Tool for Web Services Load Testing. We are having
problem

with JMeter as it is HTTPS. Which tool is the best one?

 

Thanks,

Srini



Re: Please suggest a some Best Tool for Web Services Load Testing.

2007-08-03 Thread Ben Tomasini
Try soapUI.  It is excellent.

http://soapui.org

You can create a load test in minutes.

You will need to purchase the full version if you want to provide a set of
data for the tests.  Otherwise the values are static.

Ben

On 8/3/07, Srinivasa Rao Kusampudi <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Please suggest a Best Tool for Web Services Load Testing. We are having
> problem
> with JMeter as it is HTTPS. Which tool is the best one?
>
> Thanks,
> Srini
>


RE: axis2 and Google adwords WS: getting "org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported Media Type"

2007-08-03 Thread Martin Holzner
Do you have any update on this?
To make sure, I redid all my steps with the exact same result. 

Thank you,

Martin

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 01, 2007 11:13 PM
To: axis-user@ws.apache.org
Subject: Re: axis2 and Google adwords WS: getting
"org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported
Media Type"

Amila,

Can you please look at this regression?

thanks,
dims

On 8/1/07, Martin Holzner <[EMAIL PROTECTED]> wrote:
> Yes, I deleted all the previous classes, resource and src, and
recreated
> everything from scratch.
>
>
>
> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 01, 2007 6:17 PM
> To: axis-user@ws.apache.org
> Subject: Re: axis2 and Google adwords WS: getting
> "org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported
> Media Type"
>
> Martin,
>
> Did you regenerate the stubs? using the wsdl2java from 1.3?
>
> -- dims
>
> On 8/1/07, Martin Holzner <[EMAIL PROTECTED]> wrote:
> > With the latest 1.3, I get:
> >
> > Exception in thread "main" java.lang.NullPointerException
> > at
> >
>
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:
> > 194)
> > at
> >
>
testpack.AccountServiceStub.getAccountInfo(AccountServiceStub.java:278)
> > at Main.main(Main.java:89)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
> > at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> > a:39)
> > at
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> > Impl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at
> > com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
> >
> > (after identical steps)
> >
> > -Martin
> >
> > -Original Message-
> > From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 01, 2007 2:54 PM
> > To: Martin Holzner
> > Cc: axis-user@ws.apache.org
> > Subject: Re: axis2 and Google adwords WS: getting
> > "org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported
> > Media Type"
> >
> > Can you please try the 1.3-SNAPSHOT?
> >
> > http://people.apache.org/dist/axis2/nightly/
> >
> > thanks,
> > dims
> >
> > On 8/1/07, Martin Holzner <[EMAIL PROTECTED]> wrote:
> > > Thanks for the quick reply!
> > >
> > > I tried
> > >   AccountServiceStub accountService = new
AccountServiceStub();
> > >
> > >
> >
>
accountService._getServiceClient().getOptions().setProperty(org.apache.a
> > > xis2.Constants.Configuration.CONTENT_TYPE, "text/xml");
> > >   GetAccountInfoResponseDocument resDoc =
> > > accountService.getAccountInfo(getAccountInfoDoc,
> > >   userAgent,
> > >   password,
> > >   email,
> > >   clientEmail,
> > >   clientCustomerId,
> > >   developerToken,
> > >   applicationToken);
> > >
> > >
> > > with no apparent change. The log still shows:
> > >
> > > 2007/08/01 14:40:42:168 EDT [DEBUG] header - >> "POST
> > > /api/adwords/v10/AccountService HTTP/1.1[\r][\n]"
> > > 2007/08/01 14:40:42:168 EDT [DEBUG] HttpMethodBase - Adding Host
> > request
> > > header
> > > 2007/08/01 14:40:42:184 EDT [DEBUG] header - >> "Content-Type:
> > text/xml;
> > > charset=UTF-8[\r][\n]"
> > > 2007/08/01 14:40:42:184 EDT [DEBUG] header - >> "SOAPAction:
> > ""[\r][\n]"
> > > 2007/08/01 14:40:42:184 EDT [DEBUG] header - >> "User-Agent:
> > > Axis2[\r][\n]"
> > > 2007/08/01 14:40:42:184 EDT [DEBUG] header - >> "Host:
> > > adwords.google.com[\r][\n]"
> > > 2007/08/01 14:40:42:184 EDT [DEBUG] header - >>
"Transfer-Encoding:
> > > chunked[\r][\n]"
> > > 2007/08/01 14:40:42:184 EDT [DEBUG] header - >> "[\r][\n]"
> > > 2007/08/01 14:40:42:481 EDT [DEBUG] content - >> "380[\r][\n]"
> > > 2007/08/01 14:40:42:481 EDT [DEBUG] content - >> " version='1.0'
> > > encoding='UTF-8'?> > >
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> > > r> > >
> >
>
xmlns="https://adwords.google.com/api/adwords/v10";>Foo > > ord
> > >
> >
>
xmlns="https://adwords.google.com/api/adwords/v10";>pwd > >
> >
>
xmlns="https://adwords.google.com/api/adwords/v10";>[EMAIL PROTECTED]<
> > > clientEmail
> > >
> >
>
xmlns="https://adwords.google.com/api/adwords/v10";>[EMAIL 
PROTECTED]
> > >  > >
> >
>
xmlns="https://adwords.google.com/api/adwords/v10";>abc > > > > >
> >
>
xmlns="https://adwords.google.com/api/adwords/v10";>[EMAIL PROTECTED] > > veloperToken> > >
> >
>
xmlns="https://adwords.google.com/api/adwords/v10";>tok > > > > > xmlns="https://adwords.google.com/api/adwords/v10";
> > > />"
> > > 2007/08/01 14:40:42:481 EDT [DEBUG] content - >> "[\r][\n]"
> > > 2007/08/01 14:40:42:481 EDT [DEBUG] content - >> "0"
> > > 2007/08/01 14:40:42:481 EDT [DEBUG] content - >> "[\r][\n]"
> > > 2007/08/01 14:40:42:481 EDT [DEBUG] content - >> "[\r][\n]"
> > > 2007/08/01 14:40:42:481 EDT [DEBUG] EntityEncl

RE: Axis and wss4j debugging

2007-08-03 Thread Walker, Jeff
If I remember correctly,
edit the XXX_ServiceLocator.java class that was generated for you.
In it there is a hardcoded URL (created from the WSDL you supplied).
Edit the port number in the class and make it like, 1234. Then put that
port number into tcpmon's "Listen Port #" field and copy the IP address
from the WSDL and put that into Target Host name, in tcpmon.
I might have screwed up the steps slightly, but it's something like that
:)
-jeff


-Original Message-
From: Hillel Seltzer [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 03, 2007 3:40 PM
To: axis-user@ws.apache.org
Subject: RE: Axis and wss4j debugging

How do you get the web service based on a WSDL to a remote server
to point at the tcpmon monitor instead?


On Fri, 3 Aug 2007 15:33:45 -0400, Walker, Jeff wrote
> Yeah,
> Try tcpmon to see the actual request and response coming back.
> Run this:
> %>java org.apache.axis.utils.tcpmon
> I use Axis 1.3, but I'm fairly sure Axis 1.4 has the tcpmon Java 
> class in it as well. -jeff
> 

-
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]



Please suggest a some Best Tool for Web Services Load Testing.

2007-08-03 Thread Srinivasa Rao Kusampudi
Hi,

Please suggest a Best Tool for Web Services Load Testing. We are having
problem
with JMeter as it is HTTPS. Which tool is the best one?

Thanks,
Srini


RE: Axis and wss4j debugging

2007-08-03 Thread Hillel Seltzer
How do you get the web service based on a WSDL to a remote server
to point at the tcpmon monitor instead?


On Fri, 3 Aug 2007 15:33:45 -0400, Walker, Jeff wrote
> Yeah,
> Try tcpmon to see the actual request and response coming back.
> Run this:
> %>java org.apache.axis.utils.tcpmon
> I use Axis 1.3, but I'm fairly sure Axis 1.4 has the tcpmon Java 
> class in it as well. -jeff
> 

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



Re: ClassNotFoundException at java2wsdl

2007-08-03 Thread christiano
Done, see https://issues.apache.org/jira/browse/AXIS2-3069. I've set
'Blocker' priority, because in my understanding it blocks the usage of the
maven plugin altogether.
Best regards,
Chris

Davanum Srinivas wrote:
> Christian,
>
> Can you please zip up the whole project and create a JIRA bug report?
>
> thanks,
> dims
>
> On 8/3/07, Christian Oloff <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> while trying to get java2wsdl as part of a small maven2 project up and
>> running, I got stuck with the following issues. (Please note that I am
>> quite new to axis.)
>>
>> 1) The links to download axis2-java2wsdl-maven-plugin-1.2.jar on
>> http://ws.apache.org/axis2/tools/index.html point to nothing right now,
>> even the backup mirror answers '404'. Can someone take care of this (or
>> am I doing something wrong here)?
>>
>> 2) When not trying to download but let maven sort out how to get the
>> plugin, I get a ClassNotFoundException about the class implementing the
>> service.
>>
>> See below for my configuration details.
>>
>> Any help appreciated!
>>
>> Best regards,
>> Chris
>>
>> 
>>
>> My pom.xml contains the following:
>> 
>> org.apache.axis2.maven2
>> axis2-java2wsdl-maven-plugin
>> 
>>   pojoservice.MyService
>> 
>> 
>>   
>> 
>>   java2wsdl
>> 
>>   
>> 
>> 
>>
>> The full mvn output when getting the ClassNotFoundException looks as
>> follows:
>> [EMAIL PROTECTED]:~/myservice$ mvn -o package
>> [INFO]
>> NOTE: Maven is executing in offline mode. Any artifacts not already in
>> your local
>> repository will be inaccessible.
>>
>> [INFO] Scanning for projects...
>> [INFO]
>> >>
>>  [INFO] Building Unnamed - chris-test:wesemo-pojoservice:jar:0.0.1-SNAPSHOT
>> [INFO]task-segment: [package]
>> [INFO]
>> >>
>>  [INFO] [axis2-java2wsdl:java2wsdl {execution: default}]
>> java.lang.Exception: java.lang.ClassNotFoundException:
>> pojoservice.MyService>> at
>> org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:58)>>
>>  at
>> org.apache.axis2.maven2.java2wsdl.Java2WSDLMojo.execute(Java2WSDLMojo.java:146)>>
>>  at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)>>
>>  at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)>>
>>  at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)>>
>>  at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)>>
>>  at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)>>
>>  at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)>>
>>  at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)>>
>>  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)>>
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)>>
>>  at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by: java.lang.ClassNotFoundException: pojoservice.MyService
>> 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
>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)>>
>>  at
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)>>
>>  at
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)>>
>>  at
>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)>>
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> at java.lang.Cla

RE: Axis and wss4j debugging

2007-08-03 Thread Walker, Jeff
Yeah,
Try tcpmon to see the actual request and response coming back.
Run this:
%>java org.apache.axis.utils.tcpmon
I use Axis 1.3, but I'm fairly sure Axis 1.4 has the tcpmon Java class
in it as well.
-jeff
 

-Original Message-
From: Hillel Seltzer [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 03, 2007 3:19 PM
To: axis-user@ws.apache.org
Subject: Axis and wss4j debugging

Now I am setting up a client for the Ohio Tax Finder Service
using Axis 1.4 and wss4j.  There are no errors thrown for the 
connection, but every time I try to use a method on the response 
as defined by the generated classes from the WSDL2Java utility, 
there is a NullPointerException error.

I tried changing the password in the callback and then got the
same result.  Something tells me that the communication still
is not right.  Is there some way to get axis to output the
raw XML or full HTTP message before it sends it and to see
the raw response?  I am working from the Unix command line
here, not with an IDE.

Thanks.
---Hillel

-
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]



Axis and wss4j debugging

2007-08-03 Thread Hillel Seltzer
Now I am setting up a client for the Ohio Tax Finder Service
using Axis 1.4 and wss4j.  There are no errors thrown for the 
connection, but every time I try to use a method on the response 
as defined by the generated classes from the WSDL2Java utility, 
there is a NullPointerException error.

I tried changing the password in the callback and then got the
same result.  Something tells me that the communication still
is not right.  Is there some way to get axis to output the
raw XML or full HTTP message before it sends it and to see
the raw response?  I am working from the Unix command line
here, not with an IDE.

Thanks.
---Hillel

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



[Axis2] How to use xml version 1.1 with Axis2?

2007-08-03 Thread Sathija Pavuluri


Hi,

I'd like my Axis2 service requests and responses to use xml version 1.1 as 
opposed to the default 1.0 that it is using now.
Is there any configuration setting that lets me specify which xml version to 
use?

Thanks,
Sathija.



  Be a better Heartthrob. Get better relationship answers from someone who 
knows.
Yahoo! Answers - Check it out. 






   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 

classpath problem

2007-08-03 Thread New AxisU
Hi all,

I am using axis2 1.3 RC2 (maybe I'll try RC3 while waiting for an answer)
... I dowloaded xmlbeans-2.3.0 and I put the following jars into NetBeans
"compile with these jars" and "run with these jars" lists.  Am I using the
right version of xmlbeans?  When I try to run my client I get "Cannot load
SchemaTypeSystem. Unable to load class with name
schemaorg_apache_xmlbeans.system.sD1970CAD33749EE685B296B2397B2093.TypeSystemHolder"


I am pretty confused about this architecturally (?) because that looks like
some kind of generated file but it isn't in with any of th e source made by
Axis2 from WSDL2Java.

So what am I doing wrong?  Am I missing something that must also be on the
classpath?

--
error output
--

init:
deps-jar:
Deleted 1 out of date files in 1 seconds
Compiling 1 source file to D:\My
Documents\ABC\Data\NetBeans\Axis2RandQuote3\build\classes
compile:
run:
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.abc.quote.GetQuoteResponseDocument$Factory.newInstance(
GetQuoteResponseDocument.java:112)
at org.abc.quote.client.RandomQuoteClient.getQuote(
RandomQuoteClient.java:26)
at org.abc.quote.client.RandomQuoteClient.main(
RandomQuoteClient.java:40)
Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable
to load class with name
schemaorg_apache_xmlbeans.system.sD1970CAD33749EE685B296B2397B2093.TypeSystemHolder.
Make sure the generated binary files are on the classpath.
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(
XmlBeans.java:783)
at org.abc.quote.GetQuoteResponseDocument.(
GetQuoteResponseDocument.java:19)
... 3 more
Caused by: java.lang.ClassNotFoundException:
schemaorg_apache_xmlbeans.system.sD1970CAD33749EE685B296B2397B2093.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:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(
XmlBeans.java:769)
... 4 more
Java Result: 1
BUILD SUCCESSFUL (total time: 3 seconds)

--
jars in classpath
--
 jsr173_1.0_api.jar
 resolver.jar
 xbean.jar
 xbean_xpath.jar
 xmlbeans-qname.jar
 xmlpublic.jar

 activation-1.1.jar
 activemq-core-4.1.1.jar
 annogen-0.1.0.jar
 axiom-api-SNAPSHOT.jar
 axiom-dom-SNAPSHOT.jar
 axiom-impl-SNAPSHOT.jar
 axis2-adb-1.3-RC2.jar
 axis2-adb-codegen-1.3-RC2.jar
 axis2-codegen-1.3-RC2.jar
 axis2-fastinfoset-1.3-RC2.jar
 axis2-java2wsdl-1.3-RC2.jar
 axis2-jaxbri-1.3-RC2.jar
 axis2-jaxws-1.3-RC2.jar
 axis2-jaxws-api-1.3-RC2.jar
 axis2-jibx-1.3-RC2.jar
 axis2-json-1.3-RC2.jar
 axis2-kernel-1.3-RC2.jar
 axis2-metadata-1.3-RC2.jar
 axis2-saaj-1.3-RC2.jar
 axis2-saaj-api-1.3-RC2.jar
 axis2-spring-1.3-RC2.jar
 axis2-xmlbeans-1.3-RC2.jar
 backport-util-concurrent-2.2.jar
 commons-codec-1.3.jar
 commons-fileupload-1.1.1.jar
 commons-httpclient-3.0.1.jar
 commons-io-1.1.jar
 commons-logging-1.1.jar
 geronimo-jms_1.1_spec-1.1.jar
 httpcore-4.0-alpha5.jar
 httpcore-nio-4.0-alpha5.jar
 httpcore-niossl-4.0-alpha5.jar
 jalopy-1.5rc3.jar
 jaxb-api-2.0.jar
 jaxb-impl-2.0.5.jar
 jaxb-xjc-2.0.5.jar
 jaxen-1.1.1.jar
 jettison-1.0-RC1.jar
 jibx-bind-1.1.5.jar
 jibx-run-1.1.5.jar
 log4j-1.2.13.jar
 mail-1.4.jar
 neethi-SNAPSHOT.jar
 servlet-api-2.3.jar
 stax-api-1.0.1.jar
 woden-1.0-incubating-SNAPSHOT.jar
 wsdl4j-1.6.2.jar
 wstx-asl-3.2.1.jar
 xalan-2.7.0.jar
 xbean-2.2.0.jar
 xercesImpl-2.6.2.jar
 xml-apis-1.3.03.jar
 XmlSchema-SNAPSHOT.jar


Axis : passing an object into object via Axis client and services

2007-08-03 Thread Rupal Soni
Hi,
I am pretty much new to Axis. As a response of my webservices to the 
client, I have to return a java Object which has another java Object as its 
setter property. How do I do this using Axis 1.0?
   Please advice.
   

   
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.

RE: Newbie question about using axis as webservice client

2007-08-03 Thread Merritt, Norris
Outstanding, thanks, I'll try it.

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 03, 2007 10:36 AM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: Re: Newbie question about using axis as webservice client

Norris,

FYI, We've added the following option in Axis2-1.3 RC3. would love
your input on if that is enough for your use case.

-Eosv (for ADB) - off strict validation.

thanks,
dims

On 8/3/07, Merritt, Norris <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Axis2 adb style clients can be made tolerant of new elements added to
a web
> service by modifying ADBBeanTemplate.xsl contained in
> axis2-adb-codegen-1.2.jar.
>
> This xsl is used to generate the Java code which pull-parses responses
from
> the web service. This generated code is what throws exceptions when it
> encounters unrecognized elements. It is fairly trivial to modify the
xsl to
> generate code which is tolerant of newly-added elements (i.e. just
silently
> consumes and discards them) instead of crashing. I have done this. To
some
> no doubt this is heresy, to others (myself included) it is worthwhile
> because it can be used to achieve looser coupling between the client
and
> service, and that is good. There are many business use cases where a
service
> is extended with some new elements which are not needed by existing
clients.
> The notion that every previously deployed client should have to be
> recompiled and redeployed just because the service was extended is
broken,
> IMHO.
>
>
>
>  
>
>
> From: Lahiru Sandakith [mailto:[EMAIL PROTECTED]
>  Sent: Friday, August 03, 2007 4:13 AM
>  To: axis-user@ws.apache.org
>  Subject: Re: Newbie question about using axis as webservice client
>
>
>
> Hi DelGurth,
>
>  As you say the webservice changed then the wsdl also should be
different,
> so IMO there is no option other than regenerating the client using
wsdl2java
> tool (via Eclipse), because its an interface level change.
>
>  Thanks
>
>  Lahiru Sandakith
>
>
> On 8/3/07, DelGurth <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>  I recently stated using axis as my web service client. I've used the
>  wsdl2java tool (via Eclipse) to generate the client code based on the
>  wsdl file of the service.
>
>  Now the web service changed, it contains a new field, and my client
>  application doesn't work anymore. Is there a way to make my client
>  ignore fields that are unknown to it?
>
>  I tried finding an answer in the client-side axis documentation, but
I
>  can't find it, unfortunately. That's why I end up here.
>
>  Regards,
>  Wessel van Norel
>
> -
>  To unsubscribe, e-mail:
> [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>  --
>  Thanks
>  Lahiru Sandakith
>
>  http://sandakith.wordpress.com/
>  GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01
9A0F


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

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


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



Re: Error in BeanSerializer

2007-08-03 Thread albert quinn
 Sorry, but I can't help you if you don't give more information. Try
to give all the information about your problem, perhaps i won't be
able to help you because I'm only a newbie, but perhaps anybody will.

2007/8/2, Ashish Kulkarni <[EMAIL PROTECTED]>:
>
> Hi
> But how do i find which class, i have this complex java code, created from a
> complex XSD (Style sheet)
> this does not show which class has this issue
>
> Ashish
>
> On 8/2/07, albert quinn <[EMAIL PROTECTED]> wrote:
> >
> >   Hi Ashish !!! :
> >
> >   I'm a newbie in the Axis 2 world, but i've faced a problem similar
> > to yours. Perhaps when you send the response from the WebService,
> > you're returning an object from a class which it's not a bean class.
> > Add getters and setters methods to that class and a no parameters
> > constructor. I hope it helps!!!.
> >
> > 2007/8/2, Ashish Kulkarni <[EMAIL PROTECTED]>:
> > > Hi
> > > I am getting the following error when i am trying to send a response
> from
> > > Webservice,
> > >
> > > what does this mean
> > >
> > >
> > > 2007-08-02 14:44:37,038 ERROR [http-4080-Processor25] ser.BeanSerializer
> > > (BeanSerializer.java :274) - Exception:
> > > java.lang.NullPointerException
> > > at
> > >
> org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:265)
> > > at
> > >
> org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java
> > > :1502)
> > > at
> > >
> org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:978)
> > > at
> > >
> org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:732)
> > > at
> org.apache.axis.encoding.ser.BeanSerializer.serialize
> > > (BeanSerializer.java:230)
> > > at
> > >
> org.apache.axis.encoding.SerializationContext.serializeActual
> (SerializationContext.java:1502)
> > > at
> > >
> org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:978)
> > > at
> > >
> org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java
> :732)
> > > at
> > >
> org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230)
> > > at
> > >
> org.apache.axis.encoding.SerializationContext.serializeActual
> > > (SerializationContext.java:1502)
> > > at
> > >
> org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:978)
> > > at
> > >
> org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:799)
> > > at
> > >
> org.apache.axis.message.RPCParam.serialize(RPCParam.java:208)
> > > at
> > >
> org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
> > > at
> > > org.apache.axis.message.MessageElement.output
> (MessageElement.java:1208)
> > > at
> > >
> org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
> > > at
> > >
> org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
> > > at
> > > org.apache.axis.message.MessageElement.output
> (MessageElement.java:1208)
> > > at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
> > > at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
> > > at org.apache.axis.Message.writeTo(Message.java:539)
> > > at
> org.apache.axis.transport.http.AxisServlet.sendResponse
> > > (AxisServlet.java:902)
> > > at
> > >
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:777)
> > > at
> > > javax.servlet.http.HttpServlet.service
> (HttpServlet.java:709)
> > > at
> org.apache.axis.transport.http.AxisServletBase.service
> > > (AxisServletBase.java:327)
> > > at
> > >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > at
> > >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> > > at
> > >
> org.apache.catalina.core.ApplicationFilterChain.doFilter
> > > (ApplicationFilterChain.java:173)
> > > at
> > >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> > > at
> > >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> > > at
> > > org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:126)
> > > at
> > >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> > > at org.apache.catalina.core.StandardEngineValve.invoke
> > > (StandardEngineValve.java :107)
> > > at
> > >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> > > at
> > >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> > > at
> > >
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> > > (Http11BaseProtocol.java:664)
> > > at
> > >
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> > > at
> > >
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java
> :80)
> > > at
> > >
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> > > at java.lang.Thread.run(Thre

Re: Newbie question about using axis as webservice client

2007-08-03 Thread Davanum Srinivas
Norris,

FYI, We've added the following option in Axis2-1.3 RC3. would love
your input on if that is enough for your use case.

-Eosv (for ADB) - off strict validation.

thanks,
dims

On 8/3/07, Merritt, Norris <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Axis2 adb style clients can be made tolerant of new elements added to a web
> service by modifying ADBBeanTemplate.xsl contained in
> axis2-adb-codegen-1.2.jar.
>
> This xsl is used to generate the Java code which pull-parses responses from
> the web service. This generated code is what throws exceptions when it
> encounters unrecognized elements. It is fairly trivial to modify the xsl to
> generate code which is tolerant of newly-added elements (i.e. just silently
> consumes and discards them) instead of crashing. I have done this. To some
> no doubt this is heresy, to others (myself included) it is worthwhile
> because it can be used to achieve looser coupling between the client and
> service, and that is good. There are many business use cases where a service
> is extended with some new elements which are not needed by existing clients.
> The notion that every previously deployed client should have to be
> recompiled and redeployed just because the service was extended is broken,
> IMHO.
>
>
>
>  
>
>
> From: Lahiru Sandakith [mailto:[EMAIL PROTECTED]
>  Sent: Friday, August 03, 2007 4:13 AM
>  To: axis-user@ws.apache.org
>  Subject: Re: Newbie question about using axis as webservice client
>
>
>
> Hi DelGurth,
>
>  As you say the webservice changed then the wsdl also should be different,
> so IMO there is no option other than regenerating the client using wsdl2java
> tool (via Eclipse), because its an interface level change.
>
>  Thanks
>
>  Lahiru Sandakith
>
>
> On 8/3/07, DelGurth <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>  I recently stated using axis as my web service client. I've used the
>  wsdl2java tool (via Eclipse) to generate the client code based on the
>  wsdl file of the service.
>
>  Now the web service changed, it contains a new field, and my client
>  application doesn't work anymore. Is there a way to make my client
>  ignore fields that are unknown to it?
>
>  I tried finding an answer in the client-side axis documentation, but I
>  can't find it, unfortunately. That's why I end up here.
>
>  Regards,
>  Wessel van Norel
>
> -
>  To unsubscribe, e-mail:
> [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>  --
>  Thanks
>  Lahiru Sandakith
>
>  http://sandakith.wordpress.com/
>  GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F


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

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



RE: Newbie question about using axis as webservice client

2007-08-03 Thread Merritt, Norris
Axis2 adb style clients can be made tolerant of new elements added to a
web service by modifying ADBBeanTemplate.xsl contained in
axis2-adb-codegen-1.2.jar.

This xsl is used to generate the Java code which pull-parses responses
from the web service. This generated code is what throws exceptions when
it encounters unrecognized elements. It is fairly trivial to modify the
xsl to generate code which is tolerant of newly-added elements (i.e.
just silently consumes and discards them) instead of crashing. I have
done this. To some no doubt this is heresy, to others (myself included)
it is worthwhile because it can be used to achieve looser coupling
between the client and service, and that is good. There are many
business use cases where a service is extended with some new elements
which are not needed by existing clients. The notion that every
previously deployed client should have to be recompiled and redeployed
just because the service was extended is broken, IMHO.

 



From: Lahiru Sandakith [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 03, 2007 4:13 AM
To: axis-user@ws.apache.org
Subject: Re: Newbie question about using axis as webservice client

 

Hi DelGurth,

As you say the webservice changed then the wsdl also should be
different, so IMO there is no option other than regenerating the client
using wsdl2java tool (via Eclipse), because its an interface level
change.

Thanks 

Lahiru Sandakith

On 8/3/07, DelGurth <[EMAIL PROTECTED]> wrote:

Hi,

I recently stated using axis as my web service client. I've used the
wsdl2java tool (via Eclipse) to generate the client code based on the
wsdl file of the service.

Now the web service changed, it contains a new field, and my client 
application doesn't work anymore. Is there a way to make my client
ignore fields that are unknown to it?

I tried finding an answer in the client-side axis documentation, but I
can't find it, unfortunately. That's why I end up here. 

Regards,
Wessel van Norel

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




-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F




Re: AW: axis / hibernate woes

2007-08-03 Thread robert lazarski
Putting hibernate in the AAR is a special case. It can be done, but
its far easier - as you found out - to put the files under
WEB-INF/classes and the jars in WEB-INF/lib

You can't put hibernate config files inside the AAR because those
config files need to be on the classpath, per the way hibernate loads
those files by default. You can exapnd the AAR though...

What you can do, per Spring is add directories to the classpath, ie,
expand the AAR in WEB-INF/services or WEB-INF/classes/myConfigs

http://www.springframework.org/docs/api/org/springframework/orm/hibernate/LocalSessionFactoryBean.html#setMappingDirectoryLocations(org.springframework.core.io.Resource[])

You of course don't need Spring to run Hibernate - there probably is a
way to do the same thing via just hibernate - you'll have to google on
that though since I prefer to use Spring to configure Hibernate.

HTH,
Robert

On 8/3/07, Zerbst, Carsten <[EMAIL PROTECTED]> wrote:
> Hello Tammy,
>
> when I put the complete set of hibernate jars into the Axis2/WEB-INF/lib, then
> hibernate is not able to access my mapping descriptions located in the aar.
> This could be resolved by putting my application itself into Axis2/WEB-INF/lib
> and then everything works (alas).
>
> But IHMO there must be a sane solution to have hibernate and my application
> and my mappings files in the aar and not distributed around the 
> Axis2/WEB-INF/lib and Axis2/WEB-INF/classes ?
>
> Thanks so far, Carsten
>
> 
> PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt
> HR: Amtsgericht Darmstadt, HRB 8805
> Geschäftsführung: Dr. Markus Sachers, Reinhard Betz
> 
>
> -
> 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: AW: axis / hibernate woes

2007-08-03 Thread Zerbst, Carsten
Hello Tammy, 

when I put the complete set of hibernate jars into the Axis2/WEB-INF/lib, then 
hibernate is not able to access my mapping descriptions located in the aar.
This could be resolved by putting my application itself into Axis2/WEB-INF/lib 
and then everything works (alas).

But IHMO there must be a sane solution to have hibernate and my application
and my mappings files in the aar and not distributed around the 
Axis2/WEB-INF/lib and Axis2/WEB-INF/classes ?

Thanks so far, Carsten 


PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt
HR: Amtsgericht Darmstadt, HRB 8805
Geschäftsführung: Dr. Markus Sachers, Reinhard Betz 


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



Re: AW: axis / hibernate woes

2007-08-03 Thread Tammy Dugan

You might try putting your dependent jars in the axis2 lib directory.

Tammy

Zerbst, Carsten wrote:
Hello, 

I enhanced the error report, the real cause is 


2007-08-03 17:59:08,455 ERROR 
net.eads.space.ssrm.model.persistence.HibernateUtil - Initial SessionFactory 
creation failed.
java.lang.ExceptionInInitializerError
at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)
at 
org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)
at 
org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)
at 
org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:135)
at 
org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)
at 
org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)
at 
org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:295)
at 
org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434)
at 
org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)
at 
org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at 
org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)
at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at 
net.eads.space.ssrm.model.persistence.HibernateUtil.(HibernateUtil.java:24)

Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class 
Not found : net.sf.cglib.proxy.Enhancer$EnhancerKey$$KeyFactoryByCGLIB$$7fb24d72
at 
org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:88)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at 
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:210)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)
... 38 more
Caused by: java.lang.ClassNotFoundException: Class Not found : 
net.sf.cglib.proxy.Enhancer$EnhancerKey$$KeyFactoryByCGLIB$$7fb24d72

The cglib is in the /lib directory of my aar, alongside the hibernate and other 
libraries.

What is going wrong in the axis2 environment ?

Thanks, Carsten 




PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt
HR: Amtsgericht Darmstadt, HRB 8805
Geschäftsführung: Dr. Markus Sachers, Reinhard Betz 



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

  


--
Tammy Dugan
Computer Programmer

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

(317) 423 - 5541

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

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


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



AW: axis / hibernate woes

2007-08-03 Thread Zerbst, Carsten
Hello, 

I enhanced the error report, the real cause is 

2007-08-03 17:59:08,455 ERROR 
net.eads.space.ssrm.model.persistence.HibernateUtil - Initial SessionFactory 
creation failed.
java.lang.ExceptionInInitializerError
at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)
at 
org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)
at 
org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)
at 
org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:135)
at 
org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)
at 
org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)
at 
org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:295)
at 
org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434)
at 
org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)
at 
org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at 
org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)
at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at 
net.eads.space.ssrm.model.persistence.HibernateUtil.(HibernateUtil.java:24)

Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class 
Not found : net.sf.cglib.proxy.Enhancer$EnhancerKey$$KeyFactoryByCGLIB$$7fb24d72
at 
org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:88)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at 
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:210)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)
... 38 more
Caused by: java.lang.ClassNotFoundException: Class Not found : 
net.sf.cglib.proxy.Enhancer$EnhancerKey$$KeyFactoryByCGLIB$$7fb24d72

The cglib is in the /lib directory of my aar, alongside the hibernate and other 
libraries.

What is going wrong in the axis2 environment ?

Thanks, Carsten 



PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt
HR: Amtsgericht Darmstadt, HRB 8805
Geschäftsführung: Dr. Markus Sachers, Reinhard Betz 


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



axis / hibernate woes

2007-08-03 Thread Zerbst, Carsten
Hello, 

I'm trying to persist some objects using hibernate in an axis2 context but fail 
terribly.

The setup using the config.xml works outside of axis2, I load hibernate.cfg.xml 
from the jar (this seems to work) and loading of the mapping files works as 
well. 
But in the initialisation of the SessionFactory I get an 
java.lang.ExceptionInInitializerError error 

Could someone give me hint what is going wrong here ?

Thanks, Carsten 


LOG:

03.08.2007 17:36:34 org.hibernate.cfg.Environment 
INFO: Hibernate 3.2.5
03.08.2007 17:36:34 org.hibernate.cfg.Environment 
INFO: hibernate.properties not found
03.08.2007 17:36:34 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
03.08.2007 17:36:34 org.hibernate.cfg.Environment 
INFO: using JDK 1.4 java.sql.Timestamp handling
03.08.2007 17:36:34 org.hibernate.cfg.Configuration configure
INFO: configuring from url: jar:file:/C:/Dokumente und 
Einstellungen/zerbst.PSAD/.netbeans/5.5/apache-tomcat-5.5.17_base/work/Catalina/localhost/axis2/axis212941SSRMServices2.aar!/net/eads/space/ssrm/model/persistence/hibernate.cfg.xml
03.08.2007 17:36:35 org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : 
net/eads/space/ssrm/model/persistence/ElementDefinitionDB.hbm.xml
03.08.2007 17:36:35 org.hibernate.cfg.HbmBinder 
bindRootPersistentClassCommonValues
INFO: Mapping class: net.eads.space.ssrm.model.persistence.ElementDefinitionDB 
-> ElementDefinition
03.08.2007 17:36:35 org.hibernate.cfg.HbmBinder bindCollection
INFO: Mapping collection: 
net.eads.space.ssrm.model.persistence.ElementDefinitionDB.listContainedElements 
-> ElementDefinitionContainedElements
03.08.2007 17:36:35 org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : 
net/eads/space/ssrm/model/persistence/ElementOccurenceDB.hbm.xml
03.08.2007 17:36:35 org.hibernate.cfg.HbmBinder 
bindRootPersistentClassCommonValues
INFO: Mapping class: net.eads.space.ssrm.model.persistence.ElementOccurenceDB 
-> ElementOccurence
03.08.2007 17:36:35 org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : 
net/eads/space/ssrm/model/persistence/ElementUsageDB.hbm.xml
03.08.2007 17:36:35 org.hibernate.cfg.HbmBinder 
bindRootPersistentClassCommonValues
INFO: Mapping class: net.eads.space.ssrm.model.persistence.ElementUsageDB -> 
ElementUsage
03.08.2007 17:36:35 org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null


... displaying many default settings

INFO: Deleted entity synthetic identifier rollback: disabled
03.08.2007 17:36:36 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
03.08.2007 17:36:36 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
03.08.2007 17:36:36 org.hibernate.impl.SessionFactoryImpl 
INFO: building session factory
Initial SessionFactory creation failed.java.lang.ExceptionInInitializerError
03.08.2007 17:36:36 org.apache.axis2.transport.http.AxisServlet doPost
SCHWERWIEGEND: java.lang.ExceptionInInitializerError





___
Dr.-Ing. Carsten Zerbst 

PROSTEP ITS  GmbH
Hein-Saß-Weg 19, D-21129 Hamburg

Tel: +49 40 209 1608 12
Mobil: +49 178 950 9468
E-Mail: [EMAIL PROTECTED]
http://www.prostep.com

PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt
HR: Amtsgericht Darmstadt, HRB 8805
Geschäftsführung: Dr. Markus Sachers, Reinhard Betz 


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



Re: [Axis2 1.2] Unresolved symbol when using attribute

2007-08-03 Thread Davanum Srinivas
Steve,

I've created a JIRA issue:
https://issues.apache.org/jira/browse/AXIS2-3066

thanks,
dims

On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> OK.
>
> Here is the build.xml
> 
> 
> 
> 
>
> 
>
>   
>   
>   
>   
>
>   
>   
>
>   
>   
>   
>   
>   
>
>   
>   
>   
> 
>   
> 
>   
>classname="org.apache.axis2.tool.ant.AntCodegenTask"
> classpathref="axis.classpath" />
>
> 
>
>description="Generate WSDL implementation classes for the client
> side"
> >
>
>wsdlfilename="${wsdl.file}"
>   output="${java}/"
>   unpackClasses="true"
>   />
>
>   
>description="Generate the classes required for a default build"/>
>
> 
>
>description="Compile generated SOAP classes">
>
> 
>
>classpathref="axis.classpath"/>
>
>   
>
> 
>
>description="Remove auto-generated WSDL implementation classes">
>
> 
> 
> 
>
>   
>
> 
>
> 
>
> 
> 
>
>
> And here is the WSDL file
>
> 
> 
> 
>
>name="testWsdl"
>   targetNamespace="http://localhost/testWsdl";
>   xmlns="http://schemas.xmlsoap.org/wsdl/";
>   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>   xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
>   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>   xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>   xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
>   xmlns:test="http://localhost/testWsdl";
>   >
>
> 
>
>   
>targetNamespace="http://localhost/testWsdl";
>   >
>
>   
> 
>   
>
>   
> 
>   
> 
>   
>   
> 
>   
> 
>   
>
>   
>   
> 
>   
>
> 
>
>   
> 
>   
>   
> 
>   
>
> 
>
>   
> 
>   
>   
> 
>   
>
> 
>
>   
> http://schemas.xmlsoap.org/soap/http";
>   style="document"/>
> 
>   
>   
> 
>   
>   
> 
>   
> 
>   
>
> 
>
>   
> 
>   https://localhost/wsdlTest/"/>
> 
>   
>
> 
>
> 
>
> 
> 
>
> If you need any more then please let me know
>
> Steve Hindmarch
>
> > -Original Message-
> > From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> > Sent: 03 August 2007 15:18
> > To: Hindmarch,SJ,Stephen,XJE11 R
> > Cc: axis-user@ws.apache.org
> > Subject: Re: [Axis2 1.2] Unresolved symbol when using attribute
> >
> > Yes please.
> >
> > -- dims
> >
> > On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Srinivas,
> > >
> > > I have now tried it with RC3 and the problem is identical.
> > >
> > > Would you like me upload the full wsdl and build files for
> > my test case?
> > >
> > > Steve Hindmarch
> > >
> > >
> > >
>


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

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



RE: [Axis2 1.2] Unresolved symbol when using attribute

2007-08-03 Thread stephen.hindmarch
OK.

Here is the build.xml







  
  
  
  

  
  

  
  
  
  
  

  
  
  

  

  
  



  



  
  



  





  



  





  









And here is the WSDL file





http://localhost/testWsdl";
  xmlns="http://schemas.xmlsoap.org/wsdl/";
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
  xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
  xmlns:test="http://localhost/testWsdl";
  >



  
http://localhost/testWsdl";
  >

  

  

  

  

  
  

  

  

  
  

  



  

  
  

  



  

  
  

  



  
http://schemas.xmlsoap.org/soap/http"; 
  style="document"/>

  
  

  
  

  

  



  

  https://localhost/wsdlTest/"/>

  








If you need any more then please let me know

Steve Hindmarch

> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
> Sent: 03 August 2007 15:18
> To: Hindmarch,SJ,Stephen,XJE11 R
> Cc: axis-user@ws.apache.org
> Subject: Re: [Axis2 1.2] Unresolved symbol when using attribute
> 
> Yes please.
> 
> -- dims
> 
> On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Srinivas,
> >
> > I have now tried it with RC3 and the problem is identical.
> >
> > Would you like me upload the full wsdl and build files for 
> my test case?
> >
> > Steve Hindmarch
> >
> >
> >

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



Re: RE [Axis2] Axis2 1.3 RC3 released

2007-08-03 Thread p . casenove
I've created the JIRA: https://issues.apache.org/jira/browse/AXIS2-3064
thanks for the quick reply.

Pierre




"Davanum Srinivas" <[EMAIL PROTECTED]> 
03/08/2007 16:17
Veuillez répondre à
axis-user@ws.apache.org


A
axis-user@ws.apache.org
cc

Objet
Re: RE [Axis2] Axis2 1.3 RC3 released






Pierre,

JIRA please and upload your stripped down wsdl/build.xml etc.

thanks,
dims

On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm testing the RC3 right now and I still have a problem with jaxbri 
databinding:
> previous issue (JIRA 3043) is solved (thanks a lot) but now I have 
another problem with the wsdl of another webservice:
>  [java] Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>  [java] at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
>  [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>  [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>  [java] Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
>  [java] at 
org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:112)
>  [java] at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:218)
>  [java] ... 2 more
>  [java] Caused by: java.lang.reflect.InvocationTargetException
>  [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
>  [java] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>  [java] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [java] at java.lang.reflect.Method.invoke(Method.java:615)
>  [java] at 
org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:101)
>  [java] ... 3 more
>  [java] Caused by: java.lang.RuntimeException: 
java.lang.RuntimeException: Unable to generate code using jaxbri
>  [java] at 
org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:177)
>  [java] ... 8 more
>  [java] Caused by: java.lang.RuntimeException: Unable to generate 
code using jaxbri
>  [java] at 
org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:152)
>  [java] ... 8 more
>  [java] Java Result: 1
>
> I'm using following ant task:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> The WSDL is correctly parsed and the code generated when using official 
jaxb 2.0.5 distribution and the included xjc.bat script file.
>
> Do I create a JIRA with the faulty wsdl?
>
> Thnaks,
> Pierre
>
>
>
>
>
>  Deepal jayasinghe <[EMAIL PROTECTED]>
>
> 03/08/2007 14:56
>
> Veuillez répondre à
>  axis-user@ws.apache.org
>
>
> A "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, 
"axis-user@ws.apache.org" 
>
> cc
>
>
> Objet [Axis2] Axis2 1.3 RC3 released
>
>
>
>
>
>
>
> Hi all,
>
>  I have uploaded Axis2 1.3 RC3 into my Apache home location [1] . This
>  release does not have any SNAPSHOT dependencies and we have fixed a
>  number of issues between RC2 and RC3 so please test the release
>  candidate as much as you can. My plan is to make this is final RC and
>  upload the final release on coming Monday 6th Aug 2007 for voting.
>
>  You can find the release plugings [2] and the maven2 repo is available
>  at [3].
>
>  When we test please try to cover the following
>   - Code generation
>   - Sessions
>   - Web application
>   - In different application servers
>  - Both JDK 1.5 and JDK 1.4
>  - Java2WSDL
>  - POJOs
>  - And what ever the JIRA we have marked as fixed.
>
>
>  [1] : http://people.apache.org/~deepal/axis2/1.3-RC3/
>  [2] : http://people.apache.org/~deepal/axis2/1.3-RC3/tools/
>  [3] : http://people.apache.org/~deepal/axis2/1.3-RC3/m2-repo/
>
>  Thanks
>  Deepal
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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

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




Re: [Axis2 1.2] Unresolved symbol when using attribute

2007-08-03 Thread Davanum Srinivas
Yes please.

-- dims

On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Srinivas,
>
> I have now tried it with RC3 and the problem is identical.
>
> Would you like me upload the full wsdl and build files for my test case?
>
> Steve Hindmarch
>
>
>
> > -Original Message-
> > From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> > Sent: 03 August 2007 14:39
> > To: axis-user@ws.apache.org
> > Subject: Re: [Axis2 1.2] Unresolved symbol when using attribute
> >
> > RC3 has the wsdl2java task :) Yes, please try that.
> >
> > -- dims
> >
> > On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > I am using Axis2 1.2 and the AntCodegenTask.
> > >
> > > I have been struggling with the following error in some
> > vendor supplied
> > > wsdl. I use the wsdl2java ant task to generate the java
> > code and then
> > > get this compiler error.
> > >
> > > compile:
> > > [mkdir] Created dir: /home/sjh/Misc/xml/soapTest/classes
> > > [javac] Compiling 8 source files to
> > > /home/sjh/Misc/xml/soapTest/classes
> > > [javac]
> > >
> > /home/sjh/Misc/xml/soapTest/java/src/localhost/testwsdl/Messag
> > e.java:28:
> > > cannot resolve symbol
> > > [javac] symbol  : variable localSequenceTracker
> > > [javac] location: class localhost.testwsdl.Message
> > > [javac]localSequenceTracker = false;
> > > [javac]^
> > > [javac] 1 error
> > >
> > > Looking in the java the Message class extends an abstract class
> > > AbstractMessage, which defines a protected variable "sequence". The
> > > message class then tries to the tracker for this variable
> > but does not
> > > declare the tracker.
> > >
> > > I have stripped the wsdl down to a simple test case, the
> > key fragment is
> > > shown below.
> > >
> > > 
> > > 
> > >
> > >   
> > >  > >   targetNamespace="http://localhost/testWsdl";
> > >   >
> > >
> > >   
> > > 
> > >   
> > >
> > >   
> > > 
> > >   
> > > 
> > >   
> > >   
> > > 
> > >   
> > > 
> > >   
> > >
> > >   
> > >   
> > > 
> > >   
> > >
> > > 
> > >
> > >   
> > > 
> > >   
> > >   
> > > 
> > >   
> > >
> > > 
> > >
> > > The key features of this fragment that cause the bug are that
> > > 1) The variable in the abstract type is declared as an
> > attribute, not an
> > > element
> > > 2) The elements in the extended type are declared in choice tags.
> > >
> > > Is this an AXIS2 bug or is just a bad XSD? If a bug should
> > I create a
> > > JIRA? I cannot see any reports of this in either the
> > mailing list or the
> > > JIRA repository.
> > >
> > > Can anybody suggest a work around that would produce
> > exactly the same
> > > SOAP, as I am using this against a 3rd party interface
> > (supplied by a
> > > large San Francisco based router manufacturer that shall remain
> > > nameless) so have no control over the format of the messages.
> > >
> > > I did try to replicate this in 1.3 RC2 but I see that the
> > wsdl2java task
> > > was omitted. I notice as I am writing this that RC3 has just been
> > > released so I will test against that later today.
> > >
> > >
> > > Steve Hindmarch
> > >
> > >
> > >
> > >
> > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Davanum Srinivas :: http://davanum.wordpress.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


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

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



Re: RE [Axis2] Axis2 1.3 RC3 released

2007-08-03 Thread Davanum Srinivas
Pierre,

JIRA please and upload your stripped down wsdl/build.xml etc.

thanks,
dims

On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm testing the RC3 right now and I still have a problem with jaxbri 
> databinding:
> previous issue (JIRA 3043) is solved (thanks a lot) but now I have another 
> problem with the wsdl of another webservice:
>  [java] Exception in thread "main" 
> org.apache.axis2.wsdl.codegen.CodeGenerationException: 
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>  [java] at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
>  [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>  [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>  [java] Caused by: java.lang.RuntimeException: 
> java.lang.reflect.InvocationTargetException
>  [java] at 
> org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:112)
>  [java] at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:218)
>  [java] ... 2 more
>  [java] Caused by: java.lang.reflect.InvocationTargetException
>  [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  [java] at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>  [java] at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [java] at java.lang.reflect.Method.invoke(Method.java:615)
>  [java] at 
> org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:101)
>  [java] ... 3 more
>  [java] Caused by: java.lang.RuntimeException: 
> java.lang.RuntimeException: Unable to generate code using jaxbri
>  [java] at 
> org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:177)
>  [java] ... 8 more
>  [java] Caused by: java.lang.RuntimeException: Unable to generate code 
> using jaxbri
>  [java] at 
> org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:152)
>  [java] ... 8 more
>  [java] Java Result: 1
>
> I'm using following ant task:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> The WSDL is correctly parsed and the code generated when using official jaxb 
> 2.0.5 distribution and the included xjc.bat script file.
>
> Do I create a JIRA with the faulty wsdl?
>
> Thnaks,
> Pierre
>
>
>
>
>
>  Deepal jayasinghe <[EMAIL PROTECTED]>
>
> 03/08/2007 14:56
>
> Veuillez répondre à
>  axis-user@ws.apache.org
>
>
> A "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, "axis-user@ws.apache.org" 
> 
>
> cc
>
>
> Objet [Axis2] Axis2 1.3 RC3 released
>
>
>
>
>
>
>
> Hi all,
>
>  I have uploaded Axis2 1.3 RC3 into my Apache home location [1] . This
>  release does not have any SNAPSHOT dependencies and we have fixed a
>  number of issues between RC2 and RC3 so please test the release
>  candidate as much as you can. My plan is to make this is final RC and
>  upload the final release on coming Monday 6th Aug 2007 for voting.
>
>  You can find the release plugings [2] and the maven2 repo is available
>  at [3].
>
>  When we test please try to cover the following
>   - Code generation
>   - Sessions
>   - Web application
>   - In different application servers
>  - Both JDK 1.5 and JDK 1.4
>  - Java2WSDL
>  - POJOs
>  - And what ever the JIRA we have marked as fixed.
>
>
>  [1] : http://people.apache.org/~deepal/axis2/1.3-RC3/
>  [2] : http://people.apache.org/~deepal/axis2/1.3-RC3/tools/
>  [3] : http://people.apache.org/~deepal/axis2/1.3-RC3/m2-repo/
>
>  Thanks
>  Deepal
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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

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



RE: [Axis2 1.2] Unresolved symbol when using attribute

2007-08-03 Thread stephen.hindmarch
Srinivas,

I have now tried it with RC3 and the problem is identical.

Would you like me upload the full wsdl and build files for my test case?

Steve Hindmarch
 
 

> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
> Sent: 03 August 2007 14:39
> To: axis-user@ws.apache.org
> Subject: Re: [Axis2 1.2] Unresolved symbol when using attribute
> 
> RC3 has the wsdl2java task :) Yes, please try that.
> 
> -- dims
> 
> On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I am using Axis2 1.2 and the AntCodegenTask.
> >
> > I have been struggling with the following error in some 
> vendor supplied
> > wsdl. I use the wsdl2java ant task to generate the java 
> code and then
> > get this compiler error.
> >
> > compile:
> > [mkdir] Created dir: /home/sjh/Misc/xml/soapTest/classes
> > [javac] Compiling 8 source files to
> > /home/sjh/Misc/xml/soapTest/classes
> > [javac]
> > 
> /home/sjh/Misc/xml/soapTest/java/src/localhost/testwsdl/Messag
> e.java:28:
> > cannot resolve symbol
> > [javac] symbol  : variable localSequenceTracker
> > [javac] location: class localhost.testwsdl.Message
> > [javac]localSequenceTracker = false;
> > [javac]^
> > [javac] 1 error
> >
> > Looking in the java the Message class extends an abstract class
> > AbstractMessage, which defines a protected variable "sequence". The
> > message class then tries to the tracker for this variable 
> but does not
> > declare the tracker.
> >
> > I have stripped the wsdl down to a simple test case, the 
> key fragment is
> > shown below.
> >
> > 
> > 
> >
> >   
> >  >   targetNamespace="http://localhost/testWsdl";
> >   >
> >
> >   
> > 
> >   
> >
> >   
> > 
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> >   
> >
> >   
> >   
> > 
> >   
> >
> > 
> >
> >   
> > 
> >   
> >   
> > 
> >   
> >
> > 
> >
> > The key features of this fragment that cause the bug are that
> > 1) The variable in the abstract type is declared as an 
> attribute, not an
> > element
> > 2) The elements in the extended type are declared in choice tags.
> >
> > Is this an AXIS2 bug or is just a bad XSD? If a bug should 
> I create a
> > JIRA? I cannot see any reports of this in either the 
> mailing list or the
> > JIRA repository.
> >
> > Can anybody suggest a work around that would produce 
> exactly the same
> > SOAP, as I am using this against a 3rd party interface 
> (supplied by a
> > large San Francisco based router manufacturer that shall remain
> > nameless) so have no control over the format of the messages.
> >
> > I did try to replicate this in 1.3 RC2 but I see that the 
> wsdl2java task
> > was omitted. I notice as I am writing this that RC3 has just been
> > released so I will test against that later today.
> >
> >
> > Steve Hindmarch
> >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> Davanum Srinivas :: http://davanum.wordpress.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re: wsdl 2.0 process

2007-08-03 Thread keith chapman
Hi Chathura,

The tool that pointed out is driven via a web service hosted by WSO2. May be
we can expose this web service

Thanks,
Keith.

On 8/3/07, Chathura Herath <[EMAIL PROTECTED]> wrote:
>
> Kieth,
> Is there a API somewhere that does this
> Thanks
> Chathura
>
> On 8/3/07, keith chapman <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > There is a tool hosted at
> > http://tools.wso2.org:19762/wservices/WSDLConverter/ which
> > can be used pretty easily to convert a WSDL 1.1 to WSDL 2.0 .
> >
> > Thanks,
> > Keith.
> >
> >
> > On 8/2/07, New AxisU <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > I am converting some 1.1 wsdl's to 2.0 and I am very pleased with
> using
> > axis2.
> > >
> > > First I went to
> > http://www.w3.org/2006/02/WSDLConvert.html and tried their
> > online converter.
> > > It didn't work for me but I might have had a bad character in the
> file.
> > >
> > > Instead, I used their "XSLT 2.0 stylesheet used for the conversion "
> with
> > XMSpy and created
> > > a converted wsdl.
> > >
> > > Then I fed the converted wsdl's into axis2's wsdl2java batch file and
> ran
> > it successfully.
> > >
> > > Various people have been asking about how to validate their 2.0 wsdl.
> > This worked much
> > > better for me than trying to use my converted wsdl, with XMLSpy or
> Stylus
> > Studio, and the
> > > wsdl2.0 schema.
> > >
> > > Thanks again Axis2 folks.
> >
> >
> >
> > --
> > Keith Chapman
> > WSO2 Inc.
> > Oxygen for Web Services Developers.
> > http://wso2.org/
>
>
> --
> Chathura Herath
> http://people.apache.org/~chathura/
> http://chathurah.blogspot.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


RE [Axis2] Axis2 1.3 RC3 released

2007-08-03 Thread p . casenove
Hi,
I'm testing the RC3 right now and I still have a problem with jaxbri 
databinding:
previous issue (JIRA 3043) is solved (thanks a lot) but now I have another 
problem with the wsdl of another webservice:
 [java] Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
 [java] at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(
CodeGenerationEngine.java:265)
 [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
 [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
 [java] Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
 [java] at 
org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(
JAXBRIExtension.java:112)
 [java] at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(
CodeGenerationEngine.java:218)
 [java] ... 2 more
 [java] Caused by: java.lang.reflect.InvocationTargetException
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:64)
 [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
 [java] at java.lang.reflect.Method.invoke(Method.java:615)
 [java] at 
org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(
JAXBRIExtension.java:101)
 [java] ... 3 more
 [java] Caused by: java.lang.RuntimeException: 
java.lang.RuntimeException: Unable to generate code using jaxbri
 [java] at 
org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(
CodeGenerationUtility.java:177)
 [java] ... 8 more
 [java] Caused by: java.lang.RuntimeException: Unable to generate code 
using jaxbri
 [java] at 
org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(
CodeGenerationUtility.java:152)
 [java] ... 8 more
 [java] Java Result: 1

I'm using following ant task:














The WSDL is correctly parsed and the code generated when using official 
jaxb 2.0.5 distribution and the included xjc.bat script file.

Do I create a JIRA with the faulty wsdl?

Thnaks, 
Pierre





Deepal jayasinghe <[EMAIL PROTECTED]> 
03/08/2007 14:56
Veuillez répondre à
axis-user@ws.apache.org


A
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, 
"axis-user@ws.apache.org" 
cc

Objet
[Axis2] Axis2 1.3 RC3 released






Hi all,

I have uploaded Axis2 1.3 RC3 into my Apache home location [1] . This
release does not have any SNAPSHOT dependencies and we have fixed a
number of issues between RC2 and RC3 so please test the release
candidate as much as you can. My plan is to make this is final RC and
upload the final release on coming Monday 6th Aug 2007 for voting.

You can find the release plugings [2] and the maven2 repo is available
at [3].

When we test please try to cover the following
 - Code generation
 - Sessions
 - Web application
 - In different application servers
- Both JDK 1.5 and JDK 1.4
- Java2WSDL
- POJOs
- And what ever the JIRA we have marked as fixed.


[1] : http://people.apache.org/~deepal/axis2/1.3-RC3/
[2] : http://people.apache.org/~deepal/axis2/1.3-RC3/tools/
[3] : http://people.apache.org/~deepal/axis2/1.3-RC3/m2-repo/

Thanks
Deepal


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




Re: wsdl 2.0 process

2007-08-03 Thread Chathura Herath
Thanks Thilina I knew that :-). I was thinking may be it would be
useful to have it somewhere since i have seen this query twice and i
myself is doing this too. So having it in a API may help. May be it
should be pushed to the woden.
Chathura

On 8/3/07, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:
> You can use the XSLT style sheet[1] published by the W3C
> programatically to do the WSDL 1.1 to WSDL 2.0 conversion..
>
> Thanks,
> Thilina
>
> [1] http://www.w3.org/2006/02/wsdl11to20.xsl
>
> On 8/3/07, Chathura Herath <[EMAIL PROTECTED]> wrote:
> > Kieth,
> > Is there a API somewhere that does this
> > Thanks
> > Chathura
> >
> > On 8/3/07, keith chapman <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > There is a tool hosted at
> > > http://tools.wso2.org:19762/wservices/WSDLConverter/ which
> > > can be used pretty easily to convert a WSDL 1.1 to WSDL 2.0 .
> > >
> > > Thanks,
> > > Keith.
> > >
> > >
> > > On 8/2/07, New AxisU <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi,
> > > >
> > > > I am converting some 1.1 wsdl's to 2.0 and I am very pleased with using
> > > axis2.
> > > >
> > > > First I went to
> > > http://www.w3.org/2006/02/WSDLConvert.html and tried their
> > > online converter.
> > > > It didn't work for me but I might have had a bad character in the file.
> > > >
> > > > Instead, I used their "XSLT 2.0 stylesheet used for the conversion " 
> > > > with
> > > XMSpy and created
> > > > a converted wsdl.
> > > >
> > > > Then I fed the converted wsdl's into axis2's wsdl2java batch file and 
> > > > ran
> > > it successfully.
> > > >
> > > > Various people have been asking about how to validate their 2.0 wsdl.
> > > This worked much
> > > > better for me than trying to use my converted wsdl, with XMLSpy or 
> > > > Stylus
> > > Studio, and the
> > > > wsdl2.0 schema.
> > > >
> > > > Thanks again Axis2 folks.
> > >
> > >
> > >
> > > --
> > > Keith Chapman
> > > WSO2 Inc.
> > > Oxygen for Web Services Developers.
> > > http://wso2.org/
> >
> >
> > --
> > Chathura Herath
> > http://people.apache.org/~chathura/
> > http://chathurah.blogspot.com/
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Chathura Herath
http://people.apache.org/~chathura/
http://chathurah.blogspot.com/

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



Re: [Axis2 1.2] Unresolved symbol when using attribute

2007-08-03 Thread Davanum Srinivas
RC3 has the wsdl2java task :) Yes, please try that.

-- dims

On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I am using Axis2 1.2 and the AntCodegenTask.
>
> I have been struggling with the following error in some vendor supplied
> wsdl. I use the wsdl2java ant task to generate the java code and then
> get this compiler error.
>
> compile:
> [mkdir] Created dir: /home/sjh/Misc/xml/soapTest/classes
> [javac] Compiling 8 source files to
> /home/sjh/Misc/xml/soapTest/classes
> [javac]
> /home/sjh/Misc/xml/soapTest/java/src/localhost/testwsdl/Message.java:28:
> cannot resolve symbol
> [javac] symbol  : variable localSequenceTracker
> [javac] location: class localhost.testwsdl.Message
> [javac]localSequenceTracker = false;
> [javac]^
> [javac] 1 error
>
> Looking in the java the Message class extends an abstract class
> AbstractMessage, which defines a protected variable "sequence". The
> message class then tries to the tracker for this variable but does not
> declare the tracker.
>
> I have stripped the wsdl down to a simple test case, the key fragment is
> shown below.
>
> 
> 
>
>   
>targetNamespace="http://localhost/testWsdl";
>   >
>
>   
> 
>   
>
>   
> 
>   
> 
>   
>   
> 
>   
> 
>   
>
>   
>   
> 
>   
>
> 
>
>   
> 
>   
>   
> 
>   
>
> 
>
> The key features of this fragment that cause the bug are that
> 1) The variable in the abstract type is declared as an attribute, not an
> element
> 2) The elements in the extended type are declared in choice tags.
>
> Is this an AXIS2 bug or is just a bad XSD? If a bug should I create a
> JIRA? I cannot see any reports of this in either the mailing list or the
> JIRA repository.
>
> Can anybody suggest a work around that would produce exactly the same
> SOAP, as I am using this against a 3rd party interface (supplied by a
> large San Francisco based router manufacturer that shall remain
> nameless) so have no control over the format of the messages.
>
> I did try to replicate this in 1.3 RC2 but I see that the wsdl2java task
> was omitted. I notice as I am writing this that RC3 has just been
> released so I will test against that later today.
>
>
> Steve Hindmarch
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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



Re: Axis2 byte[] transfer/serialization bug ?!

2007-08-03 Thread Paul Fremantle
Can you please raise a JIRA

https://issues.apache.org/jira/secure/CreateIssue.jspa

Thanks!

Paul

On 8/3/07, Georgia Giacobbi <[EMAIL PROTECTED]> wrote:
> no, i'm use jax-ws
>
> Paul Fremantle ha scritto:
> > How did you create these services? by POJO?
> >
> > Paul
> >
> > On 8/3/07, Georgia Giacobbi <[EMAIL PROTECTED]> wrote:
> >
> >> YES, this is the question.
> >> i can?!
> >>
> >> Isenor, Anthony ha scritto:
> >>
> >>> I have also been wondering about this exact question.
> >>>
> >>> Please correct me if I am wrong, but I think the issue is the
> >>>  tag.  At the moment, the response looks like this:
> >>>
> >>> http://my.it/data";>
> >>>ciao
> >>> 
> >>>
> >>> I think the question is, is there a way to make the response look like
> >>> this:
> >>>
> >>> http://my.it/data";>
> >>>ciao
> >>> 
> >>>
> >>>
> >>> The  tag is something being added by AXIS2.  Can we shut that
> >>> off?
> >>>
> >>> Anthony
> >>>
> >>> -Original Message-
> >>> From: Paul Fremantle [mailto:[EMAIL PROTECTED]
> >>> Sent: Friday, August 03, 2007 7:22 AM
> >>> To: axis-user@ws.apache.org
> >>> Subject: Re: Axis2 byte[] transfer/serialization bug ?!
> >>>
> >>> Georgia
> >>>
> >>> I'm still not clear :) Sorry!
> >>>
> >>> What is the problem with th response?
> >>>
> >>> Paul
> >>>
> >>> On 8/3/07, Georgia Giacobbi <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
>  The my error is in soap message response
> 
>  see this:
>  
>   
> 
> >>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
> >>>
> >>>
>  
>  http://my.it/data";>
>  ciao
>  
>  
>  
> 
>  in the my WSDL, i don't declare return element, and in the web
> 
> 
> >>> Services
> >>>
> >>>
>  i declare with  JAX-WS annotation the result name
> 
> 
> 
> >>> (@WebResult(name="myReturn",partName="myReturn",targetNamespace="http://
> >>> my.it/data")
> >>>
> >>>
>  )
> 
>  Paul Fremantle ha scritto:
> 
> 
> > Georgia
> >
> > What exactly is your error?
> > I'm not clear from the email.
> >
> > Paul
> >
> > On 8/3/07, reichan <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >> Hi Georgi
> >>
> >> I have the similar error.
> >>
> >> Can i disable the "return" element autogenerated by AXIS2?!
> >>
> >> I have tried to indicate the name of the ws using the annotation of
> >>
> >>
> >>> JAX-WS,
> >>>
> >>>
> >> WebResult, but seems that AXIS2 don't care about those.
> >>
> >> I'm using AXIS2 1.3 RC2.
> >>
> >>
> >>
> >>
> >> Georgi Yonchev wrote:
> >>
> >>
> >>
> >>> Thilina Gunarathne wrote:
> >>>
> >>>
> >>>
>  Looks like a bug... Please report a JIRA...
> 
>  You may also try replacing byte[] with
> 
> 
> >>> javax.activation.DataHandler...
> >>>
> >>>
>  DataHandler is the recommended way when using large
> 
> 
> >>> attachments...
> >>>
> >>>
>  thanks,
>  Thilina
> 
>  On 7/24/07, Georgi Yonchev <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> > Thilina Gunarathne wrote:
> >
> >
> >
> >>> and Deepal, yes works fine, but try it with larger byte[]
> >>>
> >>>
> >>> size,
> >>>
> >>>
> >>> with larger, in the payload goes array from bytes ?!
> >>> not encoded in base64 ..
> >>>
> >>>
> >>>
> >> Not clear what you meant?... Do they go as native binary in the
> >>
> >>
> >>> form
> >>>
> >>>
> >> of an attachment or inside the soap body...
> >>
> >> Thanks,
> >> Thilina
> >>
> >>
> >>
> >>
> >>> -
> >>>
> >>>
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> > inside in the soap body, the bytes are not encoded in base64, is
> > represented like integers
> > this is a part of the xml :
> >
> >
> >
> >
> >>> 91021
> >>> 0116 >>> ata>45115 >>> ata>105122101 >>> byteData>5832 >>> yteData>4948 >>>
> >>>
> >>> 112116 >>>
> >>>
>  591310 
> 
> >>> ta>9102 >>> a>10116 >>> teData>45119 >>> teData>101105103 >>> ns:byteData>104116
> >>> 58321
> >>> 1014 >>> ata>10997 >>> ata>1085913 >>> teData>10125 >>> teData>131046 >>> byteData>99111 >>> byteData>110 >>>
> >>>
> > s:byteData> >
> > 2000
> >
> >
> >
> >
> >>> 116101110 >>> Data>
> >>>
> >>>
> > this happens only when i set the byte[] in Complex return object
> >
> > class Result{
> > private byte[] bytes;
> > set..
> > get..
>

RE: how to tell if axis 1.4 is using http persistent connections or not?

2007-08-03 Thread Anil Philip
Does anyone know?

-Original Message-
From: Anil Philip [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 02, 2007 12:08 PM
To: axis
Subject: how to tell if axis 1.4 is using http persistent connections or
not?

Hello,
how to tell if axis 1.4 is using http persistent
connections or not? And how to configure it.
thanks much,
Anil


   


Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

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


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



[Axis2 1.2] Unresolved symbol when using attribute

2007-08-03 Thread stephen.hindmarch
I am using Axis2 1.2 and the AntCodegenTask.

I have been struggling with the following error in some vendor supplied
wsdl. I use the wsdl2java ant task to generate the java code and then
get this compiler error.

compile:
[mkdir] Created dir: /home/sjh/Misc/xml/soapTest/classes
[javac] Compiling 8 source files to
/home/sjh/Misc/xml/soapTest/classes
[javac]
/home/sjh/Misc/xml/soapTest/java/src/localhost/testwsdl/Message.java:28:
cannot resolve symbol
[javac] symbol  : variable localSequenceTracker
[javac] location: class localhost.testwsdl.Message
[javac]localSequenceTracker = false;
[javac]^
[javac] 1 error

Looking in the java the Message class extends an abstract class
AbstractMessage, which defines a protected variable "sequence". The
message class then tries to the tracker for this variable but does not
declare the tracker.

I have stripped the wsdl down to a simple test case, the key fragment is
shown below.




  
http://localhost/testWsdl";
  >

  

  

  

  

  
  

  

  

  
  

  



  

  
  

  

 

The key features of this fragment that cause the bug are that
1) The variable in the abstract type is declared as an attribute, not an
element
2) The elements in the extended type are declared in choice tags.

Is this an AXIS2 bug or is just a bad XSD? If a bug should I create a
JIRA? I cannot see any reports of this in either the mailing list or the
JIRA repository.

Can anybody suggest a work around that would produce exactly the same
SOAP, as I am using this against a 3rd party interface (supplied by a
large San Francisco based router manufacturer that shall remain
nameless) so have no control over the format of the messages.

I did try to replicate this in 1.3 RC2 but I see that the wsdl2java task
was omitted. I notice as I am writing this that RC3 has just been
released so I will test against that later today.
 

Steve Hindmarch



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



[Axis2] Axis2 1.3 RC3 released

2007-08-03 Thread Deepal jayasinghe
Hi all,

I have uploaded Axis2 1.3 RC3 into my Apache home location [1] . This
release does not have any SNAPSHOT dependencies and we have fixed a
number of issues between RC2 and RC3 so please test the release
candidate as much as you can. My plan is to make this is final RC and
upload the final release on coming Monday 6th Aug 2007 for voting.

You can find the release plugings [2] and the maven2 repo is available
at [3].

When we test please try to cover the following
 - Code generation
 - Sessions
 - Web application
 - In different application servers
- Both JDK 1.5 and JDK 1.4
- Java2WSDL
- POJOs
- And what ever the JIRA we have marked as fixed.


[1] : http://people.apache.org/~deepal/axis2/1.3-RC3/
[2] : http://people.apache.org/~deepal/axis2/1.3-RC3/tools/
[3] : http://people.apache.org/~deepal/axis2/1.3-RC3/m2-repo/

Thanks
Deepal


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



Re: Newbie question about using axis as webservice client

2007-08-03 Thread DelGurth
On 8/3/07, Lahiru Sandakith <[EMAIL PROTECTED]> wrote:
> Hi DelGurth,
>
> As you say the webservice changed then the wsdl also should be different, so
> IMO there is no option other than regenerating the client using wsdl2java
> tool (via Eclipse), because its an interface level change.
>
> Thanks
>
> Lahiru Sandakith

Hi Lahiru,

Thanks for your quick response. It indeed seems that the only
resolution is to regenerate the client. I guess I shouldn't generate
stubs for the client if I want my application to be able to handle
WSDL changes automatically (with the assumption that all changes are
backwards compatible).

Btw, resolving nullpointer exceptions in the client code (for example
if an extended get method, to arrange sorting of data, is not written
null save) is pretty darn hard. You don't get the original nullpointer
exception, only the message that during the population a nullpointer
exception occurred. Not sure where I should address that (is 1.x still
under development?)

Regards,
Wessel van Norel

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



Re: Axis2 byte[] transfer/serialization bug ?!

2007-08-03 Thread Georgia Giacobbi

no, i'm use jax-ws

Paul Fremantle ha scritto:

How did you create these services? by POJO?

Paul

On 8/3/07, Georgia Giacobbi <[EMAIL PROTECTED]> wrote:
  

YES, this is the question.
i can?!

Isenor, Anthony ha scritto:


I have also been wondering about this exact question.

Please correct me if I am wrong, but I think the issue is the
 tag.  At the moment, the response looks like this:

http://my.it/data";>
   ciao


I think the question is, is there a way to make the response look like
this:

http://my.it/data";>
   ciao



The  tag is something being added by AXIS2.  Can we shut that
off?

Anthony

-Original Message-
From: Paul Fremantle [mailto:[EMAIL PROTECTED]
Sent: Friday, August 03, 2007 7:22 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 byte[] transfer/serialization bug ?!

Georgia

I'm still not clear :) Sorry!

What is the problem with th response?

Paul

On 8/3/07, Georgia Giacobbi <[EMAIL PROTECTED]> wrote:

  

The my error is in soap message response

see this:



xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>

  


http://my.it/data";>
ciao




in the my WSDL, i don't declare return element, and in the web



Services

  

i declare with  JAX-WS annotation the result name




(@WebResult(name="myReturn",partName="myReturn",targetNamespace="http://
my.it/data")

  

)

Paul Fremantle ha scritto:



Georgia

What exactly is your error?
I'm not clear from the email.

Paul

On 8/3/07, reichan <[EMAIL PROTECTED]> wrote:


  

Hi Georgi

I have the similar error.

Can i disable the "return" element autogenerated by AXIS2?!

I have tried to indicate the name of the ws using the annotation of



JAX-WS,

  

WebResult, but seems that AXIS2 don't care about those.

I'm using AXIS2 1.3 RC2.




Georgi Yonchev wrote:




Thilina Gunarathne wrote:


  

Looks like a bug... Please report a JIRA...

You may also try replacing byte[] with



javax.activation.DataHandler...

  

DataHandler is the recommended way when using large



attachments...

  

thanks,
Thilina

On 7/24/07, Georgi Yonchev <[EMAIL PROTECTED]> wrote:




Thilina Gunarathne wrote:


  

and Deepal, yes works fine, but try it with larger byte[]

  

size,

  

with larger, in the payload goes array from bytes ?!
not encoded in base64 ..


  

Not clear what you meant?... Do they go as native binary in the



form

  

of an attachment or inside the soap body...

Thanks,
Thilina





-

  

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





inside in the soap body, the bytes are not encoded in base64, is
represented like integers
this is a part of the xml :



  

91021
01164511510512210158324948  
112116

  

591310

ta>91021011645119101105103104116
58321
1014109971085913101251310469910  

s:byteData>  

116101110

  

this happens only when i set the byte[] in Complex return object

class Result{
private byte[] bytes;
set..
get..
}

and the call likes:
public Res test(){
..set byte[] in res
return res;
}

if the call is :
public byte[] test(){
..
}
everything goes well...




  

-

  

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




  

Hi Thilina,
i report it on JIRA, and is fixed on both tags/branches in the

  

svn...

  

can you give some hints about this DataHandler ...
some example how to implement it,

10x a lot in advance :)
George




  

-

  

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





  

--
View this message in context:



http://www.nabble.com/Axis2-byte---transfer-serialization-bug--%21-tf413
4147.html#a11979538

  

Sent from the Axis - User mailing list archive at Nabble.com.






-

  

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





  

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






  

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






  



Re: Axis2 byte[] transfer/serialization bug ?!

2007-08-03 Thread Paul Fremantle
How did you create these services? by POJO?

Paul

On 8/3/07, Georgia Giacobbi <[EMAIL PROTECTED]> wrote:
> YES, this is the question.
> i can?!
>
> Isenor, Anthony ha scritto:
> > I have also been wondering about this exact question.
> >
> > Please correct me if I am wrong, but I think the issue is the
> >  tag.  At the moment, the response looks like this:
> >
> > http://my.it/data";>
> >ciao
> > 
> >
> > I think the question is, is there a way to make the response look like
> > this:
> >
> > http://my.it/data";>
> >ciao
> > 
> >
> >
> > The  tag is something being added by AXIS2.  Can we shut that
> > off?
> >
> > Anthony
> >
> > -Original Message-
> > From: Paul Fremantle [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 03, 2007 7:22 AM
> > To: axis-user@ws.apache.org
> > Subject: Re: Axis2 byte[] transfer/serialization bug ?!
> >
> > Georgia
> >
> > I'm still not clear :) Sorry!
> >
> > What is the problem with th response?
> >
> > Paul
> >
> > On 8/3/07, Georgia Giacobbi <[EMAIL PROTECTED]> wrote:
> >
> >> The my error is in soap message response
> >>
> >> see this:
> >> 
> >>  >>
> > xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
> >
> >> 
> >> http://my.it/data";>
> >> ciao
> >> 
> >> 
> >> 
> >>
> >> in the my WSDL, i don't declare return element, and in the web
> >>
> > Services
> >
> >> i declare with  JAX-WS annotation the result name
> >>
> >>
> > (@WebResult(name="myReturn",partName="myReturn",targetNamespace="http://
> > my.it/data")
> >
> >> )
> >>
> >> Paul Fremantle ha scritto:
> >>
> >>> Georgia
> >>>
> >>> What exactly is your error?
> >>> I'm not clear from the email.
> >>>
> >>> Paul
> >>>
> >>> On 8/3/07, reichan <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
>  Hi Georgi
> 
>  I have the similar error.
> 
>  Can i disable the "return" element autogenerated by AXIS2?!
> 
>  I have tried to indicate the name of the ws using the annotation of
> 
> > JAX-WS,
> >
>  WebResult, but seems that AXIS2 don't care about those.
> 
>  I'm using AXIS2 1.3 RC2.
> 
> 
> 
> 
>  Georgi Yonchev wrote:
> 
> 
> > Thilina Gunarathne wrote:
> >
> >
> >> Looks like a bug... Please report a JIRA...
> >>
> >> You may also try replacing byte[] with
> >>
> > javax.activation.DataHandler...
> >
> >> DataHandler is the recommended way when using large
> >>
> > attachments...
> >
> >> thanks,
> >> Thilina
> >>
> >> On 7/24/07, Georgi Yonchev <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>> Thilina Gunarathne wrote:
> >>>
> >>>
> > and Deepal, yes works fine, but try it with larger byte[]
> >
> > size,
> >
> > with larger, in the payload goes array from bytes ?!
> > not encoded in base64 ..
> >
> >
>  Not clear what you meant?... Do they go as native binary in the
> 
> > form
> >
>  of an attachment or inside the soap body...
> 
>  Thanks,
>  Thilina
> 
> 
> 
> > -
> >
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> >>> inside in the soap body, the bytes are not encoded in base64, is
> >>> represented like integers
> >>> this is a part of the xml :
> >>>
> >>>
> >>>
> > 91021
> > 0116 > ata>45115 > ata>105122101 > byteData>5832 > yteData>4948 >
> >>>
> > 112116 >
> >> 591310 >>
> > ta>9102 > a>10116 > teData>45119 > teData>101105103 > ns:byteData>104116
> > 58321
> > 1014 > ata>10997 > ata>1085913 > teData>10125 > teData>131046 > byteData>99111 > byteData>110 >
> >>> s:byteData> >>>
> >>> 2000
> >>>
> >>>
> >>>
> > 116101110 > Data>
> >
> >>> this happens only when i set the byte[] in Complex return object
> >>>
> >>> class Result{
> >>> private byte[] bytes;
> >>> set..
> >>> get..
> >>> }
> >>>
> >>> and the call likes:
> >>> public Res test(){
> >>> ..set byte[] in res
> >>> return res;
> >>> }
> >>>
> >>> if the call is :
> >>> public byte[] test(){
> >>> ..
> >>> }
> >>> everything goes well...
> >>>
> >>>
> >>>
> >>>
> > -
> >
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> > Hi Thilina,
> > i report it on JIRA, and is fixed on both tags/branches in the
> >
> > svn...
> >
> > can you give some hints about this DataHandler ...
> > some example how to implement it,
> >
> > 10x a lot in advance :)
> > George
> >
> >
> >
> >
> > 

Re: ClassNotFoundException at java2wsdl

2007-08-03 Thread Davanum Srinivas
Christian,

Can you please zip up the whole project and create a JIRA bug report?

thanks,
dims

On 8/3/07, Christian Oloff <[EMAIL PROTECTED]> wrote:
> Hi,
>
> while trying to get java2wsdl as part of a small maven2 project up and
> running, I got stuck with the following issues. (Please note that I am
> quite new to axis.)
>
> 1) The links to download axis2-java2wsdl-maven-plugin-1.2.jar on
> http://ws.apache.org/axis2/tools/index.html point to nothing right now,
> even the backup mirror answers '404'. Can someone take care of this (or
> am I doing something wrong here)?
>
> 2) When not trying to download but let maven sort out how to get the
> plugin, I get a ClassNotFoundException about the class implementing the
> service.
>
> See below for my configuration details.
>
> Any help appreciated!
>
> Best regards,
> Chris
>
> 
>
> My pom.xml contains the following:
> 
> org.apache.axis2.maven2
> axis2-java2wsdl-maven-plugin
> 
>   pojoservice.MyService
> 
> 
>   
> 
>   java2wsdl
> 
>   
> 
> 
>
> The full mvn output when getting the ClassNotFoundException looks as
> follows:
> [EMAIL PROTECTED]:~/myservice$ mvn -o package
> [INFO]
> NOTE: Maven is executing in offline mode. Any artifacts not already in
> your local
> repository will be inaccessible.
>
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO] Building Unnamed - chris-test:wesemo-pojoservice:jar:0.0.1-SNAPSHOT
> [INFO]task-segment: [package]
> [INFO]
> 
> [INFO] [axis2-java2wsdl:java2wsdl {execution: default}]
> java.lang.Exception: java.lang.ClassNotFoundException: pojoservice.MyService
> at
> org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:58)
> at
> org.apache.axis2.maven2.java2wsdl.Java2WSDLMojo.execute(Java2WSDLMojo.java:146)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: java.lang.ClassNotFoundException: pojoservice.MyService
> 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
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
> at
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> at
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> at
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:247)
> at
> org.apache.ws.java2wsdl.Java2WSDLUtils.namespaceFromClassName(Java2WSDLUtils.java:63)
> at
> org.apache.ws.java2wsdl.Java2WSDLUtils.schemaNamespaceFromClassName(Java2WSDLUtils.java:82)
> at
> org.apa

Re: Axis2 byte[] transfer/serialization bug ?!

2007-08-03 Thread Georgia Giacobbi

YES, this is the question.
i can?!

Isenor, Anthony ha scritto:
I have also been wondering about this exact question.  


Please correct me if I am wrong, but I think the issue is the
 tag.  At the moment, the response looks like this:

http://my.it/data";>
   ciao


I think the question is, is there a way to make the response look like
this:

http://my.it/data";>
   ciao



The  tag is something being added by AXIS2.  Can we shut that
off?

Anthony

-Original Message-
From: Paul Fremantle [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 03, 2007 7:22 AM

To: axis-user@ws.apache.org
Subject: Re: Axis2 byte[] transfer/serialization bug ?!

Georgia

I'm still not clear :) Sorry!

What is the problem with th response?

Paul

On 8/3/07, Georgia Giacobbi <[EMAIL PROTECTED]> wrote:
  

The my error is in soap message response

see this:



xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
  


http://my.it/data";>
ciao




in the my WSDL, i don't declare return element, and in the web


Services
  

i declare with  JAX-WS annotation the result name



(@WebResult(name="myReturn",partName="myReturn",targetNamespace="http://
my.it/data")
  

)

Paul Fremantle ha scritto:


Georgia

What exactly is your error?
I'm not clear from the email.

Paul

On 8/3/07, reichan <[EMAIL PROTECTED]> wrote:

  

Hi Georgi

I have the similar error.

Can i disable the "return" element autogenerated by AXIS2?!

I have tried to indicate the name of the ws using the annotation of


JAX-WS,
  

WebResult, but seems that AXIS2 don't care about those.

I'm using AXIS2 1.3 RC2.




Georgi Yonchev wrote:



Thilina Gunarathne wrote:

  

Looks like a bug... Please report a JIRA...

You may also try replacing byte[] with


javax.activation.DataHandler...
  

DataHandler is the recommended way when using large


attachments...
  

thanks,
Thilina

On 7/24/07, Georgi Yonchev <[EMAIL PROTECTED]> wrote:



Thilina Gunarathne wrote:

  

and Deepal, yes works fine, but try it with larger byte[]
  

size,
  

with larger, in the payload goes array from bytes ?!
not encoded in base64 ..

  

Not clear what you meant?... Do they go as native binary in the


form
  

of an attachment or inside the soap body...

Thanks,
Thilina




-
  

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




inside in the soap body, the bytes are not encoded in base64, is
represented like integers
this is a part of the xml :


  

91021
01164511510512210158324948  
  

112116  

591310

ta>91021011645119101105103104116
58321
1014109971085913101251310469910  

s:byteData>  

116101110
  

this happens only when i set the byte[] in Complex return object

class Result{
private byte[] bytes;
set..
get..
}

and the call likes:
public Res test(){
..set byte[] in res
return res;
}

if the call is :
public byte[] test(){
..
}
everything goes well...



  

-
  

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



  

Hi Thilina,
i report it on JIRA, and is fixed on both tags/branches in the
  

svn...
  

can you give some hints about this DataHandler ...
some example how to implement it,

10x a lot in advance :)
George



  

-
  

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




  

--
View this message in context:


http://www.nabble.com/Axis2-byte---transfer-serialization-bug--%21-tf413
4147.html#a11979538
  

Sent from the Axis - User mailing list archive at Nabble.com.





-
  

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






  

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






  


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



java2WSDL with interfaces as bean parameters

2007-08-03 Thread Tanguy von Stebut
Hello , I'm a newby to Axis, using Axis I 1.4

As java2WSDL tool doesn't support Interfaces as methods parameters, is there
a way to specify axis which Implmentation classes correspond to found
interfaces ?

Tanks in advance for the answer,

Regards,

Tanguy von Stebut

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



ClassNotFoundException at java2wsdl

2007-08-03 Thread Christian Oloff

Hi,

while trying to get java2wsdl as part of a small maven2 project up and 
running, I got stuck with the following issues. (Please note that I am 
quite new to axis.)


1) The links to download axis2-java2wsdl-maven-plugin-1.2.jar on 
http://ws.apache.org/axis2/tools/index.html point to nothing right now, 
even the backup mirror answers '404'. Can someone take care of this (or 
am I doing something wrong here)?


2) When not trying to download but let maven sort out how to get the 
plugin, I get a ClassNotFoundException about the class implementing the 
service.


See below for my configuration details.

Any help appreciated!

Best regards,
Chris



My pom.xml contains the following:
   
   org.apache.axis2.maven2
   axis2-java2wsdl-maven-plugin
   
 pojoservice.MyService
   
   
 
   
 java2wsdl
   
 
   
   

The full mvn output when getting the ClassNotFoundException looks as 
follows:

[EMAIL PROTECTED]:~/myservice$ mvn -o package
[INFO]
NOTE: Maven is executing in offline mode. Any artifacts not already in 
your local

repository will be inaccessible.

[INFO] Scanning for projects...
[INFO] 


[INFO] Building Unnamed - chris-test:wesemo-pojoservice:jar:0.0.1-SNAPSHOT
[INFO]task-segment: [package]
[INFO] 


[INFO] [axis2-java2wsdl:java2wsdl {execution: default}]
java.lang.Exception: java.lang.ClassNotFoundException: pojoservice.MyService
   at 
org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:58)
   at 
org.apache.axis2.maven2.java2wsdl.Java2WSDLMojo.execute(Java2WSDLMojo.java:146)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)

   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:597)
   at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.ClassNotFoundException: pojoservice.MyService
   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 
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
   at 
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
   at 
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
   at 
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)

   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:247)
   at 
org.apache.ws.java2wsdl.Java2WSDLUtils.namespaceFromClassName(Java2WSDLUtils.java:63)
   at 
org.apache.ws.java2wsdl.Java2WSDLUtils.schemaNamespaceFromClassName(Java2WSDLUtils.java:82)
   at 
org.apache.ws.java2wsdl.Java2WSDLBuilder.getSchemaTargetNamespace(Java2WSDLBuilder.java:56)
   at 
org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilder.java:152)
   at 
org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:56)

   ... 19 more
[INFO] 

RE: Axis2 byte[] transfer/serialization bug ?!

2007-08-03 Thread Isenor, Anthony
I have also been wondering about this exact question.  

Please correct me if I am wrong, but I think the issue is the
 tag.  At the moment, the response looks like this:

http://my.it/data";>
   ciao


I think the question is, is there a way to make the response look like
this:

http://my.it/data";>
   ciao



The  tag is something being added by AXIS2.  Can we shut that
off?

Anthony

-Original Message-
From: Paul Fremantle [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 03, 2007 7:22 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 byte[] transfer/serialization bug ?!

Georgia

I'm still not clear :) Sorry!

What is the problem with th response?

Paul

On 8/3/07, Georgia Giacobbi <[EMAIL PROTECTED]> wrote:
> The my error is in soap message response
>
> see this:
> 
> http://www.w3.org/2003/05/soap-envelope";>
> 
> http://my.it/data";>
> ciao
> 
> 
> 
>
> in the my WSDL, i don't declare return element, and in the web
Services
> i declare with  JAX-WS annotation the result name
>
(@WebResult(name="myReturn",partName="myReturn",targetNamespace="http://
my.it/data")
> )
>
> Paul Fremantle ha scritto:
> > Georgia
> >
> > What exactly is your error?
> > I'm not clear from the email.
> >
> > Paul
> >
> > On 8/3/07, reichan <[EMAIL PROTECTED]> wrote:
> >
> >> Hi Georgi
> >>
> >> I have the similar error.
> >>
> >> Can i disable the "return" element autogenerated by AXIS2?!
> >>
> >> I have tried to indicate the name of the ws using the annotation of
JAX-WS,
> >> WebResult, but seems that AXIS2 don't care about those.
> >>
> >> I'm using AXIS2 1.3 RC2.
> >>
> >>
> >>
> >>
> >> Georgi Yonchev wrote:
> >>
> >>> Thilina Gunarathne wrote:
> >>>
>  Looks like a bug... Please report a JIRA...
> 
>  You may also try replacing byte[] with
javax.activation.DataHandler...
>  DataHandler is the recommended way when using large
attachments...
> 
>  thanks,
>  Thilina
> 
>  On 7/24/07, Georgi Yonchev <[EMAIL PROTECTED]> wrote:
> 
> > Thilina Gunarathne wrote:
> >
> >>> and Deepal, yes works fine, but try it with larger byte[]
size,
> >>> with larger, in the payload goes array from bytes ?!
> >>> not encoded in base64 ..
> >>>
> >> Not clear what you meant?... Do they go as native binary in the
form
> >> of an attachment or inside the soap body...
> >>
> >> Thanks,
> >> Thilina
> >>
> >>
-
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> > inside in the soap body, the bytes are not encoded in base64, is
> > represented like integers
> > this is a part of the xml :
> >
> >
91021
01164511510512210158324948 >
> >
> >>
11211659131091021011645119101105103104116
58321
1014109971085913101251310469910 >>
> > s:byteData> >
> > 2000
> >
> >
> >>
116101110
> >>
> > this happens only when i set the byte[] in Complex return object
> >
> > class Result{
> > private byte[] bytes;
> > set..
> > get..
> > }
> >
> > and the call likes:
> > public Res test(){
> > ..set byte[] in res
> > return res;
> > }
> >
> > if the call is :
> > public byte[] test(){
> > ..
> > }
> > everything goes well...
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> >>> Hi Thilina,
> >>> i report it on JIRA, and is fixed on both tags/branches in the
svn...
> >>> can you give some hints about this DataHandler ...
> >>> some example how to implement it,
> >>>
> >>> 10x a lot in advance :)
> >>> George
> >>>
> >>>
> >>>
-
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >> --
> >> View this message in context:
http://www.nabble.com/Axis2-byte---transfer-serialization-bug--%21-tf413
4147.html#a11979538
> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >>
> >>
> >>
-
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

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

-
To unsub

Re: wsdl 2.0 process

2007-08-03 Thread Thilina Gunarathne
You can use the XSLT style sheet[1] published by the W3C
programatically to do the WSDL 1.1 to WSDL 2.0 conversion..

Thanks,
Thilina

[1] http://www.w3.org/2006/02/wsdl11to20.xsl

On 8/3/07, Chathura Herath <[EMAIL PROTECTED]> wrote:
> Kieth,
> Is there a API somewhere that does this
> Thanks
> Chathura
>
> On 8/3/07, keith chapman <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > There is a tool hosted at
> > http://tools.wso2.org:19762/wservices/WSDLConverter/ which
> > can be used pretty easily to convert a WSDL 1.1 to WSDL 2.0 .
> >
> > Thanks,
> > Keith.
> >
> >
> > On 8/2/07, New AxisU <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > I am converting some 1.1 wsdl's to 2.0 and I am very pleased with using
> > axis2.
> > >
> > > First I went to
> > http://www.w3.org/2006/02/WSDLConvert.html and tried their
> > online converter.
> > > It didn't work for me but I might have had a bad character in the file.
> > >
> > > Instead, I used their "XSLT 2.0 stylesheet used for the conversion " with
> > XMSpy and created
> > > a converted wsdl.
> > >
> > > Then I fed the converted wsdl's into axis2's wsdl2java batch file and ran
> > it successfully.
> > >
> > > Various people have been asking about how to validate their 2.0 wsdl.
> > This worked much
> > > better for me than trying to use my converted wsdl, with XMLSpy or Stylus
> > Studio, and the
> > > wsdl2.0 schema.
> > >
> > > Thanks again Axis2 folks.
> >
> >
> >
> > --
> > Keith Chapman
> > WSO2 Inc.
> > Oxygen for Web Services Developers.
> > http://wso2.org/
>
>
> --
> Chathura Herath
> http://people.apache.org/~chathura/
> http://chathurah.blogspot.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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



Re: Newbie question about using axis as webservice client

2007-08-03 Thread Lahiru Sandakith
Hi DelGurth,

As you say the webservice changed then the wsdl also should be different, so
IMO there is no option other than regenerating the client using wsdl2java
tool (via Eclipse), because its an interface level change.

Thanks

Lahiru Sandakith

On 8/3/07, DelGurth <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I recently stated using axis as my web service client. I've used the
> wsdl2java tool (via Eclipse) to generate the client code based on the
> wsdl file of the service.
>
> Now the web service changed, it contains a new field, and my client
> application doesn't work anymore. Is there a way to make my client
> ignore fields that are unknown to it?
>
> I tried finding an answer in the client-side axis documentation, but I
> can't find it, unfortunately. That's why I end up here.
>
> Regards,
> Wessel van Norel
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F


Re: wsdl 2.0 process

2007-08-03 Thread Chathura Herath
Kieth,
Is there a API somewhere that does this
Thanks
Chathura

On 8/3/07, keith chapman <[EMAIL PROTECTED]> wrote:
> Hi,
>
> There is a tool hosted at
> http://tools.wso2.org:19762/wservices/WSDLConverter/ which
> can be used pretty easily to convert a WSDL 1.1 to WSDL 2.0 .
>
> Thanks,
> Keith.
>
>
> On 8/2/07, New AxisU <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I am converting some 1.1 wsdl's to 2.0 and I am very pleased with using
> axis2.
> >
> > First I went to
> http://www.w3.org/2006/02/WSDLConvert.html and tried their
> online converter.
> > It didn't work for me but I might have had a bad character in the file.
> >
> > Instead, I used their "XSLT 2.0 stylesheet used for the conversion " with
> XMSpy and created
> > a converted wsdl.
> >
> > Then I fed the converted wsdl's into axis2's wsdl2java batch file and ran
> it successfully.
> >
> > Various people have been asking about how to validate their 2.0 wsdl.
> This worked much
> > better for me than trying to use my converted wsdl, with XMLSpy or Stylus
> Studio, and the
> > wsdl2.0 schema.
> >
> > Thanks again Axis2 folks.
>
>
>
> --
> Keith Chapman
> WSO2 Inc.
> Oxygen for Web Services Developers.
> http://wso2.org/


-- 
Chathura Herath
http://people.apache.org/~chathura/
http://chathurah.blogspot.com/

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



Re: Axis2 byte[] transfer/serialization bug ?!

2007-08-03 Thread Paul Fremantle
Georgia

I'm still not clear :) Sorry!

What is the problem with th response?

Paul

On 8/3/07, Georgia Giacobbi <[EMAIL PROTECTED]> wrote:
> The my error is in soap message response
>
> see this:
> 
> http://www.w3.org/2003/05/soap-envelope";>
> 
> http://my.it/data";>
> ciao
> 
> 
> 
>
> in the my WSDL, i don't declare return element, and in the web Services
> i declare with  JAX-WS annotation the result name
> (@WebResult(name="myReturn",partName="myReturn",targetNamespace="http://my.it/data";)
> )
>
> Paul Fremantle ha scritto:
> > Georgia
> >
> > What exactly is your error?
> > I'm not clear from the email.
> >
> > Paul
> >
> > On 8/3/07, reichan <[EMAIL PROTECTED]> wrote:
> >
> >> Hi Georgi
> >>
> >> I have the similar error.
> >>
> >> Can i disable the "return" element autogenerated by AXIS2?!
> >>
> >> I have tried to indicate the name of the ws using the annotation of JAX-WS,
> >> WebResult, but seems that AXIS2 don't care about those.
> >>
> >> I'm using AXIS2 1.3 RC2.
> >>
> >>
> >>
> >>
> >> Georgi Yonchev wrote:
> >>
> >>> Thilina Gunarathne wrote:
> >>>
>  Looks like a bug... Please report a JIRA...
> 
>  You may also try replacing byte[] with javax.activation.DataHandler...
>  DataHandler is the recommended way when using large attachments...
> 
>  thanks,
>  Thilina
> 
>  On 7/24/07, Georgi Yonchev <[EMAIL PROTECTED]> wrote:
> 
> > Thilina Gunarathne wrote:
> >
> >>> and Deepal, yes works fine, but try it with larger byte[] size,
> >>> with larger, in the payload goes array from bytes ?!
> >>> not encoded in base64 ..
> >>>
> >> Not clear what you meant?... Do they go as native binary in the form
> >> of an attachment or inside the soap body...
> >>
> >> Thanks,
> >> Thilina
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> > inside in the soap body, the bytes are not encoded in base64, is
> > represented like integers
> > this is a part of the xml :
> >
> > 9102101164511510512210158324948 >
> >
> >> 11211659131091021011645119101105103104116583211014109971085913101251310469910 >>
> > s:byteData> >
> > 2000
> >
> >
> >> 116101110
> >>
> > this happens only when i set the byte[] in Complex return object
> >
> > class Result{
> > private byte[] bytes;
> > set..
> > get..
> > }
> >
> > and the call likes:
> > public Res test(){
> > ..set byte[] in res
> > return res;
> > }
> >
> > if the call is :
> > public byte[] test(){
> > ..
> > }
> > everything goes well...
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> >>> Hi Thilina,
> >>> i report it on JIRA, and is fixed on both tags/branches in the svn...
> >>> can you give some hints about this DataHandler ...
> >>> some example how to implement it,
> >>>
> >>> 10x a lot in advance :)
> >>> George
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >> --
> >> View this message in context: 
> >> http://www.nabble.com/Axis2-byte---transfer-serialization-bug--%21-tf4134147.html#a11979538
> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

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

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



Re: Axis2 byte[] transfer/serialization bug ?!

2007-08-03 Thread Georgia Giacobbi

The my error is in soap message response

see this:

http://www.w3.org/2003/05/soap-envelope";>

http://my.it/data";>
ciao




in the my WSDL, i don't declare return element, and in the web Services 
i declare with  JAX-WS annotation the result name 
(@WebResult(name="myReturn",partName="myReturn",targetNamespace="http://my.it/data";) 
)


Paul Fremantle ha scritto:

Georgia

What exactly is your error?
I'm not clear from the email.

Paul

On 8/3/07, reichan <[EMAIL PROTECTED]> wrote:
  

Hi Georgi

I have the similar error.

Can i disable the "return" element autogenerated by AXIS2?!

I have tried to indicate the name of the ws using the annotation of JAX-WS,
WebResult, but seems that AXIS2 don't care about those.

I'm using AXIS2 1.3 RC2.




Georgi Yonchev wrote:


Thilina Gunarathne wrote:
  

Looks like a bug... Please report a JIRA...

You may also try replacing byte[] with javax.activation.DataHandler...
DataHandler is the recommended way when using large attachments...

thanks,
Thilina

On 7/24/07, Georgi Yonchev <[EMAIL PROTECTED]> wrote:


Thilina Gunarathne wrote:
  

and Deepal, yes works fine, but try it with larger byte[] size,
with larger, in the payload goes array from bytes ?!
not encoded in base64 ..
  

Not clear what you meant?... Do they go as native binary in the form
of an attachment or inside the soap body...

Thanks,
Thilina

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



inside in the soap body, the bytes are not encoded in base64, is
represented like integers
this is a part of the xml :

9102101164511510512210158324948  

11211659131091021011645119101105103104116583211014109971085913101251310469910

s:byteData>  

116101110


this happens only when i set the byte[] in Complex return object

class Result{
private byte[] bytes;
set..
get..
}

and the call likes:
public Res test(){
..set byte[] in res
return res;
}

if the call is :
public byte[] test(){
..
}
everything goes well...


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


  


Hi Thilina,
i report it on JIRA, and is fixed on both tags/branches in the svn...
can you give some hints about this DataHandler ...
some example how to implement it,

10x a lot in advance :)
George


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



  

--
View this message in context: 
http://www.nabble.com/Axis2-byte---transfer-serialization-bug--%21-tf4134147.html#a11979538
Sent from the Axis - User mailing list archive at Nabble.com.


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






  



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



Re: Err: SubElement error return

2007-08-03 Thread Georgia Giacobbi

this is my wsdl


- <#> http://my.it*"; 
xmlns:typens="*http://my.it/data*"; 
xmlns="*http://www.w3.org/2001/XMLSchema*"; 
xmlns:wsaw="*http://www.w3.org/2006/05/addressing/wsdl*"; 
xmlns:wsdl="*http://schemas.xmlsoap.org/wsdl/*"; 
xmlns:tns="*http://my.it*"; 
xmlns:http="*http://schemas.xmlsoap.org/wsdl/http/*"; 
xmlns:soap="*http://schemas.xmlsoap.org/wsdl/soap/*"; 
xmlns:mime="*http://schemas.xmlsoap.org/wsdl/mime/*"; 
xmlns:soap12="*http://schemas.xmlsoap.org/wsdl/soap12/*";>

- <#> 
- <#> targetNamespace="*http://my.it/data*"; 
xmlns="*http://www.w3.org/2001/XMLSchema*";>

- 
- 
- <#> 
- <#> 
- <#> 
 
 
 
 
 
- 
- <#> 
- <#> 
- <#> 
 
 
 
 
 
 
- <#> 
 element="*typens:RetrieveCustomerIdentifyByCFResponse*" />

 
- <#> 
 element="*typens:RetrieveCustomerIdentifyByCFRequest*" />

 
- <#> 
- <#> 
 wsaw:Action="*http://my.it/AxisProvaPortType/RetrieveCustomerIdentifyByCFRequest*"; 
/>
 message="*tns:RetrieveCustomerIdentifyByCFResponseMessage*" 
wsaw:Action="*http://my.it/AxisProvaPortType/RetrieveCustomerIdentifyByCFResponse*"; 
/>

 
 
- <#> type="*tns:AxisProvaPortType*">
 transport="*http://schemas.xmlsoap.org/soap/http*"; />

- <#> 
 soapAction="*http://my.it/retrieveCustomerIdentifyByCF*"; />

- <#> 
 
 
- <#> 
 
 
 
 
- <#> type="*tns:AxisProvaPortType*">
 transport="*http://schemas.xmlsoap.org/soap/http*"; />

- <#> 
 
- <#> 
 
 
- <#> 
 
 
 
 
- <#> 
- <#> binding="*tns:AxisProvaSOAP12Binding*">
 location="*http://localhost:8080/axis2/services/AxisProva*"; />

 
- <#> binding="*tns:AxisProvaSOAP11Binding*">
 location="*http://192.168.119.14:8080/axis2/services/AxisProva*"; />

 
 
 


soap request
http://www.w3.org/2003/05/soap-envelope"; 
standalone="no"?>

http://www.w3.org/2003/05/soap-envelope";>

http://my.it/data";>
1234567890
CCCFFF84L12H501Z




soap response

http://www.w3.org/2003/05/soap-envelope";>

http://my.it/data";>
ciao





Amila Suriarachchi ha scritto:

can you send your wsdl?

On 8/3/07, *jnet2000* <[EMAIL PROTECTED] 
> wrote:


Hi All,


you can help me, I have a problem with a simple  ws.

using the client, response me with exception "
> java.lang.RuntimeException: java.lang.RuntimeException:
Unexpected
> subelement return
"
In my ws, I have specified that the output he will have to call
itself "result"  through the WebResult annotation. In the wsdl I have
indicated the output with the same name, "result".

axis2 answer generates me in automatic rifle not taking in
consideration the wsdl, why?!

On what this behavior depends?

Depends on one wrong configuration of Axis2? It depends on a wrong
configuration of the services.xml, or from as I have written the ws?


I'm currently using a Sun Application Server 9, JAX-WS , AXIS2 1.3,
JDK 1.6

please, you help me

thanks in advance
-
To unsubscribe, e-mail: [EMAIL PROTECTED]

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





--
Amila Suriarachchi,
WSO2 Inc.


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.11.2/931 - Release Date: 01/08/2007 16.53
  


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



Re: Axis2 byte[] transfer/serialization bug ?!

2007-08-03 Thread Paul Fremantle
Georgia

What exactly is your error?
I'm not clear from the email.

Paul

On 8/3/07, reichan <[EMAIL PROTECTED]> wrote:
>
> Hi Georgi
>
> I have the similar error.
>
> Can i disable the "return" element autogenerated by AXIS2?!
>
> I have tried to indicate the name of the ws using the annotation of JAX-WS,
> WebResult, but seems that AXIS2 don't care about those.
>
> I'm using AXIS2 1.3 RC2.
>
>
>
>
> Georgi Yonchev wrote:
> >
> > Thilina Gunarathne wrote:
> >> Looks like a bug... Please report a JIRA...
> >>
> >> You may also try replacing byte[] with javax.activation.DataHandler...
> >> DataHandler is the recommended way when using large attachments...
> >>
> >> thanks,
> >> Thilina
> >>
> >> On 7/24/07, Georgi Yonchev <[EMAIL PROTECTED]> wrote:
> >>> Thilina Gunarathne wrote:
> >>> >> and Deepal, yes works fine, but try it with larger byte[] size,
> >>> >> with larger, in the payload goes array from bytes ?!
> >>> >> not encoded in base64 ..
> >>> > Not clear what you meant?... Do they go as native binary in the form
> >>> > of an attachment or inside the soap body...
> >>> >
> >>> > Thanks,
> >>> > Thilina
> >>> >
> >>> > -
> >>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> > For additional commands, e-mail: [EMAIL PROTECTED]
> >>> >
> >>> inside in the soap body, the bytes are not encoded in base64, is
> >>> represented like integers
> >>> this is a part of the xml :
> >>>
> >>> 9102101164511510512210158324948 >>>
> >>> >11211659131091021011645119101105103104116583211014109971085913101251310469910 >>>
> >>> s:byteData> >>>
> >>> 2000
> >>>
> >>> >116101110
> >>>
> >>>
> >>> this happens only when i set the byte[] in Complex return object
> >>>
> >>> class Result{
> >>> private byte[] bytes;
> >>> set..
> >>> get..
> >>> }
> >>>
> >>> and the call likes:
> >>> public Res test(){
> >>> ..set byte[] in res
> >>> return res;
> >>> }
> >>>
> >>> if the call is :
> >>> public byte[] test(){
> >>> ..
> >>> }
> >>> everything goes well...
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >>
> > Hi Thilina,
> > i report it on JIRA, and is fixed on both tags/branches in the svn...
> > can you give some hints about this DataHandler ...
> > some example how to implement it,
> >
> > 10x a lot in advance :)
> > George
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Axis2-byte---transfer-serialization-bug--%21-tf4134147.html#a11979538
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

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

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



Re: Err: SubElement error return

2007-08-03 Thread Amila Suriarachchi
can you send your wsdl?

On 8/3/07, jnet2000 <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
>
> you can help me, I have a problem with a simple  ws.
>
> using the client, response me with exception "
> > java.lang.RuntimeException: java.lang.RuntimeException: Unexpected
> > subelement return
> "
> In my ws, I have specified that the output he will have to call
> itself "result"  through the WebResult annotation. In the wsdl I have
> indicated the output with the same name, "result".
>
> axis2 answer generates me in automatic rifle not taking in
> consideration the wsdl, why?!
>
> On what this behavior depends?
>
> Depends on one wrong configuration of Axis2? It depends on a wrong
> configuration of the services.xml, or from as I have written the ws?
>
>
> I'm currently using a Sun Application Server 9, JAX-WS , AXIS2 1.3,
> JDK 1.6
>
> please, you help me
>
> thanks in advance
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


Re: Axis2 byte[] transfer/serialization bug ?!

2007-08-03 Thread reichan

Hi Georgi

I have the similar error.

Can i disable the "return" element autogenerated by AXIS2?!

I have tried to indicate the name of the ws using the annotation of JAX-WS,
WebResult, but seems that AXIS2 don't care about those.

I'm using AXIS2 1.3 RC2.




Georgi Yonchev wrote:
> 
> Thilina Gunarathne wrote:
>> Looks like a bug... Please report a JIRA...
>>
>> You may also try replacing byte[] with javax.activation.DataHandler...
>> DataHandler is the recommended way when using large attachments...
>>
>> thanks,
>> Thilina
>>
>> On 7/24/07, Georgi Yonchev <[EMAIL PROTECTED]> wrote:
>>> Thilina Gunarathne wrote:
>>> >> and Deepal, yes works fine, but try it with larger byte[] size,
>>> >> with larger, in the payload goes array from bytes ?!
>>> >> not encoded in base64 ..
>>> > Not clear what you meant?... Do they go as native binary in the form
>>> > of an attachment or inside the soap body...
>>> >
>>> > Thanks,
>>> > Thilina
>>> >
>>> > -
>>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>> >
>>> inside in the soap body, the bytes are not encoded in base64, is
>>> represented like integers
>>> this is a part of the xml :
>>>
>>> 9102101164511510512210158324948>>
>>> >11211659131091021011645119101105103104116583211014109971085913101251310469910>>
>>> s:byteData>>>
>>> 2000
>>>
>>> >116101110
>>>
>>>
>>> this happens only when i set the byte[] in Complex return object
>>>
>>> class Result{
>>> private byte[] bytes;
>>> set..
>>> get..
>>> }
>>>
>>> and the call likes:
>>> public Res test(){
>>> ..set byte[] in res
>>> return res;
>>> }
>>>
>>> if the call is :
>>> public byte[] test(){
>>> ..
>>> }
>>> everything goes well...
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
> Hi Thilina,
> i report it on JIRA, and is fixed on both tags/branches in the svn...
> can you give some hints about this DataHandler ...
> some example how to implement it,
> 
> 10x a lot in advance :)
> George
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Axis2-byte---transfer-serialization-bug--%21-tf4134147.html#a11979538
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Axis2 isn't following document literal wrapped standard in generated code

2007-08-03 Thread Michael Mattox
I'm using xmlbeans, and I noticed that the unwrap option doesn't have
any effect.  I get the same results.

I think I tried adb with unwrap false, and since false is the default,
I think there is not a need to specify it.

-Michael

On 8/2/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> Michael,
>
> Did you try the ADB binding ("-d adb") option with unwrap option ("-uw"?)
>
> thanks,
> dims
>
> On 8/2/07, Michael Mattox <[EMAIL PROTECTED]> wrote:
> > I'm trying out Axis2 after using XFire.  I have a WSDL that is
> > document literal wrapped.  My WSDL operation has a single element
> > named parameters.  This element refers to a complex type called
> > XInHolder.  This element contains a single element, called XIn which
> > is a complextype.
> >
> > As I understand the wrapped standard, my method foo should have one
> > parameter named XIn.  This is because each element of the "wrapper
> > object" is a parameter to the method.  This is the case with XFire.
> >
> > With Axis2, my method foo has a XDocument parameter (using xmlbeans
> > bindings).  This document class as a getXInHolder method.  The result
> > is Axis2 is generating the code with not only the wrapper element
> > (which shouldn't be) but also a Document object which wraps the
> > wrapper element.  This adds 2 levels to my web service.
> >
> > This isn't a major problem because my web service simply delegates to
> > a business service and we can dereference the objects and pass the
> > correct object (XIn).  But it doesn't seem like Axis2 is respecting
> > the wrapped standard.  Actually I'm not sure this is even specified in
> > the standard.
> >
> > Any ideas?
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: xs:anyType deserialize problem in Axis2 version 1.2

2007-08-03 Thread Deepal jayasinghe
Ken Tam wrote:
> Hi all,
>  
> I've exposed a POJO web service with a method which returns another
> POJO containing a member of type Object. This translates to xs:anyType
> in the WSDL. I wrote an AXIS2 client to consume this web service. The
> value of the Object is null after the deserialization process. The
> actual value of the Object member is a simple type (String, Float and
> Integer). Is there another way to instruct the WSDL generation process
> to use a different value? Is this a deserialization issue?
At the moment there is no way to configure that.

Thanks
Deepal

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