Re: [Axis2] Invalid phases please recheck axis2.xml, handler null added

2006-07-11 Thread heikki
Hi Deepal,it's already in there, although spelt "loggingPhase" same as it is in modules.xml. However turned out that my problem deploying the logging module was caused by the version of the sample logging handler that is distributed with Axis2 - but if one creates it afresh following the userguide instructions, all is OK, see the mail thread here 
http://marc.theaimsgroup.com/?l=axis-user&m=115263086619816&w=2.Still I have the more general question from that thread:
- where can I find a description of exactly what is the meaning of, and
relation between, each module-, phase- and handler-related element in
axis2.xml, modules.xml and services.xml ? What does it mean, for
example, if the class attribute in the  or in the  elements
is absent / present ?
If it exists, I'd be happy to be pointed to such documentation ..thank you,Heikki DoelemanOn 7/11/06, Deepal Jayasinghe <
[EMAIL PROTECTED]> wrote:You need to change your 
axis2.xml , you need to add phase called"LoggingPhase" into your phaseOrder element.heikki wrote:> Hi there,>> I'm trying to add the sample logging module to my service> (server-side) as described in
> http://ws.apache.org/axis2/1_0/userguide4.html#MyService_with_a_Logging_Module> <
http://ws.apache.org/axis2/1_0/userguide4.html#MyService_with_a_Logging_Module>.> However I run into some probelms -- anyone can shed some light on this> ? That would be most appreciated.>> It looks like some crucial parts are missing in this otherwise
> excellent documentation: where sample configuration files are given,> precisely the part described is usually not there ! Even when> described as "in green", I can't find it ..>
> Anyway, trying to do it gives me this error at server startup time.> (I'd moved the logging classes to a package named 'test', recreated> logging.mar, and renamed logging.mar to logging-1.0.mar as per another
> mail thread in this list).>> [10 Jul 2006 15:09:46] ERROR> org.apache.axis2.deployment.DeploymentEngine.doDeploy():636 - Invalid> service  MyService.aar due to Invalid phases>  please recheck 
axis2.xml loggingPhase for the handler InFlowLogHandler> org.apache.axis2.phaseresolver.PhaseException: Invalid phases please> recheck axis2.xml loggingPhase for the handler InFlowLogHandler> at
> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java> :66)> at> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:191)> at
> org.apache.axis2.description.AxisOperation.engageModule(AxisOperation.java:128)> . . . etc.>> after exploding the logging-1.0.mar so that the classes are unpacked> into this application's classes directory (running in WebLogic),  this
> error disappears, but now I see repeatedly this message at server> startup time, and the logging does not work (extra debug statements> with ### added by me):>> [10 Jul 2006 15:20:49 ] DEBUG 
test.LoggingModule): 31 ->  init ##> Retrieving document at ''.>> [10 Jul 2006 15:20:50] DEBUG test.LogHandler(): 33 ->  getName ##
> [10 Jul 2006 15:20:50] DEBUG> org.apache.axis2.engine.Phase.addHandler():113 - Handler null added to> Phase loggingPhase I have axis2.xml like> . . .> 
> > > > class="org.apache.axis2.engine.RequestURIBasedDispatcher
 ">> > > > class="org.apache.axis2.engine.SOAPActionBasedDispatcher
 ">> > > > > 
> > class="org.apache.axis2.engine.DispatchPhase">> > class="org.apache.axis2.engine.AddressingBasedDispatcher
 ">> > > > class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher
 ">> > > > class="org.apache.axis2.engine.InstanceDispatcher
 ">> > > > > > > > > > > 
> > > . . .>> and an services.xml like this>> > > 
> > mep="http://www.w3.org/2004/08/wsdl/in-out "> class="com.xxx.MyServiceMessageReceiverInOut"/>
> > > > com.xxx.MyServiceSkeleton
> > mep="http://www.w3.org/2004/08/wsdl/in-out">> myAction
> > > >> and inside the logging-1.0.mar, a module.xml like this :>> > > > 
> > >> > > 
> > >> > > 
> > >> > > 
> > > >>> Any help is greatly appreciated !>>>--Thanks,Deepal
~Future is Open~-To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


axis-java2wsdl Not working via ANT ..

2006-07-11 Thread Sushil . Agarwal








Hello,

 

Can anyone let me know reason why following code is not
getting executed and giving classnotfoundexception… 

 



   


   
output="${build.dir}"

   
location="http://localhost:8080/axis/hello"

   
namespace="urn:ws.hello"

   
porttypename="com.tsystems.framework.ws.hello.HelloWSInterface">

   


   


   


   


   
package="hello.ws"

   
namespace="urn:ws.hello"/>

   




 

Looking forward for your prompt reply….

 

Regards,
Sushil Agarwal

Disclaimer: - This transmittal and/or attachments
may be privileged or confidential. If you are not the intended recipient, you
are hereby notified that you have received this transmittal in error; any
review, dissemination, or copying is strictly prohibited. If you received this
transmittal in error, please notify us immediately by reply and immediately delete
this message and all its attachments. Thank you.

 

 








RE: problem to invoke the webservice using RESTt Style

2006-07-11 Thread Bansal, Vimal
Hi kinichiro,
Thanks again, tried my all stuff now I have just created one method in my 
service Say setdata(in num) my code snippets is below just for testing purpose
  
   public void setData(int num)  {
System.out.println("Entry in setData");
System.out.println("value of num ="+ num);
System.out.println("Exit from setData");
}
 and i am passing parameter via REST like this,
http://localhost:8080/axis2/rest/ServiceName/setData?num=10
but i have the same problem i am not getting access of setdata() method.
i have also created the client for this when I am running it by dos prompt I am 
getting this message
 org.apache.axis2.AxisFault: Incoming message input stream is null:Incoming 
mesas
 gee input stream is null
is there any changes needed to services.xml below is the code for service.xml
  


This is a sample Test Service with one operations setdata 

com.poc.service.TestService

mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 7:15 PM
To: axis-user@ws.apache.org
Subject: RE: problem to invoke the webservice using RESTt Style


Hi Vimal,

You can pass parameter via REST like this,
http://localhost:8080/axis2/rest/YourService/getProductDetails?productid=12345

And if you still get internal error,
could you try change return value String[] to String, please ?

Regards,
kinichiro

--- "Bansal, Vimal" <[EMAIL PROTECTED]> wrote:

> Hi Kinichiro,
> Thanks for your response. I tried the service with method returning
> String type or String[] type. But the real problem is when i am
> passing a paramter. For example: String[] getProductDetails(long
> productid);
> 
> The array is basically an array of all the values reteieved from a
> database, like returnVal[0] will be the first element, returnVal[1]
> will be the next and so on. The returning type is not an issue. Is
> the paramter (productid as in my example) creating this problem? How
> can we pass paramters?
> 
> Regards,
> Vimal.
> 
> -Original Message-
> From: Kinichiro Inoguchi [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 11, 2006 3:40 PM
> To: axis-user@ws.apache.org
> Subject: Re: problem to invoke the webservice using RESTt Style
> 
> 
> Hi,
> 
> If you change your method from String[] getValue(long id) 
> to String getValue(long id), does it work ?
> 
> I faced same kind of issue, and created JIRA.
> http://issues.apache.org/jira/browse/AXIS2-880
> 
> Regards,
> kinichiro
> 
> --- "Bansal, Vimal" <[EMAIL PROTECTED]> wrote:
> 
> > 
> > Hi All,
> > 
> > I am a new user of Web Services. I am using Axis2 for implementing
> > services. I want to use REST style of Web services. My service
> class,
> > say MyServices have to service methods:
> > String getAllValues() and String[] getValue(long id).
> > The first service method, that has no parameters, is working fine
> > when invoked by a client. I am accessing this service through the
> > link: http://localhost:8080/Axis2/rest/servicename/getAllValues
> > I am getting the following result:
> > http://service.poc.com/xsd";> 
> > [33, 34, 35, 36, 37, 38] 
> > 
> > My problem is that when I am trying to access the second
> service(that
> > has one parameter), through the link
> > http://localhost:8080/Axis2/rest/servicename/getValue am getting an
> > axis page showing "Internal server error". How can I access this
> web
> > service? Is there some way to pass the parameter through url?
> > My client class is having following code snippets:
> > 
> > private static EndpointReference targetEPR = new
> >
>
EndpointReference("http://localhost:8080/rest/userservice2/getValue";);
> > ...
> > public static void main(String[] args) {
> > try {
> > ServiceClient sender = null;
> > Options options = new Options();
> > options.setTo(targetEPR);
> > options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> > options.setProperty(Constants.Configuration.ENABLE_REST,
> > Constants.VALUE_TRUE);
> > 
> >
>
options.setProperty(Constants.Configuration.HTTP_METHOD,Constants.Configuration.HTTP_METHOD_GET);
> > sender = new ServiceClient();
> > sender.setOptions(options);
> > OMElement result= sender.sendReceive(getPayload());
> > }
> > catch(Exception e){ }
> > }
> > ...
> > private static OMElement getPayload() throws Exception{
> > OMFactory fac =OMAbstractFactory.getOMFactory();
> > OMNamespace omNs =
> > fac.createOMNamespace("http://service.poc.com/xsd","example1";);
> > OMElement method = fac.createOMElement("getValue", omNs);
> > OMElement value = fac.createOMElement("Text", omNs);
> > value.addChild(fac.createOMText(value,"38"));
> > method.addChild(value);
> > return method;
> > } 
> >
> > Thanks and regards,
> > Vimal.
> > 
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL

AXIS2::Serialization of conplex type throws NPE

2006-07-11 Thread Pradeepta Bhattacharya






When trying to invoke a RPC based service, Axis throws an exception when trying to serialize a response of hierarchic bean structure to response SOAP request. I have attached the service jar deployed on JBoss 4.0.4 and I have tested the simple response sayHello but when it comes to complex structure axis throws NPE. Any help on what might be wrong is highly appreciated. Thanks a lot. /// REQUEST  // http://schemas.xmlsoap.org/soap/envelope/">         xmlns="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com/types">   xmlns="http://air.airtrade.project.bsil.com/xsd">    2006-08-28T00:22:08.968+05:30    MIA    CDG  xmlns="http://air.airtrade.project.bsil.com/xsd">1          /// RESPONSE // http://schemas.xmlsoap.org/soap/envelope/">           soapenv:Client      java.lang.NullPointerException   org.apache.axis2.AxisFault: java.lang.NullPointerException; nested exception is:    org.apache.axiom.om.OMException: java.lang.NullPointerException
   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
   at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:150)
   at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)
   at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
   at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:534)
Caused by: org.apache.axiom.om.OMException: java.lang.NullPointerException
   at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
   at org.apache.axiom.om.impl.llom.OMNodeImpl

Re: [Axis2] WS soap action question

2006-07-11 Thread Deepal Jayasinghe
Hi Change you axis2.xml as follows;



 
  










   














Wes Caldwell wrote:

>How do you reverse the order?  Meaning, how do I make Axis look at the
>wsa:action first, instead of the HTTP Soap action header.  What specifically
>is the change in axis2.xml?
>
>Thanks,
>
>Wes
>
>
>-Original Message-
>From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
>Sent: Tuesday, July 11, 2006 10:45 AM
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2] WS soap action question
>
>Well , it is first read SOAP action , and try to dispatch using that ,
>and next try to dispatch using wsa:action if it dose not find service
>and operation using SOAP action .
>
>Any way you can change the dispatching order very easily by changing
>axis2.xml
>
>Wes Caldwell wrote:
>
>  
>
>>A related question.  What is the order of reading in Axis 2 for the SOAP
>>Action?  Meaning, if I am using WS-Addressing, and the SOAP Action element
>>is part of the SOAP Header, as well as the HTTP SOAP Action Header being
>>present in the request, which is interpreted first by Axis 2?
>>
>>Thanks,
>>
>>Wes
>> 
>>
>>-Original Message-
>>From: Eran Chinthaka [mailto:[EMAIL PROTECTED] 
>>Sent: Thursday, June 29, 2006 7:25 AM
>>To: axis-user@ws.apache.org
>>Subject: Re: [Axis2] WS soap action question
>>
>>Michele Mazzucco wrote:
>> 
>>
>>
>>
>>>Hi all,
>>>
>>>how, 
>>>   
>>>
>>>  
>>>
>>Read HTTP headers and SOAP Action header.
>>
>> 
>>
>>
>>
>>>when 
>>>   
>>>
>>>  
>>>
>>Whenever message comes to the engine.
>>
>> 
>>
>>
>>
>>>(and where) 
>>>   
>>>
>>>  
>>>
>>AxisServlet.
>>
>>-- Chinthaka
>>
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>> 
>>
>>
>>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 



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



RE: [Axis2] WS soap action question

2006-07-11 Thread Wes Caldwell
How do you reverse the order?  Meaning, how do I make Axis look at the
wsa:action first, instead of the HTTP Soap action header.  What specifically
is the change in axis2.xml?

Thanks,

Wes


-Original Message-
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 10:45 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] WS soap action question

Well , it is first read SOAP action , and try to dispatch using that ,
and next try to dispatch using wsa:action if it dose not find service
and operation using SOAP action .

Any way you can change the dispatching order very easily by changing
axis2.xml

Wes Caldwell wrote:

>A related question.  What is the order of reading in Axis 2 for the SOAP
>Action?  Meaning, if I am using WS-Addressing, and the SOAP Action element
>is part of the SOAP Header, as well as the HTTP SOAP Action Header being
>present in the request, which is interpreted first by Axis 2?
>
>Thanks,
>
>Wes
>  
>
>-Original Message-
>From: Eran Chinthaka [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, June 29, 2006 7:25 AM
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2] WS soap action question
>
>Michele Mazzucco wrote:
>  
>
>>Hi all,
>>
>>how, 
>>
>>
>
>Read HTTP headers and SOAP Action header.
>
>  
>
>>when 
>>
>>
>
>Whenever message comes to the engine.
>
>  
>
>>(and where) 
>>
>>
>
>AxisServlet.
>
>-- Chinthaka
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 




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





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



Re: Axis2 lazy init

2006-07-11 Thread Deepal Jayasinghe
When you deploy your service in application scope , when the server
start up init method will be called.

I juts implement that , and that is available in SVN now.

Valmir Macário wrote:

> Hi all,
>  
> Axis2 only start service when is made a first call to one operation,
> but i need to start service as soon as the tomcat start, because a
> need initialize a Timer(). I´ve trying the methot: void init() throws
> AxisFault, in my service class but i don´t have success. I apreciate
> if someone can help-me to get this behaviour in my service.
>  
> Thanks,
>  
> Valmir


-- 
Thanks,
Deepal

~Future is Open~ 



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



Re: [Axis2] how to call service through http

2006-07-11 Thread delapenajs

Kinichiro,

thank you very much this helped a lot!


Joseph







Kinichiro Inoguchi <[EMAIL PROTECTED]>

07/11/2006 06:46 PM



Please respond to
axis-user@ws.apache.org





To
axis-user@ws.apache.org


cc



Subject
Re: [Axis2] how to call service through
http








Hi, Joseph.

Try, http://localhost:8080/axis2/rest/MyService/method?p1=a&p2=b

http://ws.apache.org/axis2/1_0/rest-ws.html 

Regards,
kinichiro

--- [EMAIL PROTECTED] wrote:

> Hi,
> 
>         I am able to call my webservice in axis
1 using ex: 
> http://localhost:8080/axis/services/MyService?method=getSomething
and
> it 
> returns a soap response in the browser.    I was wondering
how to do
> this 
> in axis 2. I tried replacing axis with axis2 in the url,
> unfortunately, it 
> didnt work.
> 
> 
> thanks
> 
> 
> Joseph


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

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




[Axis2] IWAB0399E Error in generating Java from WSDL

2006-07-11 Thread delapenajs

Hi,

        I've
already done a webservice using Eclipse 3.2.   Used Dynamic Web
Project then created Web Service from it.   It was ok and
went smooth.   Now i'm trying to convert my existing codes to a webservice.
  I got stuck n kept on encountering this error:
        
        IWAB0399E
Error in generating Java from WSDL:  java.io.IOException: Type
{http://package.morepackage}MyClass is referenced but not defined.


        How
do i go about? Please advise


thanks,


Joseph


Re: Bug? Cannot instantiate AxisOperation object

2006-07-11 Thread Bruno Negrao

Hi Deepal,

AxisOperation is abstract class so you can not call;
new AxisOperation();

Oh, I didn't notice that... sorry. :-)


So what you can do is create sub class of that , like InOutAxisOperation;
AxisOperation op = new InOutAxisOperation();

Axis2 has different implementation of AxisOperation for different MEP.
If you can pls have a look at;
org.apache.axis2.description.AxisOperationFactory;


Thank you,
bruno

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



RE: [Axis2] Eclipse plugin - Axis2 Service Archiver - generates faulty service

2006-07-11 Thread delapenajs

Crap... generating services.xml is the
only reason why i would like to use the plugin. The rest is just placing
the resources into appropriate folders and packaging it to an aar.


thanks,

Joseph







"Harinath Mallepally"
<[EMAIL PROTECTED]> 
07/12/2006 11:54 AM



Please respond to
axis-user@ws.apache.org





To



cc



Subject
RE: [Axis2] Eclipse plugin - Axis2 Service
Archiver - generates         faulty service








True, even I suffered from
the same problem. You write the services.xml on your own, and use that
instead of generating it using Axis2 service archiver.  Refer to the
sample services.xml on axis2 user guide which could help you in creating
on your own.
 
 
Harinath
http://www.harinath.tk
 
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Wednesday, July 12, 2006 8:54 AM
To: axis-user@ws.apache.org
Subject: [Axis2] Eclipse plugin - Axis2 Service Archiver - generates
faulty service
 

Hi, 

        I'm trying to use Axis2 Service Archiver plugin
for eclipse to generate my Web Service. Unfortunately, it seems to be generating
faulty service. I renamed back the .aar to .jar and extracted its contents.
It has an empty services.xml. How do i resolve this problem?


thank you, 


Joseph



 CAUTION - Disclaimer
*
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient,
please notify the sender by e-mail and delete the original message. Further,
you are not to copy, disclose, or distribute this e-mail or its contents
to any other person and any such actions are unlawful. This e-mail may
contain viruses. Infosys has taken every reasonable precaution to minimize
this risk, but is not liable for any damage you may sustain as a result
of any virus in this e-mail. You should carry out your own virus checks
before opening the e-mail or attachment. Infosys reserves the right to
monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on
the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***



RE: [Axis2] Eclipse plugin - Axis2 Service Archiver - generates faulty service

2006-07-11 Thread Harinath Mallepally








True, even I suffered from the same
problem. You write the services.xml on your own, and use that instead of
generating it using Axis2 service archiver.  Refer to the sample services.xml
on axis2 user guide which could help you in creating on your own.

 

 

Harinath

http://www.harinath.tk

 

 









From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006
8:54 AM
To: axis-user@ws.apache.org
Subject: [Axis2] Eclipse plugin -
Axis2 Service Archiver - generates faulty service



 


Hi, 

 
      I'm trying to use Axis2 Service Archiver plugin for
eclipse to generate my Web Service. Unfortunately, it seems to be generating
faulty service. I renamed back the .aar to .jar and extracted its contents. It
has an empty services.xml. How do
i resolve this problem? 

thank
you, 


Joseph







 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


[Axis2] Eclipse plugin - Axis2 Service Archiver - generates faulty service

2006-07-11 Thread delapenajs

Hi,

        I'm
trying to use Axis2 Service Archiver plugin for eclipse to generate my
Web Service. Unfortunately, it seems to be generating faulty service. I
renamed back the .aar to .jar and extracted its contents. It has an empty
services.xml. How do i resolve this problem?

thank you,


Joseph

Re: axisService faults

2006-07-11 Thread Deepal Jayasinghe
As I can see your services.xml is not a valid XML, so pls make sure it
to be a valid xml first :)

and if you still have the problem pls send me the services.xml so that I
can check.

Harinath Mallepally wrote:

>
>   *Hi,*
>
>
>   *I am looking at axis2.0 web services. My intention is to
>   convert previous webservice that we developed into axis2.0 but I
>   am getting errors. *
>
>
>   *Alternatively, are there any sample axis2.0 webservices with
>   which I can work and get hands on experience?*
>
>
>   *Any suggestions? On what might have gone wrong? Here is the
>   exception stack.*
>
>
>   *This Web axisService has deployment faults*
>
> Error: org.apache.axis2.deployment.DeploymentException:
> com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at
> [row,col {unknown-source}]: [1,0]; nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException:
> Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:124)
> at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:620)
> at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195)
> at
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207)
> at
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155)
> at
> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:91)
> at
> org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:142)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:42)
> at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213)
> at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4284)
> at
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:2990)
> at
> org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:1019)
> at
> org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet.java:524)
> at
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:147)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
> at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:587)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
> at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
> at
> org.apache.tomcat.util.threads.ThreadPool$Co

Re: problem to invoke the webservice using RESTt Style

2006-07-11 Thread Deepal Jayasinghe
Hi Bansal;
pls see my comments below;

Bansal, Vimal wrote:

>Hi All,
>
>I am a new user of Web Services. I am using Axis2 for implementing services. I 
>want to use REST style of Web services. My service class, say MyServices have 
>to service methods:
>   String getAllValues() and String[] getValue(long id).
>The first service method, that has no parameters, is working fine when invoked 
>by a client. I am accessing this service through the link: 
>http://localhost:8080/Axis2/rest/servicename/getAllValues
>I am getting the following result:
>http://service.poc.com/xsd";> 
>   [33, 34, 35, 36, 37, 38] 
>
>My problem is that when I am trying to access the second service(that has one 
>parameter), through the link 
>http://localhost:8080/Axis2/rest/servicename/getValue am getting an axis page 
>showing "Internal server error". How can I access this web service? Is there 
>some way to pass the parameter through url?
>My client class is having following code snippets:
>
>private static EndpointReference targetEPR = new 
>EndpointReference("http://localhost:8080/rest/userservice2/getValue";);
>  
>
pls type the following link in the browser and see ;

http://localhost:8080/rest/userservice2/getValue?id=10

N:B:- id value should be a valid value w.r.t your service.



