Re: Does Axis2 do anything with WS-Addressing and WS-Policy in WSDLs?

2008-10-27 Thread Mike_Way

Hi,

I've not used the WS-Policy implementation on AXIS-2 but believe in supports
Apache Neethi which I have used as part of the WSO2-WSAS server and does
support WS-Policy well.

The best documentation I have found is at 
http://docs.huihoo.com/apache/axis/axis2-1.0-docs/xdocs/1_0/WS_policy.html
http://docs.huihoo.com/apache/axis/axis2-1.0-docs/xdocs/1_0/WS_policy.html  
but I think it will take you some experimentation to get it to work! If I
get a few spare minutes, I'll dig deeper.

I hope that is some use to you.

Mike

http://www.webwrights.co.uk/ Web Wrights - Service Oriented Architecture 


dkarr wrote:
> 
> If I have a WSDL that references WS-Addressing and WS-Policy, using a
> policy expression that supposedly makes WS-Addressing "required" in the
> message, along with the "wsam:Action" attribute value, does Axis2 do
> anything useful with that information?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Does-Axis2-do-anything-with-WS-Addressing-and-WS-Policy-in-WSDLs--tp20189735p20191136.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Rampart one way only

2008-10-27 Thread RonnieMJ

I tried putting moving the Security phase to the end of that PhaseOrder (for
both InFaultFlow and InFault).  It didn't help.  Maybe it's because I'm
using axis2 1.3.

I'm loading my policies in one fail swoop from code (not from the
service.xml file).

options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, 
loadPolicy(confDir + "/clientSecurityPolicy.xml"));
stub._getServiceClient().setOptions(options);


so I have 2 questions.
1.  Would I need to switch (back) to 1.4.1 to use message level security?
2.  Would I specify this in my code or my policy file?




Nunny wrote:
> 
> Hi Mary,
>   I  think best way to solve this problem is to use message level
> policies. You can attach policies at message level, so they will be
> effective either on in the in flow or our flow. But still we have the
> problem that we can't specify policies for fault flows, For example, if we
> specify a policy for in message it will be applicable for both in message
> and in fault messages.
>  In Axis2 , we have two kinds phases global phases and operation
> phases.
> This article [1] by Deepal explains the whole concept.   Phases before
> dispatch phases are known as global phases and they will be called for
> each
> and every message. Security is a global phase. We need security as a
> global
> phase become dispatching mechanism like body based dispatching which used
> to
> dispatch operations need messages to be decrypted before they can act on
> the
> message. But having the security phase doesn't have any effect if rampart
> is
> not engaged. As it is described in the article, it is the rampart module
> that adds handlers to the phase. Even if the Rampart is engaged, if the
> effective security policy of the message is null, then those handlers will
> not have any effect.
> 
> thanks,
> nandana
> 
> [1] - http://www.packtpub.com/article/handler-and-phase-in-apache-axis
> 
> On Sat, Oct 25, 2008 at 4:17 AM, Mary Thompson <[EMAIL PROTECTED]> wrote:
> 
>> I ran into the same problem when I switched to ws-policy. First I had to
>> add the security phase to infaultflow and then the unsigned fault
>> messages
>> were not acceptable. I "fixed" it by moving the security phase in the
>> infaultflow to the end the phase order after OperationInFaultPhase
>> effectively causing it to be ignored.
>>
>> I wonder if the piece of code that insists you add a security phase when
>> you don't want any security is wrong. Or if there is some way to indicate
>> a
>> null security phase.
>>
>> Mary Thompson
>>
>>
>>
>> RonnieMJ wrote:
>>
>>> Ok I added an axis2.xml file in my repo, however commenting out any
>>> Security
>>> phase causes errors indicating that the Security phase is missing.
>>>
>>> I'm wondering if you would ALSO have to remove any phase info from the
>>> modules.xml file in the rampart mar?
>>>
>>> In this case I'm the client, but receiving a response.  Wouldn't I want
>>> to
>>> remove the security phase from the InFlow not out?
>>>
>>>
>>>
>>> Chris82KS wrote:
>>>
 Hello,
 inside the axis2.xml you have the different flows (inFlow, OutFlow,
 InFault and OutFault). Just remove the phase "Security" from the
 OutFlow
 and the OutFaultFlow.

 Greetings
 Christian


 - original Nachricht 

 Betreff: Rampart one way only
 Gesendet: Do, 23. Okt 2008
 Von: RonnieMJ<[EMAIL PROTECTED]>

  Is it possible to have rampart NOT be concerned with security on a
