Re: axis2 with spring, ibatis

2008-04-17 Thread Henry Lu
Thank you Mr. Bull. Could you send me your sql-map-config.xml? My 
sql-map-config.xml is




   PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" 
   "http://ibatis.apache.org/dtd/sql-map-config-2.dtd";>




  



And I got the errors:

[java] [ERROR] The ChkUniqnameService.aar service, which is not 
valid, caus
ed Error creating bean with name 'sqlMapClient' defined in class path 
resource [
applicationContext.xml]: Invocation of init method failed; nested 
exception is j
ava.lang.RuntimeException: Error occurred.  Cause: 
com.ibatis.common.xml.Nodelet
Exception: Error parsing XML.  Cause: java.lang.RuntimeException: Error 
parsing
XPath '/sqlMapConfig/sqlMap'.  Cause: java.io.IOException: Could not 
find resour

ce misc.xml

-Henry

Anthony Bull wrote:
I'm doing iBatis, Spring in an AAR in production released Axis 2 web 
services.  In our case it is even harder than the equivalent hibernate 
setup, especially if you have multiple web services doing it and don't 
want them treading on each other's SQL maps.


If the Spring with Hibernate tutorial doesn't work in your case, I've 
done a tutorial on how I got my iBatis/Spring/Axis2 setup working that 
you can try out:


http://thejavamonkey.blogspot.com/2008/04/axis-2-web-services-with-spring-and.html

cheers,
Ants.

robert lazarski wrote:

I've never used ibatis, but presumably you'd load its config files via
the classpath like you do with hibernate. Hint: load the resources in
an exploded AAR as its easier. There's some tips on loading hibernate
files in the spring tutorial and a good place to start would be trying
the same thing with ibatis.

HTH,
Robert

On Tue, Apr 15, 2008 at 2:39 PM, Henry Lu <[EMAIL PROTECTED]> wrote:
  

Are there anyones who are using axis2 with spring and ibatis to access a
database? Could some one show me how to do this in the service (not client)
with an aar file? I don't know how to initialize/load the ibatis map file.

 -Henry

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



  



--

Anthony
- 
Anthony Bull

Senior Developer
Black Coffee Software Ltd
PO Box 10-192 The Terrace
Wellington, New Zealand
 
[EMAIL PROTECTED]

Ph  +64 4 472 8818
Fax +64 4 472 8811
- 
www.bcsoft.co.nz
--- 
This email may contain confidential or privileged information, 
and is intended for use only by the addressee, or addressees. 
If you are not the intended recipient please advise the sender 
immediately and do not copy, use or disclose the contents to 
any other person or organisation.
Black Coffee Software Ltd accepts no responsibility for viruses 
received with this email, or to any changes made to the original 
content. Any views or opinions expressed in this email may be
personal to the sender and are not necessarily those of Black 
Coffee Software Ltd.
--- 


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



Re: axis2 with spring, ibatis

2008-04-15 Thread Henry Lu
Where did you configure the loading files in an aar file for the axis2 
service? There is no web.xml file, do we?


-Henry

robert lazarski wrote:

I've never used ibatis, but presumably you'd load its config files via
the classpath like you do with hibernate. Hint: load the resources in
an exploded AAR as its easier. There's some tips on loading hibernate
files in the spring tutorial and a good place to start would be trying
the same thing with ibatis.

HTH,
Robert

On Tue, Apr 15, 2008 at 2:39 PM, Henry Lu <[EMAIL PROTECTED]> wrote:
  

Are there anyones who are using axis2 with spring and ibatis to access a
database? Could some one show me how to do this in the service (not client)
with an aar file? I don't know how to initialize/load the ibatis map file.

 -Henry

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



axis2 with spring, ibatis

2008-04-15 Thread Henry Lu
Are there anyones who are using axis2 with spring and ibatis to access a 
database? Could some one show me how to do this in the service (not 
client) with an aar file? I don't know how to initialize/load the ibatis 
map file.


-Henry

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



Document/literal wrapped

2008-04-14 Thread Henry Lu

How do we specify:


Document/literal wrapped

in java2wsdl in axis2?

-Henry





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



java2wsdl style

2008-04-14 Thread Henry Lu

What are the valid values for style in java2wsdl?

-Henry





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



Document-Literal

2008-04-14 Thread Henry Lu
using java2wsdl, how to Create Wrapped Document-Literal WSDL? what is 
the default results of java2wsdl?


-Henry

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



AXIS2-Document-Literal WSDL

2008-04-11 Thread Henry Lu
using java2wsdl, how to Create Wrapped Document-Literal WSDL? what is 
the default results of java2wsdl?


-Henry

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



passing Map object and return Map object

2008-04-07 Thread Henry Lu
I had problems to pass/return a Map/HashMap object to/from services. On 
the server side, it recieved an empty map object, on the client side, it 
returned an empty Map object. I used TCPMON to look at the xml data, 
there is no data passing at all.


Any Ideas?

-Henry

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



Cannot serialize session attribute...

2005-10-18 Thread Henry Lu
I got following errors only when I shutdown the tomcat and restart it:

- Cannot serialize session attribute AddressBook for session 9A3E7318701815FCC6E
62C512464A437
java.io.NotSerializableException: ws.addr.AddressBookServiceSoapImpl
...

I didn't get the errors during the process.

Are there any ideas how to fix it?

-Henry





**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


RE: happyaxis JAXP implementation found at an unknown location

2005-06-07 Thread Henry Lu
I copied rt.jar file to both tomcat common/lib and axis/WEB-INF/lib, but I 
still got:

Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown 
location

Why?

-Henry

>>> [EMAIL PROTECTED] 6/7/2005 1:24:36 PM >>>
thanks!

you're right, there is a SAXParser class in the rt.jar that came with
JDK 5.0!


--- "Ruiz González, Jose de Jesus" <[EMAIL PROTECTED]> wrote:

> Axis is finding that package from Java 
> 
> 
> José de Jesús Ruiz Gonzalez
> Departamento de Sistemas
> México Asistencia S.A. de C.V.
> Sistema Internacional de Asistencia Mapfre
> 
> * mailto:[EMAIL PROTECTED] 
> *(52) 55 + 54801298
> 
> *Fax(52) 55 + 56112011
> 
>  
> 
> 
> -Mensaje original-
> De: Woodchuck [mailto:[EMAIL PROTECTED] 
> Enviado el: Martes, 07 de Junio de 2005 11:08 a.m.
> Para: axis-user@ws.apache.org 
> Asunto: happyaxis JAXP implementation found at an unknown location
> 
> hihi all,
> 
> i'm currently using axis 1.2 in tomcat 5.5.9
> 
> everything is fine but i'm curious to know where axis is finding the
> JAXP
> implementation ( javax.xml.parsers.SAXParserFactory ).
> 
> i do not have the jaxp-api.jar anywhere at all.
> 
> has anyone else noticed this as well (who are using Tomcat 5.5 also)?
> 
> i even did a file search for the string "javax.xml" but it is not
> anywhere
> within tomcat.
> 
> anyone have any ideas or know the answer to this mystery?
> 
> thanks in advance,
> woodchuck
> 
> 
>   
> __
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone. 
> http://mobile.yahoo.com/learn/mail 
> 




__ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 




**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


unknown location

2005-06-03 Thread Henry Lu
I go t the following error on the Axis Happiness Page:

Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an
unknown location
Found Java Secure Socket Extension ( javax.net.ssl.SSLSocketFactory )
at an unknown location

Which jar files are missing?

-Henry


**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


Re: java.net.SocketTimeoutException: Read timed out

2005-05-24 Thread Henry Lu
(http://www.xmethods.net/sd/2001/BabelFishService.wsdl)



String endpoint = "http://services.xmethods.net:80/perl/soaplite.cgi";;

Look, you have two different url.

-Henry

>>> [EMAIL PROTECTED] 5/24/2005 10:45:36 AM >>>


Dear All,

Every call i try to make to an extenal web service i get the error

java.net.SocketTimeoutException: Read timed out

Is anyone able to expalin this to me

Do i need to set some timeouts, if so where do i set them?

Code is from an example

(http://www.xmethods.net/sd/2001/BabelFishService.wsdl)



String endpoint = "http://services.xmethods.net:80/perl/soaplite.cgi";;
String namespaceURI = "urn:xmethodsBabelFish";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( endpoint );
call.setOperationName(new QName(namespaceURI, "BabelFish") );
Object [] arguments = new Object[2];
arguments[0] = "en_fr";
arguments[1] = "Thank You";
String greeting = (String) call.invoke(arguments);
greeting = (String) call.invoke(arguments);
System.out.println(greeting);

_
Be the first to hear what's new at MSN - sign up to our free
newsletters! 
http://www.msn.co.uk/newsletters 



**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


Re: Axis 1.2 with doc/lit implementation

2005-05-24 Thread Henry Lu
Here is the wsdl file generated by .NET with the same interface:


http://schemas.xmlsoap.org/wsdl/http/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:s="http://www.w3.org/2001/XMLSchema";
xmlns:s0="http://tempuri.org/";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
targetNamespace="http://tempuri.org/";
xmlns="http://schemas.xmlsoap.org/wsdl/";>
  
http://tempuri.org/";>
  

  

  

  
  

  

  

  
  

  


  

  
  

  

  

  

  
  

  
  

  
  

  
  

  
  

  
  


  
  

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

  http://tempuri.org/echoString";
style="document" />
  

  
  

  


  http://tempuri.org/echoString_double";
style="document" />
  

  
  

  

  
  

  http://localhost/ws_axis/Echo/Echo.asmx";
/>

  


I don't know how to find my case in the Jira. WHere is the web site?

-Henry

>>> [EMAIL PROTECTED] 5/24/2005 9:56:25 AM >>>
Hi Henry!
Can you point to the jira issue number, if you logged one. I'll see if
I can help the Axis team with my effort. It will expedite the whole
process if you can attach the .NET generated wsdl for the said
interface in your reply (if it's already attached at the jira site
then no need).

Thanks
Jayachandra

On 5/24/05, Henry Lu <[EMAIL PROTECTED]> wrote:
> You are right. But if you look at the wsdl file generated by the
> java2wsdl of Axis1.2, it still comes out with multiple parts. If you
> look at a wsdl file  generated by .NET from the same interface, it
> implements correctly. I'd raised this issue for years and put it in
> the request a couple of times and it seems to me it has never been
fixed
> based upon the W3C standard.
> 
> -Henry
> 
> 
> 
> **
> Electronic Mail is not secure, may not be read every day, and should
not be used for urgent or sensitive issues.
> 


-- 
-- Jaya


**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


RE: Axis 1.2 with doc/lit implementation

2005-05-24 Thread Henry Lu
It is not a good idea to manually change the wsdl file in that way. I
think Axis develop team should fix this bug ASAP.

-Henry

>>> [EMAIL PROTECTED] 5/24/2005 9:59:21 AM >>>

Hi Henry

I don't think the java2WSDL properly generates document/literal WSDL
in
Axis 1.1, but I haven't tried this in 1.2. I have always needed to edit
the
WSDL output, change the style/encoding and use a single complex type as
the
request argument to the methods called  - there needs to be a single
root
element in the SOAP body to adhere to WS-I BP1.0.

Regards
Tim

-Original Message-
From: Henry Lu [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2005 14:46
To: [EMAIL PROTECTED]; axis-user@ws.apache.org 
Subject: Re: Axis 1.2 with doc/lit implementation

You are right. But if you look at the wsdl file generated by the
java2wsdl of Axis1.2, it still comes out with multiple parts. If you
look at a wsdl file  generated by .NET from the same interface, it
implements correctly. I'd raised this issue for years and put it in
the request a couple of times and it seems to me it has never been
fixed
based upon the W3C standard.

-Henry



**
Electronic Mail is not secure, may not be read every day, and should
not be
used for urgent or sensitive issues.


DISCLAIMER
The information contained in this e-mail is confidential and is
intended
for the recipient only.
If you have received it in error, please notify us immediately by reply

e-mail and then delete it from your system. Please do not copy it or
use it for any other purposes, or disclose the content of the e-mail
to any other person or store or copy the information in any medium. 
The views contained in this e-mail are those of the author and not 
necessarily those of Admenta UK Group.



**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


Re: Axis 1.2 with doc/lit implementation

2005-05-24 Thread Henry Lu
You are right. But if you look at the wsdl file generated by the
java2wsdl of Axis1.2, it still comes out with multiple parts. If you
look at a wsdl file  generated by .NET from the same interface, it
implements correctly. I'd raised this issue for years and put it in
the request a couple of times and it seems to me it has never been fixed
based upon the W3C standard.

-Henry



**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


Axis 1.2 with doc/lit implementation

2005-05-24 Thread Henry Lu
Is there any one can implement the following interface with
server/client examples with style/use of DOC/Lit in AXIS 1.2?


public interface Echo
{
public String echoString(String arg);
public String echoString_double(String arg1, String arg2);
}

I got the following result:

echoString(String arg);: Henry
 public String echoString_double(String arg1, String arg2);: Henrynull

-Henry


**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


RE: axis + vb .net

2005-05-24 Thread Henry Lu
And also, AXIS 1.2 stil has bug in the doc/lit implementation not fixed
yet.

-Henry

>>> [EMAIL PROTECTED] 5/24/2005 9:08:03 AM >>>
I am using Axis 1.2 and ran into a problem similar to this.

I figured out that Visual Studio .NET does not understand the Version
1.2
type mapping. What I found worked is to change the deploy.wsdd so that
the
typeMappingVerison is 1.1.  For example.

  

I'm not sure if something else needs to change like the namespace to
make
this truly "correct", but this worked for me.

  Cliff
 

> -Original Message-
> From: Pippo Plutone [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 24, 2005 4:29 AM
> To: axis-user@ws.apache.org 
> Subject: axis + vb .net
> 
> Hi all,
> I have a problem when I using AXIS with client VB .Net.
> 
> I have a web service with AXIS (provider="java:RPC") and a 
> client VB .Net; 
> it works
> while when I have a web service with AXIS (provider="java:MSG" 
> style="document" use="literal") with a client VB .Net I have 
> a problem:
> 
> "An unhandled exception of type 
> 'System.InvalidOperationException' occurred 
> in system.xml.dll
> Additional information: There was an error generating the XML 
> document"
> 
> Can you help me?
> 
> Thanks Pasquy
> 
> _
> Comunica in tempo reale http://messenger.msn.com/beta 
> 


**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


RE: axis + vb .net

2005-05-24 Thread Henry Lu
There are something you need to know before coding:
1. in .NET, defult use/style is Doc/Lit.
2. in Axis, defule is rpc/encoding.

If you want to comunicate between two, you have to make sure both style
and use must be matched.

-Henry

>>> [EMAIL PROTECTED] 5/24/2005 9:08:03 AM >>>
I am using Axis 1.2 and ran into a problem similar to this.

I figured out that Visual Studio .NET does not understand the Version
1.2
type mapping. What I found worked is to change the deploy.wsdd so that
the
typeMappingVerison is 1.1.  For example.

  

I'm not sure if something else needs to change like the namespace to
make
this truly "correct", but this worked for me.

  Cliff
 

> -Original Message-
> From: Pippo Plutone [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 24, 2005 4:29 AM
> To: axis-user@ws.apache.org 
> Subject: axis + vb .net
> 
> Hi all,
> I have a problem when I using AXIS with client VB .Net.
> 
> I have a web service with AXIS (provider="java:RPC") and a 
> client VB .Net; 
> it works
> while when I have a web service with AXIS (provider="java:MSG" 
> style="document" use="literal") with a client VB .Net I have 
> a problem:
> 
> "An unhandled exception of type 
> 'System.InvalidOperationException' occurred 
> in system.xml.dll
> Additional information: There was an error generating the XML 
> document"
> 
> Can you help me?
> 
> Thanks Pasquy
> 
> _
> Comunica in tempo reale http://messenger.msn.com/beta 
> 


**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


Bug?

2005-05-09 Thread Henry Lu
I got the following errors again (It never been fixed!):

 [java] ret1=Henry
 [java] ret2=Henrynull

Here is my interface:
package ws.Echo;

public interface Echo
{
public String echoString(String arg);
public String echoString_double(String arg1, String arg2);
}

Here is my server:

package ws.Echo;

public class EchoImpl implements ws.Echo.Echo{
public java.lang.String echoString(java.lang.String in0) throws
java.rmi.RemoteException {
return in0;
}

public java.lang.String echoString_double(java.lang.String in0,
java.lang.String in1) throws java.rmi.RemoteException {
return in0+in1;
}

}

Here is my client:

  public void go() throws Exception
  {
m_src = new ClnEchoLocator(m_server_url );

do_call();
  }


System.out.println(m_server_url);

Echo srv_port = m_src.getEcho();
  java.lang.String string_x1="Henry";
  java.lang.String string_x2="Lu";

  java.lang.String ret1 = srv_port.echoString(string_x1);

  System.out.println("ret1="+ret1);

  java.lang.String ret2 = srv_port.echoString_double(string_x1,
string_x2);

  System.out.println("ret2="+ret2);

I am using Axis 1.2.1

-Henry


**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


Re: [OT] Writing a tutorial

2005-05-04 Thread Henry Lu
Hi Tom,

I can contribute some code (ant build.xml, java) for creating web
services on command line from interface, to WSDL, server code, client
code, with/without SSL, Session handling, exchanging with IIS c#...

Please let me know if it will add value to your tutorial.
Thanks,
-Henry

>>> [EMAIL PROTECTED] 5/4/2005 5:35:52 AM >>>
Hi Sunil,

thanks for sharing your time and your experience. This is really way 
more than I expected. Actually all of the points you mentioned are very

interesting and I would be happy if you could write a few pages. I'll 
get started on this ASAP and send you a preliminary version.

Thanks a lot,
Tom

Sunil Kothari wrote:
> Hi Tom,
> 
> I can chip-in with a lot of practical experiences and tips like
> 1) Granularity of exposed interface ( for an existing web
application)
> 2) Exception Handling ( including exception hierarchy)
> 3) Different ways of creating WSDL and their advantages
> 4) When to use SOAP headers
> 5) Implementing SSL for web services
> 6) Session Handling for web services
> 
> Please let me know if it will add value to your tutorial.
> Thanks,
>  Sunil
> 
> 
> 
> DISCLAIMER:
> 
> Any Information contained or transmitted in this e-mail and / or
attachments
> may contain confidential data, proprietary to Valtech India., and /
or the
> authors of the information and is intended for use only by the
individual or
> entity to which it is addressed. If you are not the intended
recipient or
> email appears to have been sent to you by error, you are not
authorised to
> access, read, disclose, copy, use or otherwise deal with it. If you
have
> received this e-mail in error, please notify us immediately at mail
to: 0091
> 80 5196 9366 and delete this mail from your records.
> 
> This is to notify that Valtech India shall have no liability or
obligation,
> legal or otherwise, for any errors, omissions, viruses or computer
problems
> experienced as a result of this transmission since data over the
public
> Internet cannot be guaranteed to be secure or error-free.
> 
> 
> -Original Message-
> From: Tom Ziemer [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 04, 2005 2:48 PM
> To: axis-user@ws.apache.org 
> Subject: [OT] Writing a tutorial
> 
> 
> Hi everybody!
> 
> I think it would be rather nice to have a tutorial (PDF) that covers
the
> basics and helps new users to get Axis up and running. Do you think
that
> would be useful? If so, does anybody volunteer to help me to write
such
> a tutorial? I'm thinking about covering the setup (Axis, Ant,
Tomcat),
> and about writing/deploying services and clients - nothing fancy. Of
> course I am always open for suggestions.
> 
> Regards,
> 
> Tom
> 
> 


**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.