>...
>public static void main(String[] args) {
>   try {
>   ServiceClient sender = null;
>   Options options = new Options();
>   options.setTo(targetEPR);
>   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>   options.setProperty(Constants.Configuration.ENABLE_REST, 
> Constants.VALUE_TRUE);
>   
> options.setProperty(Constants.Configuration.HTTP_METHOD,Constants.Configuration.HTTP_METHOD_GET);
>   sender = new ServiceClient();
>   sender.setOptions(options);
>   OMElement result= sender.sendReceive(getPayload());
>   }
>   catch(Exception e){ }
>}
>...
>private static OMElement getPayload() throws Exception{
>   OMFactory fac =OMAbstractFactory.getOMFactory();
>   OMNamespace omNs = 
> fac.createOMNamespace("http://service.poc.com/xsd","example1";);
>   OMElement method = fac.createOMElement("getValue", omNs);
>   OMElement value = fac.createOMElement("Text", omNs);
>   value.addChild(fac.createOMText(value,"38"));
>   method.addChild(value);
>   return method;
>} 
>   
>Thanks and regards,
>Vimal.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 




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



Re: [Axis2] response element name with RPCMessageReceiver

2006-07-11 Thread Deepal Jayasinghe
Hi Anamitra ;
You are exactly correct , even from the java reflection you can not
directly get the input parameter names . What we have done is, we read
byte code and from that get the name of the input parameters, so no way
that we can get the name of the output parameter. That is why we always
put return as output parameter.

[EMAIL PROTECTED] wrote:

>this is because there is no way to reflect on the return variable inside a
>method in java- at least to the best of my knowledge.
>Anamitra
>
>
>   
> Kinichiro 
> Inoguchi  
> <[EMAIL PROTECTED]  To 
> om>   axis-user@ws.apache.org 
>cc 
> 07/10/2006 12:03  
> PMSubject 
>   [Axis2] response element name with  
>   RPCMessageReceiver  
> Please respond to 
> [EMAIL PROTECTED] 
>  he.org   
>   
>   
>   
>
>
>
>
>This is not a problem, just my thoughts.
>I wonder why response element name is always "return" ?
>
>If I create MyService like this,
>
>  package test;
>  public class MyService {
>public String echo(String inparam) {
>  String outparam = inparam;
>  return outparam;
>}
>  }
>
>and packed this to MyService.aar with using RPCMessageReceiver,
>generated WSDL  section will be like this,
>
>  
>
>  
>
>  
>
>  
>
>  
>  
>
>  
>
>  
>
>  
>
>  
>
>An element name of request is equivalen to method argument variable
>name, "inparam".
>But, element name of response is NOT variable name returned,
>"outparam".
>An element name of response is always "return".
>
>Is there any reason for this ?
>In case for like "return inparam + outparam;" ?
>
>I feel variable name should be an element name of response.
>Then I control WSDL naming convention a little bit.
>
>Any comments will be appreciated :-)
>
>Thanks,
>kinichiro
>
>__
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 




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



Re: [axis 2] services.xml files

2006-07-11 Thread Deepal Jayasinghe
Hi Brian;
I think you are using Axis2 1.0 , and it had few issues with auto wsdl
generation. so if you can pls try to use Axis2 nightly builds.

Brian Dillon (ext. 944) wrote:

> Hi,
>
> I have just started looking at moving from Axis 1.3 to Axis 2 and have
> a couple of short questions. Firstly is there anywhere that describes
> the services.xml files and the parameters and options associated with
> this file (I can't see where the xsd might be) ? Secondly I have
> written a very basic service which takes a string and returns a
> string, however my when I click on the ?wsdl on the services page see
> the target namespaces as _http:///xsd_
>
> http:///xsd"; targetNamespace="*http:///xsd*";
> elementFormDefault="unqualified" attributeFormDefault="unqualified">
>
> Then in order to invoke my client I must use the following
>
> OMNamespace omNs =
> fac.createOMNamespace("http:///xsd","nsx";);
> OMElement method =
> fac.createOMElement("sendStringRoundtrip",omNs);
>
> Is there anyway of changing this namespace ?
>
> Thanks,
>
> Brian
>
> __
>
> The information contained in this e-mail is confidential, may be
> privileged and is intended
>
> only for the user of the recipient named above. If you are not the
> intended recipient or a
>
> representative of the intended recipient, you have received this
> e-mail in error and must
>
> not copy, use or disclose the contents of this e-mail to anybody else.
>
>  
>
> If you have received this e-mail in error, please notify the sender
> immediately by return
>
> e-mail and permanently delete the copy you received. This e-mail has
> been swept for
>
> computer viruses. However, you should carry out your own virus checks.
>
> *Registered in Ireland, No. 205721. **_http://www.FINEOS.com_*
>
> __
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 




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



Re: [Axis2] Exception when sending with ServiceClient

2006-07-11 Thread Deepal Jayasinghe
Did you use same OMelement for both the method invocations ?

if not so , any possibility of seeing the client side code ?

John Ferron wrote:

> Good Morning,
>  
> Has anyone seen this exception when trying to perform a sendRecieve()
> on the ServiceClient object??  It would be greatly appreciated if I
> could get this resolved.
>  
> John
>  
>
> 06 Jul 2006 15:54:40 [ProcessSOAPMessage$jsp] ERROR soap  - Can not
> output XML declaration, after other output has already been done.;
> nested exception is:
>  javax.xml.stream.XMLStreamException: Can not output XML declaration,
> after other output has already been done.; nested exception is:
>  org.apache.axis2.AxisFault: Can not output XML declaration, after
> other output has already been done.; nested exception is:
>  javax.xml.stream.XMLStreamException: Can not output XML declaration,
> after other output has already been done.; nested exception is:
>  org.apache.axis2.AxisFault: Can not output XML declaration, after
> other output has already been done.; nested exception is:
>  javax.xml.stream.XMLStreamException: Can not output XML declaration,
> after other output has already been done.; nested exception is:
>  org.apache.axis2.AxisFault: Can not output XML declaration, after
> other output has already been done.; nested exception is:
>  javax.xml.stream.XMLStreamException: Can not output XML declaration,
> after other output has already been done.; nested exception is:
>  org.apache.axis2.AxisFault: Can not output XML declaration, after
> other output has already been done.; nested exception is:
>  javax.xml.stream.XMLStreamException: Can not output XML declaration,
> after other output has already been done.; nested exception is:
>  org.apache.axis2.AxisFault: Can not output XML declaration, after
> other output has already been done.; nested exception is:
>  javax.xml.stream.XMLStreamException: Can not output XML declaration,
> after other output has already been done.; nested exception is:
>  org.apache.axis2.AxisFault: Can not output XML declaration, after
> other output has already been done.; nested exception is:
>  javax.xml.stream.XMLStreamException: Can not output XML declaration,
> after other output has already been done.; nested exception is:
>  org.apache.axis2.AxisFault: Can not output XML declaration, after
> other output has already been done.; nested exception is:
>  javax.xml.stream.XMLStreamException: Can not output XML declaration,
> after other output has already been done.


-- 
Thanks,
Deepal

~Future is Open~ 




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



Re: [Axis2] Invalid phases please recheck axis2.xml, handler null added

2006-07-11 Thread Deepal Jayasinghe
You need to change your axis2.xml , you need to add phase called
"LoggingPhase" into your phaseOrder element.

heikki wrote:

> Hi there,
>
> I'm trying to add the sample logging module to my service
> (server-side) as described in
> http://ws.apache.org/axis2/1_0/userguide4.html#MyService_with_a_Logging_Module
> .
> However I run into some probelms -- anyone can shed some light on this
> ? That would be most appreciated.
>
> It looks like some crucial parts are missing in this otherwise
> excellent documentation: where sample configuration files are given,
> precisely the part described is usually not there ! Even when
> described as "in green", I can't find it ..
>
> Anyway, trying to do it gives me this error at server startup time.
> (I'd moved the logging classes to a package named 'test', recreated
> logging.mar, and renamed logging.mar to logging-1.0.mar as per another
> mail thread in this list).
>
> [10 Jul 2006 15:09:46] ERROR
> org.apache.axis2.deployment.DeploymentEngine.doDeploy():636 - Invalid
> service  MyService.aar due to Invalid phases
>  please recheck axis2.xml loggingPhase for the handler InFlowLogHandler
> org.apache.axis2.phaseresolver.PhaseException: Invalid phases please
> recheck axis2.xml loggingPhase for the handler InFlowLogHandler
> at
> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java
> :66)
> at
> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:191)
> at
> org.apache.axis2.description.AxisOperation.engageModule(AxisOperation.java:128)
> . . . etc.
>
> after exploding the logging-1.0.mar so that the classes are unpacked
> into this application's classes directory (running in WebLogic),  this
> error disappears, but now I see repeatedly this message at server
> startup time, and the logging does not work (extra debug statements
> with ### added by me):
>
> [10 Jul 2006 15:20:49 ] DEBUG test.LoggingModule): 31 -
>  init ##
> Retrieving document at ''.
>
> [10 Jul 2006 15:20:50] DEBUG test.LogHandler(): 33 -
>  getName ##
> [10 Jul 2006 15:20:50] DEBUG
> org.apache.axis2.engine.Phase.addHandler():113 - Handler null added to
> Phase loggingPhase
>
>
>
> I have axis2.xml like
> . . .
> 
> 
> 
>  class="org.apache.axis2.engine.RequestURIBasedDispatcher ">
> 
> 
>  class="org.apache.axis2.engine.SOAPActionBasedDispatcher ">
> 
> 
> 
> 
> 
>  class="org.apache.axis2.engine.DispatchPhase">
>  class="org.apache.axis2.engine.AddressingBasedDispatcher ">
> 
> 
>  class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher ">
> 
> 
>  class="org.apache.axis2.engine.InstanceDispatcher ">
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 
> . . .
>
> and an services.xml like this
>
> 
> 
> 
>  mep="http://www.w3.org/2004/08/wsdl/in-out "
> class="com.xxx.MyServiceMessageReceiverInOut"/>
> 
> 
> 
> com.xxx.MyServiceSkeleton
>  mep="http://www.w3.org/2004/08/wsdl/in-out";>
> myAction
> 
> 
> 
>
> and inside the logging-1.0.mar, a module.xml like this :
>
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
>
>
> Any help is greatly appreciated !
>
>
>

-- 
Thanks,
Deepal

~Future is Open~ 




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



Re: Bug? Cannot instantiate AxisOperation object

2006-07-11 Thread Deepal Jayasinghe
Hi Negrao;
AxisOperation is abstract class so you can not call;
new AxisOperation();
So what you can do is create sub class of that , like InOutAxisOperation;
AxisOperation op = new InOutAxisOperation();

Axis2 has different implementation of AxisOperation for different MEP.
If you can pls have a look at;
org.apache.axis2.description.AxisOperationFactory;

Bruno Negrao wrote:

> Hi guys,
>
> when I try to instantiate an AxisOperation object with:
>
> AxisOperation agendaPesquisa =  new AxisOperation();
>
> that gives me an "Unresolved compilation problem":
>
> Exception in thread "main" java.lang.Error: Unresolved compilation
> problem:
> Cannot instantiate the type AxisOperation
>
> at teste.TestAgenda.main(TestAgenda.java:46)
>
> Is this a bug?
>
> (i'm downloading the latest nightly snapshot anyway...)
> thanks,
> bruno
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

-- 
Thanks,
Deepal

~Future is Open~ 




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



Re: [Axis2] WS soap action question

2006-07-11 Thread Deepal Jayasinghe
Well , it is first read SOAP action , and try to dispatch using that ,
and next try to dispatch using wsa:action if it dose not find service
and operation using SOAP action .

Any way you can change the dispatching order very easily by changing
axis2.xml

Wes Caldwell wrote:

>A related question.  What is the order of reading in Axis 2 for the SOAP
>Action?  Meaning, if I am using WS-Addressing, and the SOAP Action element
>is part of the SOAP Header, as well as the HTTP SOAP Action Header being
>present in the request, which is interpreted first by Axis 2?
>
>Thanks,
>
>Wes
>  
>
>-Original Message-
>From: Eran Chinthaka [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, June 29, 2006 7:25 AM
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2] WS soap action question
>
>Michele Mazzucco wrote:
>  
>
>>Hi all,
>>
>>how, 
>>
>>
>
>Read HTTP headers and SOAP Action header.
>
>  
>
>>when 
>>
>>
>
>Whenever message comes to the engine.
>
>  
>
>>(and where) 
>>
>>
>
>AxisServlet.
>
>-- Chinthaka
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 




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



Re: Axis2

2006-07-11 Thread Deepal Jayasinghe
Hi ;
you need to have backport-util-concurrent-2.1.jar in your classpth.

Smirnova, Natalya wrote:

> Hello.
>
>  
>
>  
>
> Why my example application from Axis2 User Guid throws exception:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> edu/emory/mathcs/backport/java/util/concurrent/BlockingQueue
>
> When I trying to run PingClient (example1)
>
>  
>
> Best regards, Smirnova Natalya.
>
> MERA NN/Custom Software/EMA/OAM//
>
>  
>
>  
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 




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



Re: org.apache.axis2.phaseresolver.PhaseException

2006-07-11 Thread Deepal Jayasinghe
You need to have servlet.jar in your class path ;
you can either have geronimo-spec-servlet.jar or servlet-api.jar (you
can find this in side tomcat)

Fabien Couble wrote:

>
> Hi Deepal,
>
> What I want to do is simply engage a module at the client side because
> my goal is to implement the standard WS-Transfer.
> Actually, I just want to set up a simple example to see how to engage
> this module.
> I did what you told me and I still have the following Exception (on
> the client).
> Exception in thread "Axis2 Task" java.lang.NoClassDefFoundError:
> javax/servlet/http/HttpServlet
>
> at java.lang.ClassLoader.defineClass1(Native Method)
>
> at java.lang.ClassLoader.defineClass(Unknown Source)
>
> at java.security.SecureClassLoader.defineClass(Unknown Source)
>
> at java.net.URLClassLoader.defineClass(Unknown Source)
>
> at java.net.URLClassLoader.access$100(Unknown Source)
>
> at java.net.URLClassLoader$1.run(Unknown Source)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(Unknown Source)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
>
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>
> at
> org.apache.axis2.handlers.soapmonitor.SOAPMonitorHandler.invoke(SOAPMonitorHandler.java:107)
>
>
> at org.apache.axis2.engine.Phase.invoke(Phase.java:381)
>
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
>
> at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:610)
>
> at
> org.apache.axis2.transport.http.HTTPWorker.processRequest(HTTPWorker.java:292)
>
>
> at
> org.apache.axis2.transport.http.server.SimpleConnectionThread.run(SimpleConnectionThread.java:92)
>
>
> at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>
>
> at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>
>
> at java.lang.Thread.run(Unknown Source)
>
>
> See enclosed my client code.
>
> Regards
> Fabien
>
> - Original Message - From: "Deepal Jayasinghe"
> <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, July 06, 2006 5:47 PM
> Subject: Re: org.apache.axis2.phaseresolver.PhaseException
>
>
>> Hi Fabien;
>> pls see my comments below;
>>
>> Fabien Couble wrote:
>>
>>>
>>> Thx for your response, but there's still a problem.
>>>
>>> I add your command:
>>> ConfigurationContext configContext =
>>> ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:/Program
>>>
>>>
>>> Files/Apache Software Foundation/Tomcat 5.5/webapps/axis2/WEB-INF",
>>> "C:/Program Files/Apache Software Foundation/Tomcat
>>> 5.5/webapps/axis2/WEB-INF/conf/axis2.xml");
>>>
>>> In fact, the server and the client has the same axis2.xml (I think
>>> it's normal) but now i can't engage the modules at the client side
>>> with the sender.engageModule(...) because an exception is raised
>>> saying that the modules have already been added.
>>
>>
>> you do not need to call sender.engageModule if you have module ref in
>> axis2.xml , that is why you are getting that error.
>>
>> can you please explain to me what realy you tried to do , if possible
>> send me the client code that you used , then I can help you.
>>
>>> So I remove these commands  but another exception is raised:
>>> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>>>
>>> />soapenv:Client
>>>
>>>
>>> The server 10.68.150.83 failed to respond; nested exception is:
>>> org.apache.commons.httpclient.NoHttpResponseException: The server
>>> 10.68.150.83 failed to
>>> respondorg.apache.axis2.AxisFault:
>>> The server 10.68.150.83 failed to respond; nested exception is:
>>> org.apache.commons.httpclient.NoHttpResponseException: The server
>>> 10.68.150.83 failed to respond; nested exception is:
>>> org.apache.axis2.AxisFault: The server 10.68.150.83 failed to respond;
>>> nested exception is:
>>> org.apache.commons.httpclient.NoHttpResponseException: The server
>>> 10.68.150.83 failed to respond
>>> at
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:222)
>>>
>>>
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:639)
>>> at
>>> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:43)
>>>
>>>
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)
>>> at
>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>>>
>>>
>>> at
>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>>>
>>>
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>>> at javax.servlet.http.HttpSer

Re: [Axis2] ServiceClient embedded into a handler [problem not fixed]

2006-07-11 Thread Deepal Jayasinghe
Hi Michele
can you pls try to invoke the same service using service client , I mean
without running inside the handler.
If you still have the problem then pls create a JIRA

Michele Mazzucco wrote:

>Hi Paul,
>
>no. The http://null:8080... is set by the invoked service before sending
>the result back. I do not set any replyTo value on the ServiceClient
>(please remember that it runs embedded into a handler).
>
>Michele
>
>Paul Fremantle wrote:
>  
>
>>Michele
>>
>>I'm not quite clear which endpoint is set to that?
>>Do you mean the replyTo of the outgoing request?
>>
>>Paul
>>
>>On 7/4/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>>
>>
>>>Hi all,
>>>
>>>I've posted this problem a few days ago, but it has not been fixed yet
>>>(I've tried with the yesterday's nightly build).
>>>
>>>I've got a ServiceClient into a handler which submits a request to a
>>>service (running into another server): the request is received, as
>>>expected, however the result is not sent back since the endpoint is
>>>erroneously set to
>>>http://null:8080/axis2/services/annonService5978327/annonOutInOp (while,
>>>for instance, the handler's server is running on port 18080).
>>>
>>>Should I create a JIRA?
>>>
>>>
>>>Thanks,
>>>Michele
>>>
>>>-
>>>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]
>
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 




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



RE: RE: schema vs. xsd:schema

2006-07-11 Thread Simon Fell
Title: RE: RE: schema vs. xsd:schema






If interop between different stacks is important to you then I'd highly recommend you do a WSDL first approach, write your WSDL first and then build your code from the WSDL, and not have the WSDL generated from your code.

Cheers
Simon

-Original Message-
From: Jarmo Doc [mailto:[EMAIL PROTECTED]]
Sent: Tue 7/11/2006 7:24 PM
To: axis-user@ws.apache.org
Subject: RE: RE: schema vs. xsd:schema

Thanks very much guys (Simon, Ian, Paul).  Much appreciate the help.  I'm
finding that I'm frequently having to debug WSDL that works fine with Axis
but not necessarily with other client tools and it's quite a challenge to
determine a) who's at fault and b) what's the lowest common denominator that
works with all.

The 1.1 WSDL docs that I refer to are heavy on terms like "should" and "can"
as opposed to "will" and "must".  More of a discussion than a specification.
  I think the later specs are more precise, no doubt partly as a result of
the problems caused by the earlier ones.

Thanks again for your help.


>From: "Simon Fell" <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: RE: RE: schema vs. xsd:schema
>Date: Tue, 11 Jul 2006 16:22:34 -0700
>
>Good catch.
>
>-Original Message-
>From: Ian Brown [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, July 11, 2006 3:51 PM
>To: axis-user@ws.apache.org
>Subject: Re: RE: schema vs. xsd:schema
>
>Not to be a pedant, but I'm correcting a minor typo in Simon's response
>so Jarmo does not get confused:
>
>On 7/11/06, Simon Fell <[EMAIL PROTECTED]> wrote:
> > It depends on whether the schema namespace has been made the default
> > namespace or not.
> > http://www.w3.org/2001/XMLSchema">
> >   
> > 
> >
> > Is equivilent to
> > http://www.w3.org/2001/XMLSchema">
> >   
> > 
>
>Cheers,
>
>- Ian
>
>-
>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]
>

_
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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







RE: RE: schema vs. xsd:schema

2006-07-11 Thread Jarmo Doc
Thanks very much guys (Simon, Ian, Paul).  Much appreciate the help.  I'm 
finding that I'm frequently having to debug WSDL that works fine with Axis 
but not necessarily with other client tools and it's quite a challenge to 
determine a) who's at fault and b) what's the lowest common denominator that 
works with all.


The 1.1 WSDL docs that I refer to are heavy on terms like "should" and "can" 
as opposed to "will" and "must".  More of a discussion than a specification. 
 I think the later specs are more precise, no doubt partly as a result of 
the problems caused by the earlier ones.


Thanks again for your help.



From: "Simon Fell" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: RE: RE: schema vs. xsd:schema
Date: Tue, 11 Jul 2006 16:22:34 -0700

Good catch.