> return
> message in a synchronous transaction?
>
> Example:
> I send to server X with security headers.  They return an OK message
> or
> a
> fault.  Neither of which would have security heading information.
> --
> View this message in context:
> http://www.nabble.com/Rampart-one-way-only-tp20133511p20133511.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  --- original Nachricht Ende 


 -
 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]
>>
>>
> 
> 
> -- 
> Nandana Mihindukulasooriya
> WSO2 inc.
> 
> http://nandana83.blogspot.com/
> http://www.wso2.org
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Rampart-one-way-only-tp20133511p20190479.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Does Axis2 do anything with WS-Addressing and WS-Policy in WSDLs?

2008-10-27 Thread Karr, David
If I have a WSDL that references WS-Addressing and WS-Policy, using a
policy expression that supposedly makes WS-Addressing "required" in the
message, along with the "wsam:Action" attribute value, does Axis2 do
anything useful with that information?


Axis2 1.3 / 1.4 -- How to send and receive attachments

2008-10-27 Thread Srinivasan.Sairam
I am creating two web services ... first service has to accept a text file as 
one of the input argument for some processing and the second service has to 
return a text file to the caller.  Is there any example that I can follow to do 
this?

Any pointer would be very much appreciated.

Thanks

Sai


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



Re: soapmonitor - where to place applet classes

2008-10-27 Thread robert lazarski
I've never seen internal jvm errors like this before - particularly
applet related ones. What browser / OS are you using? Maybe try using
a later jvm may help. I'd try switching browsers too.

HTH,
Robert

2008/10/27 lqg629 <[EMAIL PROTECTED]>:
>
> Hi,
> I am running tomcat5.5 and axis2-1.4.My intention is using
> soapmonitor .but when I visit httP://localhost:8080/axis2/SOAPMonitor,the
> console display follow trace:
> Java Plug-in 1.5.0
> 使用 JRE 版本 1.5.0 Java HotSpot(TM) Client VM
> 用户主目录 = C:\Documents and Settings\lyn
> 
> c:   清除控制台窗口
> f:   终结在结束队列上的对象
> g:   垃圾收集
> h:   显示此帮助消息
> l:   转储类载入程序列表
> m:   打印内存使用
> o:   触发日志记录
> p:   重新载入代理配置
> q:   隐藏控制台
> r:   重新载入策略配置
> s:   转储系统和部署属性
> t:   转储线程列表
> v:   转储线程堆栈
> x:   清除类载入程序高速缓存
> 0-5: 设置跟踪级别为
> 
> java.lang.NullPointerException
>at javax.swing.border.EmptyBorder.(Unknown Source)
>at
> com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.getTableCellRendererComponent(Unknown
> Source)
>at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown
> Source)
>at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown
> Source)
>at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown
> Source)
>at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown
> Source)
>at javax.swing.JComponent.getPreferredSize(Unknown Source)
>at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source)
>at java.awt.Container.preferredSize(Unknown Source)
>at java.awt.Container.getPreferredSize(Unknown Source)
>at javax.swing.JComponent.getPreferredSize(Unknown Source)
>at javax.swing.ScrollPaneLayout.preferredLayoutSize(Unknown Source)
>at java.awt.Container.preferredSize(Unknown Source)
>at java.awt.Container.getPreferredSize(Unknown Source)
>at javax.swing.JComponent.getPreferredSize(Unknown Source)
>at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
>at java.awt.Container.preferredSize(Unknown Source)
>at java.awt.Container.getPreferredSize(Unknown Source)
>at javax.swing.JComponent.getPreferredSize(Unknown Source)
>at
> javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizeOfComponent(Unknown
> Source)
>at
> javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizes(Unknown
> Source)
>at
> javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.resetToPreferredSizes(Unknown
> Source)
>at
> javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.layoutContainer(Unknown
> Source)
>at java.awt.Container.layout(Unknown Source)
>at java.awt.Container.doLayout(Unknown Source)
>at java.awt.Container.validateTree(Unknown Source)
>at java.awt.Container.validateTree(Unknown Source)
>at java.awt.Container.validateTree(Unknown Source)
>at java.awt.Container.validateTree(Unknown Source)
>at java.awt.Container.validateTree(Unknown Source)
>at java.awt.Container.validateTree(Unknown Source)
>at java.awt.Container.validateTree(Unknown Source)
>at java.awt.Container.validateTree(Unknown Source)
>at java.awt.Container.validate(Unknown Source)
>at sun.plugin.util.GrayBoxPainter.freezePainting(Unknown Source)
>at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
>at sun.applet.AppletPanel.run(Unknown Source)
>at java.lang.Thread.run(Unknown Source)
> Exception in thread "thread
> applet-org.apache.axis2.soapmonitor.applet.SOAPMonitorApplet.class"
> java.lang.NullPointerException
>at javax.swing.border.EmptyBorder.(Unknown Source)
>at
> com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.getTableCellRendererComponent(Unknown
> Source)
>at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown
> Source)
>at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown
> Source)
>at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown
> Source)
>at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown
> Source)
>at javax.swing.JComponent.getPreferredSize(Unknown Source)
>at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source)
>at java.awt.Container.preferredSize(Unknown Source)
>at java.awt.Container.getPreferredSize(Unknown Source)
>at javax.swing.JComponent.getPreferredSize(Unknown Source)
>at javax.swing.ScrollPaneLayout.preferredLayoutSize(Unknown Source)
>at java.awt.Container.preferredSize(Unknown Source)
>at java.awt.Container.getPreferredSize(Unknown Source)
>at javax.swing.JComponent.getPreferredSize(Unknown Source)
>at

