Extracting cookies from MessageContext

2006-02-06 Thread prashanth shivakumar
Hello All,Is there any way wherein i can extract cookies from MessageContext inside custom MessageHandler.I tried using msgContext.getProperty("Cookie"); but it returns NULL Many Thanks


How to retreive header element value of SOAP message.

2006-02-06 Thread Ojha, Alok K \(GE Healthcare\)



Hi,
 
I am very new to web 
technologies, and using AXIS to develop a web-service and its 
client.
Now, my problem is, 
I need to send header value to web-service and my web-service need to retreive 
this information.
I got a solution how 
to set a header :
 
FooServiceLocator loc = new 
FooServiceLocator(); FooService binding = loc.getFooService(); 
org.apache.axis.client.Stub s = (Stub) binding; 
s.setHeader("http://my.name.space/headers", "mysecurityheader", "This guy is 
OK"); result = binding.myOperation(...);
Is it right 
way?
 
But i am still 
struggling to retreive this header value in my 
web-service.
 
Best Regards 
!
~Alok


Re: [axis2] Determining Inflow / Outflow from Message Context

2006-02-06 Thread Deepal Jayasinghe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
from the msgctx you can get which flow ur in and it will return you an
int value

int flow = msgctx.getFLOW();

so if the value is 1 then ur in inflow
if the value is 2 , ur in outflow

Ajith Ranabahu wrote:

> Hi Iksrazal, Chathura is right. You can use the operationContext to
> share things along one operation. BTW i'm surprised to hear that
> message labels do not work properly!
>
> On 2/7/06, Chathura Herath <[EMAIL PROTECTED]> wrote:
>
>> Well you should be able to determine whether you are in inflow or
>> outflow by using getFLOW method in the message context. The
>> relavent constants are there in the MessageContext. If you want
>> to pass variable between two flows of the same operation, use the
>> OperationContext for that.
>>
>> HTH Chathura
>>
>> On 2/6/06, iksrazal <[EMAIL PROTECTED]> wrote:
>>
>>> Hi all,
>>>
>>> I need to get the soap message, and handle the request and
>>> response differently. I also need to pass a variable between
>>> the request and response - via messageContext.setProperty()
>>> etc.
>>>
>>> I tried to determine if I'm in a request / response by :
>>>
>>> 1) messageContext.isResponseWritten() - so far not implemented
>>> though.
>>>
>>> 2) Message_lables. No luck there either.
>>>
>>> 3) Implementing a separate handler for the in / out phase -
>>> although I'm using the same module. Unfortunately, this way I
>>> can't seem to use set / get property between the handlers.
>>>
>>> I'm now trying to do:
>>>
>>> 4) Use the same handler, but somehow determine the in / out
>>> phase.
>>>
>>> My question is: Is there a way to determine which phase you are
>>> in from inside a Handler ? Or, is there a common property I can
>>> use between handlers that belong to the same module? I need to
>>> simply pass an incrementing Long.
>>>
>>> Thanks, iksrazal http://www.braziloutsource.com/
>>>
>>
>> -- Chathura Herath http://chathurah.blogspot.com/
>>
>
>
> -- Ajith Ranabahu
>
>
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFD6CzUjOGcXNDx0CARAq6EAJ9Oo4t9h4iS2Vp7KaOGoupLOeQH6QCfXGSe
O33/HZ12T87CdLqb7UJMzww=
=g1EH
-END PGP SIGNATURE-




Re: [axis2] Determining Inflow / Outflow from Message Context

2006-02-06 Thread Ajith Ranabahu
Hi Iksrazal,
Chathura is right. You can use the operationContext to share things
along one operation.
BTW i'm surprised to hear that message labels do not work properly!

On 2/7/06, Chathura Herath <[EMAIL PROTECTED]> wrote:
> Well you should be able to determine whether you are in inflow or
> outflow by using getFLOW method in the message context. The relavent
> constants are there in the MessageContext.
> If you want to pass variable between two flows of the same operation,
> use the OperationContext for that.
>
> HTH
> Chathura
>
> On 2/6/06, iksrazal <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I need to get the soap message,  and handle the request and response
> > differently. I also need to pass a variable between the request and response
> > - via messageContext.setProperty()  etc.
> >
> > I tried to determine if I'm in a request / response by :
> >
> > 1) messageContext.isResponseWritten() - so far not implemented though.
> >
> > 2) Message_lables. No luck there either.
> >
> > 3) Implementing a separate handler for the in / out phase - although I'm 
> > using
> > the same module. Unfortunately, this way I can't seem to use set / get
> > property between the handlers.
> >
> > I'm now trying to do:
> >
> > 4)  Use the same handler, but somehow determine the in / out phase.
> >
> > My question is: Is there a way to determine which phase you are in from 
> > inside
> > a Handler ? Or, is there a common property I can use between handlers that
> > belong to the same module? I need to simply pass an incrementing Long.
> >
> > Thanks,
> > iksrazal
> > http://www.braziloutsource.com/
> >
>
>
> --
> Chathura Herath
> http://chathurah.blogspot.com/
>