-Original Message-
From: Ian Brown [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 3:51 PM
To: axis-user@ws.apache.org
Subject: Re: RE: schema vs. xsd:schema

Not to be a pedant, but I'm correcting a minor typo in Simon's response
so Jarmo does not get confused:

On 7/11/06, Simon Fell <[EMAIL PROTECTED]> wrote:
> It depends on whether the schema namespace has been made the default
> namespace or not.
> http://www.w3.org/2001/XMLSchema";>
>   
> 
>
> Is equivilent to
> http://www.w3.org/2001/XMLSchema";>
>   
> 

Cheers,

- Ian

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



_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



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



Re: [Axis2] Command line "-p" option giving wrong result

2006-07-11 Thread robert lazarski

Are you using the nightlies? There have been some bugs since the 1.0
release and this one may have been fixed:

http://people.apache.org/dist/axis2/nightly/

If you still have a problem you can file a jira here:

http://issues.apache.org/jira/browse/AXIS2

HTH,
Robert
http://www.braziloutsource.com/

On 7/11/06, Rathore, Amit Singh (STSD) <[EMAIL PROTECTED]> wrote:

Hi Everyone,
I have been using "org.apache.axis2.wsdl.WSDL2Java" command line option
inside build.xml to generate stubs etc. I am not passing -p option, -p
option stands for over-riding default package structure that has been
specified in targetNamespace in the WSDL.

But the stubs are generated in org.apache.axis2 package structure, which
is the default package structure.
I have specified package name to targetNamespace in my WSDL's.

Does anyone has any idea of what is wrong or is it a bug in stub
generation?

Thanks in advance.

--
Amit Singh Rathore

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



REPOST: Problem with session management

2006-07-11 Thread Warren Crossing

This might be a possible bug.

The src/org/apache/axis/client/client-config.wsdd does not support 
session based request by default.  I had to add and rebuild.










Perhaps the client.wsdd defaults should support sessions and security, 
or there should be some provision for the generated client Locater to 
change the provider before creating the Stub.


Warren.

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



RE: WSS4J

2006-07-11 Thread Michael McIntosh
You don't need to pass a Digest. The client can pass the password as 
plaintext in the UsernameToken (encrypting the UsernameToken or using SSL 
for encrypting the channel). Then your Callback handler can contact your 
authentication server to verify the password.

Thanks,
Mike

[EMAIL PROTECTED] wrote on 07/11/2006 11:25:16 AM:

> >you should be able to get the server security handler to pass it as a
> property (once its been verified) in the MessageContext?
> 
> Question is how?
> 
> I think if this is possible, then it would potentially make the 
situation
> worse as the MessageContext is available right from the handlers to the
> application code. 
> 
> So why do I need this - cause authentication is being done by an 
external
> component. So I essentially pass the user name and password to the 
external
> component and it comes back with authorized/not authorized.
> 
> My take is that rather than make it available as a property in the
> MessageContext it should be made available to the callback. The callback
> should be in a position to either string compare or go to an external 
source
> to authenticate it.
> 
> Now all this is of course is pointless if are talking of a one way 
hash...
> and as pointed out in the mailing list, looks like it is.
> 
> Any thoughts on whether the WSS4J approach is restrictive or that what I 
am
> expecting out of it is wrong. 
> 
> I for one can see why it is been done like the way it is in WSS4J, but 
there
> should be some flexibility provided.
> 
> Your thoughts most appreciated.
> 
> -Original Message-
> From: Michael McIntosh [mailto:[EMAIL PROTECTED] 
> Sent: 11 July 2006 15:23
> To: axis-user@ws.apache.org
> Cc: axis-user@ws.apache.org
> Subject: Re: WSS4J
> 
> [EMAIL PROTECTED] wrote on 07/11/2006 08:54:19 AM:
> 
> > Hello,
> > 
> > I've a question on WSS4J. I am using WSS4J with Axis 1.3 on the server 

> side. 
> > 
> > I wanted to know if it is possible to convert the contents of wsse:
> > Password from its digest form to a text form? 
> 
> No, that is the point of Digest as opposed to Plain Text passwords. 
> Although since the server security handler needs to have access to the 
> Plain Text password in order to compute the Digest value to compare and 
> verify the password, you should be able to get the server security 
handler 
> to pass it as a property (once its been verified) in the MessageContext, 

> no? 
> BTW, I am just saying its possible - you really should try to find an 
> alternative way of doing this. I assume you are trying to authenticate 
to 
> some back end using the passed in credential?
> 
> > I need access to the password within the application. Is there an 
> > API to convert from digest to text?
> > 
> > Cheers
> > Rishi
> > 
> > 
> > 
> > 
> > 
> 

> 
> > This message is intended for the addressee or its representative only. 

> > Any form of unauthorized use, publication, reproduction, copying or 
> > disclosure of the content of this e-mail is not permitted. If you are 
> > not the intended recipient of this e-mail message and its contents, 
> > please notify the sender immediately and delete this message and 
> > all its attachments subsequently.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Axis 2 compile time error.

2006-07-11 Thread robert lazarski

Make sure you are using the latest nightlies - axis2 has had several
bugs fixed with xmlbeans:

http://people.apache.org/dist/axis2/nightly/

Also make sure your client can find all the xmlbeans xsb and the one
class files it generates. My wsdl2java looks like this, which I then
make into a jar:



 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 

 

HTH,
Robert
http://www.braziloutsource.com/

On 7/11/06, shantanu chawla <[EMAIL PROTECTED]> wrote:

I am trying to create a webservice client using Axis2. While compiling
it is giving me this error. Can anyone give any clue related to what
can be the issue.

Thanks

org.apache.axiom.om.OMException: java.lang.IllegalStateException
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
at 
org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:144)
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:322)
at 
test.clientregistration.ClientRegistrationStub.toOM(ClientRegistrationStub.java:498)
at 
test.clientregistration.ClientRegistrationStub.toEnvelope(ClientRegistrationStub.java:512)
at 
test.clientregistration.ClientRegistrationStub.AuthorizeClient(ClientRegistrationStub.java:102)
at shantanu.TestingAxis2.main(TestingAxis2.java:15)
Caused by: java.lang.IllegalStateException
at 
org.apache.xmlbeans.impl.store.Jsr173$XMLStreamReaderForString.next(Jsr173.java:1110)
at 
org.apache.xmlbeans.impl.store.Jsr173$SyncedJsr173.next(Jsr173.java:1138)
at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123)
... 6 more

Shantanu Chawla
--
Graduate Student
Department of Computer Science,
San Diego State University

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




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



RE: RE: schema vs. xsd:schema

2006-07-11 Thread Simon Fell
Good catch. 

-Original Message-
From: Ian Brown [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 3:51 PM
To: axis-user@ws.apache.org
Subject: Re: RE: schema vs. xsd:schema

Not to be a pedant, but I'm correcting a minor typo in Simon's response
so Jarmo does not get confused:

On 7/11/06, Simon Fell <[EMAIL PROTECTED]> wrote:
> It depends on whether the schema namespace has been made the default 
> namespace or not.
> http://www.w3.org/2001/XMLSchema";>
>   
> 
>
> Is equivilent to
> http://www.w3.org/2001/XMLSchema";>
>   
> 

Cheers,

- Ian

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

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



Re: File access from a .war

2006-07-11 Thread robert lazarski

I've got a few ideas:

1) There is no rule that says your service class must be in an aar. In
can be in another jar or in WEB-INF/classes , for example. The
services.xml defines the ServiceClass, but that class can be anywhere
in a higher classloader. This means all your WAR options, such as
exploded, can apply.

2) Use the embedded option as described for a war, but for an aar:

http://www.wso2.net/kb/90

3) Use ehcache . I know this works in tomcat / axis2  as I use it in
my serviceClass sometimes. If you use hibernate you already have
ehcache.

HTH,
Robert
http://www.braziloutsource.com/

On 7/11/06, M S <[EMAIL PROTECTED]> wrote:

Hi,

 Well this is my Web Service file:


 import java.io.*;

 public class MyService2 {

 public String echo(String password) {

 int ctr = 1;
 FileInputStream fin;
 try {
 fin = (FileInputStream)
getClass().getClassLoader().getResourceAsStream("prime.txt");
 BufferedReader br
   = new BufferedReader(new InputStreamReader(fin));
 ctr = Integer.parseInt(br.readLine());
 fin.close();
 } catch (Exception e) { System.out.println("prime.txt does not
exist. Creating prime.txt...");}


 boolean primeReached = false;
 while (!primeReached) {
 ctr++;
 if (isPrime(ctr) && ctr!=4) {
 primeReached = true;
 break;
 }
 }
 PrintWriter fout;
 try {
 fout = new PrintWriter(new FileWriter("c:\\prime.txt"));

 fout.println(String.valueOf(ctr));
 fout.close();
 } catch (Exception e) {e.printStackTrace();}


 return Integer.valueOf(ctr).toString();
 }

 private boolean isPrime(int p) {
 int i;
 for(i=2;i<(p/2);i++) {
 if ( i*(p/i) == p ) return(false);
 }
 return(true);
 }

 }

 This is my services.xml:
 
 
 
 
 MyService2
 

 This is my WSDL:
 http://ws.apache.org/axis2";>
 -
 
 -
 http:///xsd"; elementFormDefault="qualified"
attributeFormDefault="qualified">
 -
 
 -
 
 -
 
 
 
 
 
 -
 
 -
 
 -
 
 
 
 
 
 
 
 -
 
 
 
 -
 
 
 
 -
 
 -
 
 
 
 
 
 -
 
 http://schemas.xmlsoap.org/soap/http"/>
 -
 
 
 -
 
 
 
 -
 
 
 
 
 
 -
 
 http://schemas.xmlsoap.org/soap/http"/>
 -
 
 
 -
 
 
 
 -
 
 
 
 
 
 -
 
 
 -
 
 
 -
 
 
 
 -
 
 
 
 
 
 -
 
 -
 
 http://localhost:8080/axis2/services/MyService2"/>
 
 -
 
 http://localhost:8080/axis2/services/MyService2"/>
 
 -
 
 http://localhost:8080/axis2/rest/MyService2"/>
 
 
 

 And this is my client:
 public class Client {

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

 MyService2Stub stub = new MyService2Stub();

 //Create the request
 MyService2Stub.Echo request = new MyService2Stub.Echo();
 request.setParam0("3IsAnOddPrime");

 //Invoke the service
 EchoResponse response = stub.echo(request);

 System.out.println("Response : " + response.get_return());
 }


 I get "Response: 1" no matter what I do with the Web Service file for some
reason.



On 7/11/06, Rodrigo Ruiz <[EMAIL PROTECTED]> wrote:
> Hi again, :-)
>
> Mmmmh, I haven't heard anything about this kind of problems with .aar
> files. I am afraid I don't use Axis2 myself, so my knowledge is limited
:-P
>
> Where are you trying to write the file, and how do you get the path?
> Have you tried to write in a fixed absolute path? If you can't create a
> file, for example, at the user's home directory, it could be a
> permissions problem (either at file level, or at server security system
> level).
>
> AFAIK, .aar files can also be deployed as directories, but I will have
> to redirect you to the Axis documentation site (or to anyone else that
> could answer this), I'm sorry.
>
> Michael, there are several good articles at theserverside, and many
> implementations at a "google click" distance ;-)
>
> I would recommend you to start by looking at the ehcache project
> (http://ehcache.sourceforge.net/). It is pretty well documented.
>
> Regards,
> Rodrigo Ruiz
>
>
> Rodrigo Ruiz wrote:
> > Depending on the servlet container you are using, war archives may be
> > considered read-only. In this case you will not be able to write a file
> > within the application context.
> >
> > Some alternatives you have are:
> >
> > - Deploy your application as an "exploded war" (the exact name will vary
> > from container to container). When deploying in this mode, your classes
> > can write files at any location within your context.
> >
> > - Use an absolute path for your file. The path may be configured through
> > JNDI, or System properties, or you might put it into a subfolder of the
> > user home (this is very common in *nix environments).
> >
> >
> > Other op

Re: RE: schema vs. xsd:schema

2006-07-11 Thread Ian Brown

Not to be a pedant, but I'm correcting a minor typo in Simon's
response so Jarmo does not get confused:

On 7/11/06, Simon Fell <[EMAIL PROTECTED]> wrote:

It depends on whether the schema namespace has been made the default
namespace or not.
http://www.w3.org/2001/XMLSchema";>
  


Is equivilent to
http://www.w3.org/2001/XMLSchema";>
  



Cheers,

- Ian

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



Re: schema vs. xsd:schema

2006-07-11 Thread Paul Fremantle

1. Its not a bug. If you look at the schema element it looks like this:
http://DefaultNamespace";
xmlns="http://www.w3.org/2001/XMLSchema";>

The xmlns attribute defines the default namespace for that tag and its
children.
You can read about XML Namespaces and how they work here:
http://www.w3.org/TR/REC-xml-names/

2. Yes people do use Web Services for serious implementations across
multiple toolkits.

Paul


On 7/11/06, Jarmo Doc <[EMAIL PROTECTED]> wrote:

Should I just assume that this is a bug in Axis and that schema, simpleType,
complexType and so on should always be qualified by a namespace, typically
"xsd:"?

Or is there some sneaky implicit arrangement whereby xmlns or something else
being indicated means that I don't need qualification.

Is there actually anyone out there successfully using this technology
with multiple client types (Axis, gSOAP, WebSphere, .NET)?  I don't see how
it's possible for anything more complex than a stock quote lookup
service.


>From: "Jarmo Doc" <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: schema vs. xsd:schema
>Date: Tue, 11 Jul 2006 09:21:28 -0700
>
>Axis 1.3 java2wsdl generates 'schema' tags but most WSDL that I see
>contains 'xsd:schema' tags.  The WSDL spec. also seems to suggest that
>'xsd:schema' is the only legal option.
>
>What is the difference between these two tags and why does Axis generate
>the former?
>
>Thanks.
>
>_
>Express yourself instantly with MSN Messenger! Download today - it's FREE!
>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


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





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

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

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

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



RE: schema vs. xsd:schema

2006-07-11 Thread Simon Fell
It depends on whether the schema namespace has been made the default
namespace or not.
http://www.w3.org/2001/XMLSchema";>
  


Is equivilent to
http://www.w3.org/2001/XMLSchema";>
  


The vision is that the tools will save you, to date, this has yet to
happen and IMO you need deep knowledge of xml namespace, schema, soap &
WSDL to get fully functioning system up and running.

To answer your rant, Salesforce.com offers Web Services that are
regularly used by Java / .NET / Perl / PHP / Python / Ruby / VB / C++ /
Javascript clients.

Cheers
Simon

-Original Message-
From: Jarmo Doc [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 2:02 PM
To: axis-user@ws.apache.org
Subject: RE: schema vs. xsd:schema

Should I just assume that this is a bug in Axis and that schema,
simpleType, complexType and so on should always be qualified by a
namespace, typically "xsd:"?

Or is there some sneaky implicit arrangement whereby xmlns or something
else being indicated means that I don't need qualification.

Is there actually anyone out there successfully using this
technology with multiple client types (Axis, gSOAP, WebSphere, .NET)?  I
don't see how it's possible for anything more complex than a stock quote
lookup service.


>From: "Jarmo Doc" <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: schema vs. xsd:schema
>Date: Tue, 11 Jul 2006 09:21:28 -0700
>
>Axis 1.3 java2wsdl generates 'schema' tags but most WSDL that I see 
>contains 'xsd:schema' tags.  The WSDL spec. also seems to suggest that 
>'xsd:schema' is the only legal option.
>
>What is the difference between these two tags and why does Axis 
>generate the former?
>
>Thanks.
>
>_
>Express yourself instantly with MSN Messenger! Download today - it's
FREE! 
>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
On the road to retirement? Check out MSN Life Events for advice on how
to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


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

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



Axis 2 compile time error.

2006-07-11 Thread shantanu chawla

I am trying to create a webservice client using Axis2. While compiling
it is giving me this error. Can anyone give any clue related to what
can be the issue.

Thanks

org.apache.axiom.om.OMException: java.lang.IllegalStateException
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
at 
org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:144)
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:322)
at 
test.clientregistration.ClientRegistrationStub.toOM(ClientRegistrationStub.java:498)
at 
test.clientregistration.ClientRegistrationStub.toEnvelope(ClientRegistrationStub.java:512)
at 
test.clientregistration.ClientRegistrationStub.AuthorizeClient(ClientRegistrationStub.java:102)
at shantanu.TestingAxis2.main(TestingAxis2.java:15)
Caused by: java.lang.IllegalStateException
at 
org.apache.xmlbeans.impl.store.Jsr173$XMLStreamReaderForString.next(Jsr173.java:1110)
at 
org.apache.xmlbeans.impl.store.Jsr173$SyncedJsr173.next(Jsr173.java:1138)
at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123)
... 6 more

Shantanu Chawla
--
Graduate Student
Department of Computer Science,
San Diego State University

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



RE: schema vs. xsd:schema

2006-07-11 Thread Jarmo Doc
Should I just assume that this is a bug in Axis and that schema, simpleType, 
complexType and so on should always be qualified by a namespace, typically 
"xsd:"?


Or is there some sneaky implicit arrangement whereby xmlns or something else 
being indicated means that I don't need qualification.


Is there actually anyone out there successfully using this technology 
with multiple client types (Axis, gSOAP, WebSphere, .NET)?  I don't see how 
it's possible for anything more complex than a stock quote lookup 
service.




From: "Jarmo Doc" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: schema vs. xsd:schema
Date: Tue, 11 Jul 2006 09:21:28 -0700

Axis 1.3 java2wsdl generates 'schema' tags but most WSDL that I see 
contains 'xsd:schema' tags.  The WSDL spec. also seems to suggest that 
'xsd:schema' is the only legal option.


What is the difference between these two tags and why does Axis generate 
the former?


Thanks.

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement



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



Repost: WSSecurityException - Check Signature confirmation (Axis 1.4 + wss4j)

2006-07-11 Thread Ravi Krishnamurthy




Hello:
Would appreciate if someone could give me some pointers.

Thanks,
Ravi

Ravi Krishnamurthy wrote:

  
  
  Hello:
I'm trying to use wss4j with Axis1.4 and trying out the samples that
comes with wss4j/interop.
  
On executing the org.apache.ws.axis.oasis.Scenario3  I get the
following exception:
  
WSHandler: Check Signature confirmation: stored SV vector not empty;
nested exception is: 
    org.apache.ws.security.WSSecurityException: WSHandler: Check
Signature confirmation: stored SV vector not empty
    at
org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:351)
  
I monitor the soap messages through the tcpmon and they are below:
  
  request soap message:
--

   "http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  
 "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
soapenv:mustUnderstand="1">
    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="Timestamp-6559246">
  
2006-07-10T20:19:53.011Z
  
2006-07-10T20:24:53.011Z
    
    
   "http://www.w3.org/2001/04/xmlenc#rsa-1_5">
   "http://www.w3.org/2000/09/xmldsig#">
  
 "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">Xeg55vRyK3ZhAEhEf+YT0z986L0=
  
   
   
 
HEhP2Wm923TOcrC6vcfyf3I7BQPFW6pzZb4oRsV6GHL1THJvLbmjeIGTX9p3/6bLL4lQEy/7M3Sk2znE7QBjTtQuip+WAiJuiKONzQRC175FZTkhNgF6iD62/ikuGMihR3yn/1KZtjMiH8k/gh1Q+sRW0pD8JmEKnBWw2hhX/n8=
   
   
  
   
    
    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
wsu:Id="CertId-1776694">MIIDDDCCAfSgAwIBAgIQM6YEf7FVYx/tZyEXgVComTANBgkqhkiG9w0BAQUFADAwMQ4wDAYDVQQKDAVPQVNJUzEeMBwGA1UEAwwVT0FTSVMgSW50ZXJvcCBUZXN0IENBMB4XDTA1MDMxOTAwMDAwMFoXDTE4MDMxOTIzNTk1OVowQjEOMAwGA1UECgwFT0FTSVMxIDAeBgNVBAsMF09BU0lTIEludGVyb3AgVGVzdCBDZXJ0MQ4wDAYDVQQDDAVBbGljZTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAoqi99By1VYo0aHrkKCNT4DkIgPL/SgahbeKdGhrbu3K2XG7arfD9tqIBIKMfrX4Gp90NJa85AV1yiNsEyvq+mUnMpNcKnLXLOjkTmMCqDYbbkehJlXPnaWLzve+mW0pJdPxtf3rbD4PS/cBQIvtpjmrDAU8VsZKT8DN5Kyz+EZsCAwEAAaOBkzCBkDAJBgNVHRMEAjAAMDMGA1UdHwQsMCowKKImhiRodHRwOi8vaW50ZXJvcC5iYnRlc3QubmV0L2NybC9jYS5jcmwwDgYDVR0PAQH/BAQDAgSwMB0GA1UdDgQWBBQK4l0TUHZ1QV3V2QtlLNDm+PoxiDAfBgNVHSMEGDAWgBTAnSj8wes1oR3WqqqgHBpNwkkPDzANBgkqhkiG9w0BAQUFAAOCAQEABTqpOpvW+6yrLXyUlP2xJbEkohXHI5OWwKWleOb9hlkhWntUalfcFOJAgUyH30TTpHldzx1+vK2LPzhoUFKYHE1IyQvokBN2JjFO64BQukCKnZhldLRPxGhfkTdxQgdf5rCK/wh3xVsZCNTfuMNmlAM6lOAg8QduDah3WFZpEA0s2nwQaCNQTNMjJC8tav1CBr6+E5FAmwPXP7pJxn9Fw9OXRyqbRA4v2y7YpbGkG2GI9UvOHw6SGvf4FRSthMMO35

YbpikGsLix3vAsXWWi4rwfVOYzQK0OFPNi9RMCUdSH06m9uLWckiCxjos0FQODZE9l4ATGy9s9hNVwryOJTw==
    "http://www.w3.org/2000/09/xmldsig#"
Id="Signature-2950265">
   
  "http://www.w3.org/2001/10/xml-exc-c14n#">
  "http://www.w3.org/2000/09/xmldsig#rsa-sha1">
  
 
    "http://www.w3.org/2001/10/xml-exc-c14n#">
 
 "http://www.w3.org/2000/09/xmldsig#sha1">

zzx3ig1a7LmzkrkBpLOTIJbLd3s=
  
   
  
IuRirKy+x18gU00p0uhMEDzEAFvpoHMGKcq45ROmpzQ6ZpD/VEghpYjru6Kff0y3tyWzSvW6nA1mH1pudDP1yLxP5geYvXNPQlFV5X+7T60QPlM6ho3sBj2D3IDAZZXZQdJV+fqC7JycqdzLfXU15fHw+ReZm2r7hIPoys9eHgg=
   
  "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="STRId-29769356">
 "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3">
  
   
    
 
  
  "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="id-30568553">
 "http://www.w3.org/2001/04/xmlenc#Content">
    "http://www.w3.org/2001/04/xmlenc#aes128-cbc">
    
  