Re: soapmonitor - where to place applet classes

2008-10-27 Thread lqg629

Hi,
I am running tomcat5.5 and axis2-1.4.My intention is using 
soapmonitor .but when I visit httP://localhost:8080/axis2/SOAPMonitor,the
console display follow trace:
Java Plug-in 1.5.0
使用 JRE 版本 1.5.0 Java HotSpot(TM) Client VM
用户主目录 = C:\Documents and Settings\lyn

c:   清除控制台窗口
f:   终结在结束队列上的对象
g:   垃圾收集
h:   显示此帮助消息
l:   转储类载入程序列表
m:   打印内存使用
o:   触发日志记录
p:   重新载入代理配置
q:   隐藏控制台
r:   重新载入策略配置
s:   转储系统和部署属性
t:   转储线程列表
v:   转储线程堆栈
x:   清除类载入程序高速缓存
0-5: 设置跟踪级别为

java.lang.NullPointerException
at javax.swing.border.EmptyBorder.(Unknown Source)
at
com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.getTableCellRendererComponent(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown
Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.ScrollPaneLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizeOfComponent(Unknown
Source)
at
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizes(Unknown
Source)
at
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.resetToPreferredSizes(Unknown
Source)
at
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.layoutContainer(Unknown
Source)
at java.awt.Container.layout(Unknown Source)
at java.awt.Container.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at sun.plugin.util.GrayBoxPainter.freezePainting(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "thread
applet-org.apache.axis2.soapmonitor.applet.SOAPMonitorApplet.class"
java.lang.NullPointerException
at javax.swing.border.EmptyBorder.(Unknown Source)
at
com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.getTableCellRendererComponent(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown
Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.ScrollPaneLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizeOfComponent(Unknown
Source)
at
javax.swing

Re: soapmonitor - where to place applet classes

2008-10-27 Thread lqg629

Hi,
I am running tomcat5.5 and axis2-1.4.My intention is using 
soapmonitor .but when I visit httP://localhost:8080/axis2/SOAPMonitor,the
console display follow trace:
Java Plug-in 1.5.0
使用 JRE 版本 1.5.0 Java HotSpot(TM) Client VM
用户主目录 = C:\Documents and Settings\lyn

c:   清除控制台窗口
f:   终结在结束队列上的对象
g:   垃圾收集
h:   显示此帮助消息
l:   转储类载入程序列表
m:   打印内存使用
o:   触发日志记录
p:   重新载入代理配置
q:   隐藏控制台
r:   重新载入策略配置
s:   转储系统和部署属性
t:   转储线程列表
v:   转储线程堆栈
x:   清除类载入程序高速缓存
0-5: 设置跟踪级别为

java.lang.NullPointerException
at javax.swing.border.EmptyBorder.(Unknown Source)
at
com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.getTableCellRendererComponent(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown
Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.ScrollPaneLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizeOfComponent(Unknown
Source)
at
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizes(Unknown
Source)
at
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.resetToPreferredSizes(Unknown
Source)
at
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.layoutContainer(Unknown
Source)
at java.awt.Container.layout(Unknown Source)
at java.awt.Container.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at sun.plugin.util.GrayBoxPainter.freezePainting(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "thread
applet-org.apache.axis2.soapmonitor.applet.SOAPMonitorApplet.class"
java.lang.NullPointerException
at javax.swing.border.EmptyBorder.(Unknown Source)
at
com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.getTableCellRendererComponent(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown
Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown
Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.ScrollPaneLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at
javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizeOfComponent(Unknown
Source)
at
javax.swing

Re: [AXIS2] WSDL2Java problem with array type

2008-10-27 Thread Deepal jayasinghe
Hi Sagara ,
Hmm ,then it should be a problem with ADB , let's wait till Amila reply
to this or create a JIRA attaching the WSDL.

Thank you!
Deepal
>
> Hi guys ,
>
> I have deployed a POJO service that has a method something slimier to
> following signature
>
>  / public long createUser (UserProfile pr , Contacts[] contacts){
> }/
>
> where UserProfile and Contacts are  POJOs , this will generate 
> correct   WSDL file. but when I created a WS client using WSDL2JAVA
> tool with default ADB binding, It genarate   both of above POJO
> classes . Also another class called *Collection* that extended from
> *ADBBean* .
>
> 1.) AddContacts(Collection col) take  Collection as a argument, but
> there is no method define inside the Collection class to set Array of
> Contacts or to set any implementation  of Java.util. Collection , How
> can I include set of  Contacts objects in to request ?
>
> 2.) Can I solve this problem by using any other data binding option?
>
>
> Thanks ,
>
> Sagara Gunathunga
>
> Blog - ssagara.blogspot.com 
> Web - http://sagaras.awardspace.com/


-- 
Thank you!


http://blogs.deepal.org


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



AW: AW: Axis2 wsdl2java client: How to add processing instructions

2008-10-27 Thread Martin.Berns
Hi Martin,
 
thanks a lot for your answer. 
As i mentioned in my first email, i am indeed implementing a RESTful client, 
where the XML-Request is just the body of a HTTP POST. 
The server i am trying to interact with, is no axis2 server, nor is it a 
Webservice at all, but a normal Servlet run by Apache Coyote. This servlet is 
acting like a RESTful Server, with only one restriction: It requires a 
processing instruction in front of the XML-Requst.
 
Currently my axis2-client is able to do the request in the Form
 
HTTP HEADERs
XML Request
 
but what i need is 
 
HTTP HEADERs

XML Request
 
With other words i need is a possibility to enhance the body of the HTTP POST 
with one line containg the processing instruction .
 
Thanks in advance
Martin
 
 
 



Von: Martin Gainty [mailto:[EMAIL PROTECTED] 
Gesendet: Samstag, 25. Oktober 2008 03:48
An: axis-user@ws.apache.org
Betreff: RE: AW: Axis2 wsdl2java client: How to add processing instructions


Martin-

there is no dynamic operation confugration available (perhaps with REST) but 
none with typical doc-literal
so you'll need to ensure your webservice supports the operation before 
attempting ant client to contact that service

so when you reference the service at
http://HOST:PORT/axis2/services
what operations and what parameters for those operations are available to the 
client?

Viel Gluck
Martin-

> Subject: AW: Axis2 wsdl2java client: How to add processing instructions
> Date: Fri, 24 Oct 2008 17:32:46 +0200
> From: [EMAIL PROTECTED]
> To: axis-user@ws.apache.org
> 
> Hi,
> 
> the response is now read correctly by axis2, so please forget about point b). 
> (For your interest: It was a trailing "/" in the namespace uri that made the 
> difference between server and client and forced this problem).
> 
> So there is only one problem left - point a): 
> I need a way to put a processing instruction before my requests like:
> 
> 
> 
> Any hint is highly appreciated!
> Thanks in advance and best regards
> 
> Martin
> 
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 23. Oktober 2008 13:17
> An: axis-user@ws.apache.org
> Betreff: Axis2 wsdl2java client: How to add processing instructions
> 
> Hi,
> 
> 
> I am trying to implement a client with axis2 1.4.1 (REST) for a "legacy 
> webservice". This webservice is defined as just sending XML per HTTP POST 
> (x-www-form-urlencoded) and getting the answer message as a supplement of the 
> http response. 
> I generated a WSDL file according to the specification provided by the 
> webservice provider and created a client with wsdl2java (ADB). This is 
> working pretty fine, but i have two problems, i couldn't solve so far:
> 
> a) My requests are answered with an error message hinting towards two missing 
> processing instructions, at the beginnning of the request like
> 
>  
> 
> I found a mailthread(Need for Child API in OMDocument:
> http://markmail.org/search/?q=axis2+%22Need+for+Child+API+in+OMDocument+
> %22 ) that suggests a possibility, to add such instructions before the 
> transport, but i did not find a way to use this. Can anybody give me a hint, 
> how to do this or where to look further? Or is it possible to declare such 
> processing instructions already inside the WSDL?
> 
> b) the received http response of the webservice (containing the error message 
> in the XML supplement) is not recognized by axis2, though it looks quite 
> correct. The error message is
> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
> Unexpected subelement EngineAnswer
> I have not finally analyzed the exact reason by debugging through the code, 
> but I am affraid i will have to manipulate the http response in a similar 
> manner like the request, before it is handed over to the axis2 parsing. So, 
> if anybody has a way to achieve this at his fingertips, his help is 
> appreciated very much!
> 
> I'm pretty new to axis ( and java as well ) so please forgive me, if this is 
> a BRTFM.
> 
> 
> Thanks in advance for any hint and best regards Martin Berns
> 
> 
> P.S.: My actual configuration is:
> 
> AxisConfiguration axisConfig = new AxisConfiguration();
> ConfigurationContext myConfigContext;
> try {
> myConfigContext =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem(nul
> l , null);
> } catch (AxisFault e1) {
> // TODO Auto-generated catch block
> e1.printStackTrace();
> return;
> } 
> myConfigContext.setProperty(Constants.Configuration.ENABLE_REST,
> Constants.VALUE_TRUE);
> myConfigContext.setProperty(Constants.Configuration.HTTP_METHOD , 
> org.apache.axis2.Constants.Configuration.HTTP_METHOD_POST);
> 
> myConfigContext.setProperty(Constants.Configuration.DISABLE_SOAP_ACTION,
> Constants.VALUE_TRUE);
> myConfigContext.setProperty(Constants.Configuration.CONTENT_TYPE , 
> HTTPConstants.MEDIA_TYPE_X_WWW_FORM);
> 
> myConfigContext.setProperty(org.apache.axis2.transport.http.HTTPConstant

Charset encoding issues in Axis2?

2008-10-27 Thread saurav . chatterjee
Hi,

I am having some problem with a Axis2 based webservice. The service by and 
large returns the data from the database - either directly in form of 
XMLObject or in the form of flat XML file. But in this process it is 
modifying '<' to '<' and keeping '>' unchanged. So a data in the 
database which reads as Mgr > 1 year in is getting read as Mgr > 1 year in 
whereas Mgr < 1 year in is getting retrieved as Mgr < 1 year in.

Any idea what can be the possible reason and the solution. We are using 
the default encoding style for the response.

Regards,
Saurav Chatterjee


_
The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or 
taking of any action in reliance upon, this information by persons or 
entities other than the intended recipient is prohibited.   If you 
received this in error, please contact the sender and delete the material 
from any computer.

[AXIS2] WSDL2Java problem with array type

2008-10-27 Thread Sagara Gunathunga
Hi guys ,

I have deployed a POJO service that has a method something slimier to
following signature

 * public long createUser (UserProfile pr , Contacts[] contacts){
}*

where UserProfile and Contacts are  POJOs , this will generate  correct
WSDL file. but when I created a WS client using WSDL2JAVA tool with default
ADB binding, It genarate   both of above POJO classes . Also another class
called *Collection* that extended from *ADBBean* .

1.) AddContacts(Collection col) take  Collection as a argument, but there is
no method define inside the Collection class to set Array of Contacts or to
set any implementation  of Java.util. Collection , How can I include set of
Contacts objects in to request ?

2.) Can I solve this problem by using any other data binding option?


Thanks ,

Sagara Gunathunga

Blog - ssagara.blogspot.com
Web - http://sagaras.awardspace.com/