--
Ajith Ranabahu


Re: [Axis2] Best place to setWSAAction() for request messages?

2006-02-06 Thread Ajith Ranabahu
Hi Chuck,
We are working on incorporating the WSA:Action into the stubs and just
as you anticipated  it will be inside each client operation. Why it's
being a little late is that the WSDL readers still don't understand
WSA parts and we've to fix the the WOM reader first.

On 2/7/06, Chuck Williams <[EMAIL PROTECTED]> wrote:
> Resending with proper [Axis2] labeling:
>
> Hi All,
>
> I want to use WS Addressing based dispatch for messages sent over the
> tcp transport.  As best I can tell, the WSA Action attribute is never
> set in the code path starting from the PortTypeStub generated for the
> client.  The natural place to set this would seem to be in each client
> operation method in the PortTypeStub, since this method knows the
> operation to be invoked.  That would seem to be a fairly simple
> extension to the code generator that should be there by default.
>
> Does this seem right?  Is there a better place to do this?  The
> documentation for the tcp transport specifically mentions WS Addressing
> as a supported dispatch method, but I don't see any way for this to
> work, at least not if using the generated PortTypeStub.  Is the
> infrastructure already there in some mechanism I've missed?
>
> Thanks for any info,
>
> Chuck
>
>
>


--
Ajith Ranabahu


Re: Axis2 WSDL compliance and intelligent support for generation

2006-02-06 Thread Ajith Ranabahu
Hi Hui,

> "org.apache.axis2.om.OMElement.MY_QNAME" could not be found
> in the following line of code:
>   (org.apache.axis2.om.OMAbstractFactory.getOMFactory(),
> param.getPullParser(org.apache.axis2.om.OMElement.MY_QNAME));

This could be a bug actually (usually occurs when the databinding
failed. OMElement is the default). Can you post the WSDL ?

--
Ajith Ranabahu


Re: RPC turned to Document

2006-02-06 Thread Deepal Jayasinghe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 

yes , the problem is this , you have code gen your service skeleton
and using that you have created a service archive file. And you have
not put your original WSDL file into META-INF directory in the service
archive file, So all the original WSDL data has lost. And at the
runtime when you ask for wsdl using ?wsdl , if there is no wsdl found
in the service archive file , it will create a WSDL for your service
impl class using java reflection , that WSDL is doc-lit.

If you want to get the original WSDL back when you ask for ?wsdl you
have to put that WSDL file into META-INF directory.


Yu-Hui Jin wrote:

> Hi,
>
> I made the example Axis2SampleDocLitService work on Axis2. I found
> some strange thing:
>
> It is specified in the WSDL that the styple is "rpc" in the
> following line:
>
> 
>
> However, when I clicked the Service link and went to the page at:
> http://localhost:8080/axis2/services/Axis2SampleDocLitService?wsdl
>
> The WSDL displayed had all the "rpc" turned into "document" in all
> the "soap:operation" lines.
>
> Anyone knows what happened?
>
>
> thanks,
>
> -Hui
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFD6BXLjOGcXNDx0CARAn+IAKCKfUnR5vMISnaiBsXkLLeeOkjCjgCgzXD+
xHLOJ7+6fQHuUPjErlfg3hY=
=Rb6V
-END PGP SIGNATURE-




Does Axis2 has full REST support?

2006-02-06 Thread Yu-Hui Jin
Hi, I made the Axis2SampleDocLitService working on Axis2 -- The unit test passed. However, I can't make the REST call work. I tried the following calls, but none worked. 
http://localhost:8080/axis2/services/Axis2SampleDocLitService/echoString?EchoStringParam=nicehttp://localhost:8080/axis2/services/Axis2SampleDocLitService/echoString?EchoStringParam=%22nice%22
Is REST call working for the operation that requires params ???thanks,-HuiReturn message says: ===...java.lang.UnsupportedOperationException
: This element was not created in a manner to be switched; nested exception is:     java.lang.RuntimeException: java.lang.UnsupportedOperationException: This element was not created in a manner to be switched
..


Japanese String cannot be handled properly

2006-02-06 Thread Haihua . Yu

I'm using Axis1.1 to develop webservice application.
I use attachment to transport files.
If the filename contains Japanese characters, and if I attach a lot of files, exp. 100 file with 1k size, the following error occurs.
But with fewer files, exp. 50, it passed successfully.
With English filename, this problem doesn't occur either.
Anyone met the same problem?
If so, please share your experience with me.
Thanks.

---
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
 faultActor: 
 faultNode: 
 faultDetail: 
        {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:318)
        at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
        at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:534)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
        at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:534)


org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:543)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:318)

Re: Axis2 codegen pretty print problem

2006-02-06 Thread Davanum Srinivas
We wanted to let folks to use their IDE's to reformat the code to their taste :)

-- dims