oXcNsV8AMx98dJom1wFX1i6y0Q90oPf7SpLM88MqCsc9dbVFkJNwN5prhs3WXUtjQ40IKuBRxX+MRNg+J79tT3sm+ivzH7+qol3JaudVz5ahPyLO7BPHmjOLNFV0YrtVs+dUbjhtJHk152uU6Lty/3l9RKuPbC6FDy6NGNpFolt27gqIfOfnQgGFEYpEFST7Vjt/QD6VoLkA7JdjNsJmQceWtn6jQ0ZUHW5lsBCR1fFRYRCBTSp2NHAHf+PqpFuNJ+8jr4HZhhy71dfxACQ4n7BuS0MelKtF/Sf+Gk4MIGsh27JdGESfPG3IQRW6FGicq92TILQPh1mEWAl+xC9cT08Wv6bscNmTM9hz3e4A7Z2C25GpZGki4NTt

Re: [Axis2] Exception when sending with ServiceClient

2006-07-11 Thread John Ferron


Martin,
 
I think we are getting a little off topic.  The URL (assume this is the endpoint) that I am posting to is an external WS (one that I did not write).  In talking with other team member, I think they used GLUE to create that WS.  All I am using Axis for is to formulate the SOAP header and post the soap message.  The points that you brought up in your previous email are a little confusing .  I am not deploying a new WS; what I am doing is creating a posting utility that can post multiple message types (JMS, SOAP, HTTP(s), etc  Axis is fulfulling the role of creating the SOAP wrapper.  
 
John>>> [EMAIL PROTECTED] 07/11/06 11:13 AM >>>

Good Morning John-
 
Starting at the source which is the original deployment of your Axis2 servicethe endpoint 'invoices' appears incorrect the more likely scenario is that you would need to deploy to http://WhateverTomcatHostYouCanAccess:8080/axis2/services/NameOfServiceFromPortType
 
Make sure the host is accessible and configured correctly(that is you have deployed your AXIS2 service correctly)Personally I would start from known working base that isMake sure the AXIS2 service is fully operational and one service is working and then 
retrofit your code into the working service harness
HTH,M-
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed.  If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy.  Thank you.
 
 

- Original Message - 
From: John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Tuesday, July 11, 2006 11:10 AM
Subject: Re: [Axis2] Exception when sending with ServiceClient


Good Morning Martin-  Answers are in blue...What is the URL (assume this is the endpoint)? I am pointing to a webapp servlet running under tomcat which accepts SOAP messages.  Example: http://frogger:8080/invoice/services/invoiceWhere is the declaration for requestTransport (parameter to sendReceive?)  The requestElement is an OMElement (the complete xml that I am sending with the SOAP wrapper)  
You left out the last statement so we can see the String representation of the response (which is System.out.println(writer.toString); ) 
I would love to know what the response is, but I'm getting exceptions thrown before I get to that point of getting the response from the server.  
 
XML config files-My understanding is that you need do need Axis configuration axis2.xml wrapped in aar (Axis Jar) to deploy to Working AXIS2 servletcode takes precedence over statically configured xml file
So then by your statement, I do not need the config file since I am not creating a AXIS2 servlet, I'm only using AXS to create the SOAP Envelope and to post a message.  I am not using AXIS to expose a WS.
 
John
 
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed.  If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy.  Thank you.
 
 

- Original Message - 
From: John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Tuesday, July 11, 2006 9:31 AM
Subject: Re: [Axis2] Exception when sending with ServiceClient

Martin,
 
The method that I am calling is correct.  It is not sendAndRecieve() as you were thinking.  The API docs state online as well as in my IDE state the method is sendRecieve().  Also, I have correctly instantiated The ServiceClient object correctly.  I am also setting the options on the object. Sample code is below from the class that I have written.
 
Options options = new Options();  options.setTo(new EndpointReference(url.toString()));  options.setProperty(MessageContextConstants.CHUNKED, Constants.VALUE_FALSE);  options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
 
  ServiceClient sender = new ServiceClient();  sender.setOptions(options);// Blocking invocation  QName q = new QName(requestElement.getNamespace().getName(),requestElement.getLocalName() , requestElement.getNamespace().getPrefix());  sender.engageModule(q);  responseElement = sender.sendReceive(requestElement);  sender.disEngageModule(new QName(requestElement.getNamespace().getName(),requestElement.getLocalName() , requestElement.getNamespace().getPrefix()));  StringWriter writer = new StringWriter();  responseElement.serialize(XMLOutputFactorynewInstance().createXMLStreamWriter(writer));  writer.flush();
 
The one question that I do have is since I am only using Axis to formulate the SOAP wrapper, not performing full-blown webservices, do I need config files in my webapp:  axis2.xml, services.xml, and 

RE: WSDL2Jjava generates wrong formatt for xs:timeDate

2006-07-11 Thread Simon Fell



Not sure I see the problem, the time part is 06 hours 41 
minutes 14 seconds and 197 milliseconds, looks like a perfectly valid 
xsd:dateTime to me.
 
Cheers
Simon


From: Dale Herrig 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, July 11, 2006 10:52 
AMTo: [EMAIL PROTECTED] Apache. Org (E-mail)Subject: 
WSDL2Jjava generates wrong formatt for xs:timeDate

Group,
 
Using the following 
element in a WSDL
 

 
generates the following formatted string
 
2006-07-11T06:41:14.197-07:00
 
Notice 
the time is in millseconds XXX instead of seconds XX. The WC3 dateTime specifies 
this field as seconds XX.
 
Has 
anyboby encounter this problem?
 
Is 
there a way to force the generated string to format to  as seconds XX 
instead of milli-seconds XXX
 
 
Thanks 
for any help on this.
 


 


WSDL2Jjava generates wrong formatt for xs:timeDate

2006-07-11 Thread Dale Herrig



Group,
 
Using the following 
element in a WSDL
 

 
generates the 
following formatted string
 
2006-07-11T06:41:14.197-07:00
 
Notice the 
time is in millseconds XXX instead of seconds XX. The WC3 dateTime specifies 
this field as seconds XX.
 
Has anyboby 
encounter this problem?
 
Is there a way 
to force the generated string to format to  as seconds XX instead of 
milli-seconds XXX
 
 
Thanks for any 
help on this.
 


 


Re: File access from a .war

2006-07-11 Thread M S
Hi,

Well this is my Web Service file:


import java.io.*;

public class MyService2 {

    public String echo(String password) {

        int ctr = 1;        
            FileInputStream fin;
            try {            
            fin =
(FileInputStream)
getClass().getClassLoader().getResourceAsStream("prime.txt");
            BufferedReader br 
      = new BufferedReader(new InputStreamReader(fin));
            ctr = Integer.parseInt(br.readLine());
            fin.close();
            } catch
(Exception e) { System.out.println("prime.txt does not exist. Creating
prime.txt...");}
            
            
            boolean
primeReached = false;       
           
    
            while (!primeReached) {
           
    ctr++;       
    
           
    if (isPrime(ctr) && ctr!=4)
{           
        
                    primeReached = true;
           
        break;   
            
           
    }       
           
    
            }
            PrintWriter fout;
            try {
            fout = new
PrintWriter(new FileWriter("c:\\prime.txt"));    
           
fout.println(String.valueOf(ctr));       
    
            fout.close();
            } catch (Exception e) {e.printStackTrace();}
            
                    
        return Integer.valueOf(ctr).toString(); 
    }
    
    private boolean isPrime(int p) {
        int i;
        for(i=2;i<(p/2);i++) {
            if ( i*(p/i) == p ) return(false);
        }
        return(true);
    }

}

This is my services.xml:

    
        
    
    MyService2


This is my WSDL: 
http://ws.apache.org/axis2">
-
    
-
    http:///xsd"
elementFormDefault="qualified" attributeFormDefault="qualified">
-
    
-
    
-
    




-
    
-
    
-
    






-
    


-
    


-
    
-
    




-
    
http://schemas.xmlsoap.org/soap/http"/>
-
    

-
    


-
    




-
    
http://schemas.xmlsoap.org/soap/http"/>
-
    

-
    


-
    




-
    

-
    

-
    


-
    




-
    
-
    
http://localhost:8080/axis2/services/MyService2"/>

-
    
http://localhost:8080/axis2/services/MyService2"/>

-
    
http://localhost:8080/axis2/rest/MyService2"/>




And this is my client:
public class Client {
    
    public static void main(String[] args) throws Exception {
    
    MyService2Stub stub = new MyService2Stub();
    
    //Create the request
    MyService2Stub.Echo request = new MyService2Stub.Echo();
    request.setParam0("3IsAnOddPrime");
    
    //Invoke the service
    EchoResponse response = stub.echo(request);
    
    System.out.println("Response : " + response.get_return());
    }
    

I get "Response: 1" no matter what I do with the Web Service file for some reason. 
On 7/11/06, Rodrigo Ruiz <[EMAIL PROTECTED]> wrote:
Hi again, :-)Mmmmh, I haven't heard anything about this kind of problems with .aarfiles. I am afraid I don't use Axis2 myself, so my knowledge is limited :-PWhere are you trying to write the file, and how do you get the path?
Have you tried to write in a fixed absolute path? If you can't create afile, for example, at the user's home directory, it could be apermissions problem (either at file level, or at server security systemlevel).
AFAIK, .aar files can also be deployed as directories, but I will haveto redirect you to the Axis documentation site (or to anyone else thatcould answer this), I'm sorry.Michael, there are several good articles at theserverside, and many
implementations at a "google click" distance ;-)I would recommend you to start by looking at the ehcache project(http://ehcache.sourceforge.net/). It is pretty well documented.
Regards,Rodrigo RuizRodrigo Ruiz wrote:> Depending on the servlet container you are using, war archives may be> considered read-only. In this case you will not be able to write a file
> within the application context.>> Some alternatives you have are:>> - Deploy your application as an "exploded war" (the exact name will vary> from container to container). When deploying in this mode, your classes
> can write files at any location within your context.>> - Use an absolute path for your file. The path may be configured through> JNDI, or System properties, or you might put it into a subfolder of the
> user home (this is very common in *nix environments).>>> Other options imply to use a different storage type:>> - Use the User Preferences API to store the value. This API is available
> starting from Java 1.4.>> - Store it into the JNDI tree. This only works if the JNDI> implementation is writeable and persistent. For example, AFAIK, it will> not work in Tomcat>
> - Use a DBMS. It may seem an overkill solution, but there are some very> lightweight databases there. They may be not appropriate for enterprise> solutions, but for a single value they are more than enough. Moreover,
> it is possible that you already use one for another service.>> - Use a distributed cache. Another overkill solution, but you may be> already using it for another serv

Re: Web services testing

2006-07-11 Thread Eran Chinthaka
robert lazarski wrote:
> There has been some benchmarks performed with jmeter and axis2, 

http://www.wso2.net/2006/05/axis2_performance_testing_round_1




signature.asc
Description: OpenPGP digital signature


Re: Web services testing

2006-07-11 Thread Eran Chinthaka
Martin Gainty wrote:
> 
> Dont forget clover for 'all over' coverage

Provided you interpret it with some sense, and not only on numbers :).
Some time clover numbers are misleading.

-- Chinthaka



signature.asc
Description: OpenPGP digital signature


Re: [Axis2] MTOM client example

2006-07-11 Thread Thilina Gunarathne
Andrew,hmmm.. Interesting... Give me some time to look in to this. ~ThilinaOn 7/11/06, Andrew B <
[EMAIL PROTECTED]> wrote:Thilina,Thanks for the reply. Tried that option, and it didn't make any difference. 
The messages are as follows:Request:POST /axis2/services/TTWSServiceService HTTP/1.1User-Agent: Axis2SOAPAction: ""Authorization: Basic V0FMTUFSVDpXQUwxMjNNQVJUHost: 
127.0.0.1:Transfer-Encoding: chunkedContent-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031; type="application/xop+xml"; start="<
0.urn:uuid:[EMAIL PROTECTED]>"; start-info="text/xml"; charset=UTF-833e--MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binarycontent-id:<0.urn:uuid:[EMAIL PROTECTED]
>
http://schemas.xmlsoap.org/soap/envelope/">http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="VW_TrailerData_Request_Schema.xsd">
                                                Y            
            Y            Y           
 --MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031--0Response:HTTP/1.1 200 OKServer: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)/Tomcat-5.5Set-Cookie: JSESSIONID=8757EBE12760AF3DEEC3119F5A53ED3D; Path=/Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814; type="application/xop+xml"; start="<
0.urn:uuid:[EMAIL PROTECTED]>"; start-info="text/xml";charset=UTF-8
Transfer-Encoding: chunkedDate: Tue, 11 Jul 2006 16:19:27 GMT275--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binarycontent-id:<0.urn:uuid:[EMAIL PROTECTED]
>http://schemas.xmlsoap.org/soap/envelope/
">http://www.geassetintelligence.com
">1.urn:uuid:[EMAIL PROTECTED]
" xmlns:xop="http://www.w3.org/2004/08/xop/include" />
2000--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814content-id:<
1.urn:uuid:[EMAIL PROTECTED]>content-type:application/octet-streamcontent-transfer-encoding:binaryxÅ"ì�moÛF¶ÇßßOAì‹Û765ϹZ/ÆÃ"XbL‘*IYQ..Å  kt´IÃ' [more binary .]
--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814--0Thanks,AndrewThilina Gunarathne <
[EMAIL PROTECTED]> wrote: Hi Andrew,Axis2 MTOM should work out of the box without much hassel if you have enabled MTOM on client side as follows.
options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); The way you are trying to receive the byte[] is correct. Can u post ur messsage snaphots. You can capture them using TCPMON.
~Thilina On 7/11/06, Andrew B <
[EMAIL PROTECTED]> wrote: Martin,The stacktrace is:
java.net.UnknownServiceException    at javax.mail.internet.MimePartDataSource.getOutputStream(MimePartDataSource.java:57)    at
 ttaxis2client.TestClient.main(TestClient.java :73)and the code is:        OMElement response = stub                    .getData();                OMText binaryNode = (OMText) response.getFirstOMChild
();                DataHandler dataHandler = (DataHandler) binaryNode                         .getDataHandler();                DataSource ds =  dataHandler.getDataSource();                ByteArrayOutputStream baos = (ByteArrayOutputStream) 
ds.getOutputStream();   
             byte[] compressedXML = baos.toByteArray();Thanks,Andrew Martin Gainty <
[EMAIL PROTECTED]>  wrote:   Andrew- 
Please post Stacktrace ThanksM- *This  email message and any files transmitted with it contain  confidentialinformation intended only  for the person(s) to whom this email  message is
addressed.  If you have received this email message in error,  please notifythe sender immediately by telephone or email and destroy
 the  originalmessage without making a copy.  Thank you.      
- Original Message -

 From:AndrewB
 To: axis-user@ws.apache.org
 Sent: Monday, July 10, 2006 12:53  PM   
 Subject: [Axis2] MTOM client  example   Hi,Can anyone point me to an example  of an Axis2 client   
 that receives a byte array via MTOM? The Axis2 documentation shows how to getan image, not a byte array.Thanks,Andrew   __ Do YouYahoo!?
Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com   
Why keep checking for Mail? The 
all-new Yahoo! Mail Beta  shows you when there are new messages. -- "May the SourcE be with u"
http://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/ 
http://www.bloglines.com/blog/Thilina     
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. 
 Great rates starting at 1¢/min.
-- "May the SourcE be with u"http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/ http://www.bloglines.com/blo

Re: How to map beans in Axis 2

2006-07-11 Thread robert lazarski

There's no beanMapping tag in axis2 AFAIK as its a different
architecture. Here's a POJO example which may be what you're looking
for:

http://www.wso2.net/kb/90

HTH,
Robert
http://www.braziloutsource.com/

On 7/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:



I'm a Axis 1.4 user.

In this Axis version I made java bean mapping by using

   tag in deploy file.



How can I do the same thing in Axis 2.0?

Thank in advance.

Simone














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



Re: Axis2 lazy init

2006-07-11 Thread robert lazarski

I can't think of anything in axis2 that could start the service on
tomcat startup automatically. Would you could do, though, is have a
servlet configured in your web.xml as 'load-on-startup' in the same
war as your service,  and then in your servlet init(), call the method
that inits your timer.

HTH,
Robert
http://www.braziloutsource.com/

On 7/11/06, Valmir Macário <[EMAIL PROTECTED]> wrote:


Hi all,

Axis2 only start service when is made a first call to one operation, but i
need to start service as soon as the tomcat start, because a need initialize
a Timer(). I´ve trying the methot: void init() throws AxisFault, in my
service class but i don´t have success. I apreciate if someone can help-me
to get this behaviour in my service.

Thanks,


Valmir


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



Does Anyone use AXIS2 within J2EE environment?

2006-07-11 Thread Ming Cheung

I am planning to use AXIS2 within
J2EE Security environment. Does AXIS2 currently support J2EE security (with
Security Manager enabled)? If yes, Could anyone please provide me some
detail information of how to make/enable AXIS2 to work within J2EE Security
environment?

One of examples of using J2EE security is using the doPrivileged constructs
within a certain call path for accessing the protected resources. 
http://java.sun.com/j2se/1.3/docs/guide/security/spec/security-spec.doc4.html#20389


Thank you,
Ming Cheung

Re: Web services testing

2006-07-11 Thread Martin Gainty



Dont forget clover for 'all over' 
coverage
M-
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.
 
 

  - Original Message - 
  From: 
  robert lazarski 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, July 11, 2006 12:07 
  PM
  Subject: Re: Web services testing
  There has been some benchmarks performed with jmeter and axis2, 
  and I as well have had good experiences using jmeter. There is, however, a 
  tool called SoapUI - which I have not used - that some people seem to like. 
  HTH,Roberthttp://www.braziloutsource.com/
  On 7/11/06, Harinath 
  Mallepally < 
  [EMAIL PROTECTED]> wrote:
  




  Hi,
   
  I am writing 
  couple of web services using axis2. I want to do performance testing for 
  my web services. What are the tools I can use for this pupose? 
  
  Can I use Jmeter or Rational performance tester tool 
  for this purpose? If you have any idea please do let me 
  know!
   
  Thanks
  Harinath
   

  
  
 CAUTION - 
  Disclaimer *This e-mail contains PRIVILEGED AND 
  CONFIDENTIAL INFORMATION intended solely for the use of the 
  addressee(s). If you are not the intended recipient, please notify the 
  sender by e-mail and delete the original message. Further, you are not 
  to copy, disclose, or distribute this e-mail or its contents to any 
  other person and any such actions are unlawful. This e-mail may 
  contain viruses. Infosys has taken every reasonable precaution to 
  minimize this risk, but is not liable for any damage you may sustain 
  as a result of any virus in this e-mail. You should carry out your own 
  virus checks before opening the e-mail or attachment. Infosys reserves 
  the right to monitor and review the content of all messages sent to or 
  from this e-mail address. Messages sent to or from this e-mail address 
  may be stored on the Infosys e-mail system.***INFOSYS End 
  of Disclaimer 
  INFOSYS***


Re: [Axis2] MTOM client example

2006-07-11 Thread Andrew B
Thilina,Thanks for the reply. Tried that option, and it didn't make any difference. The messages are as follows:Request:POST /axis2/services/TTWSServiceService HTTP/1.1User-Agent: Axis2SOAPAction: ""Authorization: Basic V0FMTUFSVDpXQUwxMjNNQVJUHost: 127.0.0.1:Transfer-Encoding: chunkedContent-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031; type="application/xop+xml"; start="<0.urn:uuid:[EMAIL PROTECTED]>"; start-info="text/xml"; charset=UTF-833e--MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031content-type:application/xop+xml; charset=UTF-8; type="text/xml";content-transfer-encoding:binarycontent-id:<0.urn:uuid:[EMAIL PROTECTED]>                                                Y                        Y            Y           
 --MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031--0Response:HTTP/1.1 200 OKServer: Apache-Coyote/1.1X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)/Tomcat-5.5Set-Cookie: JSESSIONID=8757EBE12760AF3DEEC3119F5A53ED3D; Path=/Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814; type="application/xop+xml"; start="<0.urn:uuid:[EMAIL PROTECTED]>"; start-info="text/xml";charset=UTF-8Transfer-Encoding: chunkedDate: Tue, 11 Jul 2006 16:19:27 GMT275--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814content-type:application/xop+xml; charset=UTF-8; type="text/xml";content-transfer-encoding:binarycontent-id:<0.urn:uuid:[EMAIL PROTECTED]>2000--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814content-id:<1.urn:uuid:[EMAIL PROTECTED]>content-type:application/octet-streamcontent-transfer-encoding:binaryxœì�moÛF¶ÇßßOAì‹Û765ϹZ/ÆÔXbL‘*IYQ..Å  kt´IÑ [more binary .]--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814--0Thanks,AndrewThilina Gunarathne <[EMAIL PROTECTED]> wrote: Hi Andrew,Axis2 MTOM should work out of the box without much hassel if you have enabled MTOM on client side as follows.options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); The way you are trying to receive the byte[] is correct. Can u post ur messsage snaphots. You can capture them using TCPMON.~Thilina On 7/11/06, Andrew B <[EMAIL PROTECTED]> wrote: Martin,The stacktrace is:java.net.UnknownServiceException    at javax.mail.internet.MimePartDataSource.getOutputStream(MimePartDataSource.java:57)    at
 ttaxis2client.TestClient.main(TestClient.java :73)and the code is:        OMElement response = stub                    .getData();                OMText binaryNode = (OMText) response.getFirstOMChild();                DataHandler dataHandler = (DataHandler) binaryNode                         .getDataHandler();                DataSource ds =  dataHandler.getDataSource();                ByteArrayOutputStream baos = (ByteArrayOutputStream) ds.getOutputStream();   
             byte[] compressedXML = baos.toByteArray();Thanks,Andrew Martin Gainty <[EMAIL PROTECTED]>  wrote:   Andrew- Please post Stacktrace ThanksM- *This  email message and any files transmitted with it contain  confidentialinformation intended only  for the person(s) to whom this email  message isaddressed.  If you have received this email message in error,  please notifythe sender immediately by telephone or email and destroy
 the  originalmessage without making a copy.  Thank you.      - Original Message - From:AndrewB To: axis-user@ws.apache.org Sent: Monday, July 10, 2006 12:53  PMSubject: [Axis2] MTOM client  example   Hi,Can anyone point me to an example  of an Axis2 client   
 that receives a byte array via MTOM? The Axis2 documentation shows how to getan image, not a byte array.Thanks,Andrew   __ Do YouYahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com   Why keep checking for Mail? The all-new Yahoo! Mail Beta  shows you when there are new messages. -- "May the SourcE be with u"http://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/ http://www.bloglines.com/blog/Thilina     
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

