Re: exception code 61
Hi, To answer your second question: The locking mechanism used on Windows relied on an API which changed between versions of MS Visual C++. Unfortunately, this was not discovered until after Axis C++ 1.5 was released. However, we have now fixed this section of code to use an alternate API. If you wish to use source, you can get this from SVN (see instructions here: http://ws.apache.org/axis/cpp/developers-guide.html#checkingOut ) Adrian ___ Adrian Dick ([EMAIL PROTECTED]) WebSphere MQ and ESB Development IBM United Kingdom Ltd. Tel: +44-(0)-1962-819212 Notes: Adrian Dick/UK/[EMAIL PROTECTED] I am trying to rebuild the axis to get an debuggable version - but without luck neither, the error from ant is: 4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow) [cc] C:\opt\work\axis-c-src-1-5-win32\src\engine\Axis.cpp(302) : error C2440: 'reinterpret_ca st' : cannot convert from 'volatile long *' to 'void ** ' [cc] Conversion loses qualifiers [cc] C:\opt\work\axis-c-src-1-5-win32\src\engine\Axis.cpp(302) : fatal error C1903: unable to recover from previous error(s); stopping compilation where the code is like this: static volatile long g_uModuleInitializing = 0; static void start_initializing() { long exchange = 1; long comperand = 0; while (InterlockedCompareExchange(((void **)g_uModuleInitializing), static_castvoid *(exchange), static_castvoid *(comperand))); } the line 302 is the last line where calling InterlockedCompareExchange(((void **)... Any suggestion? By the way, the same code works ok on linux. Thanks! Tao
RE: Unhandled exception at 0x7c901230 : User breakpoint
Hi, Now my conf file looks like this: # The comment character is '#' #Available directives are as follows #(Some of these directives may not be implemented yet) # #WSDDFilePath:The path to the server wsdd #LogPath:The path to the axis log #ClientLogPath:The path to the axis client log #ClientWSDDFilePath:The path to the client wsdd #Transport_http:The HTTP transport library #Transport_smtp:The SMTP transport library #XMLParser:The xml parser library #NodeName:Node name #ListenPort:Listening port #Channel_HTTP:The HTTP transport channel library #Channel_HTTP_SSL:The HTTP transport secure channel library #LogPath:Axis\logs\AxisLog.txt #WSDDFilePath:Axis\conf\server.wsdd Transport_http:C:\test\HTTPTransport.dll Channel_HTTP:C:\test\HTTPChannel.dll XMLParser:C:\test\AxisXMLParserXerces.dll ClientLogPath:C:\test\log.txt All the dlls(HTTPTransport.dll, HTTPChannel.dll, AxisXMLParserXerces.dll) are at c:\test, so it would not be any spaces in the folder path. In addition, I tried to set the path to D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\bin, but it still does not work. I am getting the same problem. I am still not getting any logs. Any suggestions? Thanks Yaron -Original Message- From: Adrian Dick [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 1:08 PM To: Apache AXIS C User List Subject: RE: Unhandled exception at 0x7c901230 : User breakpoint Hi, ok, for the logs. LogPath is used by Axis c++ server, for client you need to use ClientLogPath The paths you're specifying for the various Axis C++ DLLs look a little suspicious to me, are they really located within your samples structure? or should your paths look more like: Transport_http:D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\bin\HT TPTransport.dll Asides from that you look to have the right settings. So it could be a path issue. Your path needs to include: Axis C++ libraries ( axis install\bin ) and the Xerces-c libraries ( xerces-c install\bin ) (must be v2.2.0 if using binary package). Adrian ___ Adrian Dick ([EMAIL PROTECTED]) WebSphere MQ and ESB Development IBM United Kingdom Ltd. Tel: +44-(0)-1962-819212 Notes: Adrian Dick/UK/[EMAIL PROTECTED] Yaron Cohen [EMAIL PROTECTED] wrote on 27/02/2006 08:57:14: Hi, Thanks for the quick answer. I am working with the latest version (I think) since I just download it (axis-c-1-5-win32). In addition, the first error that I got was that it can not find the conf file. After I solved this problem, I did what ever you said in the http://ws.apache.org/axis/cpp/install-guide.html#Installing_Client. Nevertheless, I think that I am not configuring it right. Here is my conf file content: # The comment character is '#' #Available directives are as follows #(Some of these directives may not be implemented yet) # #WSDDFilePath:The path to the server wsdd #LogPath:The path to the axis log #ClientLogPath:The path to the axis client log #ClientWSDDFilePath:The path to the client wsdd #Transport_http:The HTTP transport library #Transport_smtp:The SMTP transport library #XMLParser:The xml parser library #NodeName:Node name #ListenPort:Listening port #Channel_HTTP:The HTTP transport channel library #Channel_HTTP_SSL:The HTTP transport secure channel library #LogPath:Axis\logs\AxisLog.txt #WSDDFilePath:Axis\conf\server.wsdd Transport_http:D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\sample s\client\WebServiceClientTest3\HTTPTransport.dll Channel_HTTP:D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\samples\ client\WebServiceClientTest3\HTTPChannel.dll XMLParser:D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\samples\cli ent\WebServiceClientTest3\AxisXMLParserXerces.dll #ClientWSDDFilePath:C:\Documents and Settings\yaronco\Desktop\axis-c-win32-current-bin\axis-c-1-5-win32\sampl es\client\WebServiceClientTest3\deploy\conf\client.wsdd LogPath:D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\samples\clien t\WebServiceClientTest3\deploy\log\log.txt I am not getting any logs in the D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\samples\client\WebSe rviceClientTest3\deploy\log configured directory. Please help me, it looks like I am lost. -Original Message- From: Adrian Dick [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 10:44 AM To: Apache AXIS C User List Subject: Re: Unhandled exception at 0x7c901230 : User breakpoint Hi, Which version of Axis C++ are you using, and are you following the bundled instructions or latest versions available on http://ws.apache.org/axis/cpp/documentation.html ? It sounds like the problem you're seeing is caused by the Xerces-C libraries not being available on the system library path at runtime. Check the latest install/config instructions here: http://ws.apache.org/axis/cpp/install-guide.html#Installing_Client Adrian ___ Adrian Dick ([EMAIL PROTECTED]) Yaron Cohen
RE: Unhandled exception at 0x7c901230 : User breakpoint
Hi, Can you try turning on start up trace. Set the following environment variable to point to the log file you wish to create: AXISCPP_STARTUP_TRACE eg: AXISCPP_STARTUP_TRACE=c:\test\starttrace.txt Regards, Adrian ___ Adrian Dick ([EMAIL PROTECTED]) Yaron Cohen [EMAIL PROTECTED] wrote on 28/02/2006 11:47:15: Hi, Now my conf file looks like this: # The comment character is '#' #Available directives are as follows #(Some of these directives may not be implemented yet) # #WSDDFilePath:The path to the server wsdd #LogPath:The path to the axis log #ClientLogPath:The path to the axis client log #ClientWSDDFilePath:The path to the client wsdd #Transport_http:The HTTP transport library #Transport_smtp:The SMTP transport library #XMLParser:The xml parser library #NodeName:Node name #ListenPort:Listening port #Channel_HTTP:The HTTP transport channel library #Channel_HTTP_SSL:The HTTP transport secure channel library #LogPath:Axis\logs\AxisLog.txt #WSDDFilePath:Axis\conf\server.wsdd Transport_http:C:\test\HTTPTransport.dll Channel_HTTP:C:\test\HTTPChannel.dll XMLParser:C:\test\AxisXMLParserXerces.dll ClientLogPath:C:\test\log.txt All the dlls(HTTPTransport.dll, HTTPChannel.dll, AxisXMLParserXerces.dll) are at c:\test, so it would not be any spaces in the folder path. In addition, I tried to set the path to D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\bin, but it still does not work. I am getting the same problem. I am still not getting any logs. Any suggestions? Thanks Yaron -Original Message- From: Adrian Dick [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 1:08 PM To: Apache AXIS C User List Subject: RE: Unhandled exception at 0x7c901230 : User breakpoint Hi, ok, for the logs. LogPath is used by Axis c++ server, for client you need to use ClientLogPath The paths you're specifying for the various Axis C++ DLLs look a little suspicious to me, are they really located within your samples structure? or should your paths look more like: Transport_http:D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\bin\HT TPTransport.dll Asides from that you look to have the right settings. So it could be a path issue. Your path needs to include: Axis C++ libraries ( axis install\bin ) and the Xerces-c libraries ( xerces-c install\bin ) (must be v2.2.0 if using binary package). Adrian ___ Adrian Dick ([EMAIL PROTECTED]) WebSphere MQ and ESB Development IBM United Kingdom Ltd. Tel: +44-(0)-1962-819212 Notes: Adrian Dick/UK/[EMAIL PROTECTED] Yaron Cohen [EMAIL PROTECTED] wrote on 27/02/2006 08:57:14: Hi, Thanks for the quick answer. I am working with the latest version (I think) since I just download it (axis-c-1-5-win32). In addition, the first error that I got was that it can not find the conf file. After I solved this problem, I did what ever you said in the http://ws.apache.org/axis/cpp/install-guide.html#Installing_Client. Nevertheless, I think that I am not configuring it right. Here is my conf file content: # The comment character is '#' #Available directives are as follows #(Some of these directives may not be implemented yet) # #WSDDFilePath:The path to the server wsdd #LogPath:The path to the axis log #ClientLogPath:The path to the axis client log #ClientWSDDFilePath:The path to the client wsdd #Transport_http:The HTTP transport library #Transport_smtp:The SMTP transport library #XMLParser:The xml parser library #NodeName:Node name #ListenPort:Listening port #Channel_HTTP:The HTTP transport channel library #Channel_HTTP_SSL:The HTTP transport secure channel library #LogPath:Axis\logs\AxisLog.txt #WSDDFilePath:Axis\conf\server.wsdd Transport_http:D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\sample s\client\WebServiceClientTest3\HTTPTransport.dll Channel_HTTP:D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\samples\ client\WebServiceClientTest3\HTTPChannel.dll XMLParser:D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\samples\cli ent\WebServiceClientTest3\AxisXMLParserXerces.dll #ClientWSDDFilePath:C:\Documents and Settings\yaronco\Desktop\axis-c-win32-current-bin\axis-c-1-5-win32\sampl es\client\WebServiceClientTest3\deploy\conf\client.wsdd LogPath:D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\samples\clien t\WebServiceClientTest3\deploy\log\log.txt I am not getting any logs in the D:\mySms\axis-c-win32-current-bin\axis-c-1-5-win32\samples\client\WebSe rviceClientTest3\deploy\log configured directory. Please help me, it looks like I am lost. -Original Message- From: Adrian Dick [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 10:44 AM To: Apache AXIS C User List Subject: Re: Unhandled exception at 0x7c901230 : User breakpoint Hi, Which version of Axis C++ are you using, and are you
axis2 source snapshot
Hi, AXIS2, I've a problem using svn behind a proxy (it doesn't support some required http methods), I need the last cvs version because a bug (WSDL2Java Simple/Complex content) is fixed. how do I download it? any suggest? thanks a lot, Alessandro
The AXIS engine could not find a target service to invoke!
Hello, I have a problem with axis. I have a .wsdl file and I want to build a server. I follow next steps: 1)Deploy the wsdl: java org.apache.axis.wsdl.WSDL2Java --server-side --skeletonDeploy true file.wsdl This make some .java files and a .wsdd 2)Compile the .java that made the previous steps and make a .jar with them. 3)Copy .jar to the WEB-INF/lib directory in Axis. 4)Run the server (i.e port 1000) 5)Deploy the .wsdd: org.apache.axis.client.AdminClient path\deploy.wsdd -p 1000 6)I load the web http://localhost:1000 And it shows: And now... Some Services Service (wsdl) methodOne methodTwo ... AdminService (wsdl) AdminService Version (wsdl) getVersion Well, it shows all services I want, but when in Java I try to call one service (i.e closeSession): ServicePortType serv = (ServicePortType) new ServiceLocator().getService (new URL (http://localhost:1000/;)); serv.methodOne(arg); It makes next Exception: The AXIS engine could not find a target service to invoke! targetService is null Can you help me? Thanks.
Re: [AXIS2] How to get AXIS to log the time taken for a service invocation
When I add handlers how do I ties a request to a response because I will be needing to do this for all the services... On 2/27/06, Eran Chinthaka [EMAIL PROTECTED] wrote: I don't think we have that right now, but you can add your own handlers very easily for that. -- Chinthaka Raghavendra Vaidya wrote: Hi, IS there a way I can get Axis to log the time taken for a service execution?? Regards Vaidya
Axis 1.3 client using WS-Addressing and WSS4J with .NET server
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm trying to create Axis 1.3 client using WS-Addressing and WSS4J with .NET server. My problem is that the WS-Addressing header has the wrong namespace, it's using the 2004/08 version instead of the 2004/03 version the .NET service uses. There for .NET service will not find the correct header in the XML. Does anyone know a good way around this problem ? I found some websites suggesting it would be possible to change the Constants class of WS-Addressing, so that the default Namespace would be the 2004/03 version. I think that's pretty much a hack, and I'm not sure if it will work. Is it possible to set this some other way ? thanx - [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEBDmT19KgIQihNwgRApENAKCBIPai5j44zqtlXOEGCr5iq5rXHQCgnkV0 ymkUYxJSJHlxmLDaSK+jbm4= =dfGA -END PGP SIGNATURE-
SOAP attachments Interoperability
Hi all, I have to write a SOAP Service with Java that deliver different documents like Word, pdf and image files. As a Service Consumer I have to write a dotNET Client which invoke the service with the identifier of the desired document. I have three main questions: 1.) There are many types of attachment handlings and encodings like MTOM, sWA, DIME and MIME. Which of these are really both supported from .NET and from a Java. A read that I should use mime for an interoperable service, but I also read that dotNET does not support MIME encoding. 2.) Which Java Technology should I use for this, Apache Axis or JAX-WS? 3.) Do I have to define the attachment type in the wsdl-file. I saw some examples in which that was done. This is a problem for me because as I described the attachment type will differ for each response. Hope that someone can help me out of my uncertainty. greetings Florian
Re: [AXIS2] How to get AXIS to log the time taken for a service invocation
At the request Handler level , if you have operation context with you (if you trying to put ur handler after dispatch phase) , then you can set properties into OperationContext and get them at the response handler. Raghavendra Vaidya wrote: When I add handlers how do I ties a request to a response because I will be needing to do this for all the services... On 2/27/06, Eran Chinthaka [EMAIL PROTECTED] wrote: I don't think we have that right now, but you can add your own handlers very easily for that. -- Chinthaka Raghavendra Vaidya wrote: Hi, IS there a way I can get Axis to log the time taken for a service execution?? Regards Vaidya -- Thanks, Deepal ~Future is Open~
Re: SOAP attachments Interoperability
The following article might be of some help: Web Services, Opaque Data, and the Attachments Problem http://msdn.microsoft.com/library/default.asp?url=""> Rick Kellogg -- Original message -- From: Florian Rengers [EMAIL PROTECTED] Hi all, I have to write a SOAP Service with Java that deliver different documents like Word, pdf and image files. As a Service Consumer I have to write a dotNET Client which invoke the service with the identifier of the desired document.I have three main questions: 1.) There are many types of attachment handlings and encodings like MTOM, sWA, DIME and MIME. Which of these are really both supported from .NET and from a Java. A read that I should use mime for an interoperable service, but I also read that dotNET does not support MIME encoding. 2.) Which Java Technology should I use for this, Apache Axis or JAX-WS? 3.) Do I have to define the attachment type in the wsdl-file. I saw some examples in which that was done. This is a problem for me because as I described the attachment type will differ for each response.Hope that someone can help me out of my uncertainty. greetings Florian
Re: SOAP attachments Interoperability
[same answer I posted on the JAX-WS list]Florian,There are three choices for attachment protocols:- WS-Attachments over DIME (DIME)- SOAP with Attachment over MIME (SwA) - MTOM over MIME (MTOM)ASP.NET with WSE 2.0 supports DIME. ASP.NET with WSE 3.0 supports MTOMWCF supports MTOM.JAX-WS supports SwA (by default) and MTOM (when enabled). Axis 1.x supports SwA and DIME.Axis 2 supports MTOM. The best choice for interoperability is definitely MTOM.When using MTOM, you don't actually define an attachment -- you simply define the binary file as part of your SOAP message as type=xsd:base64Binary or type=xsd:hexBinary. MTOM automatically packages all binary types as MIME attachments for you transparently. You indicate the type of content in the element at runtime using an MTOM attribute extension, xmime:contentType. So, for example, the element would be define thus: xs:element name=MyBinaryData xs:complexTypexs:simpleContent xs:extension base=xs:base64Binary xs:attribute ref=xmime:contentType use=required/ /xs:extension/xs:simpleContent /xs:complexType/xs:element The xmime:base64Binary and xmime:hexBinary types have been predefined adding xmime:contentType attribute. In addition, you can identify what type of data might be expected in the element using the xmime:expectedContentType attribute. e.g.,xmime:expectedContentTypes=image/jpeg, image/pngThese MTOM extensions are defined in the Describing Media Content of Binary Data in XML specification ( http://www.w3.org/TR/2005/NOTE-xml-media-types-20050504/). Here are some useful links with samples/instructions: http://www.codeproject.com/soap/MTOMWebServices.asphttp://java.sun.com/webservices/docs/2.0/jaxws/mtom-swaref.html AnneOn 2/28/06, Florian Rengers [EMAIL PROTECTED] wrote:Hi all,I have to write a SOAP Service with Java that deliver different documents like Word, pdf and image files.As a Service Consumer I have to write a dotNET Client which invoke theservice with the identifier of the desired document.I have three main questions: 1.)There are many types of attachment handlings and encodings like MTOM,sWA, DIME and MIME.Which of these are really both supported from .NET and from a Java.A read that I should use mime for an interoperable service, but I also read that dotNET does not support MIME encoding.2.)Which Java Technology should I use for this, Apache Axis or JAX-WS?3.)Do I have to define the attachment type in the wsdl-file. I saw some examples in which that was done.This is a problem for me because as I described the attachment type willdiffer for each response.Hope that someone can help me out of my uncertainty.greetings Florian
Re: Axis 1.3 client using WS-Addressing and WSS4J with .NET server
Which version of .NET are you using? WSE 2.0, WSE 3.0, or WCF?Perhaps you need to upgrade?AnneOn 2/28/06, Reynir Hubner [EMAIL PROTECTED] wrote:-BEGIN PGP SIGNED MESSAGE-Hash: SHA1 Hi,I'm trying to create Axis 1.3 client using WS-Addressing and WSS4J with.NET server.My problem is that the WS-Addressing header has the wrong namespace,it's using the 2004/08 version instead of the 2004/03 version the .NET service uses. There for .NET service will not find the correct header inthe XML.Does anyone know a good way around this problem ? I found some websitessuggesting it would be possible to change the Constants class of WS-Addressing, so that the default Namespace would be the 2004/03 version.I think that's pretty much a hack, and I'm not sure if it will work.Is it possible to set this some other way ?thanx - -[EMAIL PROTECTED]-BEGIN PGP SIGNATURE-Version: GnuPG v1.2.5 (MingW32)Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEBDmT19KgIQihNwgRApENAKCBIPai5j44zqtlXOEGCr5iq5rXHQCgnkV0ymkUYxJSJHlxmLDaSK+jbm4==dfGA-END PGP SIGNATURE-
Re: [Axis2] Sending mails abt Axis2
+1On 2/27/06, Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi all,I also opposed the idea of a seperate mailing list sometime back but Ihave to admit that there's a whole lot of folks interested in Axis2right now which seems to be making the lists crowded (primarily by forgetting the axis2 prefix). If the Apache infra has no problem Iwould say we should go for a seperate list.AjithOn 2/27/06, Srinath Perera [EMAIL PROTECTED] wrote: +1, when we first started I oppose this becouse we need Axis 1 developer and users to look at Axis2 and to give feedback. But I think now it is good time to move to a seperate list .. taking one more step closer to 1.0 Srinath On 2/26/06, Jim Azeltine [EMAIL PROTECTED] wrote: I would like to propose once again to create a seperate list for Axis 2. I realize that it makes it so developers have two lists to deal with, but I believe it would be better. The focus of the two efforts is really very different, bug resolution and stability for Axis 1, new product development for 2. JimEran Chinthaka [EMAIL PROTECTED] wrote: Hi all, I see increasing traffic on issues regarding Axis2. This mail is just a reminder to pass the mails to the correct people. As you all can see we use the same mailing list to address the issues related to both Axis 1.x and Axis2. So we came up with a small convention to distinguish between those two. Please put the prefix [Axis2] in to the subjects of all your mails to Axis2. This way you have a better chance of getting a good and early reply from axis2 team. This is even mentioned in our site as well. Thanks, Chinthaka-- Srinath Perera:http://www.cs.indiana.edu/~hperera/ http://www.bloglines.com/blog/hemapani--Ajith Ranabahu
Re: [Axis2] Sending mails abt Axis2
+1 On 2/28/06, Anne Thomas Manes [EMAIL PROTECTED] wrote: +1 On 2/27/06, Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi all, I also opposed the idea of a seperate mailing list sometime back but I have to admit that there's a whole lot of folks interested in Axis2 right now which seems to be making the lists crowded (primarily by forgetting the axis2 prefix). If the Apache infra has no problem I would say we should go for a seperate list. Ajith On 2/27/06, Srinath Perera [EMAIL PROTECTED] wrote: +1, when we first started I oppose this becouse we need Axis 1 developer and users to look at Axis2 and to give feedback. But I think now it is good time to move to a seperate list .. taking one more step closer to 1.0 Srinath On 2/26/06, Jim Azeltine [EMAIL PROTECTED] wrote: I would like to propose once again to create a seperate list for Axis 2. I realize that it makes it so developers have two lists to deal with, but I believe it would be better. The focus of the two efforts is really very different, bug resolution and stability for Axis 1, new product development for 2. Jim Eran Chinthaka [EMAIL PROTECTED] wrote: Hi all, I see increasing traffic on issues regarding Axis2. This mail is just a reminder to pass the mails to the correct people. As you all can see we use the same mailing list to address the issues related to both Axis 1.x and Axis2. So we came up with a small convention to distinguish between those two. Please put the prefix [Axis2] in to the subjects of all your mails to Axis2. This way you have a better chance of getting a good and early reply from axis2 team. This is even mentioned in our site as well. Thanks, Chinthaka -- Srinath Perera: http://www.cs.indiana.edu/~hperera/ http://www.bloglines.com/blog/hemapani -- Ajith Ranabahu -- Chathura Herath http://chathurah.blogspot.com/
Problem while receiving SOAPDocument
Hi, I am using axis 1.3 (final) for the document style web services. I am able to send the document (org.w3c.dom.Document) from the client side. Also server receives it in the proper format. Im using the SOAPMonitor to watch the SOAP request and response. When the server returns the document, the root element of the document is missing in the client side. But I could able to see the root element in the SOAPMonitor. I am not sure where the problem is. Could you please suggest me to solve this error? Earlier reply on this highly appreciated. Thanks, Senthil
Configuring an axis service
Hy all, ill pass my configuration from the axis engine to my service. The Service (Java Implementation) will have an Interface for the config object. This config object should be setup on AxisEngine startup. Like Servlet-loadOnStartup. Now Ive defined an axis handler ,initialize my config object in the invoke method an put it in the application session. The Service Impl get it out of this application session and pass it to my Service (Java Implementation). Does anybody have another idea? I dont want that the service gets his configuration! IOC! Thanks Fredy
[axis2] WSDL and XML Schema Imports
Hello, I'm struggling with schema imports in my wsdl files and would like some hints for how to proceed. The hostname of the target web server/servlet container is not known at the time I create my wsdl so I am trying to use a relative schemaLocation in my import: xsd:import namespace="http://my.domain.com/common/stuff" schemaLocation="../schemas/myschema.xsd" / When I deploy my service, Axis2 will parse this wsdl and try to resolve the location of the schema as a file and fail because the "current directory" is not anywhere near the webapp folder. If I give the full URL to the imported schema (http://myhost:port/axis2/schemas/myschema.xsd) it works like a charm but as I said the hostname is not known at the time I create the wsdl so this is not an option. Is there any way to hook in an Entity Resolver, set some kind of property to get the wsdl4j to load schemas of the classpath or even disabling parsing of the wsdl:types so I can get this to work please let me know. Best Regards Johan Andersson
Does Axis for Java 1.2RC2 support IPv6?
Hi, I would have searched the archives, but searching is currently disabled. Thank you, - Phil Philip G. Lawrence Siemens Network Convergence, LLC 271 Mill Road Chelmsford, MA 01824 978-923-3302
How to return XML from a web service?
I've been able to get simple web services deployed as .jws and to access them from a Python client. This works fine. However, I really need to return XML rather than simple values, and this is where things get tricky. I've been browsing around the documentation, wiki, and samples, without really finding anything that seems to point in the right direction. Note that I do not want to build an object structure on the server and then serialize it to XML. I really want to produce XML directly, then return it. Any pointers are welcome. -- Lars Marius Garshol, Ontopian http://www.ontopia.net +47 98 21 55 50 http://www.garshol.priv.no
RE: Nightly snapshot of CVS source tree
The cvs/svn server is also denying connections. Any chance to get one of the two back. Regards, Darma From: Darma Muthiayen Sent: Monday, February 27, 2006 6:08 PMTo: 'axis-user@ws.apache.org'Subject: Nightly snapshot of CVS source tree Could we enable the nightly snapshot of the CVS source tree in http://cvs.apache.org/snapshots/ws-axis/ Regards, Darma
Re: [axis2] WSDL and XML Schema Imports
Hi Johan,I am not sure if it's a solution to your problem but I use real URL in schemaLocation to get rid of this kind of problems. What I do is defining my target URL in hosts file that maps to localhost. And also, I use Apache Web Server or IIS to host the localhost. For example, assuming you need to make following definition:schemaLocation="http://my.company.com/schemas/myschema.xsd"I offer you to do the following:1) Add an entry to the "hosts" file: my.company.com localhost "hosts" file resides under c:\WINDOWS\system32\drivers\etc\ in my Windows XP2) Install Apache Web Server or IIS. I use Apache.3) Create the "schemas" folder under htdocs folder of Apache. IIS must have its own directory structure.4) Put the "myschema.xsd" file under "schemas" folder5) When you call http://my.company.com/schemas/myschema.xsd URL with your browser, it must be there!Good luck,Ali Sadik Kumlali Johan Andersson [EMAIL PROTECTED] wrote: Hello,I'm struggling with schema imports in my wsdl files and would like some hints for how to proceed.The hostname of the target web server/servlet container is not known at the time I create my wsdl so I am trying to use a relative schemaLocation in my import: xsd:import namespace="http://my.domain.com/common/stuff" schemaLocation="../schemas/myschema.xsd" /When I deploy my service, Axis2 will parse this wsdl and try to resolve the location of the schema as a file and fail because the "current directory" is not anywhere near the webapp folder.If I give the full URL to the imported schema (http://myhost:port/axis2/schemas/myschema.xsd) it works like a charm but as I said the hostname is not known at the time I create the wsdl so this is not an option. Is there any way to hook in an Entity Resolver, set some kind of property to get the wsdl4j to load schemas of the classpath or even disabling parsing of the wsdl:types so I can get this to work please let me know.Best Regards Johan Andersson Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.
Re: How to return XML from a web service?
Use the Messaging API and deploy your service using WSDD rather than jws.AnneOn 2/28/06, Lars Marius Garshol [EMAIL PROTECTED] wrote:I've been able to get simple web services deployed as .jws and to access them from a Python client. This works fine.However, I really need to return XML rather than simple values, andthis is where things get tricky. I've been browsing around thedocumentation, wiki, and samples, without really finding anything that seems to point in the right direction.Note that I do not want to build an object structure on the serverand then serialize it to XML. I really want to produce XML directly,then return it.Any pointers are welcome. --Lars Marius Garshol, Ontopian http://www.ontopia.net+47 98 21 55 50 http://www.garshol.priv.no
[AXIS2] - Synapse and Axis...
Hi... I am using synpase to monitor the performance of the web services. My question is : How to tie a request to a respose so that the performance can be tracked as they flow thro' the Synapse. I asked this question on Synapse mailing list and did not get any answer. Since Synapse is implemented as an AXIS 2 module I thought the Axis users may be able to answer this question. Regards Vaidya
[AXIS 1.x and .NET] Axis Interoperability with .NET Clients using MTOM.
Hi Axis Gurus J I would like to get the company Im currently working at to adopt Axis (instead of say JWSDP) but I need to answer a few questions first. Do we need to use the latest AXIS 1 source to support MTOM or could we use the standard AXIS 1.3? I believe there is some MTOM support in axis 1.3? When using MTOM with AXIS 1.4 on the server and a .NET based client we need all responses to be multi-part encoded, otherwise .NET throws an error in handling the response. AXIS only uses multi-part format when a byte [] return param is present. This is logical but we are wondering if there is a way to force AXIS to use mutli-part encoding without otherwise impacting non-byte [] parameters. We have tried defining this in the WSDL binding but we found that our string return parameter effectively gets converted to an AXIS DataHandler. This avoids the exception in .NET but the client code can no longer understand the returned parameter. I have attached the master WSDL file we are using. The operation in question is called docSourceImport. You will see we worked around the problem by including a dummy byte [] return param called reserved in the docSourceImportResponse. This works but we would prefer a solution that does not impact the API. If anyone could help (or point us in the right direction) with the above, then that would be much appreciated. Many Thanks, Michael Melhem VRDWSAPI.wsdl Description: VRDWSAPI.wsdl
Re: Request for information ....
Hi, I am having a WSDL for a service with specified end point say "http://dione.csse.monash.edu.au:8080/gns-jaxrpc/gns". I have created server side java files by using axis class java -cp $AXISCLASSPATH org.apache.axis.wsdl.WSDL2Java -p gns -s wsdl/MyGns.wsdl The generated java files have been updated to real implemenation code. I have deployed the service into tomcat web container by using deploy.wsdd java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient deploy.wsdd The contents of deploy.wsdd are as follows [EMAIL PROTECTED] gns]$ cat deploy.wsdd !-- Use this file to deploy some handlers/chains and services -- !-- Two ways to do this: -- !-- java org.apache.axis.client.AdminClient deploy.wsdd -- !-- after the axis server is running -- !-- or -- !-- java org.apache.axis.utils.Admin client|server deploy.wsdd -- !-- from the same directory that the Axis engine runs -- deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" !-- Services from MyGns WSDL service -- service name="GnsIFPort" provider="java:RPC" style="rpc" use="encoded" parameter name="wsdlTargetNamespace" value="http://com.test/wsdl/MyGns"/ parameter name="wsdlServiceElement" value="MyGns"/ parameter name="wsdlServicePort" value="GnsIFPort"/ parameter name="className" value="gns.GnsIFBindingImpl"/ parameter name="wsdlPortType" value="GnsIF"/ endpointURLhttp://dione.csse.monash.edu.au:8080/gns-jaxrpc/gns/endpointURL operation name="getFileLocation" qname="operNS:getFileLocation" xmlns:operNS="http://com.test/wsdl/MyGns" returnQName="result" returnType="rtns:string" xmlns:rtns="http://www.w3.org/2001/XMLSchema" soapAction="" parameter qname="String_1" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema"/ parameter qname="int_2" type="tns:int" xmlns:tns="http://www.w3.org/2001/XMLSchema"/ /operation parameter name="allowedMethods" value="getFileLocation"/ /service /deployment == I found the deployed web service at the following location rather than the specified endpoind location of "http://dione.csse.monash.edu.au:8080/gns-jaxrpc/gns". http://dione.csse.monash.edu.au:8080/axis/services/GnsIFPort GnsIFPort Hi there, this is an AXIS service! Perhaps there will be a form for invoking the service here... = Could you mind to suggest about deploying the web service to a specified endpoint address? with regards, Jagan Kommineni
Re: SOAP attachments Interoperability
Hope you have already given a look at http://ws.apache.org/axis2/0_94/mtom-guide.html ~Thilina On 2/28/06, Anne Thomas Manes [EMAIL PROTECTED] wrote: [same answer I posted on the JAX-WS list] Florian,There are three choices for attachment protocols:- WS-Attachments over DIME (DIME)- SOAP with Attachment over MIME (SwA) - MTOM over MIME (MTOM) ASP.NET with WSE 2.0 supports DIME. ASP.NET with WSE 3.0 supports MTOMWCF supports MTOM.JAX-WS supports SwA (by default) and MTOM (when enabled). Axis 1.x supports SwA and DIME.Axis 2 supports MTOM. The best choice for interoperability is definitely MTOM.When using MTOM, you don't actually define an attachment -- you simply define the binary file as part of your SOAP message as type=xsd:base64Binary or type=xsd:hexBinary. MTOM automatically packages all binary types as MIME attachments for you transparently. You indicate the type of content in the element at runtime using an MTOM attribute extension, xmime:contentType. So, for example, the element would be define thus: xs:element name=MyBinaryData xs:complexTypexs:simpleContent xs:extension base=xs:base64Binary xs:attribute ref=xmime:contentType use=required/ /xs:extension/xs:simpleContent /xs:complexType/xs:element The xmime:base64Binary and xmime:hexBinary types have been predefined adding xmime:contentType attribute. In addition, you can identify what type of data might be expected in the element using the xmime:expectedContentType attribute. e.g., xmime:expectedContentTypes=image/jpeg, image/pngThese MTOM extensions are defined in the Describing Media Content of Binary Data in XML specification ( http://www.w3.org/TR/2005/NOTE-xml-media-types-20050504/). Here are some useful links with samples/instructions: http://www.codeproject.com/soap/MTOMWebServices.asp http://java.sun.com/webservices/docs/2.0/jaxws/mtom-swaref.html Anne On 2/28/06, Florian Rengers [EMAIL PROTECTED] wrote: Hi all,I have to write a SOAP Service with Java that deliver different documents like Word, pdf and image files. As a Service Consumer I have to write a dotNET Client which invoke theservice with the identifier of the desired document.I have three main questions:1.)There are many types of attachment handlings and encodings like MTOM, sWA, DIME and MIME.Which of these are really both supported from .NET and from a Java.A read that I should use mime for an interoperable service, but I also read that dotNET does not support MIME encoding. 2.)Which Java Technology should I use for this, Apache Axis or JAX-WS?3.)Do I have to define the attachment type in the wsdl-file. I saw someexamples in which that was done.This is a problem for me because as I described the attachment type will differ for each response.Hope that someone can help me out of my uncertainty.greetingsFlorian-- May the SourcE be with u http://webservices.apache.org/~thilina/http://thilinag.blogspot.com/ http://www.bloglines.com/blog/Thilina
RE: Nightly snapshot of CVS source tree
svn works fine: svn co http://svn.apache.org/repos/asf/webservices/axis/ axis The repository page needs updating though: http://ws.apache.org/axis/cvs.html. It would still be great to have the nightly snapshots of the source tree dropped in http://cvs.apache.org/snapshots/ws-axis/. Regards, Darma From: Darma Muthiayen Sent: Tuesday, February 28, 2006 12:53 PMTo: 'axis-user@ws.apache.org'Subject: RE: Nightly snapshot of CVS source tree The cvs/svn server is also denying connections. Any chance to get one of the two back. Regards, Darma From: Darma Muthiayen Sent: Monday, February 27, 2006 6:08 PMTo: 'axis-user@ws.apache.org'Subject: Nightly snapshot of CVS source tree Could we enable the nightly snapshot of the CVS source tree in http://cvs.apache.org/snapshots/ws-axis/ Regards, Darma
Re: how to debug Axis2 WSDL2Java
One wsdl that doesn't work is http://localhost:8080/axis2/services/version?wsdl, latest axis2 from svn, version.wsdl attached... $ java -classpath lib/axis2-0.95-SNAPSHOT.jar:lib/commons-logging-1.0.4.jar:lib/axis-wsdl4j-1.2.jar:lib/XmlSchema-1.0-SNAPSHOT.jar org.apache.axis2.wsdl.WSDL2Java -uri 'http://localhost:8080/axis2/services/version?wsdl' Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: Invalid WSDL: The WSDL Types Schema does not define a targetNamespace in http://localhost:8080/axis2/services/version?wsdl at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:146) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: Invalid WSDL: The WSDL Types Schema does not define a targetNamespace in http://localhost:8080/axis2/services/version?wsdl at org.apache.axis2.wsdl.codegen.extension.WSDLValidatorExtension.engage(WSDLValidatorExtension.java:70) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:101) ... 2 more Noah 2006/2/27, Ajith Ranabahu [EMAIL PROTECTED]: Hi, I have to admit that the WSDL2Java tool has poor error messages. The primary reason for the tool to have hideous error messages is that it does no validation so far. What you can do for now is to use something like the Capeclear SOA editor to validate the WSDL. If the WSDL is valid and the codegen still complains please attach the WSDL (you might need to file a JIRA as well :)). In the meantime we'll try to make the WSDL2java error messages more meaningful. Ajith On 2/27/06, Tachtevrenidis, Kosta [EMAIL PROTECTED] wrote: Greg, I have gotten that a lot too. What I do to get an idea of what is going on is to use the wsewsdl3.exe tool to try to generate code for .NET, which have a pretty good error message capability. Just my thoughts. Kosta Tachtevrenidis http://www.weyer.com/dmg From: Greg Michalopoulos [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 1:49 PM To: axis-user@ws.apache.org Subject: how to debug Axis2 WSDL2Java I am getting exceptions when running WSDL2Java in Axis2, is there any way to get feedback from the application what might be wrong with my WSDL? Thanks, Greg -- Ajith Ranabahu wsdl:definitions xmlns:ns1=http://org.apache.axis2/xsd; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:tns=http://org.apache.axis2/; targetNamespace=http://org.apache.axis2/;wsdl:typesxs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:ns2=http://www.w3.org/2001/XMLSchema; xmlns:ns0=http://www.w3.org/2001/XMLSchema; xmlns:ns1=http://www.w3.org/2001/XMLSchema; ns1:elementFormDefault=unqualified ns0:attributeFormDefault=unqualified ns2:targetNamespace=http://org.apache.axis2/xsd; xs:element name=getVersionRequest xs:complexType / /xs:element xs:element name=getVersionResponse xs:complexType xs:sequence xs:element type=xs:string name=return / /xs:sequence /xs:complexType /xs:element /xs:schema/wsdl:typeswsdl:message name=getVersionResponseMessagewsdl:part name=part1 element=ns1:getVersionResponse //wsdl:messagewsdl:message name=getVersionRequestMessagewsdl:part name=part1 element=ns1:getVersionRequest //wsdl:messagewsdl:portType name=versionPortwsdl:operation name=getVersionwsdl:input message=tns:getVersionRequestMessage /wsdl:output message=tns:getVersionResponseMessage //wsdl:operation/wsdl:portTypewsdl:binding name=versionBinding type=tns:versionPortsoap:binding transport=http://schemas.xmlsoap.org/soap/http; style=document /wsdl:operation name=getVersionsoap:operation soapAction=getVersion style=document /wsdl:inputsoap:body use=literal namespace=http://www.org.apache.axis2; //wsdl:inputwsdl:outputsoap:body use=literal namespace=http://www.org.apache.axis2; //wsdl:output/wsdl:operation/wsdl:bindingwsdl:service name=versionwsdl:port name=versionPortType binding=tns:versionBindingsoap:address location=http://computer.cc.columbia.edu:8080/hello-axis2/services/version; //wsdl:port/wsdl:service/wsdl:definitions
Re: [axis2] How to debug an Axis2 web service using EclipseWTP
Hi, There's no support for Axis2 with Eclipse WTP yet. If there's gonna be any, it'll probably be post 1.0. Right now if you want the web service to be debugged, the best option would be to use the remote debugger (in Eclipse or IDEA) and of course the HTTPTracer (a.k.a TCPMon) Ajith On 2/28/06, Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Dear all, EclipseWTP supports Axis and naturally generates required structure that allowes it to be debugged. I am wondering if it is also possible for the project that uses Axis2. I could not find any information either in EclipseWTP or Axis2 site. Also did search on Google and could not find anything either. Any help appreciated. Thanks, Ali Sadik Kumlali PS: I use Tomcat (5.5), Eclipse WTP (Version: 3.1.1, Build id: M20050929-0840), Axis2 (0.94) Yahoo! Mail Use Photomail to share photos without annoying attachments. -- Ajith Ranabahu
Re: Axis2 client
that was a bug in 0.94 release and we have fixed that in the current source tree. The solution to that problem is to create a folder called .axis2home in user directory and create a sun directory called modules inside that then download addressing.mar into it. Note : If you have any chance of getting current source code then you dont have any problem Greg Michalopoulos wrote: Trying to use client stub to test web service deployed using Axis2. The client(not the server) gives the following error: Module validation failed module.xml not found for the module : addressing; I have no modules deployed as far as I know. Any idea on where I should start on this? Thanks, Greg -- Thanks, Deepal ~Future is Open~
Re: Axis2 client
Hi, Please check whether the Addressing mar is in the classpath. BTW is this the latest codebase or just 0.94 release ? if it is 0.94 then please have a look at the download page for the instructions (http://ws.apache.org/axis2/download.cgi) On 2/28/06, Greg Michalopoulos [EMAIL PROTECTED] wrote: Trying to use client stub to test web service deployed using Axis2. The client(not the server) gives the following error: Module validation failed module.xml not found for the module : addressing; I have no modules deployed as far as I know. Any idea on where I should start on this? Thanks, Greg -- Ajith Ranabahu
Re: [axis2] WSDL and XML Schema Imports
Hi, does the error pop up from WSDL4J ? On 2/28/06, Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Hi Johan, I am not sure if it's a solution to your problem but I use real URL in schemaLocation to get rid of this kind of problems. What I do is defining my target URL in hosts file that maps to localhost. And also, I use Apache Web Server or IIS to host the localhost. For example, assuming you need to make following definition: schemaLocation=http://my.company.com/schemas/myschema.xsd; I offer you to do the following: 1) Add an entry to the hosts file: my.company.com localhost hosts file resides under c:\WINDOWS\system32\drivers\etc\ in my Windows XP 2) Install Apache Web Server or IIS. I use Apache. 3) Create the schemas folder under htdocs folder of Apache. IIS must have its own directory structure. 4) Put the myschema.xsd file under schemas folder 5) When you call http://my.company.com/schemas/myschema.xsd URL with your browser, it must be there! Good luck, Ali Sadik Kumlali Johan Andersson [EMAIL PROTECTED] wrote: Hello, I'm struggling with schema imports in my wsdl files and would like some hints for how to proceed. The hostname of the target web server/servlet container is not known at the time I create my wsdl so I am trying to use a relative schemaLocation in my import: xsd:import namespace=http://my.domain.com/common/stuff; schemaLocation=../schemas/myschema.xsd / When I deploy my service, Axis2 will parse this wsdl and try to resolve the location of the schema as a file and fail because the current directory is not anywhere near the webapp folder. If I give the full URL to the imported schema (http://myhost:port/axis2/schemas/myschema.xsd) it works like a charm but as I said the hostname is not known at the time I create the wsdl so this is not an option. Is there any way to hook in an Entity Resolver, set some kind of property to get the wsdl4j to load schemas of the classpath or even disabling parsing of the wsdl:types so I can get this to work please let me know. Best Regards Johan Andersson Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -- Ajith Ranabahu
RE: [AXIS2] - Synapse and Axis...
Hi Raghavendra, I actually didn't find your email in the Synapse list. For your question, we are in the process of providing a management framework which will give perf related data. If you want to do it right away then you may have to clock the time for each mediator. You can also refer to the last IRC for Synapse. http://mail-archives.apache.org/mod_mbox/ws-synapse-dev/200602.mbox/%3c71e1 [EMAIL PROTECTED] Thanks Soumadeep -Original Message- From: Raghavendra Vaidya [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 01, 2006 4:03 AM To: axis-user@ws.apache.org Subject: [AXIS2] - Synapse and Axis... Hi... I am using synpase to monitor the performance of the web services. My question is : How to tie a request to a respose so that the performance can be tracked as they flow thro' the Synapse. I asked this question on Synapse mailing list and did not get any answer. Since Synapse is implemented as an AXIS 2 module I thought the Axis users may be able to answer this question. Regards Vaidya
Re: how to debug Axis2 WSDL2Java
Hi Noah, Hmm..this is weird. The attached WSDL is clearly wrong! However I just tried it and seems to be working fine here. Are you on JDK 1.5 in Linux ? Knowing your environment helps us to recreate the problem. Ajith On 2/28/06, Noah Levitt [EMAIL PROTECTED] wrote: One wsdl that doesn't work is http://localhost:8080/axis2/services/version?wsdl, latest axis2 from svn, version.wsdl attached... $ java -classpath lib/axis2-0.95-SNAPSHOT.jar:lib/commons-logging-1.0.4.jar:lib/axis-wsdl4j-1.2.jar:lib/XmlSchema-1.0-SNAPSHOT.jar org.apache.axis2.wsdl.WSDL2Java -uri 'http://localhost:8080/axis2/services/version?wsdl' Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: Invalid WSDL: The WSDL Types Schema does not define a targetNamespace in http://localhost:8080/axis2/services/version?wsdl at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:146) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: Invalid WSDL: The WSDL Types Schema does not define a targetNamespace in http://localhost:8080/axis2/services/version?wsdl at org.apache.axis2.wsdl.codegen.extension.WSDLValidatorExtension.engage(WSDLValidatorExtension.java:70) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:101) ... 2 more Noah 2006/2/27, Ajith Ranabahu [EMAIL PROTECTED]: Hi, I have to admit that the WSDL2Java tool has poor error messages. The primary reason for the tool to have hideous error messages is that it does no validation so far. What you can do for now is to use something like the Capeclear SOA editor to validate the WSDL. If the WSDL is valid and the codegen still complains please attach the WSDL (you might need to file a JIRA as well :)). In the meantime we'll try to make the WSDL2java error messages more meaningful. Ajith On 2/27/06, Tachtevrenidis, Kosta [EMAIL PROTECTED] wrote: Greg, I have gotten that a lot too. What I do to get an idea of what is going on is to use the wsewsdl3.exe tool to try to generate code for .NET, which have a pretty good error message capability. Just my thoughts. Kosta Tachtevrenidis http://www.weyer.com/dmg From: Greg Michalopoulos [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 1:49 PM To: axis-user@ws.apache.org Subject: how to debug Axis2 WSDL2Java I am getting exceptions when running WSDL2Java in Axis2, is there any way to get feedback from the application what might be wrong with my WSDL? Thanks, Greg -- Ajith Ranabahu -- Ajith Ranabahu
Performance for Axis2 and Axis 1.x compared with other alternatives
I heard that using AXIS's default message transport (SOAP over HTTP) is going to be slow due to marshling unmarshling; and the through-put decreases exponentially with the size of the SOAP message (Bandwidth).I wonder whether it is a problem for Axis2 as well as Axis 1.x. Has anyone compared the performance of Axis2 or Axis 1.x with alternatives such as XFire, JAX-WS or ActiveSOAP. I'm asking this, because our team is at building a high-load web site, whose front-end (say JSPs or Servlets) will talk to back-end services working as a Web Service. And we looking for a Web Service technology that would give us high transaction rate and low latency. regards,-Hui
Re: Request for information ....
Hi, I am having a WSDL for a service with specified end point say "http://dione.csse.monash.edu.au:8080/gns-jaxrpc/gns". I have created server side java files by using axis class java -cp $AXISCLASSPATH org.apache.axis.wsdl.WSDL2Java -p gns -s wsdl/MyGns.wsdl The generated java files have been updated to real implemenation code. I have deployed the service into tomcat web container by using deploy.wsdd java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient deploy.wsdd The contents of deploy.wsdd are as follows [EMAIL PROTECTED] gns]$ cat deploy.wsdd !-- Use this file to deploy some handlers/chains and services -- !-- Two ways to do this: -- !-- java org.apache.axis.client.AdminClient deploy.wsdd -- !-- after the axis server is running -- !-- or -- !-- java org.apache.axis.utils.Admin client|server deploy.wsdd -- !-- from the same directory that the Axis engine runs -- deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" !-- Services from MyGns WSDL service -- service name="GnsIFPort" provider="java:RPC" style="rpc" use="encoded" parameter name="wsdlTargetNamespace" value="http://com.test/wsdl/MyGns"/ parameter name="wsdlServiceElement" value="MyGns"/ parameter name="wsdlServicePort" value="GnsIFPort"/ parameter name="className" value="gns.GnsIFBindingImpl"/ parameter name="wsdlPortType" value="GnsIF"/ endpointURLhttp://dione.csse.monash.edu.au:8080/gns-jaxrpc/gns/endpointURL operation name="getFileLocation" qname="operNS:getFileLocation" xmlns:operNS="http://com.test/wsdl/MyGns" returnQName="result" returnType="rtns:string" xmlns:rtns="http://www.w3.org/2001/XMLSchema" soapAction="" parameter qname="String_1" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema"/ parameter qname="int_2" type="tns:int" xmlns:tns="http://www.w3.org/2001/XMLSchema"/ /operation parameter name="allowedMethods" value="getFileLocation"/ /service /deployment == I found the deployed web service at the following location rather than the specified endpoind location of "http://dione.csse.monash.edu.au:8080/gns-jaxrpc/gns". http://dione.csse.monash.edu.au:8080/axis/services/GnsIFPort GnsIFPort Hi there, this is an AXIS service! Perhaps there will be a form for invoking the service here... = Could you mind to suggest about deploying the web service to a specified endpoint address? with regards, Jagan Kommineni
axis2 nightly build
dear group, is there a way to get a nightly build of axis2 (the binary). I know I can build it but sometimes having a nightly binary is handy. thanks Kosta