On 2/6/06, Yu-Hui Jin <[EMAIL PROTECTED]> wrote:
> Thanks. To be more accurate, the following dependent jars are needed as
> well:
>
> jakarta-oro-2.0.8.jar
> jdom.jar
>
> Just curious why they are not added to the Axis/lib directory in the
> distribution.
>
>
>  thanks,
>
> -Hui
>
>
>
>
> On 2/6/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> > drop jalopy.jar from
> http://jalopy.sourceforge.net/existing/download.html
> >
> > On 2/6/06, Yu-Hui Jin <[EMAIL PROTECTED] > wrote:
> > > Hi,
> > >
> > > I used Axis2's WSDL2Java to generate the code. The generation works
> fine.
> > > But I'm getting the following messages among the output:
> > >
> > > Jalopy not found - unable to pretty print  > > file>/Item.java
> > > ..
> > > ..
> > >
> > > Is there a package missing here?
> > >
> > >
> > > regards,
> > >
> > > -Hui
> > >
> >
> >
> > --
> > Davanum Srinivas : http://wso2.com/blogs/
> >
>
>


--
Davanum Srinivas : http://wso2.com/blogs/


Re: Axis2 codegen pretty print problem

2006-02-06 Thread Yu-Hui Jin
Thanks. To be more accurate, the following dependent jars are needed as well: jakarta-oro-2.0.8.jarjdom.jarJust curious why they are not added to the Axis/lib directory in the distribution. 
thanks,-HuiOn 2/6/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
drop jalopy.jar from http://jalopy.sourceforge.net/existing/download.htmlOn 2/6/06, Yu-Hui Jin <[EMAIL PROTECTED]
> wrote:> Hi,>> I used Axis2's WSDL2Java to generate the code. The generation works fine.> But I'm getting the following messages among the output:>> Jalopy not found - unable to pretty print > file>/Item.java> ..> ..>> Is there a package missing here?>>> regards,>> -Hui>--Davanum Srinivas : 
http://wso2.com/blogs/


RPC turned to Document

2006-02-06 Thread Yu-Hui Jin
Hi, I made the example Axis2SampleDocLitService work on Axis2. I found some strange thing:It is specified in the WSDL that the styple is "rpc" in the following line:    
However, when I clicked the Service link and went to the page at: http://localhost:8080/axis2/services/Axis2SampleDocLitService?wsdl
The WSDL displayed had all the "rpc" turned into "document" in all the "soap:operation" lines.Anyone knows what happened? thanks,-Hui 


Re: Axis2 WSDL migration question

2006-02-06 Thread Eran Chinthaka




Hi Iksrazal,

Seems like you have good knowedge on migrating to Axis2. So can I ask
for a help from you, if possible ?

We have written a migration document from Axis1 to Axis2, which I think
is not complete. Can you please help us with improving that. If you can
do that, we really appreciate it on behalf of the users who are trying
to migrate to Axis2 with existing Axis1 code.

Thanks,
Chinthaka

iksrazal wrote:

  Should be ok if using doc / lit or rpc / lit styles. rpc encoded isn't 
supported yet though. 

The stubs / skeletons concept is different in axis2. If using someting to 
separate your business logic - adapter, delegate etc - just put those into 
your skeleton. 

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

Em Segunda 06 Fevereiro 2006 19:16, o Rangarajan Sreenivasan escreveu:
  
  
Hi,



I was wondering if it is possible to use an existing WSDL file and
service implementation with Axis2. We already have an Axis-1.2 based
implementation and would like to re-use the same classes/WSDL with Axis2
if possible.

Appreciate any help/pointers on this.





Thanks,
Ranga

  
  
  





signature.asc
Description: OpenPGP digital signature


Re: Axis Web-service available only on port 8443 - not 8080

2006-02-06 Thread Jim Azeltine
If you need to have Tomcat available on more than one port, you will need to have multiple instances of Tomcat running. Each will have it's own config and Axis setup. You can find out more about this in the Tomcat install guide. Look for CATALINA_BASE in the guide.     JimAnna Krajewska <[EMAIL PROTECTED]> wrote:  Hi     I want to know if it is possible to configure axis web-service system on tomcat so that one service would be available on port 8443 (and only 8443) and another one on port 8080 (and only that) ? Or I need to choose the port for all of my web-services and open it and close the other one completely 
 (comment
 proper connector in tomcat server.xml config file)?     Regards     Ania  

Extracting cookies from MessageContext

2006-02-06 Thread prashanth shivakumar
Hello All,
Is there any way wherein i can extract cookies from MessageContext inside custom MessageHandler.
I tried using msgContext.getProperty("Cookie"); but it returns NULL
 
Many Thanks
 


Re: [axis2] Determining Inflow / Outflow from Message Context

2006-02-06 Thread Chathura Herath
Well you should be able to determine whether you are in inflow or
outflow by using getFLOW method in the message context. The relavent
constants are there in the MessageContext.
If you want to pass variable between two flows of the same operation,
use the OperationContext for that.

HTH
Chathura