schema vs. xsd:schema

2006-07-11 Thread Jarmo Doc
Axis 1.3 java2wsdl generates 'schema' tags but most WSDL that I see contains 
'xsd:schema' tags.  The WSDL spec. also seems to suggest that 'xsd:schema' 
is the only legal option.


What is the difference between these two tags and why does Axis generate the 
former?


Thanks.

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



Re: [Axis2] Exception when sending with ServiceClient

2006-07-11 Thread Martin Gainty



Good Morning John-
 
Starting at the source which is the original deployment of your Axis2 
servicethe endpoint 'invoices' appears incorrect the more likely 
scenario is that you would need to deploy to http://WhateverTomcatHostYouCanAccess:8080/axis2/services/NameOfServiceFromPortType
 
Make sure the host is accessible and configured correctly(that is you have 
deployed your AXIS2 service correctly)Personally I would start from 
known working base that isMake sure the AXIS2 service is fully operational 
and one service is working and then 
retrofit your code into the working service harness
HTH,M-
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.
 
 

  - Original Message - 
  From: 
  John Ferron 
  To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
  Sent: Tuesday, July 11, 2006 11:10 
  AM
  Subject: Re: [Axis2] Exception when 
  sending with ServiceClient
  
  
  Good Morning Martin-  Answers are in blue...What is the URL 
  (assume this is the endpoint)? I am pointing to a 
  webapp servlet running under tomcat which accepts SOAP messages.  
  Example: http://frogger:8080/invoice/services/invoiceWhere is the declaration for requestTransport (parameter to 
  sendReceive?)  The requestElement is 
  an OMElement (the complete xml that I am sending with the SOAP wrapper)  
  
  You left out the last statement so we can see the String 
  representation of the response (which is 
  System.out.println(writer.toString); ) 
  I would love to know what the response is, 
  but I'm getting exceptions thrown before I get to that point of getting the 
  response from the server.  
   
  XML config files-My understanding is that you need do need Axis 
  configuration axis2.xml wrapped in aar (Axis Jar) to deploy to Working AXIS2 
  servletcode takes precedence over statically configured xml file
  So then by your statement, I do not need the 
  config file since I am not creating a AXIS2 servlet, I'm only using AXS 
  to create the SOAP Envelope and to post a message.  I am not using AXIS 
  to expose a WS.
   
  John
   
  *This 
  email message and any files transmitted with it contain 
  confidentialinformation intended only for the person(s) to whom this email 
  message isaddressed.  If you have received this email message in 
  error, please notifythe sender immediately by telephone or email and 
  destroy the originalmessage without making a copy.  Thank you.
   
   
  
- Original Message - 
From: 
John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Tuesday, July 11, 2006 9:31 
AM
Subject: Re: [Axis2] Exception when 
sending with ServiceClient

Martin,
 
The method that I am calling is correct.  It is not 
sendAndRecieve() as you were thinking.  The API docs state online as 
well as in my IDE state the method is sendRecieve().  Also, I have 
correctly instantiated The ServiceClient object correctly.  I am also 
setting the options on the object. Sample code is below from the class that 
I have written.
 
Options options = new 
Options();  options.setTo(new 
EndpointReference(url.toString()));  options.setProperty(MessageContextConstants.CHUNKED, 
Constants.VALUE_FALSE);  options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
 
  ServiceClient sender = new 
ServiceClient();  sender.setOptions(options);// 
Blocking invocation  QName q = new 
QName(requestElement.getNamespace().getName(),requestElement.getLocalName() 
, 
requestElement.getNamespace().getPrefix());  sender.engageModule(q);  responseElement 
= 
sender.sendReceive(requestElement);  sender.disEngageModule(new 
QName(requestElement.getNamespace().getName(),requestElement.getLocalName() 
, requestElement.getNamespace().getPrefix()));  StringWriter 
writer = new 
StringWriter();  responseElement.serialize(XMLOutputFactorynewInstance().createXMLStreamWriter(writer));  writer.flush();
 
The one question that I do have is since I am only using Axis to 
formulate the SOAP wrapper, not performing full-blown webservices, do I need 
config files in my webapp:  axis2.xml, services.xml, and 
module.xml??
 
Thanks for all of your continued help on this matter with me!
 
John
>>> [EMAIL PROTECTED] 07/10/06 4:40 PM 
>>>

Going up the call stack
check 2 things-check spelling on serviceClient.sendReceive() I 
think you may have mis-spelled the method name-as you are experiencing 
errors in both se

Re: Web services testing

2006-07-11 Thread robert lazarski
There has been some benchmarks performed with jmeter and axis2, and I
as well have had good experiences using jmeter. There is, however, a
tool called SoapUI - which I have not used - that some people seem to
like. 

HTH,
Robert
http://www.braziloutsource.com/On 7/11/06, Harinath Mallepally <
[EMAIL PROTECTED]> wrote:















Hi,

 

I am writing couple of web services using
axis2. I want to do performance testing for my web services. What are the tools
I can use for this pupose? 

Can I use Jmeter or Rational performance
tester tool for this purpose? If you have any idea please do let me know!

 

Thanks

Harinath

 









 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
solely for the use of the addressee(s). If you are not the intended
recipient, please notify the sender by e-mail and delete the original
message. Further, you are not to copy, disclose, or distribute this
e-mail or its contents to any other person and any such actions are
unlawful. This e-mail may contain viruses. Infosys has taken every
reasonable precaution to minimize this risk, but is not liable for any
damage you may sustain as a result of any virus in this e-mail. You
should carry out your own virus checks before opening the e-mail or
attachment. Infosys reserves the right to monitor and review the
content of all messages sent to or from this e-mail address. Messages
sent to or from this e-mail address may be stored on the Infosys e-mail
system.
***INFOSYS End of Disclaimer INFOSYS***




Web services testing

2006-07-11 Thread Harinath Mallepally










Hi,

 

I am writing couple of web services using
axis2. I want to do performance testing for my web services. What are the tools
I can use for this pupose? 

Can I use Jmeter or Rational performance
tester tool for this purpose? If you have any idea please do let me know!

 

Thanks

Harinath

 









 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


Digital signatures within SOAP messages calling a method with params

2006-07-11 Thread raul eduardo plata rico
Title: Digital signatures within SOAP messages calling a method with params






Hi!!! maybe some one of you can help me,

I have a client using axis 1.1 and the class SignedSOAPEnvelope is using DeserializationContextImpl and SerializationContextImpl. This client is working fine, and the generated message is like:

http://schemas.xmlsoap.org/soap/security/2000-12 " xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    
    http://www.w3.org/2000/09/xmldsig#">
    
    http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
    http://www.w3.org/2000/09/xmldsig#dsa-sha1 " />
    
    http://www.w3.org/2000/09/xmldsig#sha1 " />
    2jmj7l5rSw0yVb/vlWAYkK/YBwk=
    
    
    g3BAZALcxi0rUOcoIpNMCyohtH5X+hn+kFJ3h6zwce3OOT9nCh0oPw==
    
    
    ...
    
    
    
    ...
    ...
    ...
    ...
    
    
    
    
    


    http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1=" https://bel.bci.cl/WsBEL/services/Carga">
    ...
    



With this message i receive a correct response from the server.

But now, i am migrating the client to axis 1.4 and now i have to use DeserializationContext and SerializationContext on my SignedSOAPEnvelope, but the message is different:

http://schemas.xmlsoap.org/soap/security/2000-12 "    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema "  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    
    
    http://www.w3.org/2000/09/xmldsig#">
    
    http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
    http://www.w3.org/2000/09/xmldsig#dsa-sha1 " />
    
    http://www.w3.org/2000/09/xmldsig#sha1 " />
    2jmj7l5rSw0yVb/vlWAYkK/YBwk=
    
    
    g3BAZALcxi0rUOcoIpNMCyohtH5X+hn+kFJ3h6zwce3OOT9nCh0oPw==
    
    
    ...
    
    
    
    ...
    ...
    ...
    ...
    
    
    
    
    
    
    
    http://schemas.xmlsoap.org/soap/encoding/ " xmlns:ns1="https://bel.bci.cl/WsBEL/services/Carga">
    ...
    
    


I am using the same call implementation:

    call = (Call) service.createCall();
    call.setTargetEndpointAddress(new URL(endpoint.getEndpoint ()));
    call.setOperationName(new QName(endpoint.getEndpoint(), endpoint.getPort()));
    call.addParameter("string", Constants.XSD_STRING, ParameterMode.IN);  
    call.setReturnType(Constants.XSD_STRING );
    call.invoke(endpoint.getInParameters());
    MessageContext mc = call.getMessageContext();
    Message request = mc.getRequestMessage();
    SOAPEnvelope env = request.getSOAPEnvelope();
    env = new SignedSOAPEnvelope(env, "http://xml-security");
    Object ret = call.invoke(env);

