Re: Handler questions

2008-04-27 Thread Jinyuan Zhou
Thanks Deepal,
Thanks for the infomation Your artical shows the power of mechnism of
 phases and in flows  as well as some  pieces of details about handler and
phase. But it does not give a simple way how to put things together. I think
I have to read enough documents to figure that out my self. I remmeber it
was pretty easy to find simple exmaples about using mesasge handlers for
axis1 and some other jax rpc implementations. But for axis 2, it is not the
case.
Regards,
Jack

On Thu, Apr 24, 2008 at 10:20 PM, Deepal Jayasinghe <[EMAIL PROTECTED]>
wrote:

>
> Hi there,
> > Is there a quick way to apply handler/chain  to my webservices without
> > involving writing a module. I understand that  axis2 has a flexible
> > architecture about modules, flows, dispatchers. But I am looking for kind of
> > two-step process. 1. Writ a handler 2. modify services.xml.  May be I am
> > missing some thing?
> >
> I hope following will help you , if not please drop a mail I will provide
> whatever information you need.
> http://www.developer.com/services/article.php/3529321
>
> Thank you!
> Deepal
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 

Some people lived like they will never die
and died like they have never lived


Handler questions

2008-04-24 Thread Jinyuan Zhou
Hi there,
Is there a quick way to apply handler/chain  to my webservices without
involving writing a module. I understand that  axis2 has a flexible
architecture about modules, flows, dispatchers. But I am looking for kind of
two-step process. 1. Writ a handler 2. modify services.xml.  May be I am
missing some thing?
Thanks,
Jack


Re: Swa webservice behave different in tomcat web app and axis2 standalone server.

2008-04-18 Thread Jinyuan Zhou
Thanks Thilina,
I used a new axi2-war. It worked. The only differences I can remember for
myprevious  aix2 web app is that I configured the soap mionitor on and
enabled the SwA in the axis2.xml. With TCPMon, I don't need SOAPMonitor. My
be thats the reason axis2 1.3 does not contain a soapmonitor jar file.
Regards,
Jack
On Wed, Apr 16, 2008 at 10:45 PM, Jinyuan Zhou <[EMAIL PROTECTED]>
wrote:

> Thanks for you time,
> I will try to that again and post my result when i am done.
> Jack
>
> On Wed, Apr 16, 2008 at 1:15 PM, Thilina Gunarathne <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
> > IIRC I tested that tutorial code with tomcat... I'm guessing something
> > is going wrong in your system... Let's try to figure it out exactly..
> >
> > > The client side
> > > was't able to find the attachment althought the correct envelop was
> > > arrived..
> > Did you mean you got the correct soap message together with the
> > attachment from the server?? Can you capture a message snapshot using
> > tcpmon (http://ws.apache.org/commons/tcpmon) and see whether you have
> > the MIME part for the attachment.. It would be great if you can post
> > it here..
> >
> > thanks,
> > Thilina
> >
> > > I am using axis 2-1.3. My own arr has the similar behavior.  It
> > > seems that the all samples and tutorial sare based on Stand alone
> > server, I
> > > just want see any one had the simliar experiences to deploy an aar
> > into
> > > tomcat and was able to include an attachment in the response message
> > to
> > > client.
> > >  Thanks,
> > > Jack
> > >
> > >
> > > On Wed, Apr 16, 2008 at 7:39 AM, Thilina Gunarathne <[EMAIL PROTECTED]
> > >
> > > wrote:
> > > > Hi,
> > > > Just a quick reply...
> > > > The sample used in the following tutorial is based on Tomcat
> > deployment..
> > > > Downloading a Binary File from a Web Service using Axis2 and SOAP
> > with
> > > Attachments - http://wso2.org/library/1675
> > > >
> > > > Also are you using the same axis2 version in both cases..
> > > > thanks,
> > > > Thilina
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On 4/16/08, Jinyuan Zhou <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Thank Thilina,
> > > > > There are no error message. The usual soap request/response goes
> > well.
> > > > > I also tried to deploy the one  arr file from a tutorial. Same
> > thing
> > > happend.
> > > > > I just don't get it. I have build aar file using the standalone
> > server's
> > > lib. I'll try to build uisng the jar in WEB_INF/lib. See it will work.
> >   I
> > > wonder if DataHandler classes are different?   It looks like all
> > examples
> > > and tutorials are based on stand alone server.
> > > > > Regards,
> > > > > Jack
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Apr 15, 2008 at 8:20 PM, Thilina Gunarathne <
> > [EMAIL PROTECTED]>
> > > wrote:
> > > > >
> > > > > > Hi,
> > > > > > Can you let us know more information, like any error messages,
> > message
> > > traces...
> > > > > >
> > > > > > thanks,
> > > > > > Thilina
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Tue, Apr 15, 2008 at 8:58 PM, Jinyuan Zhou <
> > [EMAIL PROTECTED]>
> > > wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > > I have developed a websevice that will include an attachment
> > to the
> > > client. It worked in the standalone server not inside tomcat's webapp.
> > > > > > > I have  true in the
> > > service.xml inside arr file. Inside tomcat server, I also  have this
> > line in
> > > the
> > > > > > > ${CATLINA_HOME}/webapps/myapp/WEB-INF/conf/axis2.xml.
> > > > > > > What I am missing?
> > > > > > > Thanks for you time,
> > > > > > > Jack
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Thilina Gunarathne - http://thilinag.blogspot.com
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Some people lived like they will never die
> > > > > and died like they have never lived
> > > >
> > > >
> > > >
> > > > --
> > > > Thilina Gunarathne  - http://thilinag.blogspot.com
> > >
> > >
> > >
> > > --
> > >
> > > Some people lived like they will never die
> > > and died like they have never lived
> >
> >
> >
> > --
> > Thilina Gunarathne - http://thilinag.blogspot.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
>
> Some people lived like they will never die
> and died like they have never lived
>



-- 

Some people lived like they will never die
and died like they have never lived


Re: Swa webservice behave different in tomcat web app and axis2 standalone server.

2008-04-16 Thread Jinyuan Zhou
Thanks for you time,
I will try to that again and post my result when i am done.
Jack

On Wed, Apr 16, 2008 at 1:15 PM, Thilina Gunarathne <[EMAIL PROTECTED]>
wrote:

> Hi,
> IIRC I tested that tutorial code with tomcat... I'm guessing something
> is going wrong in your system... Let's try to figure it out exactly..
>
> > The client side
> > was't able to find the attachment althought the correct envelop was
> > arrived..
> Did you mean you got the correct soap message together with the
> attachment from the server?? Can you capture a message snapshot using
> tcpmon (http://ws.apache.org/commons/tcpmon) and see whether you have
> the MIME part for the attachment.. It would be great if you can post
> it here..
>
> thanks,
> Thilina
>
> > I am using axis 2-1.3. My own arr has the similar behavior.  It
> > seems that the all samples and tutorial sare based on Stand alone
> server, I
> > just want see any one had the simliar experiences to deploy an aar into
> > tomcat and was able to include an attachment in the response message to
> > client.
> >  Thanks,
> > Jack
> >
> >
> > On Wed, Apr 16, 2008 at 7:39 AM, Thilina Gunarathne <[EMAIL PROTECTED]>
> > wrote:
> > > Hi,
> > > Just a quick reply...
> > > The sample used in the following tutorial is based on Tomcat
> deployment..
> > > Downloading a Binary File from a Web Service using Axis2 and SOAP with
> > Attachments - http://wso2.org/library/1675
> > >
> > > Also are you using the same axis2 version in both cases..
> > > thanks,
> > > Thilina
> > >
> > >
> > >
> > >
> > >
> > > On 4/16/08, Jinyuan Zhou <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Thank Thilina,
> > > > There are no error message. The usual soap request/response goes
> well.
> > > > I also tried to deploy the one  arr file from a tutorial. Same thing
> > happend.
> > > > I just don't get it. I have build aar file using the standalone
> server's
> > lib. I'll try to build uisng the jar in WEB_INF/lib. See it will work.
> I
> > wonder if DataHandler classes are different?   It looks like all
> examples
> > and tutorials are based on stand alone server.
> > > > Regards,
> > > > Jack
> > > >
> > > >
> > > >
> > > > On Tue, Apr 15, 2008 at 8:20 PM, Thilina Gunarathne <
> [EMAIL PROTECTED]>
> > wrote:
> > > >
> > > > > Hi,
> > > > > Can you let us know more information, like any error messages,
> message
> > traces...
> > > > >
> > > > > thanks,
> > > > > Thilina
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Apr 15, 2008 at 8:58 PM, Jinyuan Zhou <
> [EMAIL PROTECTED]>
> > wrote:
> > > > >
> > > > > > Hi,
> > > > > > I have developed a websevice that will include an attachment to
> the
> > client. It worked in the standalone server not inside tomcat's webapp.
> > > > > > I have  true in the
> > service.xml inside arr file. Inside tomcat server, I also  have this
> line in
> > the
> > > > > > ${CATLINA_HOME}/webapps/myapp/WEB-INF/conf/axis2.xml.
> > > > > > What I am missing?
> > > > > > Thanks for you time,
> > > > > > Jack
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Thilina Gunarathne - http://thilinag.blogspot.com
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Some people lived like they will never die
> > > > and died like they have never lived
> > >
> > >
> > >
> > > --
> > > Thilina Gunarathne  - http://thilinag.blogspot.com
> >
> >
> >
> > --
> >
> > Some people lived like they will never die
> > and died like they have never lived
>
>
>
> --
> Thilina Gunarathne - http://thilinag.blogspot.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 

Some people lived like they will never die
and died like they have never lived


Re: Swa webservice behave different in tomcat web app and axis2 standalone server.

2008-04-16 Thread Jinyuan Zhou
Thilina,
The link you provided is the tutorial I followed. I downloaded the all file
and build the aar. When this one deployed to stand alone server, it worked
as tutorial descrbed. When it was deployed to tomcat 6.016. The client side
was't able to find the attachment althought the correct envelop was
arrived.. I am using axis 2-1.3. My own arr has the similar behavior.  It
seems that the all samples and tutorial sare based on Stand alone server, I
just want see any one had the simliar experiences to deploy an aar into
tomcat and was able to include an attachment in the response message to
client.
Thanks,
Jack
On Wed, Apr 16, 2008 at 7:39 AM, Thilina Gunarathne <[EMAIL PROTECTED]>
wrote:

> Hi,
> Just a quick reply...
> The sample used in the following tutorial is based on Tomcat deployment..
> Downloading a Binary File from a Web Service using Axis2 and SOAP with
> Attachments - http://wso2.org/library/1675
>
> Also are you using the same axis2 version in both cases..
> thanks,
> Thilina
>
>
> On 4/16/08, Jinyuan Zhou <[EMAIL PROTECTED]> wrote:
> >
> > Thank Thilina,
> > There are no error message. The usual soap request/response goes well.
> > I also tried to deploy the one  arr file from a tutorial. Same thing
> > happend.
> > I just don't get it. I have build aar file using the standalone server's
> > lib. I'll try to build uisng the jar in WEB_INF/lib. See it will work.   I
> > wonder if DataHandler classes are different?   It looks like all examples
> > and tutorials are based on stand alone server.
> > Regards,
> > Jack
> >
> > On Tue, Apr 15, 2008 at 8:20 PM, Thilina Gunarathne <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Hi,
> > > Can you let us know more information, like any error messages, message
> > > traces...
> > >
> > > thanks,
> > > Thilina
> > >
> > > On Tue, Apr 15, 2008 at 8:58 PM, Jinyuan Zhou <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > > Hi,
> > > > I have developed a websevice that will include an attachment to the
> > > > client. It worked in the standalone server not inside tomcat's webapp.
> > > > I have  true in the
> > > > service.xml inside arr file. Inside tomcat server, I also  have this 
> > > > line in
> > > > the
> > > > ${CATLINA_HOME}/webapps/myapp/WEB-INF/conf/axis2.xml.
> > > > What I am missing?
> > > > Thanks for you time,
> > > > Jack
> > > >
> > > >
> > >
> > >
> > > --
> > > Thilina Gunarathne - http://thilinag.blogspot.com
> >
> >
> >
> >
> > --
> >
> > Some people lived like they will never die
> > and died like they have never lived
>
>
>
>
> --
> Thilina Gunarathne  - http://thilinag.blogspot.com
>



-- 

Some people lived like they will never die
and died like they have never lived


Re: Swa webservice behave different in tomcat web app and axis2 standalone server.

2008-04-15 Thread Jinyuan Zhou
Thank Thilina,
There are no error message. The usual soap request/response goes well.
I also tried to deploy the one  arr file from a tutorial. Same thing
happend.
I just don't get it. I have build aar file using the standalone server's
lib. I'll try to build uisng the jar in WEB_INF/lib. See it will work.   I
wonder if DataHandler classes are different?   It looks like all examples
and tutorials are based on stand alone server.
Regards,
Jack

On Tue, Apr 15, 2008 at 8:20 PM, Thilina Gunarathne <[EMAIL PROTECTED]>
wrote:

> Hi,
> Can you let us know more information, like any error messages, message
> traces...
>
> thanks,
> Thilina
>
>
> On Tue, Apr 15, 2008 at 8:58 PM, Jinyuan Zhou <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
> > I have developed a websevice that will include an attachment to the
> > client. It worked in the standalone server not inside tomcat's webapp.
> > I have  true in the service.xml
> > inside arr file. Inside tomcat server, I also  have this line in the
> > ${CATLINA_HOME}/webapps/myapp/WEB-INF/conf/axis2.xml.
> > What I am missing?
> > Thanks for you time,
> > Jack
> >
> >
>
>
> --
> Thilina Gunarathne - http://thilinag.blogspot.com




-- 

Some people lived like they will never die
and died like they have never lived


Swa webservice behave different in tomcat web app and axis2 standalone server.

2008-04-15 Thread Jinyuan Zhou
Hi,
I have developed a websevice that will include an attachment to the client.
It worked in the standalone server not inside tomcat's webapp.
I have  true in the service.xml
inside arr file. Inside tomcat server, I also  have this line in the
${CATLINA_HOME}/webapps/myapp/WEB-INF/conf/axis2.xml.
What I am missing?
Thanks for you time,
Jack


Re: [Axis2] SSL server certificate

2008-03-03 Thread Jinyuan Zhou
Bill,
Yes, I totally agree with you.
Jack

On Mon, Mar 3, 2008 at 8:02 AM, Vassilis Virvilis <[EMAIL PROTECTED]>
wrote:

> On Monday 03 March 2008, Jinyuan Zhou wrote:
> > It appears to me that XTrustProvider.install() allows you to bypass  the
> > validation. Just make sure this is want you wanted, especially if your
> > webservice client is running inside  big JEE app.
> > Cheers,
> > Jack
>
> Hi Jinyuan,
>
> Thanks for the heads up.
>
> I understand that this is essentially a hack to make java to work with
> self
> signed servers. If there is really a security concern or any probability
> for
> a man in the middle attack for sure this advice is not applicable.
>
> My understanding is:
> 
>
> If someone is interested in a serious JEE application then he should buy
> the
> appropriate certificate.
>
> If someone is just evaluating or playing with non critical or confidential
> data he can lax the security validation a bit...
>
>
>  bill
>
>
>
>


-- 

Some people lived like they will never die
and died like they have never lived


Re: [Axis2] SSL server certificate

2008-03-03 Thread Jinyuan Zhou
It appears to me that XTrustProvider.install() allows you to bypass  the
validation. Just make sure this is want you wanted, especially if your
webservice client is running inside  big JEE app.
Cheers,
Jack

On Mon, Mar 3, 2008 at 7:22 AM, Vassilis Virvilis <[EMAIL PROTECTED]>
wrote:

> On Monday 03 March 2008, Nandana Mihindukulasooriya wrote:
> > Hi Nuria,
> >yes, you need to set a system property in the client side to
> > add that key store containing that cert as a trusted key store. This
> > can be simply done using
> >
> >   System.setProperty("javax.net.ssl.trustStore",
> "path/to/keystore.jks");
> >   System.setProperty("javax.net.ssl.trustStorePassword",
> "password");
> >
> > in the client side.
> >
> > thanks,
> > nandana
> >
> Hi everybody,
>
> When I was researching the issue this trick didn't work for me due to
> "unconnected sockets". Anyway I found a solution in devcentral.f5
>
> If the following link does not work
> http://devcentral.f5.com/weblogs/joe/archive/2005/07/06/1345.aspx
>
> just go to http://devcentral.f5.com/ and search for XTrustProvider
>
> Then all you have to do before actually connect to the axis
> webservice is XTrustProvider.install().
>
> Slick indeed.
>
>.bill
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 

Some people lived like they will never die
and died like they have never lived


Re: [Axis2] SSL server certificate

2008-03-03 Thread Jinyuan Zhou
Nuria,
Yes, when your client call a an EPR with https, your client need to able to
trust the certificate from that site.  Basically you need to put the
certificate into a key store for your client side code to use. I am new to
Axis 2 too, I don't know if Axis2 client support the configuration
of keys store.  It is similar to the what web browser acts  when you firste
time visit an https  site.  It alert you if you want to trust the site
and/or install the certificate from site. If you bowser end up installing
the certificate, then next time you visit the site, the alert won't come up.

I don't remember all the details about validating a cerfiteicate agains a
key store. But you can simpley goolge it.
Regards,
Jack



On 3/3/08, Nuria Rodríguez García <[EMAIL PROTECTED]> wrote:
>
> Hello:
>
>
>
> I'm using Axis2 and I need to use SSL to connect to a WS.
>
> In server side I do the following:
>
>
>
> I configure the server.xml file in tomcat. I have:
>
> 
>maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>
>enableLookups="false" disableUploadTimeout="true"
>
>acceptCount="100" debug="0" scheme="https" secure="true"
>
>clientAuth="false" sslProtocol="TLS" />
>
>
>
> Then I generate a server certificate doing the following:
>
> keytool -genkey -alias tomcat -keyalg RSA
>
> keytool -export -alias tomcat -storepass changeit
> -file server.cer
>
> keytool -import -v -trustcacerts -alias tomcat
> -file server.cer -keystore %JAVA_HOME%/jre/lib/security/cacerts -keypass
> changeit -storepass changeit
>
>
>
> I start-up tomcat and when I call the service using the EPR "
> https://mymachine:8443/ " I receive the following exception:
>
>
>
> I/O exception (org.apache.axis2.AxisFault) caught
> when processing request: *sun.security.validator.ValidatorException*: PKIX
> path building failed: *
> sun.security.provider.certpath.SunCertPathBuilderException*: unable to
> find valid certification path to requested target
>
>
>
> I don't know if I need to indicate something from the client side.
>
>
>
> Thanks,
>
> Nuria
>



-- 

Some people lived like they will never die
and died like they have never lived


Re: Problem with webservice response in Axis2 v 1.3

2008-02-28 Thread Jinyuan Zhou
I am gussing your request message does not contain an envelop either.
1.3supports the http binding.
I am not 100% sure though.
Jack

On Thu, Feb 28, 2008 at 6:11 AM, Simon Nunn <[EMAIL PROTECTED]> wrote:

>  All,
>
>  I am making a request to a webservice, and the response seems to be
> missing some soap pieces.  In the past(axis2 v 1.1), when I made a request
> to my webservice, it responded with the envelope/header/body.  With Axis2 v
> 1.3 it seems to no longer wrap the response….all I get back is my response
> object.  Is there a way to force axis to write out the soapenv, header,
> body?
>
>
>
>
>
> Axis2 v 1.1 what was returned:
>
> http://schemas.xmlsoap.org/soap/envelope/
> ">
>
>  
>
>  
>
>
>
> ….
>
>
>
> Axis2 v 1.3 what is now returned….
>
>   
>
>
>
>
>
>
>
> Thanks,
>
>  Simon
>
>
>



-- 

Some people lived like they will never die
and died like they have never lived


Re: Don't send a tag in the xml flow

2008-02-25 Thread Jinyuan Zhou
Are you sure are calling the right method?  In any case you can always try
to modify  the message by  message handlers.
Jack
On Mon, Feb 25, 2008 at 5:40 AM, Nathaniel Richand <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> I'm facing some problems with one of my webservices provider. This one
> want that the null fields not to appear in the flow, besides the use of the
> attribute xsi:nil.
>
> He doesn' allow this :
> 
>
>
> 
>
> Nor this :
> 
>
>
> 
>
> But want :
> 
>
> 
>
>
> Here is the WSDL he provides :
> 
> 
> 
> 
>
> I cant't find how to do this with Axis. Is this a possibilité to change
> the generation? Maybe a param to WSDL2JAVA ? Or maybe in the definition of
> the type in xsd?
>
> If anyone can help me...
> Thank's




-- 
Jinyuan Zhou
office phone: 818-575-9888 x439

Some people lived like they will never die
and died like they have never lived


how to map an exceptio to a soap fault with fault code soapenv:Client

2008-02-24 Thread Jinyuan Zhou
Hi,
There is an example in AXIS2 distribution where some fault message is
defined in wsdl and the wsdl2java converted them in the some exception.  But
the soap fault created all have Server as the fault code. I wonder if there
is some configuration point that I can controle the fault code of the
resulting soap fault converted for the exception?
Thanks,
Jack


Re: wsdl2code problem

2008-02-24 Thread Jinyuan Zhou
Don't you  have to repeat the definstions of the base type in the new type
that is being defined by extension?
Jack

On Sun, Feb 24, 2008 at 6:19 AM, Begun, Yana <[EMAIL PROTECTED]> wrote:

>
>
>  Hi all,
>
> In my wsdl I use genericResponse complex type as a base type to all
> responses. Everything is fine, but response I receive from the SOAP server
> is not valid. Type attribute is added to the response.
>
> What's wrong and how to change?
>
> Thanks,
> Yana
>
>
> wsdl:
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> <
> xs:complexType name="genericResponseType">
>
> 
>
> 
>
> 
>
> 
>
>
>
> response:
>
> <
> soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> ">
>
> 
>
> http://xxx.com/types"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="ns1:addResponse"RequestId="2" RequestTimeStamp="2001-12-17T09:30:
> 47.000Z" ResponseTimeStamp="2008-02-24T12:39:00.546Z"/>
>
> 
>
>  soapenv:Envelope>
>
> *
> This e-mail is confidential, the property of NDS Ltd and intended for the
> addressee only. Any dissemination, copying or distribution of this message
> or any attachments by anyone other than the intended recipient is strictly
> prohibited. If you have received this message in error, please immediately
> notify the [EMAIL PROTECTED] and destroy the original message. Messages
> sent to and from NDS may be monitored. NDS cannot guarantee any message
> delivery method is secure or error-free. Information could be intercepted,
> corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
> We do not accept responsibility for any errors or omissions in this message
> and/or attachment that arise as a result of transmission. You should carry
> out your own virus checks before opening any attachment. Any views or
> opinions presented are solely those of the author and do not necessarily
> represent those of NDS.
>
> NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West
> Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England
> and Wales Registered no. 3080780 VAT no. GB 603 8808 40-00
>
> To protect the environment please do not print this e-mail unless
> necessary.
>
> **
>



-- 
Jinyuan Zhou
office phone: 818-575-9888 x439

Some people lived like they will never die
and died like they have never lived


RE: Problem using deployed Axis web services

2006-04-05 Thread Jinyuan Zhou
The generated code won't get Endpoint address right. Yours is  
http://localhost/WSTest/services/SayHello2. 
See if the following code or something simailar  can help:

call.setTargetEndpointAddress( new 
java.net.URL("http://localhost/WSTest/services/SayHello2";) 

-Original Message-
From: Jinyuan Zhou [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 05, 2006 10:57 AM
To: axis-user@ws.apache.org; Martin Wunderlich
Subject: RE: Problem using deployed Axis web services

I think wsdl2java has an option to create Junit test case. Try  start from 
there to write a client code. However 
http://localhost/WSTest/services/SayHello2?in=bla does not send an http request 
in the way web service expected.
It expect an soap message as content and content type like text/xml or 
applicaton/xml. 


-Original Message-
From: Martin Wunderlich [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 05, 2006 10:42 AM
To: Jay Glanville
Subject: Problem using deployed Axis web services

Dear all,

my first posting here, so please bear with me, in case I should break any 
unwritten rules.

I am currently trying to get my first web services up and running on Tomcat 5. 
I created a simple Java class to return a String:


public class SayHello2
{
public String hello(String in)
{
return ("Hello, " + in);
}
}



>From this class I created the WSDL with Java2Wsdl. I created the deployment 
>descriptor using Wsdl2Java and deployed the whole thing using the Axis 
>AdminClient. Finally, I compiled the resulting classes from step 2 and copied 
>them to the directory that corresponds to the package name. 

The web service is listed together with the method in the list provided by 
Axis. However, I can not access the method, neither entering the direct URL 
(http://localhost/WSTest/services/SayHello2?in=bla), nor using the stub classes 
generated by Axis, nor using a org.apache.axis.client.Call. I am quite lost. 
Does anyone have any ideas what I could check? I've pasted the WSDL below, just 
in case there's any hint in there. (I can access this wsdl alright with 
http://localhost/WSTest/services/SayHello2?wsdl). 

Cheers, 

N. 



http://xml.apache.org/xml-soap"; xmlns:impl="urn:testPackage" 
xmlns:intf="urn:testPackage" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

 
   
 
  
 
   
 
   
 
  
 
   
 
   
 
  
 
 
 
 
 
  
 
   
 
   
 
  http://schemas.xmlsoap.org/soap/http"/>
 
  
 
 
 
 
 
http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="urn:testPackage" use="encoded"/>
 
 
 
 
 
http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="urn:testPackage" use="encoded"/>
 
 
 
  
 
   
 
   
 
  
 
 http://localhost/WSTest/services/SayHello2"/>
 
  
 
   
 




-- 
--
Martin Wunderlich, M.A.
Translation/Localisation EN <-> DE

 www.martinwunderlich.com
--
Free / open-source software for translation/localisation:
 www.martinwunderlich.com/foss-links.html
--
Random aphorism: 
 "Es ist ein Wunder, dass Neugier die Schulbildung überlebt."
"It is a miracle that curiosity survives formal education."
 - Albert Einstein
--



RE: Problem using deployed Axis web services

2006-04-05 Thread Jinyuan Zhou
I think wsdl2java has an option to create Junit test case. Try  start from 
there to write a client code. However 
http://localhost/WSTest/services/SayHello2?in=bla does not send an http request 
in the way web service expected.
It expect an soap message as content and content type like text/xml or 
applicaton/xml. 


-Original Message-
From: Martin Wunderlich [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 05, 2006 10:42 AM
To: Jay Glanville
Subject: Problem using deployed Axis web services

Dear all,

my first posting here, so please bear with me, in case I should break any 
unwritten rules.

I am currently trying to get my first web services up and running on Tomcat 5. 
I created a simple Java class to return a String:


public class SayHello2
{
public String hello(String in)
{
return ("Hello, " + in);
}
}



>From this class I created the WSDL with Java2Wsdl. I created the deployment 
>descriptor using Wsdl2Java and deployed the whole thing using the Axis 
>AdminClient. Finally, I compiled the resulting classes from step 2 and copied 
>them to the directory that corresponds to the package name. 

The web service is listed together with the method in the list provided by 
Axis. However, I can not access the method, neither entering the direct URL 
(http://localhost/WSTest/services/SayHello2?in=bla), nor using the stub classes 
generated by Axis, nor using a org.apache.axis.client.Call. I am quite lost. 
Does anyone have any ideas what I could check? I've pasted the WSDL below, just 
in case there's any hint in there. (I can access this wsdl alright with 
http://localhost/WSTest/services/SayHello2?wsdl). 

Cheers, 

N. 



http://xml.apache.org/xml-soap"; xmlns:impl="urn:testPackage" 
xmlns:intf="urn:testPackage" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

 
   
 
  
 
   
 
   
 
  
 
   
 
   
 
  
 
 
 
 
 
  
 
   
 
   
 
  http://schemas.xmlsoap.org/soap/http"/>
 
  
 
 
 
 
 
http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="urn:testPackage" use="encoded"/>
 
 
 
 
 
http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="urn:testPackage" use="encoded"/>
 
 
 
  
 
   
 
   
 
  
 
 http://localhost/WSTest/services/SayHello2"/>
 
  
 
   
 




-- 
--
Martin Wunderlich, M.A.
Translation/Localisation EN <-> DE

 www.martinwunderlich.com
--
Free / open-source software for translation/localisation:
 www.martinwunderlich.com/foss-links.html
--
Random aphorism: 
 "Es ist ein Wunder, dass Neugier die Schulbildung überlebt."
"It is a miracle that curiosity survives formal education."
 - Albert Einstein
--



RE: Is it possible to add handler on client side?

2006-04-03 Thread Jinyuan Zhou



I am still trying. From samples/stock, I guess there should 
be a sort of client-config.wsdd file available for client site 
code. 
 But dont' know the syntax. Followed the instruction, 
but did create a useful wsdd for my client.
 However, you use Call 
class, there is a setClientHanlders().  


From: Jinyuan Zhou [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 03, 2006 10:02 PMTo: 
axis-user@ws.apache.orgSubject: Is it possible to add handler on 
client side?

Is 
there any way to add handler chain for the generated  the client side code? 
Thanks,


Is it possible to add handler on client side?

2006-04-03 Thread Jinyuan Zhou



Is 
there any way to add handler chain for the generated  the client side code? 
Thanks,


RE: How to Implement ws starting from wsdl in Axis,

2006-04-03 Thread Jinyuan Zhou
Thanks,
I just tried out and incorprated the service elment in deploy.wsdd into
my servic-config.wsdd file. It works!
 

-Original Message-
From: Chris Smith [mailto:[EMAIL PROTECTED] On Behalf Of Chris Smith
Sent: Monday, April 03, 2006 4:06 PM
To: axis-user@ws.apache.org
Subject: Re: How to Implement ws starting from wsdl in Axis,

Jinyuan Zhou wrote:
> I am new to Axis. All the docuemtn/articals I found is about  how to 
> expose your existing java class method as a web services.  Is there 
> any quick tutorial about implementing the webservice starting from a 
> wsdl only and the implmented ws will publish the same wsdl?

Just use the -s option to generate the templates for the server-side
implementation of the web service.  You will implement a class called
XXXBindingImpl, for some value of XXX.  The implementation classes then
need to be placed in a location so that it's accessible to Axis in your
web container, and you need to deploy it as usual with the generated
WSDD file, which will be called "deploy.wsdd"

Simple enough?

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer MindIQ
Corporation 



How to Implement ws starting from wsdl in Axis,

2006-04-03 Thread Jinyuan Zhou



Hi, 

I am new to 
Axis. All the docuemtn/articals I found is about  how to expose your 
existing java class method as a web services.  Is there any quick tutorial about implementing the 
webservice starting from a wsdl only and the implmented ws will publish the same 
wsdl?
Thanks,
 
Jinyuan (Jack) Zhou
5Square Systems
4360 Park Terrace Drive 
#100
Westlake Village, CA 91361
818-575-9888 x439(work)
[EMAIL PROTECTED]
http://www.5Square.com