On 2/6/06, iksrazal <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I need to get the soap message,  and handle the request and response
> differently. I also need to pass a variable between the request and response
> - via messageContext.setProperty()  etc.
>
> I tried to determine if I'm in a request / response by :
>
> 1) messageContext.isResponseWritten() - so far not implemented though.
>
> 2) Message_lables. No luck there either.
>
> 3) Implementing a separate handler for the in / out phase - although I'm using
> the same module. Unfortunately, this way I can't seem to use set / get
> property between the handlers.
>
> I'm now trying to do:
>
> 4)  Use the same handler, but somehow determine the in / out phase.
>
> My question is: Is there a way to determine which phase you are in from inside
> a Handler ? Or, is there a common property I can use between handlers that
> belong to the same module? I need to simply pass an incrementing Long.
>
> Thanks,
> iksrazal
> http://www.braziloutsource.com/
>


--
Chathura Herath
http://chathurah.blogspot.com/


Fwd: Setting the transport in a Stub

2006-02-06 Thread Francesco Gianferrari Pini
Hi.I'm trying to set the transport to use in the stub generated by WSDL2Java.I can set it thwough the call object, but it is "hidden" by the stub implementation.
Do I have to make a custom Handler that sets the tranport name in the messageContext?
Cheers,Francesco




Re: Axis2 WSDL migration question

2006-02-06 Thread iksrazal
Should be ok if using doc / lit or rpc / lit styles. rpc encoded isn't 
supported yet though. 

The stubs / skeletons concept is different in axis2. If using someting to 
separate your business logic - adapter, delegate etc - just put those into 
your skeleton. 

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

Em Segunda 06 Fevereiro 2006 19:16, o Rangarajan Sreenivasan escreveu:
> Hi,
>
>
>
> I was wondering if it is possible to use an existing WSDL file and
> service implementation with Axis2. We already have an Axis-1.2 based
> implementation and would like to re-use the same classes/WSDL with Axis2
> if possible.
>
> Appreciate any help/pointers on this.
>
>
>
>
>
> Thanks,
> Ranga

-- 


Re: Axis2 WSDL migration question

2006-02-06 Thread Rangarajan Sreenivasan








Hi,

 

I was wondering if it is possible to use an existing WSDL
file and service implementation with Axis2. We already have an Axis-1.2 based
implementation and would like to re-use the same classes/WSDL with Axis2 if
possible.

Appreciate any help/pointers on this.

 

 

Thanks,
Ranga

 








[Axis2] Best place to setWSAAction() for request messages?

2006-02-06 Thread Chuck Williams
Resending with proper [Axis2] labeling:

Hi All,

I want to use WS Addressing based dispatch for messages sent over the
tcp transport.  As best I can tell, the WSA Action attribute is never
set in the code path starting from the PortTypeStub generated for the
client.  The natural place to set this would seem to be in each client
operation method in the PortTypeStub, since this method knows the
operation to be invoked.  That would seem to be a fairly simple
extension to the code generator that should be there by default.

Does this seem right?  Is there a better place to do this?  The
documentation for the tcp transport specifically mentions WS Addressing
as a supported dispatch method, but I don't see any way for this to
work, at least not if using the generated PortTypeStub.  Is the
infrastructure already there in some mechanism I've missed?

Thanks for any info,

Chuck




Best place to setWSAAction() for request messages?

2006-02-06 Thread Chuck Williams
Hi All,

I want to use WS Addressing based dispatch for messages sent over the
tcp transport.  As best I can tell, the WSA Action attribute is never
set in the code path starting from the PortTypeStub generated for the
client.  The natural place to set this would seem to be in each client
operation method in the PortTypeStub, since this method knows the
operation to be invoked.  That would seem to be a fairly simple
extension to the code generator that should be there by default.

Does this seem right?  Is there a better place to do this?  The
documentation for the tcp transport specifically mentions WS Addressing
as a supported dispatch method, but I don't see any way for this to
work, at least not if using the generated PortTypeStub.  Is the
infrastructure already there in some mechanism I've missed?

Thanks for any info,

Chuck



Exporting constants -- wsdl problem

2006-02-06 Thread Cracker Jack
Hi All,     I have a class on the server side with static constants that I need to expose on the client side.     Public class CalendarTimeInterval   { public static final int DAY = 1; public static final int WEEK = 2; public static final int MONTH = 3;  ...  ...}  I am using java2wsdl to generate the wsdl and when I am generating the client side code I see that my class get generated but without the constants.  Browsing through the postings, I saw that there were people facing the same problem. Did anyone comeup with a solution to this. If so, can you please share it.        Thanks in advance      
		Brings words and photos together (easily) with 
PhotoMail  - it's free and works with Yahoo! Mail.

[axis2] Determining Inflow / Outflow from Message Context

2006-02-06 Thread iksrazal
Hi all, 

I need to get the soap message,  and handle the request and response 
differently. I also need to pass a variable between the request and response  
- via messageContext.setProperty()  etc. 

I tried to determine if I'm in a request / response by :  

1) messageContext.isResponseWritten() - so far not implemented though. 

2) Message_lables. No luck there either. 