But using axis 1.4 i get from the server this:

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.NullPointerException
 faultActor:
 faultNode:
 faultDetail:
    {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
    at org.apache.axis.encoding.DeserializationContext.endElement (DeserializationContext.java:1087)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch (Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse (Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java :435)
    a

RE: WSS4J

2006-07-11 Thread Rishikesh . Mallesh
>you should be able to get the server security handler to pass it as a
property (once its been verified) in the MessageContext?

Question is how?

I think if this is possible, then it would potentially make the situation
worse as the MessageContext is available right from the handlers to the
application code. 

So why do I need this - cause authentication is being done by an external
component. So I essentially pass the user name and password to the external
component and it comes back with authorized/not authorized.

My take is that rather than make it available as a property in the
MessageContext it should be made available to the callback. The callback
should be in a position to either string compare or go to an external source
to authenticate it.

Now all this is of course is pointless if are talking of a one way hash...
and as pointed out in the mailing list, looks like it is.

Any thoughts on whether the WSS4J approach is restrictive or that what I am
expecting out of it is wrong. 

I for one can see why it is been done like the way it is in WSS4J, but there
should be some flexibility provided.

Your thoughts most appreciated.

-Original Message-
From: Michael McIntosh [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2006 15:23
To: axis-user@ws.apache.org
Cc: axis-user@ws.apache.org
Subject: Re: WSS4J

[EMAIL PROTECTED] wrote on 07/11/2006 08:54:19 AM:

> Hello,
> 
> I've a question on WSS4J. I am using WSS4J with Axis 1.3 on the server 
side. 
> 
> I wanted to know if it is possible to convert the contents of wsse:
> Password from its digest form to a text form? 

No, that is the point of Digest as opposed to Plain Text passwords. 
Although since the server security handler needs to have access to the 
Plain Text password in order to compute the Digest value to compare and 
verify the password, you should be able to get the server security handler 
to pass it as a property (once its been verified) in the MessageContext, 
no? 
BTW, I am just saying its possible - you really should try to find an 
alternative way of doing this. I assume you are trying to authenticate to 
some back end using the passed in credential?

> I need access to the password within the application. Is there an 
> API to convert from digest to text?
> 
> Cheers
> Rishi
> 
> 
> 
> 
> 


> This message is intended for the addressee or its representative only. 
> Any form of unauthorized use, publication, reproduction, copying or 
> disclosure of the content of this e-mail is not permitted. If you are 
> not the intended recipient of this e-mail message and its contents, 
> please notify the sender immediately and delete this message and 
> all its attachments subsequently.

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

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



Re: [Axis2] Plz help adding logging module server-side

2006-07-11 Thread heikki
Hi Kinichiro,I found the problem : the source of the logging handler was actually different ! Mine was from a nightly build of some 3 weeks ago. The crucial difference seems to be that in my version, the getName() method from AbstractHandler was overridden in the log handler, but without providing compensating functionality : that's why I got the "Handler null added to Phase loggingPhase" message. If you don't have this problem, the message contains the name of the handler instead of null.
I don't know where you got your version of the logging handler : do you have the 1.0 release or do you have a more recent nightly build than I used? For exactness here are the differences in the handlers :
=your correct logging handler :public class LoggingHandler extends AbstractHandler {    public LoggingHandler() {    log = LogFactory.getLog
(getClass());    }    public void invoke(MessageContext msgContext) throws AxisFault {    log.info(msgContext.getEnvelope().toString());    }    static final long serialVersionUID = 0L;
    private Log log;}my non-functioning logging handler :public class LogHandler extends AbstractHandler implements Handler {    private static final Log log = 
LogFactory.getLog(LogHandler.class);    private QName name;    public QName getName() {    return name;    }    public void invoke(MessageContext msgContext) throws AxisFault {    log.info
(msgContext.getEnvelope().toString());    }    public void revoke(MessageContext msgContext) {    log.info(msgContext.getEnvelope().toString());    }    public void setName(QName name) {
    this.name = name;    }On 7/11/06, Kinichiro Inoguchi <[EMAIL PROTECTED]
> wrote:Hi heikki,It's nice !Check extra white space in your module.xml
.I guess maybe that's your problem.--- heikki <[EMAIL PROTECTED]> wrote:> Hi Kinichiro ,>> thank you so much for your assistence .. your configuration works for
> me too> ! Although it's not yet obvious to me what the difference is, other> than> that you have  in a different place in> the> sequence in the phaseOrders elements in 
axis2.xml.>> I'll find out what mistake I was making and keep you informed.>> thanks !> Heikki On 7/11/06, Kinichiro Inoguchi <
[EMAIL PROTECTED]> wrote:> >> > Hi, heikki,> >> > I can't tell what is your problem though,> > I sent my configuration to you by another mail.> >> > 1. 
logging.mar> > 2. axis2.xml> > 3. MyService2.aar - you can call this by> > http://localhost:8080/axis2/rest/MyService2/echo?echostring=aaabbb
> >> > In log4j.properties file, I modified 2 lines like this,> > log4j.rootCategory=INFO, CONSOLE, LOGFILE> > log4j.appender.LOGFILE.File=/Tomcat50/webapps/axis2/axis2.log> >
> > I could see log messages in axis2.log.> >> > Regards,> > kinichiro> >> > --- heikki <[EMAIL PROTECTED]> wrote:
> >> > > Hello,> > >> > > I'm still trying to deploy the sample logging module,> server-side.> > > Unfortunately no-one has answered my previous post.. I'll try to
> > > state my> > > questions very briefly and clear, hopefully someone has some> answers> > > :> > >> > > - where can I find a description of exactly what is the meaning
> of,> > > and> > > relation between, each module-, phase- and handler-related> element in> > > axis2.xml, modules.xml and services.xml ? What does it mean, for> > > example, if
> > > the class attribute in the module or in the phase elements is> absent> > > /> > > present ?> > >> > > - if you get an error message such as
> > > "[11 Jul 2006 13:36:43] ERROR> > > org.apache.axis2.deployment.DeploymentEngine.doDeploy():636 -> Invalid> > > service  MyService.aar due to Invalid phases please recheck
> > > axis2.xmlloggingPhase for the handler InFlowLogHandler", how can> you> > > best go about> > > analyzing what's causing it ?> > >> > > - when I just (1) add the 
logging.mar from the distribution to> the> > > modules> > > directory; (2) add the line  to my> > > services.xml; and> > > (3) put  in to each of the four
> > > phaseOrders in> > > axis2.xml, I get no errors during deployment. However the logging> > > does not> > > work (with my log4j.properties having DEBUG level for all), and I
> see> > > the> > > following lines in the server console, which seems not right,> this> > > "null" :> > >> > > [11 Jul 2006 13:39:45] DEBUG
> > > org.apache.axis2.engine.Phase.addHandler():113> > > - Handler null added to Phase loggingPhase> > > [11 Jul 2006 13:39:45] DEBUG> > > org.apache.axis2.engine.Phase.addHandler
():113> > > - Handler null added to Phase loggingPhase> > > [11 Jul 2006 13:39:45] DEBUG> > > org.apache.axis2.engine.Phase.addHandler():113> > > - Handler null added to Phase loggingPhase
> > > [11 Jul 2006 13:39:45] DEBUG> > > org.apache.axis2.engine.Phase.addHandler():113> > > - Handler null added to Phase loggingPhase> > > [11 Jul 2006 13:39:45] DEBUG
> > > org.apache.axis2.engine.Phase.addHandler():113> > > - Handler AddressingFinalIn

Re: [Axis2] Exception when sending with ServiceClient

2006-07-11 Thread John Ferron



Good Morning Martin-  Answers are in blue...What is the URL (assume this is the endpoint)? I am pointing to a webapp servlet running under tomcat which accepts SOAP messages.  Example: http://frogger:8080/invoice/services/invoiceWhere is the declaration for requestTransport (parameter to sendReceive?)  The requestElement is an OMElement (the complete xml that I am sending with the SOAP wrapper)  
You left out the last statement so we can see the String representation of the response (which is System.out.println(writer.toString); ) 
I would love to know what the response is, but I'm getting exceptions thrown before I get to that point of getting the response from the server.  
 
XML config files-My understanding is that you need do need Axis configuration axis2.xml wrapped in aar (Axis Jar) to deploy to Working AXIS2 servletcode takes precedence over statically configured xml file
So then by your statement, I do not need the config file since I am not creating a AXIS2 servlet, I'm only using AXS to create the SOAP Envelope and to post a message.  I am not using AXIS to expose a WS.
 
John
 
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed.  If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy.  Thank you.
 
 

- Original Message - 
From: John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Tuesday, July 11, 2006 9:31 AM
Subject: Re: [Axis2] Exception when sending with ServiceClient

Martin,
 
The method that I am calling is correct.  It is not sendAndRecieve() as you were thinking.  The API docs state online as well as in my IDE state the method is sendRecieve().  Also, I have correctly instantiated The ServiceClient object correctly.  I am also setting the options on the object. Sample code is below from the class that I have written.
 
Options options = new Options();  options.setTo(new EndpointReference(url.toString()));  options.setProperty(MessageContextConstants.CHUNKED, Constants.VALUE_FALSE);  options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
 
  ServiceClient sender = new ServiceClient();  sender.setOptions(options);// Blocking invocation  QName q = new QName(requestElement.getNamespace().getName(),requestElement.getLocalName() , requestElement.getNamespace().getPrefix());  sender.engageModule(q);  responseElement = sender.sendReceive(requestElement);  sender.disEngageModule(new QName(requestElement.getNamespace().getName(),requestElement.getLocalName() , requestElement.getNamespace().getPrefix()));  StringWriter writer = new StringWriter();  responseElement.serialize(XMLOutputFactorynewInstance().createXMLStreamWriter(writer));  writer.flush();
 
The one question that I do have is since I am only using Axis to formulate the SOAP wrapper, not performing full-blown webservices, do I need config files in my webapp:  axis2.xml, services.xml, and module.xml??
 
Thanks for all of your continued help on this matter with me!
 
John
>>> [EMAIL PROTECTED] 07/10/06 4:40 PM >>>

Going up the call stack
check 2 things-check spelling on serviceClient.sendReceive() I think you may have mis-spelled the method name-as you are experiencing errors in both sendReceive and engageodule() methods make sure you have properly instantiated serviceClient beforehand
check the ServiceClient sender = new ServiceClient() for  null
 
Martin--
 
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed.  If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy.  Thank you.
 
 

- Original Message - 
From: John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Monday, July 10, 2006 4:28 PM
Subject: Re: [Axis2] Exception when sending with ServiceClient

Martin,
 
When I have decompiled the code (via Eclipse plugin), it is in the attached message.  But I cannot say for sure since Eclipse is not giving me line numbers.  When I paste the code into a text editor and goto that line, its a different method all together.  I've copied the method and attached in the email.  Any suggestions??
 
John>>> [EMAIL PROTECTED] 07/10/06 1:57 PM >>>

John-
 
Can we see AxisService..line 395 specifically
ThanksM-
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed.  If you have received this email message in error, please notifythe sender immediately by telephone or

RE: [axis 2] custom serializers

2006-07-11 Thread Brian Dillon (ext. 944)
Hi,

Is it possible to use custom serializers/de-serializers with axis2. We
currently have our own serializers (using castor) working with axis1.3 and
would like to be able to re-use them with axis2 if possible.

Thanks,

Brian

__
The information contained in this e-mail is confidential, may be privileged and 
is intended 
only for the user of the recipient named above. If you are not the intended 
recipient or a 
representative of the intended recipient, you have received this e-mail in 
error and must 
not copy, use or disclose the contents of this e-mail to anybody else.  

If you have received this e-mail in error, please notify the sender immediately 
by return 
e-mail and permanently delete the copy you received.  This e-mail has been 
swept for 
computer viruses. However, you should carry out your own virus checks. 
Registered in Ireland, No. 205721.  http://www.FINEOS.com
__


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



Re: [Axis2] Plz help adding logging module server-side

2006-07-11 Thread heikki
Hi Kinichiro ,thank you so much for your assistence .. your configuration works for me too ! Although it's not yet obvious to me what the difference is, other than that you have  in a different place in the sequence in the phaseOrders elements in 
axis2.xml.I'll find out what mistake I was making and keep you informed.thanks !HeikkiOn 7/11/06, Kinichiro Inoguchi <
[EMAIL PROTECTED]> wrote:Hi, heikki,I can't tell what is your problem though,
I sent my configuration to you by another mail.1. logging.mar2. axis2.xml3. MyService2.aar - you can call this byhttp://localhost:8080/axis2/rest/MyService2/echo?echostring=aaabbb
In log4j.properties file, I modified 2 lines like this,log4j.rootCategory=INFO, CONSOLE, LOGFILElog4j.appender.LOGFILE.File=/Tomcat50/webapps/axis2/axis2.logI could see log messages in axis2.log
.Regards,kinichiro--- heikki <[EMAIL PROTECTED]> wrote:> Hello,>> I'm still trying to deploy the sample logging module, server-side.
> Unfortunately no-one has answered my previous post.. I'll try to> state my> questions very briefly and clear, hopefully someone has some answers> :>> - where can I find a description of exactly what is the meaning of,
> and> relation between, each module-, phase- and handler-related element in> axis2.xml, modules.xml and services.xml ? What does it mean, for> example, if> the class attribute in the module or in the phase elements is absent
> /> present ?>> - if you get an error message such as> "[11 Jul 2006 13:36:43] ERROR> org.apache.axis2.deployment.DeploymentEngine.doDeploy():636 - Invalid> service  
MyService.aar due to Invalid phases please recheck> axis2.xmlloggingPhase for the handler InFlowLogHandler", how can you> best go about> analyzing what's causing it ?>> - when I just (1) add the 
logging.mar from the distribution to the> modules> directory; (2) add the line  to my> services.xml; and> (3) put  in to each of the four
> phaseOrders in> axis2.xml, I get no errors during deployment. However the logging> does not> work (with my log4j.properties having DEBUG level for all), and I see> the> following lines in the server console, which seems not right, this
> "null" :>> [11 Jul 2006 13:39:45] DEBUG> org.apache.axis2.engine.Phase.addHandler():113> - Handler null added to Phase loggingPhase> [11 Jul 2006 13:39:45] DEBUG> 
org.apache.axis2.engine.Phase.addHandler():113> - Handler null added to Phase loggingPhase> [11 Jul 2006 13:39:45] DEBUG> org.apache.axis2.engine.Phase.addHandler():113> - Handler null added to Phase loggingPhase
> [11 Jul 2006 13:39:45] DEBUG> org.apache.axis2.engine.Phase.addHandler():113> - Handler null added to Phase loggingPhase> [11 Jul 2006 13:39:45] DEBUG> org.apache.axis2.engine.Phase.addHandler
():113> - Handler AddressingFinalInHandler added to Phase PreDispatch> [11 Jul 2006 13:39:45] DEBUG> org.apache.axis2.engine.Phase.addHandler():113> - Handler AddressingSubmissionInHandler added to Phase PreDispatch
> [11 Jul 2006 13:39:45] DEBUG> org.apache.axis2.engine.Phase.addHandler():113> - Handler AddressingOutHandler added to Phase MessageOut> [11 Jul 2006 13:39:45] DEBUG> org.apache.axis2.engine.Phase.addHandler
():113> - Handler AddressingFinalInHandler added to Phase PreDispatch> [11 Jul 2006 13:39:45] DEBUG> org.apache.axis2.engine.Phase.addHandler():113> - Handler AddressingSubmissionInHandler added to Phase PreDispatch
> [11 Jul 2006 13:39:45] DEBUG> org.apache.axis2.engine.Phase.addHandler():113> - Handler AddressingOutHandler added to Phase MessageOut>>> Surely it should be easy to add server-side handlers to an Axis2-run
> web> service ? What is it that I'm missing ?> I greatly appreciate your feedback.>__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Re: [Axis2] Plz help adding logging module server-side

2006-07-11 Thread Kinichiro Inoguchi
Hi, heikki,

I can't tell what is your problem though,
I sent my configuration to you by another mail.

1. logging.mar
2. axis2.xml
3. MyService2.aar - you can call this by
http://localhost:8080/axis2/rest/MyService2/echo?echostring=aaabbb

In log4j.properties file, I modified 2 lines like this,
log4j.rootCategory=INFO, CONSOLE, LOGFILE
log4j.appender.LOGFILE.File=/Tomcat50/webapps/axis2/axis2.log

I could see log messages in axis2.log.

Regards,
kinichiro

--- heikki <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I'm still trying to deploy the sample logging module, server-side.
> Unfortunately no-one has answered my previous post.. I'll try to
> state my
> questions very briefly and clear, hopefully someone has some answers
> :
> 
> - where can I find a description of exactly what is the meaning of,
> and
> relation between, each module-, phase- and handler-related element in
> axis2.xml, modules.xml and services.xml ? What does it mean, for
> example, if
> the class attribute in the module or in the phase elements is absent
> /
> present ?
> 
> - if you get an error message such as
> "[11 Jul 2006 13:36:43] ERROR
> org.apache.axis2.deployment.DeploymentEngine.doDeploy():636 - Invalid
> service  MyService.aar due to Invalid phases please recheck
> axis2.xmlloggingPhase for the handler InFlowLogHandler", how can you
> best go about
> analyzing what's causing it ?
> 
> - when I just (1) add the logging.mar from the distribution to the
> modules
> directory; (2) add the line  to my
> services.xml; and
> (3) put  in to each of the four
> phaseOrders in
> axis2.xml, I get no errors during deployment. However the logging
> does not
> work (with my log4j.properties having DEBUG level for all), and I see
> the
> following lines in the server console, which seems not right, this
> "null" :
> 
> [11 Jul 2006 13:39:45] DEBUG
> org.apache.axis2.engine.Phase.addHandler():113
> - Handler null added to Phase loggingPhase
> [11 Jul 2006 13:39:45] DEBUG
> org.apache.axis2.engine.Phase.addHandler():113
> - Handler null added to Phase loggingPhase
> [11 Jul 2006 13:39:45] DEBUG
> org.apache.axis2.engine.Phase.addHandler():113
> - Handler null added to Phase loggingPhase
> [11 Jul 2006 13:39:45] DEBUG
> org.apache.axis2.engine.Phase.addHandler():113
> - Handler null added to Phase loggingPhase
> [11 Jul 2006 13:39:45] DEBUG
> org.apache.axis2.engine.Phase.addHandler():113
> - Handler AddressingFinalInHandler added to Phase PreDispatch
> [11 Jul 2006 13:39:45] DEBUG
> org.apache.axis2.engine.Phase.addHandler():113
> - Handler AddressingSubmissionInHandler added to Phase PreDispatch
> [11 Jul 2006 13:39:45] DEBUG
> org.apache.axis2.engine.Phase.addHandler():113
> - Handler AddressingOutHandler added to Phase MessageOut
> [11 Jul 2006 13:39:45] DEBUG
> org.apache.axis2.engine.Phase.addHandler():113
> - Handler AddressingFinalInHandler added to Phase PreDispatch
> [11 Jul 2006 13:39:45] DEBUG
> org.apache.axis2.engine.Phase.addHandler():113
> - Handler AddressingSubmissionInHandler added to Phase PreDispatch
> [11 Jul 2006 13:39:45] DEBUG
> org.apache.axis2.engine.Phase.addHandler():113
> - Handler AddressingOutHandler added to Phase MessageOut
> 
> 
> Surely it should be easy to add server-side handlers to an Axis2-run
> web
> service ? What is it that I'm missing ?
> I greatly appreciate your feedback.
> 


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

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



Re: WSS4J

2006-07-11 Thread Michael McIntosh
[EMAIL PROTECTED] wrote on 07/11/2006 08:54:19 AM:

> Hello,
> 
> I've a question on WSS4J. I am using WSS4J with Axis 1.3 on the server 
side. 
> 
> I wanted to know if it is possible to convert the contents of wsse:
> Password from its digest form to a text form? 

No, that is the point of Digest as opposed to Plain Text passwords. 
Although since the server security handler needs to have access to the 
Plain Text password in order to compute the Digest value to compare and 
verify the password, you should be able to get the server security handler 
to pass it as a property (once its been verified) in the MessageContext, 
no? 
BTW, I am just saying its possible - you really should try to find an 
alternative way of doing this. I assume you are trying to authenticate to 
some back end using the passed in credential?

> I need access to the password within the application. Is there an 
> API to convert from digest to text?
> 
> Cheers
> Rishi
> 
> 
> 
> 
> 

> This message is intended for the addressee or its representative only. 
> Any form of unauthorized use, publication, reproduction, copying or 
> disclosure of the content of this e-mail is not permitted. If you are 
> not the intended recipient of this e-mail message and its contents, 
> please notify the sender immediately and delete this message and 
> all its attachments subsequently.

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



Re: [Axis2] Exception when sending with ServiceClient

2006-07-11 Thread Martin Gainty



Good Morning John-What is the URL (assume this is the 
endpoint)?Where is the declaration for requestTransport (parameter to 
sendReceive?)
You left out the last statement so we can see the String 
representation of the response (which is 
System.out.println(writer.toString); )
 
XML config files-My understanding is that you need do need Axis 
configuration axis2.xml wrapped in aar (Axis Jar) to deploy to Working AXIS2 
servletcode takes precedence over statically configured xml file
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.
 
 

  - Original Message - 
  From: 
  John Ferron 
  To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
  Sent: Tuesday, July 11, 2006 9:31 
AM
  Subject: Re: [Axis2] Exception when 
  sending with ServiceClient
  
  Martin,
   
  The method that I am calling is correct.  It is not sendAndRecieve() 
  as you were thinking.  The API docs state online as well as in my IDE 
  state the method is sendRecieve().  Also, I have correctly instantiated 
  The ServiceClient object correctly.  I am also setting the options on the 
  object. Sample code is below from the class that I have written.
   
  Options options = new 
  Options();  options.setTo(new 
  EndpointReference(url.toString()));  options.setProperty(MessageContextConstants.CHUNKED, 
  Constants.VALUE_FALSE);  options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
   
    ServiceClient sender = new 
  ServiceClient();  sender.setOptions(options);// 
  Blocking invocation  QName q = new 
  QName(requestElement.getNamespace().getName(),requestElement.getLocalName() 
  , 
  requestElement.getNamespace().getPrefix());  sender.engageModule(q);  responseElement 
  = 
  sender.sendReceive(requestElement);  sender.disEngageModule(new 
  QName(requestElement.getNamespace().getName(),requestElement.getLocalName() 
  , requestElement.getNamespace().getPrefix()));  StringWriter 
  writer = new 
  StringWriter();  responseElement.serialize(XMLOutputFactorynewInstance().createXMLStreamWriter(writer));  writer.flush();
   
  The one question that I do have is since I am only using Axis to 
  formulate the SOAP wrapper, not performing full-blown webservices, do I need 
  config files in my webapp:  axis2.xml, services.xml, and 
  module.xml??
   
  Thanks for all of your continued help on this matter with me!
   
  John
  >>> [EMAIL PROTECTED] 07/10/06 4:40 PM 
  >>>
  
  Going up the call stack
  check 2 things-check spelling on serviceClient.sendReceive() I think 
  you may have mis-spelled the method name-as you are experiencing errors in 
  both sendReceive and engageodule() methods make sure you have properly 
  instantiated serviceClient beforehand
  check the ServiceClient sender = new ServiceClient() for  
  null
   
  Martin--
   
  *This 
  email message and any files transmitted with it contain 
  confidentialinformation intended only for the person(s) to whom this email 
  message isaddressed.  If you have received this email message in 
  error, please notifythe sender immediately by telephone or email and 
  destroy the originalmessage without making a copy.  Thank you.
   
   
  
- Original Message - 
From: 
John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Monday, July 10, 2006 4:28 
PM
Subject: Re: [Axis2] Exception when 
sending with ServiceClient

Martin,
 
When I have decompiled the code (via Eclipse plugin), it is in the 
attached message.  But I cannot say for sure since Eclipse is not 
giving me line numbers.  When I paste the code into a text editor and 
goto that line, its a different method all together.  I've copied the 
method and attached in the email.  Any suggestions??
 
John>>> [EMAIL PROTECTED] 07/10/06 1:57 PM 
>>>

John-
 
Can we see AxisService..line 395 specifically
ThanksM-
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this 
email message isaddressed.  If you have received this email message 
in error, please notifythe sender immediately by telephone or email and 
destroy the originalmessage without making a copy.  Thank 
you.
 
 

  - Original Message - 
  From: 
  John Ferron 
  To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
  Sent: Monday, July 10, 2006 2:24 
  PM
  Subject: Re: [Axis2] Exception when 
  sendi

Re: "Chunked" encoding doesn't work and I'm desperated

2006-07-11 Thread Bruno Negrao

If the documentation shows up in MessageContext's Javadoc would also help a lot.

We'll wait for your article.

thank you,
bruno

On 7/11/06, Eran Chinthaka <[EMAIL PROTECTED]> wrote:

Bruno Negrao wrote:
> Thanks Eran. It worked.
>
> I saw that the options.setProperty passes it's parameters to the
> internal MessageContext object. What is the MessageContext

It is the place we keep all the information about a message. For
example, when you try to send a request to a web service, we encapsulate
the SOAP envelope with the message context. In addition to that this
message context has all the information for the engine to act
accordingly to send this message to its endpoint.


> and what else can I set in its properties?

hmm, this will be a long answer. Expect an article on this soon.

-- Chinthaka






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



Re: "Chunked" encoding doesn't work and I'm desperated

2006-07-11 Thread Eran Chinthaka
Bruno Negrao wrote:
> Thanks Eran. It worked.
> 
> I saw that the options.setProperty passes it's parameters to the
> internal MessageContext object. What is the MessageContext 

It is the place we keep all the information about a message. For
example, when you try to send a request to a web service, we encapsulate
the SOAP envelope with the message context. In addition to that this
message context has all the information for the engine to act
accordingly to send this message to its endpoint.


> and what else can I set in its properties?

hmm, this will be a long answer. Expect an article on this soon.

-- Chinthaka



signature.asc
Description: OpenPGP digital signature


RE: problem to invoke the webservice using RESTt Style

2006-07-11 Thread Kinichiro Inoguchi
Hi Vimal,

You can pass parameter via REST like this,
http://localhost:8080/axis2/rest/YourService/getProductDetails?productid=12345

And if you still get internal error,
could you try change return value String[] to String, please ?

Regards,
kinichiro

--- "Bansal, Vimal" <[EMAIL PROTECTED]> wrote:

> Hi Kinichiro,
> Thanks for your response. I tried the service with method returning
> String type or String[] type. But the real problem is when i am
> passing a paramter. For example: String[] getProductDetails(long
> productid);
> 
> The array is basically an array of all the values reteieved from a
> database, like returnVal[0] will be the first element, returnVal[1]
> will be the next and so on. The returning type is not an issue. Is
> the paramter (productid as in my example) creating this problem? How
> can we pass paramters?
> 
> Regards,
> Vimal.
> 
> -Original Message-
> From: Kinichiro Inoguchi [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 11, 2006 3:40 PM
> To: axis-user@ws.apache.org
> Subject: Re: problem to invoke the webservice using RESTt Style
> 
> 
> Hi,
> 
> If you change your method from String[] getValue(long id) 
> to String getValue(long id), does it work ?
> 
> I faced same kind of issue, and created JIRA.
> http://issues.apache.org/jira/browse/AXIS2-880
> 
> Regards,
> kinichiro
> 
> --- "Bansal, Vimal" <[EMAIL PROTECTED]> wrote:
> 
> > 
> > Hi All,
> > 
> > I am a new user of Web Services. I am using Axis2 for implementing
> > services. I want to use REST style of Web services. My service
> class,
> > say MyServices have to service methods:
> > String getAllValues() and String[] getValue(long id).
> > The first service method, that has no parameters, is working fine
> > when invoked by a client. I am accessing this service through the
> > link: http://localhost:8080/Axis2/rest/servicename/getAllValues
> > I am getting the following result:
> > http://service.poc.com/xsd";> 
> > [33, 34, 35, 36, 37, 38] 
> > 
> > My problem is that when I am trying to access the second
> service(that
> > has one parameter), through the link
> > http://localhost:8080/Axis2/rest/servicename/getValue am getting an
> > axis page showing "Internal server error". How can I access this
> web
> > service? Is there some way to pass the parameter through url?
> > My client class is having following code snippets:
> > 
> > private static EndpointReference targetEPR = new
> >
>
EndpointReference("http://localhost:8080/rest/userservice2/getValue";);
> > ...
> > public static void main(String[] args) {
> > try {
> > ServiceClient sender = null;
> > Options options = new Options();
> > options.setTo(targetEPR);
> > options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> > options.setProperty(Constants.Configuration.ENABLE_REST,
> > Constants.VALUE_TRUE);
> > 
> >
>
options.setProperty(Constants.Configuration.HTTP_METHOD,Constants.Configuration.HTTP_METHOD_GET);
> > sender = new ServiceClient();
> > sender.setOptions(options);
> > OMElement result= sender.sendReceive(getPayload());
> > }
> > catch(Exception e){ }
> > }
> > ...
> > private static OMElement getPayload() throws Exception{
> > OMFactory fac =OMAbstractFactory.getOMFactory();
> > OMNamespace omNs =
> > fac.createOMNamespace("http://service.poc.com/xsd","example1";);
> > OMElement method = fac.createOMElement("getValue", omNs);
> > OMElement value = fac.createOMElement("Text", omNs);
> > value.addChild(fac.createOMText(value,"38"));
> > method.addChild(value);
> > return method;
> > } 
> >
> > Thanks and regards,
> > Vimal.
> > 
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

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



Re: [Axis2] Exception when sending with ServiceClient

2006-07-11 Thread John Ferron


Martin,
 
The method that I am calling is correct.  It is not sendAndRecieve() as you were thinking.  The API docs state online as well as in my IDE state the method is sendRecieve().  Also, I have correctly instantiated The ServiceClient object correctly.  I am also setting the options on the object. Sample code is below from the class that I have written.
 
Options options = new Options();  options.setTo(new EndpointReference(url.toString()));  options.setProperty(MessageContextConstants.CHUNKED, Constants.VALUE_FALSE);  options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
 
  ServiceClient sender = new ServiceClient();  sender.setOptions(options);// Blocking invocation  QName q = new QName(requestElement.getNamespace().getName(),requestElement.getLocalName() , requestElement.getNamespace().getPrefix());  sender.engageModule(q);  responseElement = sender.sendReceive(requestElement);  sender.disEngageModule(new QName(requestElement.getNamespace().getName(),requestElement.getLocalName() , requestElement.getNamespace().getPrefix()));  StringWriter writer = new StringWriter();  responseElement.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(writer));  writer.flush();
 
The one question that I do have is since I am only using Axis to formulate the SOAP wrapper, not performing full-blown webservices, do I need config files in my webapp:  axis2.xml, services.xml, and module.xml??
 
Thanks for all of your continued help on this matter with me!
 
John
>>> [EMAIL PROTECTED] 07/10/06 4:40 PM >>>

Going up the call stack
check 2 things-check spelling on serviceClient.sendReceive() I think you may have mis-spelled the method name-as you are experiencing errors in both sendReceive and engageodule() methods make sure you have properly instantiated serviceClient beforehand
check the ServiceClient sender = new ServiceClient() for  null
 
Martin--
 
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed.  If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy.  Thank you.
 
 

- Original Message - 
From: John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Monday, July 10, 2006 4:28 PM
Subject: Re: [Axis2] Exception when sending with ServiceClient

Martin,
 
When I have decompiled the code (via Eclipse plugin), it is in the attached message.  But I cannot say for sure since Eclipse is not giving me line numbers.  When I paste the code into a text editor and goto that line, its a different method all together.  I've copied the method and attached in the email.  Any suggestions??
 
John>>> [EMAIL PROTECTED] 07/10/06 1:57 PM >>>

John-
 
Can we see AxisService..line 395 specifically
ThanksM-
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed.  If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy.  Thank you.
 
 

- Original Message - 
From: John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Monday, July 10, 2006 2:24 PM
Subject: Re: [Axis2] Exception when sending with ServiceClient

Martin,
 
When I tried adding the engageMode() method that you were inquiring about, the following exception was thrown: - John
 
 Module not found org.apache.axis2.description.AxisService.engageModule(AxisService.java:395) org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:279) com.alliantenergy.soap.SoapClient.sendRecieve(SoapClient.java:105) com.alliantenergy.soap.SoapClient.sendSoapMsg(SoapClient.java:80) com.alliantenergy.soap.SoapClient.postSoapMessage(SoapClient.java:37) org.apache.jsp.ProcessSOAPMessage_jsp._jspService(ProcessSOAPMessage_jsp.java:148) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValvejava:256) org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) org.apache.catalina.core.StandardPipeline.invoke(StandardPipel

RE: WSS4J

2006-07-11 Thread Rishikesh . Mallesh
>>If I am not wrong, digest algorithms are on-way, that is, you cannot
decrypt a digest.

OK... I thought as much wanted to confirm. 

>> By the way, what do you need the password for? :-)
Sounds sinister isn't it :-) 


-Original Message-
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2006 14:01
To: axis-user@ws.apache.org
Subject: Re: WSS4J

If I am not wrong, digest algorithms are on-way, that is, you cannot
decrypt a digest.

By the way, what do you need the password for? :-)

Regards,
Rodrigo Ruiz

[EMAIL PROTECTED] wrote:
> Hello,
> 
>  
> 
> I've a question on WSS4J. I am using WSS4J with Axis 1.3 on the server
> side.
> 
>  
> 
> I wanted to know if it is possible to convert the contents of
> wsse:Password from its digest form to a text form?
> 
>  
> 
> I need access to the password within the application. Is there an API to
> convert from digest to text?
> 
>  
> 
> Cheers
> 
> Rishi
> 
>  
> 
>  
> 
> 
> 
>


> This message is intended for the addressee or its representative only.
> Any form of unauthorized use, publication, reproduction, copying or
> disclosure of the content of this e-mail is not permitted. If you are
> not the intended recipient of this e-mail message and its contents,
> please notify the sender immediately and delete this message and
> all its attachments subsequently.
> 
> 
> 
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.10/384 - Release Date: 10/07/2006

-- 
---
GRIDSYSTEMSRodrigo Ruiz Aguayo
Parc Bit - Son Espanyol
07120 Palma de Mallorcamailto:[EMAIL PROTECTED]
Baleares - España  Tel:+34-971435085 Fax:+34-971435082
http://www.gridsystems.com
---


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.10/384 - Release Date: 10/07/2006


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

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



RE: problem to invoke the webservice using RESTt Style

2006-07-11 Thread Bansal, Vimal
Hi Kinichiro,
Thanks for your response. I tried the service with method returning String type 
or String[] type. But the real problem is when i am passing a paramter. For 
example: String[] getProductDetails(long productid);

The array is basically an array of all the values reteieved from a database, 
like returnVal[0] will be the first element, returnVal[1] will be the next and 
so on. The returning type is not an issue. Is the paramter (productid as in my 
example) creating this problem? How can we pass paramters?

Regards,
Vimal.

-Original Message-
From: Kinichiro Inoguchi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 3:40 PM
To: axis-user@ws.apache.org
Subject: Re: problem to invoke the webservice using RESTt Style


Hi,

If you change your method from String[] getValue(long id) 
to String getValue(long id), does it work ?

I faced same kind of issue, and created JIRA.
http://issues.apache.org/jira/browse/AXIS2-880

Regards,
kinichiro

--- "Bansal, Vimal" <[EMAIL PROTECTED]> wrote:

> 
> Hi All,
> 
> I am a new user of Web Services. I am using Axis2 for implementing
> services. I want to use REST style of Web services. My service class,
> say MyServices have to service methods:
>   String getAllValues() and String[] getValue(long id).
> The first service method, that has no parameters, is working fine
> when invoked by a client. I am accessing this service through the
> link: http://localhost:8080/Axis2/rest/servicename/getAllValues
> I am getting the following result:
> http://service.poc.com/xsd";> 
>   [33, 34, 35, 36, 37, 38] 
> 
> My problem is that when I am trying to access the second service(that
> has one parameter), through the link
> http://localhost:8080/Axis2/rest/servicename/getValue am getting an
> axis page showing "Internal server error". How can I access this web
> service? Is there some way to pass the parameter through url?
> My client class is having following code snippets:
> 
> private static EndpointReference targetEPR = new
>
EndpointReference("http://localhost:8080/rest/userservice2/getValue";);
> ...
> public static void main(String[] args) {
>   try {
>   ServiceClient sender = null;
>   Options options = new Options();
>   options.setTo(targetEPR);
>   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>   options.setProperty(Constants.Configuration.ENABLE_REST,
> Constants.VALUE_TRUE);
>   
>
options.setProperty(Constants.Configuration.HTTP_METHOD,Constants.Configuration.HTTP_METHOD_GET);
>   sender = new ServiceClient();
>   sender.setOptions(options);
>   OMElement result= sender.sendReceive(getPayload());
>   }
>   catch(Exception e){ }
> }
> ...
> private static OMElement getPayload() throws Exception{
>   OMFactory fac =OMAbstractFactory.getOMFactory();
>   OMNamespace omNs =
> fac.createOMNamespace("http://service.poc.com/xsd","example1";);
>   OMElement method = fac.createOMElement("getValue", omNs);
>   OMElement value = fac.createOMElement("Text", omNs);
>   value.addChild(fac.createOMText(value,"38"));
>   method.addChild(value);
>   return method;
> } 
>
> Thanks and regards,
> Vimal.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

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




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



Re: Working samples of axis2.0 web services

2006-07-11 Thread Martin Gainty



I found no .aar files in the Axis2V1 distro 
but I did find within
/samples/wsdl/build.xml 
this statement which builds the aar 


 
*I agree it would be nice to have sample aar 
in the main distro*Also the Wsdl2code is much less intuitive tool than 
its predecessor WSDL2JavaDocumentation is 
sparseMartin--
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.
 
 

  - Original Message - 
  From: 
  Dhakshinamoorthy, 
  Hariharasudhan 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, July 11, 2006 4:47 
AM
  Subject: RE: Working samples of axis2.0 
  web services
  
  You can find version.aar and one more arr along with the 
  axis distribution itself ; Enjoy have fun :-)
  
-Original Message-From: Harinath Mallepally 
[mailto:[EMAIL PROTECTED]Sent: Tuesday, July 11, 2006 1:47 
PMTo: axis-user@ws.apache.orgSubject: 
Working samples of axis2.0 web services

Hi,
 
Are there any working samples of 
axis 2.0 webservices? 
 
-harinath
 

  
  
 CAUTION - 
  Disclaimer *This e-mail contains PRIVILEGED AND 
  CONFIDENTIAL INFORMATION intended solely for the use of the 
  addressee(s). If you are not the intended recipient, please notify the 
  sender by e-mail and delete the original message. Further, you are not 
  to copy, disclose, or distribute this e-mail or its contents to any 
  other person and any such actions are unlawful. This e-mail may 
  contain viruses. Infosys has taken every reasonable precaution to 
  minimize this risk, but is not liable for any damage you may sustain 
  as a result of any virus in this e-mail. You should carry out your own 
  virus checks before opening the e-mail or attachment. Infosys reserves 
  the right to monitor and review the content of all messages sent to or 
  from this e-mail address. Messages sent to or from this e-mail address 
  may be stored on the Infosys e-mail system.***INFOSYS End 
  of Disclaimer 
  INFOSYS***
  Confidential:  This electronic message and all contents 
  contain information from Syntel, Inc. which may be privileged, confidential or 
  otherwise protected from disclosure.  The information is intended to be 
  for the addressee only.   If you are not the addressee, any 
  disclosure, copy, distribution or use of the contents of this message is 
  prohibited.  If you have recieved this electronic message in error, 
  please notify the sender immediately and destroy the original message and all 
  copies.
  
  Confidential: This electronic message and all 
  contents contain information from Syntel, Inc. which may be privileged, 
  confidential or otherwise protected from disclosure. The information is 
  intended to be for the addressee only. If you are not the addressee, any 
  disclosure, copy, distribution or use of the contents of this message is 
  prohibited. If you have received this electronic message in error, please 
  notify the sender immediately and destroy the original message and all 
  copies.


Re: WSS4J

2006-07-11 Thread Rodrigo Ruiz
If I am not wrong, digest algorithms are on-way, that is, you cannot
decrypt a digest.

By the way, what do you need the password for? :-)

Regards,
Rodrigo Ruiz

[EMAIL PROTECTED] wrote:
> Hello,
> 
>  
> 
> I've a question on WSS4J. I am using WSS4J with Axis 1.3 on the server
> side.
> 
>  
> 
> I wanted to know if it is possible to convert the contents of
> wsse:Password from its digest form to a text form?
> 
>  
> 
> I need access to the password within the application. Is there an API to
> convert from digest to text?
> 
>  
> 
> Cheers
> 
> Rishi
> 
>  
> 
>  
> 
> 
> 
> 
> This message is intended for the addressee or its representative only.
> Any form of unauthorized use, publication, reproduction, copying or
> disclosure of the content of this e-mail is not permitted. If you are
> not the intended recipient of this e-mail message and its contents,
> please notify the sender immediately and delete this message and
> all its attachments subsequently.
> 
> 
> 
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.10/384 - Release Date: 10/07/2006

-- 
---
GRIDSYSTEMSRodrigo Ruiz Aguayo
Parc Bit - Son Espanyol
07120 Palma de Mallorcamailto:[EMAIL PROTECTED]
Baleares - España  Tel:+34-971435085 Fax:+34-971435082
http://www.gridsystems.com
---


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.10/384 - Release Date: 10/07/2006


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



How to map beans in Axis 2

2006-07-11 Thread s . masoni

I'm a Axis 1.4 user. 
In this Axis version I made java bean
mapping by using
   tag in deploy
file.

How can I do the same thing in Axis 2.0?
Thank in advance.
Simone

WSS4J

2006-07-11 Thread Rishikesh . Mallesh








Hello,

 

I've a question on WSS4J. I am using WSS4J with
Axis 1.3 on the server side. 

 

I wanted to know if it is possible to convert the
contents of wsse:Password from its digest form to a text form? 

 

I need access to the password within the
application. Is there an API to convert from digest to text?

 

Cheers

Rishi

 

 






This message is intended for the addressee or its representative only. 
Any form of unauthorized use, publication, reproduction, copying or 
disclosure of the content of this e-mail is not permitted. If you are 
not the intended recipient of this e-mail message and its contents, 
please notify the sender immediately and delete this message and 
all its attachments subsequently.






Re: "Chunked" encoding doesn't work and I'm desperated

2006-07-11 Thread Bruno Negrao

Take a look at
http://ws.apache.org/axis2/0_95/api/org/apache/axis2/description/AxisOperation.html#addMessageContext(org.apache.axis2.context.MessageContext,%20org.apache.axis2.context.OperationContext)
..add MessageContext is a method call inside AxisOperation..

Hi Martin, there it's written:
  "Adds a message context into an operation context. Depending on
MEPs, this method has to be overridden. Depending on the mep operation
description know how to fill the message context map in
operationContext. As an example, if the MEP is IN-OUT then depending
on messagable operation description should know how to keep them in
correct locations."

But I could not understand how is it related to the HTTP headers.
Also, I'd like to know what a "MEP" is.

Regards,
bruno.

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



Re: "Chunked" encoding doesn't work and I'm desperated

2006-07-11 Thread Martin Gainty
Bruno et al-
Take a look at
http://ws.apache.org/axis2/0_95/api/org/apache/axis2/description/AxisOperation.html#addMessageContext(org.apache.axis2.context.MessageContext,%20org.apache.axis2.context.OperationContext)
..add MessageContext is a method call inside AxisOperation..

M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: "Bruno Negrao" <[EMAIL PROTECTED]>
To: ; <[EMAIL PROTECTED]>
Sent: Tuesday, July 11, 2006 6:16 AM
Subject: Re: "Chunked" encoding doesn't work and I'm desperated


> Thanks Eran. It worked.
> 
> I saw that the options.setProperty passes it's parameters to the
> internal MessageContext object. What is the MessageContext and what
> else can I set in its properties?
> 
> Regards,
> bruno
> 
> On 7/11/06, Eran Chinthaka <[EMAIL PROTECTED]> wrote:
>> try options.setProperty(MessageContext.CHUNKED, "false")
>>
>>
>>
>> Bruno Negrao wrote:
>> > Hi all,
>> >
>> > My SOAP server (in Perl) simply doesn't accept the "chunked" transfer
>> > encoding that I'm generating in axis2. See the POST bellow:
>> >
>> > POST /pfappspabxutils HTTP/1.1
>> > User-Agent: Axis2
>> > SOAPAction: http://172.16.10.103:8080/AgendaPesquisa#AgendaPesquisa
>> > Host: pfdesenv.planetarium.com.br:8080
>> > Transfer-Encoding: chunked   <= HERE
>> > Content-Type: text/xml; charset=UTF-8
>> >
>> > please, how can I change it to "deflate"?
>> >
>> > I'm sure that without the "chunk" encoding it works because I already
>> > set the "chunk" variable to "false" using the debugger inside the
>> > CommonsHTTPTransportSender object.
>> >
>> > thank you,
>> > bruno
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>>
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

RE: axisService faults

2006-07-11 Thread Harinath Mallepally








Yes Martin, that was the reason. Infact my
services.xml itself was empty one L

I didn’t notice it initially, when I
added proper content to it, it started working fine.

 

Thanks

Harinath

 

 









From: Martin Gainty
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 6:01
PM
To: axis-user@ws.apache.org
Subject: Re: axisService faults



 



Parsers generally dont know hot to treat whitespace
characters 





I would check for whitespace characters in your services.xml
e.g. 







Martin--





*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.





 






 







- Original Message - 





From: Harinath
Mallepally 





To: axis-user@ws.apache.org






Sent: Tuesday, July 11,
2006 3:38 AM





Subject: axisService faults





 



Hi,

I
am looking at axis2.0 web services. My intention is to convert previous
webservice that we developed into axis2.0 but I am getting errors. 

Alternatively,
are there any sample axis2.0 webservices with which I can work and get hands on
experience?

Any
suggestions? On what might have gone wrong? Here is the exception stack.

This
Web axisService has deployment faults

Error: org.apache.axis2.deployment.DeploymentException:
com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col
{unknown-source}]: [1,0]; nested exception is: org.apache.axiom.om.OMException:
com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col
{unknown-source}]: [1,0] at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:124)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:620)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:91)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:142)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:42)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServletjava:213)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182) at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887) at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284) at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2990) at
org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:1019) at
org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet.java:524)
at
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:147)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValvejava:257)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValvejava:199)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:587)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja

Re: I can't see the WSDL files!!!!!!

2006-07-11 Thread Bruno Harbulot
Maybe it's a silly suggestion, but which browser are you using? I think 
Safari under MacOS X does not display anything when it's supposed to 
display an XML file. (In that case, using something like Firefox should 
work better).


Cheers,

Bruno.

Fabiano Costa Teixeira wrote:

I'm using Tomcat
Every services appears, I can access the service by test clientbut I 
can't see the wsdls


2006/7/10, wang pengchao <[EMAIL PROTECTED] 
>:


What kind of server are you using? tomcat? and does your service
worked correctly ( can be accesssed by test client) ?
At least try this http://localhost:8080/axis/services
 to see whether
services are deployed or not.



On 7/11/06, * Fabiano Costa Teixeira* < [EMAIL PROTECTED]
> wrote:

Hi,

When I put some adress to see the WSDL file of one service (i.e.
http://localhost:8080/axis/services/Quote?wsdl) my browser
doesn't show anything. If I list the services (Page: And
now...Some Services) and I click over the wsdl link the same
also happens!

Can somebody help me

Tanks a lot

Fabiano
(Brazil)





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



Re: axisService faults

2006-07-11 Thread Martin Gainty



Parsers generally dont know hot to 
treat whitespace characters 
I would check for whitespace characters in your 
services.xmle.g. 

Martin--
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.
 
 

  - Original Message - 
  From: 
  Harinath 
  Mallepally 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, July 11, 2006 3:38 
AM
  Subject: axisService faults
  
  
  Hi,
  I am looking at axis2.0 web 
  services. My intention is to convert previous webservice that we developed 
  into axis2.0 but I am getting errors. 
  Alternatively, are there any 
  sample axis2.0 webservices with which I can work and get hands on 
  experience?
  Any suggestions? On what might 
  have gone wrong? Here is the exception 
stack.
  This Web axisService has 
  deployment faults
  Error: 
  org.apache.axis2.deployment.DeploymentException: 
  com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col 
  {unknown-source}]: [1,0]; nested exception is: 
  org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected 
  EOF in prolog at [row,col {unknown-source}]: [1,0] at 
  org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:124) 
  at 
  org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:620) 
  at 
  org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195) 
  at 
  org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207) 
  at 
  org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155) 
  at 
  org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:91) 
  at 
  org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:142) 
  at 
  org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:42) 
  at 
  org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServletjava:213) 
  at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182) at 
  org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044) 
  at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887) at 
  org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959) 
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284) 
  at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2990) 
  at org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:1019) 
  at 
  org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet.java:524) 
  at 
  org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:147) 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) 
  at 
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) 
  at 
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValvejava:257) 
  at 
  org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) 
  at 
  org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) 
  at 
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValvejava:199) 
  at 
  org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 
  at 
  org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:587) 
  at 
  org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) 
  at 
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184) 
  at 
  org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 
  at 
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) 
  at 
  org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) 
  at 
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) 
  at 
  org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java

Axis2 lazy init

2006-07-11 Thread Valmir Macário
Hi all, 
 
Axis2 only start service when is made a first call to one operation, but i need to start service as soon as the tomcat start, because a need initialize a Timer(). I´ve trying the methot: void init() throws AxisFault, in my service class but i don´t have success. I apreciate if someone can help-me to get this behaviour in my service.

 
Thanks, 
 
Valmir


[Axis2] Command line "-p" option giving wrong result

2006-07-11 Thread Rathore, Amit Singh (STSD)
Hi Everyone,
I have been using "org.apache.axis2.wsdl.WSDL2Java" command line option
inside build.xml to generate stubs etc. I am not passing -p option, -p
option stands for over-riding default package structure that has been
specified in targetNamespace in the WSDL.

But the stubs are generated in org.apache.axis2 package structure, which
is the default package structure.
I have specified package name to targetNamespace in my WSDL's. 

Does anyone has any idea of what is wrong or is it a bug in stub
generation?

Thanks in advance.

--
Amit Singh Rathore

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



Re: [Axis2] Plz help adding logging module server-side

2006-07-11 Thread heikki
Hello,I'm still trying to deploy the sample logging module, server-side. Unfortunately no-one has answered my previous post.. I'll try to state my questions very briefly and clear, hopefully someone has some answers :
- where can I find a description of exactly what is the meaning of, and relation between, each module-, phase- and handler-related element in axis2.xml, modules.xml and services.xml ? What does it mean, for example, if the class attribute in the module or in the phase elements is absent / present ?
- if you get an error message such as "[11 Jul 2006 13:36:43] ERROR org.apache.axis2.deployment.DeploymentEngine.doDeploy():636 - Invalid service  MyService.aar due to Invalid phases please recheck axis2.xml
 loggingPhase for the handler InFlowLogHandler", how can you best go about analyzing what's causing it ?- when I just (1) add the logging.mar from the distribution to the modules directory; (2) add the line  to my 