3) Implementing a separate handler for the in / out phase - although I'm using 
the same module. Unfortunately, this way I can't seem to use set / get 
property between the handlers. 

I'm now trying to do: 

4)  Use the same handler, but somehow determine the in / out phase. 

My question is: Is there a way to determine which phase you are in from inside 
a Handler ? Or, is there a common property I can use between handlers that 
belong to the same module? I need to simply pass an incrementing Long. 

Thanks,
iksrazal
http://www.braziloutsource.com/


Re: Axis2 codegen pretty print problem

2006-02-06 Thread Davanum Srinivas
drop jalopy.jar from http://jalopy.sourceforge.net/existing/download.html

On 2/6/06, Yu-Hui Jin <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I used Axis2's WSDL2Java to generate the code. The generation works fine.
> But I'm getting the following messages among the output:
>
> Jalopy not found - unable to pretty print  file>/Item.java
> ..
> ..
>
> Is there a package missing here?
>
>
> regards,
>
> -Hui
>


--
Davanum Srinivas : http://wso2.com/blogs/


Re: Axis2 WSDL compliance and intelligent support for generation

2006-02-06 Thread Yu-Hui Jin
Thanks, Anne, I switched to use "document" style and @type. The codegen is done without exceptions. However, my eclipse, after compiling the code,  says the "org.apache.axis2.om.OMElement.MY_QNAME" could not be found in the following line of code:
  (org.apache.axis2.om.OMAbstractFactory.getOMFactory(), param.getPullParser(org.apache.axis2.om.OMElement.MY_QNAME));Using @element does not cause the problem. Eclipse compiles fine in that case. 
thanks,-HuiOn 2/6/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
Note that @type is allowed in the  definition only when using RPC style. If you are using document style, then you must specify @element instead.Anne
On 2/5/06, 
Yu-Hui Jin <[EMAIL PROTECTED]> wrote:

I noticed that the code generator WSDL2Java for Axis can't take some of the allowable syntax in WSDL 1.1. In WSDL 1.1. spec, the "type" is allowed in a message body:   
      However, WSDL2Java throws NullPointerException on this. I had to define an element ItemId of "xs:string" in the  section, then use that element instead. 
Are there any other non-supported features in WSDL 1.1. that we should be aware of ??BTW, another suggestion is if the code generator could be made more intelligent, that it'll report the specific syntax error on the line of the WSDL, that'll make our life a whole lot easier.  Making WSDL 2 Java generation work and compilable is a very demanding and painful job.
regards,-Hui 






Axis2 codegen pretty print problem

2006-02-06 Thread Yu-Hui Jin
Hi,I used Axis2's WSDL2Java to generate the code. The generation works fine. But I'm getting the following messages among the output: Jalopy not found - unable to pretty print /Item.java
Is there a package missing here? regards,-Hui


Re: Axis2 WSDL compliance and intelligent support for generation

2006-02-06 Thread Anne Thomas Manes
Note that @type is allowed in the  definition only when using RPC style. If you are using document style, then you must specify @element instead.AnneOn 2/5/06, 
Yu-Hui Jin <[EMAIL PROTECTED]> wrote:
I noticed that the code generator WSDL2Java for Axis can't take some of the allowable syntax in WSDL 1.1. In WSDL 1.1. spec, the "type" is allowed in a message body:   
      However, WSDL2Java throws NullPointerException on this. I had to define an element ItemId of "xs:string" in the  section, then use that element instead. 
Are there any other non-supported features in WSDL 1.1. that we should be aware of ??BTW, another suggestion is if the code generator could be made more intelligent, that it'll report the specific syntax error on the line of the WSDL, that'll make our life a whole lot easier.  Making WSDL 2 Java generation work and compilable is a very demanding and painful job.
regards,-Hui 




Re: consuming .NET webservice with xsd:any

2006-02-06 Thread Anne Thomas Manes
Yes, this represents a .NET Dataset. You should convince the service provider to convert the Dataset to a defined type.AnneOn 2/6/06, Planting, Hans
 <[EMAIL PROTECTED]> wrote:
Hi there,I have an application that consumes a .NET webservice using Axis 1.2.1containing the following construct:     As far as I know neither the JAXRPC 1.1 nor the WSDL 
1.1 specificationdefines an element having a ref to a 'schema' and Axis does not seem togenerate any specific code for the element. This being a .NET service Iassume the construct is used to represent a DataSet.
My question is this: is there any support planned or available for dynamictypes like DataSet (eventhough it is not standardized yet) ??Thanks,Hans--The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the namedaddressee or an authorized designee, you may not copy or use it, or discloseit to anyone else. If you received it in error please notify us immediately
and then destroy it.


consuming .NET webservice with xsd:any

2006-02-06 Thread Planting, Hans
Hi there,

I have an application that consumes a .NET webservice using Axis 1.2.1
containing the following construct:


  
 

  


As far as I know neither the JAXRPC 1.1 nor the WSDL 1.1 specification
defines an element having a ref to a 'schema' and Axis does not seem to
generate any specific code for the element. This being a .NET service I
assume the construct is used to represent a DataSet. 
My question is this: is there any support planned or available for dynamic
types like DataSet (eventhough it is not standardized yet) ?? 