services.xml; and (3) put  in to each of the four phaseOrders in axis2.xml, I get no errors during deployment. However the logging does not work (with my log4j.properties having DEBUG level for all), and I see the following lines in the server console, which seems not right, this "null" :
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler null added to Phase loggingPhase[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler null added to Phase loggingPhase
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler null added to Phase loggingPhase[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler null added to Phase loggingPhase
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler AddressingFinalInHandler added to Phase PreDispatch[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler AddressingSubmissionInHandler added to Phase PreDispatch
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler AddressingOutHandler added to Phase MessageOut[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler AddressingFinalInHandler added to Phase PreDispatch
[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler AddressingSubmissionInHandler added to Phase PreDispatch[11 Jul 2006 13:39:45] DEBUG org.apache.axis2.engine.Phase.addHandler():113 - Handler AddressingOutHandler added to Phase MessageOut
Surely it should be easy to add server-side handlers to an Axis2-run web service ? What is it that I'm missing ?I greatly appreciate your feedback.


Re: [Axis2] how to call service through http

2006-07-11 Thread Kinichiro Inoguchi
Hi, Joseph.

Try, http://localhost:8080/axis2/rest/MyService/method?p1=a&p2=b

http://ws.apache.org/axis2/1_0/rest-ws.html 

Regards,
kinichiro

--- [EMAIL PROTECTED] wrote:

> Hi,
> 
> I am able to call my webservice in axis 1 using ex: 
> http://localhost:8080/axis/services/MyService?method=getSomething and
> it 
> returns a soap response in the browser.I was wondering how to do
> this 
> in axis 2. I tried replacing axis with axis2 in the url,
> unfortunately, it 
> didnt work.
> 
> 
> thanks
> 
> 
> Joseph


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

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



RE: [Axis2] how to call service through http

2006-07-11 Thread Dhakshinamoorthy, Hariharasudhan



Delapena
Axis2 doesn't have that option becuase its 
fully document/literal based and you can't be passing parameters like you 
do it for RPC.
You must be writing clients to access your webservice or try using 
some SOAPBox like Vordel etc etc ..
 
Hope this helps 

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, July 11, 2006 4:03 
  PMTo: axis-user@ws.apache.orgSubject: [Axis2] how to 
  call service through httpHi,       
    I am able to call my webservice in axis 1 using ex:   
  http://localhost:8080/axis/services/MyService?method=getSomething and it 
  returns a soap response in the browser.    I was wondering how to do 
  this in axis 2. I tried replacing axis with axis2 in the url, unfortunately, 
  it didnt work. thanks 
  JosephConfidential:  This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure.  The information is intended to be for the addressee only.   If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited.  If you have recieved this electronic message in error, please notify the sender immediately and destroy the original message and all copies.




Confidential:  This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited.  If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.


RE: "Chunked" encoding doesn't work and I'm desperated

2006-07-11 Thread Rick Kellogg
When you are finished would you mind writing up an item for 
the Wiki to draw attention to these options.

-Original Message-
From: Bruno Negrao [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 6:17 AM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: Re: "Chunked" encoding doesn't work and I'm desperated

Thanks Eran. It worked.

I saw that the options.setProperty passes it's parameters to the
internal MessageContext object. What is the MessageContext and what
else can I set in its properties?

Regards,
bruno

On 7/11/06, Eran Chinthaka <[EMAIL PROTECTED]> wrote:
> try options.setProperty(MessageContext.CHUNKED, "false")
>
>
>
> Bruno Negrao wrote:
> > Hi all,
> >
> > My SOAP server (in Perl) simply doesn't accept the "chunked" transfer
> > encoding that I'm generating in axis2. See the POST bellow:
> >
> > POST /pfappspabxutils HTTP/1.1
> > User-Agent: Axis2
> > SOAPAction: http://172.16.10.103:8080/AgendaPesquisa#AgendaPesquisa
> > Host: pfdesenv.planetarium.com.br:8080
> > Transfer-Encoding: chunked   <= HERE
> > Content-Type: text/xml; charset=UTF-8
> >
> > please, how can I change it to "deflate"?
> >
> > I'm sure that without the "chunk" encoding it works because I already
> > set the "chunk" variable to "false" using the debugger inside the
> > CommonsHTTPTransportSender object.
> >
> > thank you,
> > bruno
> >
> > -
> > 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] how to call service through http

2006-07-11 Thread delapenajs

Hi,

        I
am able to call my webservice in axis 1 using ex:   http://localhost:8080/axis/services/MyService?method=getSomething
and it returns a soap response in the browser.    I was wondering
how to do this in axis 2. I tried replacing axis with axis2 in the url,
unfortunately, it didnt work.


thanks


Joseph

Re: "Chunked" encoding doesn't work and I'm desperated

2006-07-11 Thread Bruno Negrao

Thanks Eran. It worked.

I saw that the options.setProperty passes it's parameters to the
internal MessageContext object. What is the MessageContext and what
else can I set in its properties?

Regards,
bruno

On 7/11/06, Eran Chinthaka <[EMAIL PROTECTED]> wrote:

try options.setProperty(MessageContext.CHUNKED, "false")



Bruno Negrao wrote:
> Hi all,
>
> My SOAP server (in Perl) simply doesn't accept the "chunked" transfer
> encoding that I'm generating in axis2. See the POST bellow:
>
> POST /pfappspabxutils HTTP/1.1
> User-Agent: Axis2
> SOAPAction: http://172.16.10.103:8080/AgendaPesquisa#AgendaPesquisa
> Host: pfdesenv.planetarium.com.br:8080
> Transfer-Encoding: chunked   <= HERE
> Content-Type: text/xml; charset=UTF-8
>
> please, how can I change it to "deflate"?
>
> I'm sure that without the "chunk" encoding it works because I already
> set the "chunk" variable to "false" using the debugger inside the
> CommonsHTTPTransportSender object.
>
> thank you,
> bruno
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>







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



Re: [Axis2 v1.0] security example code

2006-07-11 Thread Wan Kaveevivitchai


yes, all the samples i found are for old version of axis.
so pretty much difference.

Sathita


From: "iceal thaddeus lim" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2 v1.0] security example code
Date: Tue, 11 Jul 2006 18:13:15 +0800

I am doing the same.

I just done the Password Callback with Apache Axis.

Now I want to learn how to use Encryption using public/private keys. But I
have not luck in looking for examples yet.


On 7/11/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:


Dear all,

  i am trying to engage and test in the security aspect. I would like
to
know how the code is secured. There is not much information from the
security sample. the code seems to be very simple and i have not see
anything about signed, or encryption in the code. Does anyone have the
test
example related to this topic?

  it will be great help for me to learn, really appreciate.

  Sathita



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






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



Re: [Axis2 v1.0] security example code

2006-07-11 Thread iceal thaddeus lim
I am doing the same. I just done the Password Callback with Apache Axis. Now I want to learn how to use Encryption using public/private keys. But I have not luck in looking for examples yet.
On 7/11/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
Dear all,  i am trying to engage and test in the security aspect. I would like toknow how the code is secured. There is not much information from thesecurity sample. the code seems to be very simple and i have not see
anything about signed, or encryption in the code. Does anyone have the testexample related to this topic?  it will be great help for me to learn, really appreciate.  Sathita
-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]


Re: problem to invoke the webservice using RESTt Style

2006-07-11 Thread Kinichiro Inoguchi
Hi,

If you change your method from String[] getValue(long id) 
to String getValue(long id), does it work ?

I faced same kind of issue, and created JIRA.
http://issues.apache.org/jira/browse/AXIS2-880

Regards,
kinichiro

--- "Bansal, Vimal" <[EMAIL PROTECTED]> wrote:

> 
> Hi All,
> 
> I am a new user of Web Services. I am using Axis2 for implementing
> services. I want to use REST style of Web services. My service class,
> say MyServices have to service methods:
>   String getAllValues() and String[] getValue(long id).
> The first service method, that has no parameters, is working fine
> when invoked by a client. I am accessing this service through the
> link: http://localhost:8080/Axis2/rest/servicename/getAllValues
> I am getting the following result:
> http://service.poc.com/xsd";> 
>   [33, 34, 35, 36, 37, 38] 
> 
> My problem is that when I am trying to access the second service(that
> has one parameter), through the link
> http://localhost:8080/Axis2/rest/servicename/getValue am getting an
> axis page showing "Internal server error". How can I access this web
> service? Is there some way to pass the parameter through url?
> My client class is having following code snippets:
> 
> private static EndpointReference targetEPR = new
>
EndpointReference("http://localhost:8080/rest/userservice2/getValue";);
> ...
> public static void main(String[] args) {
>   try {
>   ServiceClient sender = null;
>   Options options = new Options();
>   options.setTo(targetEPR);
>   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>   options.setProperty(Constants.Configuration.ENABLE_REST,
> Constants.VALUE_TRUE);
>   
>
options.setProperty(Constants.Configuration.HTTP_METHOD,Constants.Configuration.HTTP_METHOD_GET);
>   sender = new ServiceClient();
>   sender.setOptions(options);
>   OMElement result= sender.sendReceive(getPayload());
>   }
>   catch(Exception e){ }
> }
> ...
> private static OMElement getPayload() throws Exception{
>   OMFactory fac =OMAbstractFactory.getOMFactory();
>   OMNamespace omNs =
> fac.createOMNamespace("http://service.poc.com/xsd","example1";);
>   OMElement method = fac.createOMElement("getValue", omNs);
>   OMElement value = fac.createOMElement("Text", omNs);
>   value.addChild(fac.createOMText(value,"38"));
>   method.addChild(value);
>   return method;
> } 
>
> Thanks and regards,
> Vimal.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

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



[Axis2 v1.0] security example code

2006-07-11 Thread Wan Kaveevivitchai

Dear all,

 i am trying to engage and test in the security aspect. I would like to 
know how the code is secured. There is not much information from the 
security sample. the code seems to be very simple and i have not see 
anything about signed, or encryption in the code. Does anyone have the test 
example related to this topic?


 it will be great help for me to learn, really appreciate.

 Sathita



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



Re: [AXIS2] Need some help to create a session

2006-07-11 Thread Warren Crossing

This might be a possible bug.

The src/org/apache/axis/client/client-config.wsdd does not support 
session based request by default.  I had to add and rebuild.










Perhaps the client.wsdd defaults should support sessions and security, 
or there should be some provision for the generated client Locater to 
change the provider before creating the Stub.


Warren.


Warren Crossing wrote:

Small information about sessions.

The are initiated by a call in the client by setting context property 
javax.xml.ws.session.maintain 10.4.1.4


The are handled in the server hander SimpleSessionHandler, and the 
providers JavaProvider are session aware so if there is a session with 
the soap request then the same "ServiceObject" is invoked.


I would not recommed to manipulate the httpsession (as as servlet 
programmer) your web service architecture drops you in your codesite. 
access the MessageContext and get the Session from that is you 
absolutley have to.


Jana Poornavel wrote:


hi all,
is there any more samples which can used to understand 
maintaining

state.for e.g maintaining the state information in HTTPSession ,which
would be of great help

regards
jana

Deepal Jayasinghe wrote:


Hi Maze;

Lo�c MAZE wrote:

 


Hi all,

I'm a beginner with Axis 2 and I would like to know how to create a
session and insert data in it. I�m especially interested in SOAP 
sessions.

I've spent several hours on this mailing but I�ve found absolutely
nothing about that.
Can somebody supply a concrete example of axis session ? Any
information in this regard will be highly appreciated.





Well Axis2 has four types of sessions called;
- request
- soap session
- application
- transport

yes we dont have enough documentation to explain the session management
stuff and we dont have enough either. We have only one sample and test
case which uses SOAPsession management.
- Calculator sample uses soap session management
- org.apache.axis2.engine.ServiceGroupContextTest

 


Best regards,
Lo�c







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




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



RE: Working samples of axis2.0 web services

2006-07-11 Thread Dhakshinamoorthy, Hariharasudhan



You can find version.aar and one more arr along with the axis 
distribution itself ; Enjoy have fun :-)

  -Original Message-From: Harinath Mallepally 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, July 11, 2006 1:47 
  PMTo: axis-user@ws.apache.orgSubject: Working samples of 
  axis2.0 web services
  
  Hi,
   
  Are there any working samples of 
  axis 2.0 webservices? 
   
  -harinath
   
  


   CAUTION - 
Disclaimer *This e-mail contains PRIVILEGED AND 
CONFIDENTIAL INFORMATION intended solely for the use of the 
addressee(s). If you are not the intended recipient, please notify the 
sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any 
other person and any such actions are unlawful. This e-mail may contain 
viruses. Infosys has taken every reasonable precaution to minimize this 
risk, but is not liable for any damage you may sustain as a result of 
any virus in this e-mail. You should carry out your own virus checks 
before opening the e-mail or attachment. Infosys reserves the right to 
monitor and review the content of all messages sent to or from this 
e-mail address. Messages sent to or from this e-mail address may be 
stored on the Infosys e-mail system.***INFOSYS End of 
Disclaimer 
INFOSYS***Confidential:  This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure.  The information is intended to be for the addressee only.   If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited.  If you have recieved this electronic message in error, please notify the sender immediately and destroy the original message and all copies.




Confidential:  This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited.  If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.


Working samples of axis2.0 web services

2006-07-11 Thread Harinath Mallepally








Hi,

 

Are there any working samples of axis 2.0 webservices? 

 

-harinath

 







 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


Re: [AXIS2] Problem to engage a module at the client side

2006-07-11 Thread Fabien Couble



i still have the same problem -> my module is 
not executed in the client side...
 
1) This is a part of my client code:
 
ConfigurationContext configContext = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem("D:/eclipse_workspace/axis2", 
"D:/eclipse_workspace/axis2/conf/axis2.xml");    
//Non-Blocking Invocationsender = new ServiceClient(configContext, 
null);sender.setOptions(options);sender.sendReceiveNonBlocking(payload, 
callback);
2) This is the content of the 
D:/eclipse_workspace/axis2 directory:
 
D:/eclipse_workspace/axis2
    
|
        
    |-conf
|    
|
        
    
|    
|-axis2.xml
        
    |
        
    |-modules
        
    |            
|
        
    |            
|-logging.mar
        
    |            
|-addressing.mar
        
    |    
        
    |-services
        
    |            
|
        
    |            
|-MyService.aar
        
    |            
|-version.aar
 
 
3) My modules are engaged in the axis2.xml with the 
two following commands:
 
 
 
4) I added the logging phase in the 
axis2.xml:
 
            
 
class="org.apache.axis2.engine.RequestURIBasedDispatcher">    
    
    
 
class="org.apache.axis2.engine.SOAPActionBasedDispatcher">    
    
    
                
 
class="org.apache.axis2.engine.AddressingBasedDispatcher">    
    

 
    
 
class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">    
    
    
 
class="org.apache.axis2.engine.InstanceDispatcher">    
    
    
                
    
    
        
    
    
  
            
    
                
 
class="org.apache.axis2.engine.RequestURIBasedDispatcher">    
    

 
    
 
class="org.apache.axis2.engine.SOAPActionBasedDispatcher">    
    

 
    
 
class="org.apache.axis2.engine.AddressingBasedDispatcher">    
    

 
    
 
class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">    
    
    
 
class="org.apache.axis2.engine.InstanceDispatcher">    
    
    
    
    
  
        
    
    
    
  
    

 
5) This is my module.xml file 
 
 This is a test module! 
    
        
    
    
 
    
        
    
    
 
    
        
    
    
 
    
        
    
    

 
6) This is the content of logging.mar
 

logging.mar
    
|
        
    |-META-INF  
    
|    
|-module.xml
        
    |
        
    |-userguide
        
    |            
|
        
    |            
|---loggingmodule    

|    

        
                
                
    |--LogHandler.class
    
|--LogHandler.java
 
 
 
7) Finally, this is the code in the LogHandler.java 
file
 
 
package userguide.loggingmodule;
 
import org.apache.axis2.AxisFault;import 
org.apache.axis2.context.MessageContext;import 
org.apache.axis2.handlers.AbstractHandler;import 
org.apache.commons.logging.Log;import 
org.apache.commons.logging.LogFactory;
 
import javax.xml.namespace.QName;
 
public class LogHandler extends AbstractHandler{ private static 
final Log log = LogFactory.getLog(LogHandler.class);    
private QName name;
 
    public QName getName() 
{    return 
name;    }
 
    public void invoke(MessageContext msgContext) throws 
AxisFault {     System.out.println("TRACE LOGHANDLER 
--> Module LOGGING - Méthode Invoke");    
 System.out.println(msgContext.getEnvelope()+"\n");    
}
 
    public void revoke(MessageContext msgContext) 
{    
log.info(msgContext.getEnvelope().toString());    }
 
    public void setName(QName name) 
{    this.name = 
name;    }
 
}
 
 
Notes:
The module Addressing works properly in both sides (server and 
client).
The module logging works only in the server side. 
With all these data, someone has an idea!!?
I'm a bit lost... It should work for me!!
 
Please help me 
Fabien
 
 
 

  - Original Message - 
  From: 
  Fabien Couble 
  To: axis-user@ws.apache.org 
  Sent: Monday, July 10, 2006 2:08 PM
  Subject: Re: [AXIS2] Problem to engage a 
  module at the client side
  
  
  Okay Ajith,
  But my modules are engaged in the client side. 
  I'm sure of that bec

Re: Can WSS4J validate signatures formed using self-signed certificate?

2006-07-11 Thread iceal thaddeus lim
I have a similar problem.How do I Encrypt using Axis and WSS4J, by using WSDL2Java (if its even possible)? Thank you all in advanceIceOn 7/11/06, 
akkachotu <[EMAIL PROTECTED]> wrote:
I am having a consumer that uses Self-Signed-Certificate, public key,private key created using java keytool command. Now if I generate a WSSecurity 2004 complaint XML Signature using theseSelf-Signed-Certificates, public key, private key and send the request
soap message to a provider that uses AXIS + WSS4J to validate thesignature in the soap message then can WSS4J on the provider sidevalidate such signature? Or do we have to use onlyCA-Signed-Certificate, public key and private key to generate a
signature inorder to make WSS4J validate such signature. Pleaseclarify ?Thank you for your time and reply.-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]



Re: File access from a .war

2006-07-11 Thread Rodrigo Ruiz
Hi again, :-)

Mmmmh, I haven't heard anything about this kind of problems with .aar
files. I am afraid I don't use Axis2 myself, so my knowledge is limited :-P

Where are you trying to write the file, and how do you get the path?
Have you tried to write in a fixed absolute path? If you can't create a
file, for example, at the user's home directory, it could be a
permissions problem (either at file level, or at server security system
level).

AFAIK, .aar files can also be deployed as directories, but I will have
to redirect you to the Axis documentation site (or to anyone else that
could answer this), I'm sorry.

Michael, there are several good articles at theserverside, and many
implementations at a "google click" distance ;-)

I would recommend you to start by looking at the ehcache project
(http://ehcache.sourceforge.net/). It is pretty well documented.

Regards,
Rodrigo Ruiz


Rodrigo Ruiz wrote:
> Depending on the servlet container you are using, war archives may be
> considered read-only. In this case you will not be able to write a file
> within the application context.
> 
> Some alternatives you have are:
> 
> - Deploy your application as an "exploded war" (the exact name will vary
> from container to container). When deploying in this mode, your classes
> can write files at any location within your context.
> 
> - Use an absolute path for your file. The path may be configured through
> JNDI, or System properties, or you might put it into a subfolder of the
> user home (this is very common in *nix environments).
> 
> 
> Other options imply to use a different storage type:
> 
> - Use the User Preferences API to store the value. This API is available
> starting from Java 1.4.
> 
> - Store it into the JNDI tree. This only works if the JNDI
> implementation is writeable and persistent. For example, AFAIK, it will
> not work in Tomcat
> 
> - Use a DBMS. It may seem an overkill solution, but there are some very
> lightweight databases there. They may be not appropriate for enterprise
> solutions, but for a single value they are more than enough. Moreover,
> it is possible that you already use one for another service.
> 
> - Use a distributed cache. Another overkill solution, but you may be
> already using it for another service, or find out other places where it
> may be useful ;-)
> 
> These options, although more complex to implement, bring you an extra
> feature. They make your service "distributable", that is, deployable on
> a cluster of redundant servers. With local files, each node in the
> cluster would have its own "counter".
> 
> Hope this helps,
> Rodrigo Ruiz
> 
> Michael McIntosh wrote:
>> Your problem seems very similar to mine - It would be great if someone 
>> would point us to the documentation for the rules related to file access 
>> (read/write, path, etc.)
>>
>> Thanks,
>> Mike
>>
>> "M S" <[EMAIL PROTECTED]> wrote on 07/10/2006 10:40:47 AM:
>>
>>> Hi,
>>>
>>> I have a web service that is supposed to generate prime numbers. I 
>>> store the latest generated prime number in a file called prime.txt. 
>>> So for example, if the program is run and generated 3, 3 will be 
>>> stored in prime.txt and next time it will generate 5. If there is no
>>> prime.txt, the program will generate 1 and try to create prime.txt. 
>>>
>>> My problem is that my web service application does not seem to be 
>>> able to read/write a file. Any ideas on how this should be done? 
>>> Notice that the prime.txt must be able to saved for the duration of 
>>> the web service's lifetime. 
>>>
>>> Regards
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
> 

-- 
---
GRIDSYSTEMSRodrigo Ruiz Aguayo
Parc Bit - Son Espanyol
07120 Palma de Mallorcamailto:[EMAIL PROTECTED]
Baleares - España  Tel:+34-971435085 Fax:+34-971435082
http://www.gridsystems.com
---


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.10/384 - Release Date: 10/07/2006


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



axisService faults

2006-07-11 Thread Harinath Mallepally








Hi,

I
am looking at axis2.0 web services. My intention is to convert previous
webservice that we developed into axis2.0 but I am getting errors. 

Alternatively,
are there any sample axis2.0 webservices with which I can work and get hands on
experience?

Any
suggestions? On what might have gone wrong? Here is the exception stack.

This
Web axisService has deployment faults

Error: org.apache.axis2.deployment.DeploymentException:
com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col
{unknown-source}]: [1,0]; nested exception is: org.apache.axiom.om.OMException:
com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col
{unknown-source}]: [1,0] at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:124)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:620)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:91)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:142)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:42)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182) at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887) at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284) at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2990) at
org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:1019) at org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet.java:524)
at
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:147)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:587)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833) at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
at java.lang.Thread.run(Thread.java:595) Caused by:
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected
EOF in prolog at [row,col {unknown-source}]: [1,0] at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206) at
org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:144)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:3

Re: General approach for xsd:union?

2006-07-11 Thread Nathan Sowatskey

Got it, that certainly helps my understanding!

Many thanks

Nathan

robert lazarski wrote:

Axis 1.x _does not_ support JAXB 1.0 or JAXB 2.0 .

Axis2  _does not_ support JAXB 1.0 , but AFAIK has the beginnings of
support for JAXB 2.0 via JAXBRI - reference implementation - 2.0EA3.
The JAXWS module, under development, is doing some stuff with JAXBRI.
I'm unclear however of JAXBRI's current state, ie, I'm not aware of
anyone currently using JAXBRI outside of the JAXWS plans.

HTH,
Robert
http://www.braziloutsource.com/

On 7/10/06, Nathan Sowatskey <[EMAIL PROTECTED]> wrote:

Thanks for the pointers all.

I may be missing something, but my reading of section 5.2.6 of the JAX-B
1.0 specification implies that it specifies how unions should be handled.

Don't Axis 1.x/2 implement JAX-B 1.0? If so, then shouldn't they also
support unions?

Am I missing something?

Many thanks

Nathan

robert lazarski wrote:
> Forgot to mention ... if you do implement xmlbeans, make sure you use
> the nighlties cuz some critical bugs have been fixed:
>
> http://people.apache.org/dist/axis2/nightly/
>
> Robert
> http://www.braziloutsource.com/
>
> On 7/7/06, robert lazarski <[EMAIL PROTECTED]> wrote:
>> Don't know, but you could try this tutorial that goes thru step by
>> step how to run a wsdl with xmlbeans and generate an axis2 service:
>>
>> http://ws.apache.org/axis2/tools/1_0/CodegenToolReference.html
>>
>> See the "Invoking the Code Generator From Ant " . If in doubt just
>> post a question to the list and maybe we can help.
>>
>> Robert
>> http://www.braziloutsource.com/
>>
>> On 7/7/06, Derek <[EMAIL PROTECTED]> wrote:
>> >
>> > The fact that Axis 1 didn't support xsd:union caused me a *LOT* of
>> problems
>> > because the schemas I have to work with are filled with constructs
>> of the
>> > form:
>> >
>> > 
>> >   
>> >  
>> > send actions (1)
>> > do not send actions (2)
>> >  
>> >   
>> >   
>> >  
>> > 
>> >
>> >
>> > 
>> >  
>> >  
>> > 
>> >
>> >
>> > 
>> >  
>> >   
>> > 
>> >
>> > This happens for pretty much every enumeration in a very large 
schema.

>> >
>> > Since I didn't write these schemas and can't control what's in 
them (a

>> > rather unresponsive standards body wrote them), I ultimately ended
>> up having
>> > to write an XSLT script to traverse my schema and replace all
>> xs:unions with
>> > equivalent constructs that didn't use unions. I don't recommend
>> doing this
>> > if you can possibly avoid it.
>> >
>> > Even if Axis were to treat a union of simple types as an untyped
>> string, I
>> > think it would be far better than not supporting them at all.
>> >
>> > I haven't tried this with Axis2 (XMLBeans) yet, so I don't know 
if the

>> > situation is improved or not. I would be interested to hear if
>> XMLBeans can
>> > handle this case.
>> >
>> > Derek
>> >
>> > > -Original Message-
>> > > From: Nathan Sowatskey [mailto:[EMAIL PROTECTED]
>> > > Sent: Friday, July 07, 2006 9:23 AM
>> > > To: axis-user@ws.apache.org
>> > > Cc: mTOP Reference Implementation Team
>> > > Subject: Re: General approach for xsd:union?
>> > >
>> > >
>> > > Well, that's certainly one approach, but xsd:unions are 
supported by

>> > > some tools, but not others, and they are a valid construct.
>> > >
>> > > It is hard to argue that they shouldn't be used just because a 
given

>> > > tool doesn't support them.
>> > >
>> > > I will look into the other options in any case.
>> > >
>> > > Many thanks
>> > >
>> > > Nathan
>> > >
>> > > Nathan Sowatskey - Technical Leader, NMTG CTO Engineering -
>> > > +34-638-083-675, +34-91-201-2139 - AIM NathanCisco -
>> > > [EMAIL PROTECTED]
>> > >
>> > > On 7 Jul 2006, at 18:07, Anne Thomas Manes wrote:
>> > >
>> > > >>> On the other hand, is there a better way entirely?
>> > > XMLBeans perhaps?
>> > > >
>> > > > Yes. Don't use .
>> > > > Try  instead.
>> > > > Or maybe a substitution group.
>> > > >
>> > > > Anne
>> > > >
>> > > >
>> > > > On 7/7/06, Nathan Sowatskey <[EMAIL PROTECTED]> wrote:
>> > > >> Hi
>> > > >>
>> > > >> I guess we all know that xsd:union types are not supported
>> > > for Axis
>> > > >> 1.x, so we need to write our own de/serialisers.
>> > > >>
>> > > >> Does anyone have any useful guidance on how to do that please?
>> > > >>
>> > > >> On the other hand, is there a better way entirely?
>> > > XMLBeans perhaps?
>> > > >>
>> > > >> Many thanks
>> > > >>
>> > > >> Nathan
>> > > >>
>> > > >> Nathan Sowatskey - Technical Leader, NMTG CTO Engineering -
>> > > >> +34-638-083-675, +34-91-201-2139 - AIM NathanCisco -
>> > > >> [EMAIL PROTECTED]
>> > > >>
>> > > >>
>> > > 
-

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