Thanks,

Hans


-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 



server-config.wsdd disappears from WEB-INF/ when restarting tomcat

2006-02-06 Thread Mirek Kopriva
Hi,
I have problems with webservices deployment on axis 1.2 when restarting tomcat.
The previously created server-config.
wsdd simply dissapears from WEB-INF.
This started to happen when I started using context.xml in META-INF
(needed because of using DataSources form JNDI).

I believe this should be set by some attributes in context.xml, this is how
it starts:

etc...
Any ideas greatly welcomed.
Best Regards,
mk



Axis Web-service available only on port 8443 - not 8080

2006-02-06 Thread Anna Krajewska



Hi
 
I want to know if it is possible to configure 
axis web-service system on tomcat so that one service would be available on port 
8443 (and only 8443) and another one on port 8080 (and only that) ? Or I need to 
choose the port for all of my web-services and open it and close the other one 
completely (comment proper connector in tomcat server.xml config 
file)?
 
Regards
 
Ania


Re: Web service receiving a binary file

2006-02-06 Thread Simone Bonazzoli
when i find a solution i will send an email to the mailing list ok?SImone2006/2/6, [EMAIL PROTECTED] <
[EMAIL PROTECTED]>:H,I'll take a look in this... I didn't know about this in AXIS.
Thanks a lot!!Simone, would you mind in we share our experiences on it?ThanksCitando Simone Bonazzoli <[EMAIL PROTECTED]>:> ok, thank you for information i will try it as soon as possible.
>> Simone>> 2006/2/6, German Sakaryan <[EMAIL PROTECTED]>:> >> >> > java, wsdd are there.
> >> > wsdl ist automatically generated by AXIS.> >> > Simone Bonazzoli schrieb:> > > ok, thanks for informations :)> > > but the attachments sample is complete of source code, wsdd,wsdl, xsd ?
> > >> > > Simone> > >> > > 2006/2/6, German Sakaryan < [EMAIL PROTECTED]> > > [EMAIL PROTECTED]>>:> > >> > > Hi,> > >> > > you can transfer not only single files but also directories, and the
> > > size of the file is less important.> > >> > > German Sakaryan> > >> > > Simone Bonazzoli schrieb:> > >  > i will look ... but why is better to use attachments instead of
> > swa?> > >  >> > >  > Simone> > >  >> > >  > 2006/2/6, German Sakaryan < [EMAIL PROTECTED]
> > > [EMAIL PROTECTED]>> > >  > [EMAIL PROTECTED]
> > > [EMAIL PROTECTED]>>>:> > >  >> > >  > Hi,> > >  > It is better to use attachments.
> > >  > An example you can find in your axis installation> > >  >> > >  > \axis\samples\attachments> > >  > --> > >  > German Sakaryan
> > >  >> > >  >> > >  >> > >  >> > >  > Fabrício schrieb:> > >  >  > Is it possible to create a web service that receives a
> > > binary file? I> > >  >  > want to create a wrapper web service for a program and> > > this program> > >  >  > receives a binary input file. Is it possible to receive
> > > this file> > >  > by the> > >  >  > soap message?> > >  >  >> > >  >  >> > >  >  >
> > >  >  > If it possible… Does anyone have a sample from this case?> > >  >  >> > >  >  >> > >  >  >> > >  >  > Cheers.
> > >  >  >> > >  >> > >  >> > >  >> > >  >> > >  >> > >> > >> > >
> > >> >> >> > --> > Dr.-Ing. German Sakaryan> >> > Computer Science Dept.> > University of Rostock> > Tel:  +49 381 498-7585
> > Fax:  +49 381 498-7642> > E-mail: [EMAIL PROTECTED]> > Home: http://www.informatik.uni-rostock.de/~gs137
> >> >> >> >>This message was sent using IMP, the Internet Messaging Program.



Re: Web service receiving a binary file

2006-02-06 Thread fabricio
H,

I'll take a look in this... I didn't know about this in AXIS.

Thanks a lot!!

Simone, would you mind in we share our experiences on it?

Thanks


Citando Simone Bonazzoli <[EMAIL PROTECTED]>:

> ok, thank you for information i will try it as soon as possible.
> 
> Simone
> 
> 2006/2/6, German Sakaryan <[EMAIL PROTECTED]>:
> >
> >
> > java, wsdd are there.
> >
> > wsdl ist automatically generated by AXIS.
> >
> > Simone Bonazzoli schrieb:
> > > ok, thanks for informations :)
> > > but the attachments sample is complete of source code, wsdd,wsdl, xsd ?
> > >
> > > Simone
> > >
> > > 2006/2/6, German Sakaryan < [EMAIL PROTECTED]
> > > >:
> > >
> > > Hi,
> > >
> > > you can transfer not only single files but also directories, and the
> > > size of the file is less important.
> > >
> > > German Sakaryan
> > >
> > > Simone Bonazzoli schrieb:
> > >  > i will look ... but why is better to use attachments instead of
> > swa?
> > >  >
> > >  > Simone
> > >  >
> > >  > 2006/2/6, German Sakaryan < [EMAIL PROTECTED]
> > > 
> > >  >  > > >>:
> > >  >
> > >  > Hi,
> > >  > It is better to use attachments.
> > >  > An example you can find in your axis installation
> > >  >
> > >  > \axis\samples\attachments
> > >  > --
> > >  > German Sakaryan
> > >  >
> > >  >
> > >  >
> > >  >
> > >  > Fabrício schrieb:
> > >  >  > Is it possible to create a web service that receives a
> > > binary file? I
> > >  >  > want to create a wrapper web service for a program and
> > > this program
> > >  >  > receives a binary input file. Is it possible to receive
> > > this file
> > >  > by the
> > >  >  > soap message?
> > >  >  >
> > >  >  >
> > >  >  >
> > >  >  > If it possible… Does anyone have a sample from this case?
> > >  >  >
> > >  >  >
> > >  >  >
> > >  >  > Cheers.
> > >  >  >
> > >  >
> > >  >
> > >  >
> > >  >
> > >  >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Dr.-Ing. German Sakaryan
> >
> > Computer Science Dept.
> > University of Rostock
> > Tel:  +49 381 498-7585
> > Fax:  +49 381 498-7642
> > E-mail: [EMAIL PROTECTED]
> > Home: http://www.informatik.uni-rostock.de/~gs137
> >
> >
> >
> >
> 





This message was sent using IMP, the Internet Messaging Program.


Client Authorization/Authentication

2006-02-06 Thread German Sakaryan

Hello,

I am using axis 1.3.
Are there any way to provide client authorization while invoking a web
service?
So that, for each of the web services there is a list of users which can
use it.

Thank you

German Sakaryan


Re: Web service receiving a binary file

2006-02-06 Thread German Sakaryan

Hello,

I am using axis 1.3.
Are there any way to provide client authorization while invoking a web 
service?
So that, for each of the web services there is a list of users which can 
use it.


THank you

German Sakaryan


Re: Reg WSDL2Java - WSDL 2.0 HTTP Binding extension

2006-02-06 Thread Ajith Ranabahu
Hi Venkat,
WSDL 2.0 is not supported yet. We do not have a working WSDL 2.0 reader.
However the codegen engine works off WOM (not WSDL4J) hence if the WSDL
2.0 reader is done, we are all set to generate code for it :-)

And yes, it is perfectly possible for the codegen to generate code for
the HTTP binding. We already have the client API support for doing the
REST calls and it should be a matter of putting in a correct template !



--
Ajith Ranabahu


Re: Web service receiving a binary file

2006-02-06 Thread Simone Bonazzoli
ok, thank you for information i will try it as soon as possible.Simone2006/2/6, German Sakaryan <[EMAIL PROTECTED]
>:java, wsdd are there.wsdl ist automatically generated by AXIS.
Simone Bonazzoli schrieb:> ok, thanks for informations :)> but the attachments sample is complete of source code, wsdd,wsdl, xsd ?>> Simone>> 2006/2/6, German Sakaryan < 
[EMAIL PROTECTED]> [EMAIL PROTECTED]>>:>> Hi,>> you can transfer not only single files but also directories, and the
> size of the file is less important.>> German Sakaryan>> Simone Bonazzoli schrieb:>  > i will look ... but why is better to use attachments instead of swa?
>  >>  > Simone>  >>  > 2006/2/6, German Sakaryan < [EMAIL PROTECTED]> 
[EMAIL PROTECTED]>>  > [EMAIL PROTECTED]> 
[EMAIL PROTECTED]>>>:>  >>  > Hi,>  > It is better to use attachments.>  > An example you can find in your axis installation
>  >>  > \axis\samples\attachments>  > -->  > German Sakaryan>  >>  >>  >>  >>  > Fabrício schrieb:
>  >  > Is it possible to create a web service that receives a> binary file? I>  >  > want to create a wrapper web service for a program and> this program
>  >  > receives a binary input file. Is it possible to receive> this file>  > by the>  >  > soap message?>  >  >>  >  >
>  >  >>  >  > If it possible… Does anyone have a sample from this case?>  >  >>  >  >>  >  >>  >  > Cheers.
>  >  >>  >>  >>  >>  >>  >--Dr.-Ing. German SakaryanComputer Science Dept.
University of RostockTel:  +49 381 498-7585Fax:  +49 381 498-7642E-mail: [EMAIL PROTECTED]Home: 
http://www.informatik.uni-rostock.de/~gs137


Re: Web service receiving a binary file

2006-02-06 Thread German Sakaryan


java, wsdd are there.

wsdl ist automatically generated by AXIS.

Simone Bonazzoli schrieb:

ok, thanks for informations :)
but the attachments sample is complete of source code, wsdd,wsdl, xsd ?

Simone

2006/2/6, German Sakaryan < [EMAIL PROTECTED] 
>:


Hi,

you can transfer not only single files but also directories, and the
size of the file is less important.

German Sakaryan

Simone Bonazzoli schrieb:
 > i will look ... but why is better to use attachments instead of swa?
 >
 > Simone
 >
 > 2006/2/6, German Sakaryan < [EMAIL PROTECTED]

 > >>:
 >
 > Hi,
 > It is better to use attachments.
 > An example you can find in your axis installation
 >
 > \axis\samples\attachments
 > --
 > German Sakaryan
 >
 >
 >
 >
 > Fabrício schrieb:
 >  > Is it possible to create a web service that receives a
binary file? I
 >  > want to create a wrapper web service for a program and
this program
 >  > receives a binary input file. Is it possible to receive
this file
 > by the
 >  > soap message?
 >  >
 >  >
 >  >
 >  > If it possible… Does anyone have a sample from this case?
 >  >
 >  >
 >  >
 >  > Cheers.
 >  >
 >
 >
 >
 >
 >







--
Dr.-Ing. German Sakaryan

Computer Science Dept.
University of Rostock
Tel:  +49 381 498-7585
Fax:  +49 381 498-7642
E-mail: [EMAIL PROTECTED]
Home: http://www.informatik.uni-rostock.de/~gs137





Re: Web service receiving a binary file

2006-02-06 Thread Simone Bonazzoli
now i see the sample and there are all source file but the wsdl is not there... can anyone send me a wsdl for the attachments sample?Simone2006/2/6, Simone Bonazzoli <
[EMAIL PROTECTED]>:ok, thanks for informations :) but the attachments sample is complete of source code, wsdd,wsdl, xsd ?
Simone2006/2/6, German Sakaryan <
[EMAIL PROTECTED]>:
Hi,you can transfer not only single files but also directories, and the
size of the file is less important.German SakaryanSimone Bonazzoli schrieb:> i will look ... but why is better to use attachments instead of swa?>> Simone>> 2006/2/6, German Sakaryan <
[EMAIL PROTECTED]> 
[EMAIL PROTECTED]>>:>> Hi,
> It is better to use attachments.> An example you can find in your axis installation>> \axis\samples\attachments> --> German Sakaryan>>>

>> Fabrício schrieb:>  > Is it possible to create a web service that receives a binary file? I>  > want to create a wrapper web service for a program and this program>  > receives a binary input file. Is it possible to receive this file
> by the>  > soap message?>  >>  >>  >>  > If it possible… Does anyone have a sample from this case?>  >>  >

>  >>  > Cheers.>  >>



Re: Web service receiving a binary file

2006-02-06 Thread Simone Bonazzoli
ok, thanks for informations :) but the attachments sample is complete of source code, wsdd,wsdl, xsd ?Simone2006/2/6, German Sakaryan <
[EMAIL PROTECTED]>:Hi,you can transfer not only single files but also directories, and the
size of the file is less important.German SakaryanSimone Bonazzoli schrieb:> i will look ... but why is better to use attachments instead of swa?>> Simone>> 2006/2/6, German Sakaryan <
[EMAIL PROTECTED]> [EMAIL PROTECTED]>>:>> Hi,
> It is better to use attachments.> An example you can find in your axis installation>> \axis\samples\attachments> --> German Sakaryan>>>
>> Fabrício schrieb:>  > Is it possible to create a web service that receives a binary file? I>  > want to create a wrapper web service for a program and this program>  > receives a binary input file. Is it possible to receive this file
> by the>  > soap message?>  >>  >>  >>  > If it possible… Does anyone have a sample from this case?>  >>  >
>  >>  > Cheers.>  >>


Re: Web service receiving a binary file

2006-02-06 Thread German Sakaryan

Hi,

you can transfer not only single files but also directories, and the 
size of the file is less important.


German Sakaryan

Simone Bonazzoli schrieb:

i will look ... but why is better to use attachments instead of swa?

Simone

2006/2/6, German Sakaryan <[EMAIL PROTECTED] 
>:


Hi,
It is better to use attachments.
An example you can find in your axis installation

\axis\samples\attachments
--
German Sakaryan




Fabrício schrieb:
 > Is it possible to create a web service that receives a binary file? I
 > want to create a wrapper web service for a program and this program
 > receives a binary input file. Is it possible to receive this file
by the
 > soap message?
 >
 >
 >
 > If it possible… Does anyone have a sample from this case?
 >
 >
 >
 > Cheers.
 >











Re: Web service receiving a binary file

2006-02-06 Thread Simone Bonazzoli
i will look ... but why is better to use attachments instead of swa?Simone2006/2/6, German Sakaryan <[EMAIL PROTECTED]
>:Hi,It is better to use attachments.An example you can find in your axis installation
\axis\samples\attachments--German SakaryanFabrício schrieb:> Is it possible to create a web service that receives a binary file? I> want to create a wrapper web service for a program and this program
> receives a binary input file. Is it possible to receive this file by the> soap message? If it possible… Does anyone have a sample from this case?>>>
> Cheers.>