Re: [Axis2] Temporary files/ Stress testing with Axis2 1.2 [SEC=UNCLASSIFIED]

2007-07-03 Thread greg . lee-shoy
Hello Asankha,

At the moment we are running on Windows XP, so we'll have to do some 
research about how to increase the open file limit on Windows. 

We did some further testing on this issue, and found that the "Too many 
open files" error only seems to occur when hot deployment is set to true 
in axis2.xml, and it occurs after ~400 iterations of loading the 
configurationContext.  Also, even with the patch we put into the 
org.apache.axis2.deployment.util.Utils class, another problem 
(OutOfMemoryError) occurs after ~2826 iterations - so it's not really 
a permanent fix. 

When hot deployment is set to false however, no problems seem to occur 
even after 10 iterations. 

I suspect this might be related to the issue raised previously in this 
user forum regarding cleanup of AxisConfigurators (see 
http://mail-archives.apache.org/mod_mbox/ws-axis-user/200706.mbox/[EMAIL 
PROTECTED]
). 

Also, when we substituted the nightly build from 3rd July into the 
dependencies for the test (leaving hotdeployment as true), we get the 
original "Too many open files" error after 400 iterations. 
I've created a issue in JIRA for this (
https://issues.apache.org/jira/browse/AXIS2-2899) and attached the 
configuration/modules we're using to the issue.

Thanks,
Greg





"Asankha C. Perera" <[EMAIL PROTECTED]> 
02/07/2007 10:03 PM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Re: [Axis2] Temporary files/ Stress testing with Axis2 1.2 
[SEC=UNCLASSIFIED]
Reference


 Expires 






Greg

Are you running the system on Windows or Linux? The OS decides the 
number of files a process can open. If you are using a Unix system, try 
to increase the number of files as follows. This is not a solution for a 
possible Axis2 issue, but something to make sure before you run a 
typical load test. You may be able to find alternatives for Windows on 
Google. Maybe 
http://coldfused.blogspot.com/2007/02/mystery-of-too-many-open-files.html 
would be of interest too.

/etc/sysctl.conf
fs.file-max = 2097152

/etc/security/limits.conf
* soft nofile 4096
* hard nofile 65535

asankha

Davanum Srinivas wrote:
> Greg,
>
> Please create an issue in JIRA and upload your test ASAP. we are in
> the middle of perf testing. this would be a great scenario to fix for
> 1.3 release.
>
> thx,
> dims
>
> On 7/2/07, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>>
>> Our team is currently using Axis2 1.2 in our application and we are 
>> running
>> some performance and stress tests with JMeter.
>> While running these stress tests we have come across two issues that 
>> we hope
>> someone can help us with.
>>
>> The first issue relates to temporary files.  In our stress testing we 
>> were
>> using the URLBasedAxisConfigurator to load .mar files on the client 
>> side,
>> but got the error below with 1 user and 1000 iterations:
>>
>> java.lang.RuntimeException: java.io.IOException: Too many open files;;
>> at
>> 
org.apache.axis2.deployment.util.Utils.getURLsForAllJars(Utils.java(Compiled 

>>
>> Code));;
>> at
>> 
org.apache.axis2.deployment.util.Utils.createClassLoader(Utils.java:684);; 

>>
>> at
>> 
au.gov.centrelink.jfs.proxy.axis2.ClientURLBasedAxisConfigurator.loadRepositoryFromURL(ClientURLBasedAxisConfigurator.java(Compiled
 

>>
>> Code));;
>> at
>> 
org.apache.axis2.deployment.URLBasedAxisConfigurator.getAxisConfiguration(URLBasedAxisConfigurator.java:72);;
 

>>
>> at
>> 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:60);;
 

>>
>> at
>> 
au.gov.centrelink.jfs.proxy.ProxyFactory.createStub(ProxyFactory.java:699);; 

>>
>> at
>> 
au.gov.centrelink.jfs.proxy.ProxyFactory.createProxy(ProxyFactory.java:440);; 

>>
>> at
>> 
au.gov.centrelink.jfs.proxy.ProxyFactory.createProxy(ProxyFactory.java:395);; 

>>
>> at
>> 
au.gov.centrelink.jsf.pst.core.CDCCustomerEmailAddressTester2.execute(CDCCustomerEmailAddressTester2.java:64);;
 

>>
>> at
>> 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421);;
 

>>
>> at
>> 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226);; 

>>
>> at
>> 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164);; 
>>
>> at
>> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415);;
>> at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:763);;
>> at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856);;
>> at
>> 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572);;
 

>>
>> at
>> 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521);;
 

>>
>> at
>> 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113);;
 

>>
>> at
>> 
com.ibm.ws.webcontainer.filter.WebAppFilter

Re: [Axis2] Please VOTE for your favorite bug to be fixed.

2007-07-03 Thread Amila Suriarachchi

Let me put some of my thoughts about blockers and releases.

According to the current rules, we have to have zero blockers to do a
release. So sometimes what we does is downgrade some issue according to
their criticalness. I think this is not a necessity.

As I believe deciding a blocker or not is up to the user. if he do not have
any work around and if he as block due to that issue it is ok to put this as
a blocker. So another person can not change it unless he can give an valid
work around or find an problem with the issue (according to some spaces).

On the other hand as developers we have some limitations. i.e Sometimes we
may unable to fix a blocker (i.e due to technical problems etc..) So there
may be issues which are blockers  but won't fix for the release.

What I am basically saying is this.
Lets say after an release (e.g .Axis2 1.2 ) we got 20 blockers and could fix
17 and 3 left.
if the last 3 going to take lot of time are we supposed to hold the release
until all are fixed? So that every one has to wait until everything fixed.
My guess is we should release with the fixed blockers  and with the new
features have added to the release. But one thing. For any release we can
not have broken features. i.e. which were worked with the earlier release
but not now.

This does not mean we don't do any thing about the reaming 3 blockers. we
can time to time try to fix this with different ways.

For an example in codegen there were some problems with the xmlbeans and adb
after Axis2 1.2. I could fixed most of adb issues and add lot of new featurs
as well (some issues regarding adb-codegen, codgen, wsdl) . But could not
resolve some critical xmlbeans problems although I tried them. So if someone
suggest to stop adding new features until fix all the xmlbeans problems, I
belive that is not an efficient use of time.

And also Since at close to a release everyone concentrating on fixing
issues, if someone report issues on an RC there is high probability of being
fixed them immediately.

Finally this is what I have to say,
As developers we must try our best to resolve blockers. mean time we have to
add new features to the product as well. otherwise it won't evolve.

Thanks.
Amila.

On 7/4/07, Amila Suriarachchi <[EMAIL PROTECTED]> wrote:




On 7/2/07, Kelvin Lin <[EMAIL PROTECTED]> wrote:
>
> I am really looking forwards to fixing this one:
>
> 
https://issues.apache.org/jira/browse/AXIS2-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>
> Second part of two-part message is ignored by WSDL2Java
>
> because in my project doing now, there is a this scenario:
>
>  
>   
>   
>  
>
> It prevent me from using wsdl2c tool.
>


see my comment on this,
this wsdl is not valid according to the  WS basic profile.
see 
http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#refinement16574232
R2210

if you use document literal binding you can not have more than one part
unless you delare one
in soap boady.

*Ruchith Fernando <[EMAIL PROTECTED]>* wrote:
>
> Yes  we will be releasing Rampart along with Axis2 as soon as 1.3goes out!
>
> Thanks,
> Ruchith
>
> On 7/2/07, stlecho wrote:
> >
> > Is this cleaning up phase also applicable for the Rampart module or
> only for
> > the Axis2 framework ?
> > In other words, can I vote for JIRA issues related to Rampart ?
> >
> > Regards, Stefan Lecho.
> >
> >
> > dims wrote:
> > >
> > > Dear Axis2 Users,
> > >
> > > We are working hard on cleaning up the issues in JIRA.
> > >
> >
> > --
> > View this message in context:
> 
http://www.nabble.com/-Axis2--Please-VOTE-for-your-favorite-bug-to-be-fixed.-tf3996952.html#a11391423
> > Sent from the Axis - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> www.ruchith.org
> www.wso2.org
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> --
> Boardwalk for $500? In 2007? Ha!
> Play Monopoly Here and 
Now(it's
 updated for today's economy) at Yahoo! Games.
>
>


--
Amila Suriarachchi,
WSO2 Inc.





--
Amila Suriarachchi,
WSO2 Inc.


Re: [Axis2] Please VOTE for your favorite bug to be fixed.

2007-07-03 Thread Amila Suriarachchi

On 7/2/07, Kelvin Lin <[EMAIL PROTECTED]> wrote:


I am really looking forwards to fixing this one:


https://issues.apache.org/jira/browse/AXIS2-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Second part of two-part message is ignored by WSDL2Java

because in my project doing now, there is a this scenario:

 
  
  
 

It prevent me from using wsdl2c tool.




see my comment on this,
this wsdl is not valid according to the  WS basic profile.
see
http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#refinement16574232R2210

if you use document literal binding you can not have more than one part
unless you delare one
in soap boady.

*Ruchith Fernando <[EMAIL PROTECTED]>* wrote:


Yes  we will be releasing Rampart along with Axis2 as soon as 1.3 goes
out!

Thanks,
Ruchith

On 7/2/07, stlecho wrote:
>
> Is this cleaning up phase also applicable for the Rampart module or only
for
> the Axis2 framework ?
> In other words, can I vote for JIRA issues related to Rampart ?
>
> Regards, Stefan Lecho.
>
>
> dims wrote:
> >
> > Dear Axis2 Users,
> >
> > We are working hard on cleaning up the issues in JIRA.
> >
>
> --
> View this message in context:
http://www.nabble.com/-Axis2--Please-VOTE-for-your-favorite-bug-to-be-fixed.-tf3996952.html#a11391423
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
www.ruchith.org
www.wso2.org

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


--
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and 
Now(it's
 updated for today's economy) at Yahoo! Games.





--
Amila Suriarachchi,
WSO2 Inc.


Re: Axis2 & rest

2007-07-03 Thread Deepal Jayasinghe
Hi zakaria ,

In the current version of Axis2  (Axis2 1.2) , we support none of the
below parameters.

Thanks
Deepal
> i didn't turn off REST explicitly 
> i use axis2 in Intalio BPM , intalio use geronimo and axis2
> i think that axis2 disable rest by default.
>
> how to activate rest in axis2.xml ?
>
>
>  locked="true">true
>
> false
>
>  locked="true">false
>
> can i have details ??
>
> thanks
>
>   



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



Re: signing the timestamp within the security header

2007-07-03 Thread Dimuthu
Hi,

Have you tried using "signatureParts" Parameter?

This link has information on how to use it.
http://ws.apache.org/wss4j/package.html

Cheers,
Dimuthu

On Tue, 2007-07-03 at 15:26 -0600, Richard DeGrande wrote:
> Hi
> 
> 
> I'm using axis 1.4 and wss4j 1.5 to generate and execute a client for a 
> secure webservice.  I get an error indicating that the timestamp is not 
> signed.  How
> do I generate a signed timestamp ?
> 
> AxisFault 
>  faultCode: 
> {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}FailedCheck
>  
>  faultSubcode: 
>  faultString: Signature did not cover a timestamp; cannot determine freshness 
>  faultActor: 
>  faultNode: 
>  faultDetail: 
> {http://xml.apache.org/axis/}stackTrace:Signature did not cover a timestamp; 
> cannot determine freshness 
> at 
> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
>  
> at 
> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
>  
> 
> 
> 
> thanks
> 
> 
> -
> 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: HTTPS axis2 service

2007-07-03 Thread Deepal Jayasinghe
if your server has enabled SSL , then you will have https support for
the serves by default. If you inly want to expose your service only in
https then add the following tag to services.xml


   https


Thanks
Deepal


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



Re: Exception in rampart configuration with inflow - outflow classes

2007-07-03 Thread Dimuthu
Hi,

Please try this,

stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY,
 ClientUtilities.getOutflowConfiguration().getProperty());

stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.INFLOW_SECURITY,
 ClientUtilities.getInflowConfiguration().getProperty());

You can also load different policy objects for different client calls.

Cheers,
Dimuthu

On Wed, 2007-07-04 at 00:07 +0200, Jorge Fernandez wrote:
> Hi,
> 
> For quite a long time I've been trying to configure a client that is
> invoking some operations to encrypt just some of the messages.  I have
> read in this page that the rampart 1.0 configuration style could be
> use even though is marked as deprecated.
> 
> http://ruchith.blogspot.com/2007/06/apache-rampart-12-released.html
> 
> So I tried to do it and I'm getting the following exception:
> 
> rg.apache.axis2.AxisFault: Configureation error
> at
> org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:94)
> at
> org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:383)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:433)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
> at
> client.Medici_LinkSOAP12PortStub.validateSystem(Medici_LinkSOAP12PortStub.java:747)Validating
>  system ch4_001mu...
> 
> at
> client.ClientUtilities.validateSystemTest(ClientUtilities.java:73)
> at client.Client.main(Client.java:33)
> Caused by: org.apache.axis2.AxisFault: Configureation error
> at
> org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:151)
> at
> org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:88)
> ... 9 more
> Caused by: java.lang.ClassCastException:
> org.apache.rampart.handler.config.InflowConfiguration cannot be cast
> to org.apache.axis2.description.Parameter
> at
> org.apache.rampart.util.HandlerParameterDecoder.processParameters(HandlerParameterDecoder.java:63)
> at
> org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:149)
> ... 10 more
> 
> 
> I'm doing this:
> 
> stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY,
>  ClientUtilities.getOutflowConfiguration());
> 
> stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.INFLOW_SECURITY,
>  ClientUtilities.getInflowConfiguration());
> 
> 
> public static OutflowConfiguration getOutflowConfiguration(){
> OutflowConfiguration ofc = new OutflowConfiguration();
> ofc.setActionItems("Timestamp Signature Encrypt");
> ofc.setUser("client1");
> ofc.setPasswordCallbackClass("client.PWCBHandler");
> ofc.setSignaturePropFile("client1.properties");
> 
> ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
> 
> //ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
> ofc.setEncryptionUser("service");
> ofc.getProperty();
> return ofc;
> }
> 
> public static InflowConfiguration getInflowConfiguration(){
> InflowConfiguration ifc = new InflowConfiguration();
> ifc.setActionItems("Timestamp Signature Encrypt");
> ifc.setPasswordCallbackClass("client.PWCBHandler");
> ifc.setSignaturePropFile("client1.properties");
> ifc.getProperty();
> return ifc;
> }
> 
> 
> Can anybody tell me what's the problem??? or tell me another way to
> configure the client to encrypt certain messages???
> 
> Thanks a lot,
> 
> Jorge Fernández
> 
> 
> 
> 
> 
> __
> 
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com


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



Re: [Axis2] Please VOTE for your favorite bug to be fixed.

2007-07-03 Thread Deepal Jayasinghe
Hi robert,

good point  , I will update the site with the RC this time.

Thanks
Deepal
> Lack of getting the RC's being used by end users has I think been one
> of the main causes for instability. I'd really like to try something
> new this time around that might get more users using them.
>
> I'm all for  "Release early and often" - in fact arguably we don't do
> enough point releases. I realize though that there are lots of deps
> and its hard to coordinate all the releases.
>
> Anyways, IIRC the RC's never got put on the download page. The only
> announcement is to the list. Other projects have better usage of their
> RC's and I think it'd be worth exploring what could be done
> differently to get more RC usage of axis2.
>
> I've noticed xmlbeans, for example, has been broken on every release
> so far. And while I tested svn in the middle of dev, I never did test
> the RC's so I accept part of the blame. This time around I plan on
> testing xmlbeans on some of my complex schemas, and the other things I
> personally use like spring and the soapmonitor.
>
> Michele, from what I've seen you're had some of the most advanced use
> cases of axis2. If you could do some RC testing with some of your use
> cases I'd think that'd go a long way to making 1.3 the most stable yet.
>
> No one uses 100% of axis2, but I'd think that if we got more people
> using the RC's on _their_ code, it'd help plenty.
>
> Robert
>
> On 7/2/07, * Davanum Srinivas* <[EMAIL PROTECTED]
> > wrote:
>
> no it doesnt. this is a classic chicken and egg issue. thats why we
> make so many RC's but still end users dont play enough with RC's as
> much as we'd like them to :)
>
> thx,
> dims
>
> On 7/2/07, Michele Mazzucco < [EMAIL PROTECTED]
> > wrote:
> > Eran,
> >
> > On Sun, 2007-07-01 at 18:26 -0400, Eran Chinthaka wrote:
> > > I do agree with you that we need a reliable Axis2, but that
> doesn't
> > > mean
> > > we need to keep on postponing releases "until" we fix everything.
> >
> >
> > there was no insult in my comments. My point, instead, is that
> if you
> > want new features you can download the last nightly build. If
> you want
> > something which works *properly* you download a release. Does it
> make
> > sense to release a new version and then ask to people to
> download the
> > next nightly build because the release is "broken"?
> >
> >
> > Michele
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> 
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> >
> >
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com
> 
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>
>

-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"




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



Re: Axis2 & rest

2007-07-03 Thread keith chapman

Here is an example assuming following is the schema.

  
   
 
   
   
   
 
   

The following is how the request (the payload) will be,

http://example.org/message-test/xsd";>
  myfirst
  mymiddle
  mylast


Thanks,
Keith.

On 7/4/07, Raghu Upadhyayula <[EMAIL PROTECTED]> wrote:


 Thanks Anne.



How do you submit a request having complex types with a POST?  Can you
show me for the login method sample with User object containing username &
password?



Thanks

Raghu


 --

*From:* Anne Thomas Manes [mailto:[EMAIL PROTECTED]
*Sent:* Tuesday, July 03, 2007 2:41 PM
*To:* axis-user@ws.apache.org
*Subject:* Re: Axis2 & rest



You can submit a resource representation (containing complex types) using
PUT or POST.
But Jeff is correct that you cannot submit a complex query parameter via
URL encoding.

Also note that encoding a password as a query parameter in a URL (per
Raghu's example) violates just about every security best practice
imaginable.

And this time I'll bite my tongue and not rant about the inappropriateness
of turning a method into a resource.

Anne

On 7/3/07, *Walker**, Jeff *<[EMAIL PROTECTED]> wrote:

You don't pass complex types in REST web services. Period.
It's all about those Query parameters, the name-value pairs following
the '?' and separated by the '&'.
REST services is all about manipulating resources, not passing complex
types.
If you want to send complex types, then you need the so-called 'big' web
services technologies like SOAP/WSDL.
-jeff


-Original Message-
From: Raghu Upadhyayula [mailto: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2007 3:45 PM
To: axis-user@ws.apache.org
Subject: RE: Axis2 & rest

Hi Zakaria,

For the methods with simple parameters you use it like this

Say I have a webservice MyService with login method and username
& password parameters, then the rest URL will look like this.

http://localhost/axis2/services/MyService/login?username=raghu&password=
xxx

But I'm not sure how to call it if the parameter is a complex
type, like if my login method takes in a User object which has username
& password as members of the User object, then I'm not sure how to call
that.


Thanks
Raghu

-Original Message-
From: zakaria ghandour [mailto: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2007 9:10 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 & rest


Hi,

axis2/services/{service name}/{Operation name}

can you tel me how to call ws as rest if there is parameters ??

thanks
--
View this message in context:
http://www.nabble.com/Axis2---rest-tf4018616.html#a11414842
Sent from the Axis - User mailing list archive at Nabble.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]




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







--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


RE: JMS/SOAP axis2

2007-07-03 Thread Chen, Lizhao
Hi, Chathura,

I just add a JIRA for Kamal which is
https://issues.apache.org/jira/browse/AXIS2-2898

I have attached the wsdl and corresponding xsds, client test code and
the exceptions in it.

Please check it!

Best Regards!

 

Lizhao Chen

 

86-021-50800850-8395

-Original Message-
From: Chathura Herath [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 28, 2007 10:39 PM
To: axis-user@ws.apache.org
Subject: Re: JMS/SOAP axis2

Please add a JIRA with the wsdl, service and the client
Thanks
Chathura

On 6/28/07, Kang, Kamaljeet K. <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi Chathura,
>
>
>
> Are you still looking into the following JMS issue with ADB? Should I
enter
> a bug?
>
>
>
> Thanks
>
>
>
> Kamal Kang
>
>
>
> >>I ran the same test with XMLBeans few months back, I didn't have any
>
> >>issues.
>
>
>
> kamal
>
>
>
> >>From: Chathura Herath [mailto:[EMAIL PROTECTED]
>
> >>Sent: Saturday, June 23, 2007 1:01 PM
>
> >>To: axis-user@ws.apache.org
>
> >>Subject: Re: JMS/SOAP axis2
>
>
>
> >>This looks familiar to some of the problems i have seen in JSON. I
>
> >>assume you are using ADB for data binding,  are u?
>
> >>If so could you try  -d xmlbeans and see whether it works. This may
>
> >>not solve your problem completely, but it would give us an idea.
>
> >>Thanks
>
> >>Chathura
>
>
>
>
>
>
>
>  
>
>
> From: Kang, Kamaljeet K. [mailto:[EMAIL PROTECTED]
>  Sent: Thursday, June 21, 2007 5:57 PM
>  To: axis-user@ws.apache.org
>  Subject: JMS/SOAP axis2
>
>
>
>
>
>
> Hi,
>
>  I am trying to test a webservice with JMS transport. The service
works
> perfectly fine with HTTP but with JMS it gives the following exception
> during unmarshling. Looks like localName is incorrect. Is it a bug?
>
>
>  OMElelment BodyBy the StaxSOAPModelBuilder
>  1-Jun 15:44:40,552 DEBUG builder.StAXOMBuilder [JMSWorker-1] -
> START_ELEMENT: {
>  mf854.v1}notify:notify
>  1-Jun 15:44:40,552 DEBUG builder.StAXSOAPModelBuilder [JMSWorker-1] -
Build
> the
>  OMElelment notifyBy the StaxSOAPModelBuilder
>  1-Jun 15:44:40,552 DEBUG engine.AxisEngine [JMSWorker-1] -
[MessageContext:
> log
>  D=urn:uuid:4153845C2D42C4D72B1182455081080] receive:null
>  1-Jun 15:44:40,552 DEBUG
> addressing.AddressingValidationHandler [JMSWorker-1] -
>  invoke: IS_ADDR_INFO_ALREADY_PROCESSED=null
>  1-Jun 15:44:40,552 DEBUG
> addressing.AddressingValidationHandler [JMSWorker-1] -
>  checkUsingAddressing: WSAddressingFlag=unspecified
>  1-Jun 15:51:30,779 DEBUG builder.StAXOMBuilder [JMSWorker-1] -
> START_ELEMENT: {
>  mf854.v1}TopicExpression_T:TopicExpression_T (it should be
> topic)
>  1-Jun 15:51:30,779 DEBUG builder.StAXSOAPModelBuilder [JMSWorker-1] -
Build
> the
>  OMElelment TopicExpression_TBy the StaxSOAPModelBuilder
>  1-Jun 15:52:48,088 ERROR jms.JMSMessageReceiver [JMSWorker-1] - JMS
Worker
> [JMS
>  orker-1] Encountered an Axis Fault : java.lang.RuntimeException:
Unexpected
> sub
>  lement TopicExpression_T; nested exception is:
> java.lang.RuntimeException: java.lang.RuntimeException:
Unexpected
> subel
>  ment TopicExpression_T
>  rg.apache.axis2.AxisFault: java.lang.RuntimeException: Unexpected
> subelement To
>  icExpression_T; nested exception is:
> java.lang.RuntimeException: java.lang.RuntimeException:
Unexpected
> subel
>  ment TopicExpression_T
> at
> org.apache.axis2.AxisFault.makeFault(AxisFault.java:367)
> at
> org.tmforum.tmf854.v1.ws.notif.NotificationConsumerMessageReceiverInO
>
ly.invokeBusinessLogic(NotificationConsumerMessageReceiverInOnly.java:55
)
> at
> org.apache.axis2.receivers.AbstractInMessageReceiver.receive(Abstract
>  nMessageReceiver.java:35)
> at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:186)
>
>
> Kamal
>
>
>
> 
> The information contained in this message may be privileged
> and confidential and protected from disclosure. If the reader
> of this message is not the intended recipient, or an employee
> or agent responsible for delivering this message to the
> intended recipient, you are hereby notified that any reproduction,
> dissemination or distribution of this communication is strictly
> prohibited. If you have received this communication in error,
> please notify us immediately by replying to the message and
> deleting it from your computer. Thank you. Tellabs
> 
> 
> The information contained in this message may be privileged
> and confidential and protected from disclosure. If the reader
> of this message is not the intended recipient, or an employee
> or agent responsible for delivering this message to the
> intended recipient, you are hereby notified that any reproduction,
> dissemination or distribution of this communication is strictly
> prohibited. If you have received this communication in error,
> please notify us immediately

Re: [AXIS2] WSDL2Java code generation problem

2007-07-03 Thread Davanum Srinivas

Richard,
Please try the following command "wsdl2java.bat -d xmlbeans -u -uri
bw-2.wsdl" to specify xmlbeans. Latest nightly works fine.

Anne,
XMLBeans db works fine. ADB fails.

thanks,
dims

On 7/3/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

Creiky! Why would the folks behind WSN have designed a schema for using in a
SOAP environment that includes the  constructor?

I thought that XMLBeans could handle a , but maybe not...

Anne


On 7/3/07, Lucente, Richard D <[EMAIL PROTECTED]> wrote:
> Axis2-1.2 wsdl2java is failing to generate compilable code for the
> NotificationConsumer port defined as part of the WS-BaseNotification 1.3
> standard.  Wsdl2java appears to have trouble with the definition of
> TopicType within the WS-Topics 1.3 schema.  I tried this with adb,
> xmlbeans, jibx, jaxme, and jaxbri and got similar results (sometimes
> wsdl2java choked on WS-Topics).  Any help appreciated.
>
> Specifically, I downloaded the wsdl file from
> http://docs.oasis-open.org/wsn/bw-2.wsdl and added the
following binding
> and service elements:
>
>  type="wsntw:NotificationConsumer">
>  transport="
http://schemas.xmlsoap.org/soap/http";
> />
> 
> 
> soapAction=" http://docs.oasis-open.org/wsn/bw-2/Notify";
/>
> 
> 
> 
> 
> 
> 
> 
binding="wsntw:NotificationConsumerBinding">
> 
> location="
http://localhost:8080/wsn-consumer/services/NotificationConsum
> er" />
> 
> 
>
> I then ran the command:
>
> wsdl2java -uri bw-2.wsdl -pn NotificationConsumer
>
> The code generator produced the following messages:
>
> Using AXIS2_HOME:   D:\pathfinder\axis2-1.2
> Using JAVA_HOME:D:\Progra~1\Java\j2sdk1.4.2_12
> Retrieving document at '
http://docs.oasis-open.org/wsrf/rw-2.wsdl',
> relative to 'file:/D:/pathfinder/temp/'.
> Retrieving schema at '
http://docs.oasis-open.org/wsrf/r-2.xsd', relative
> to 'http://docs.oasis-open.org/wsrf/rw-2.wsdl'.
> Retrieving schema at '
http://docs.oasis-open.org/wsrf/bf-2.xsd',
> relative to 'http://docs.oasis-open.org/wsrf/r-2.xsd'.
> Retrieving schema at ' http://www.w3.org/2001/xml.xsd', relative to
> 'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
> Retrieving schema at '
http://www.w3.org/2005/08/addressing/ws-addr.xsd',
> relative to 'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
> Retrieving schema at '
http://docs.oasis-open.org/wsn/b-2.xsd', relative
> to 'file:/D:/pathfinder/temp/'.
> Retrieving schema at
'http://docs.oasis-open.org/wsrf/bf-2.xsd ',
> relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
> Retrieving schema at
'http://docs.oasis-open.org/wsn/t-1.xsd ', relative
> to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
> Retrieving schema at
'http://www.w3.org/2005/08/addressing/ws-addr.xsd ',
> relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
> Retrieving document at
'http://docs.oasis-open.org/wsrf/rw-2.wsdl ',
> relative to 'file:/D:/pathfinder/temp/'.
> Retrieving schema at
'http://docs.oasis-open.org/wsrf/r-2.xsd', relative
> to ' http://docs.oasis-open.org/wsrf/rw-2.wsdl'.
> Retrieving schema at
'http://docs.oasis-open.org/wsrf/bf-2.xsd',
> relative to ' http://docs.oasis-open.org/wsrf/r-2.xsd'.
> Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to
> ' http://docs.oasis-open.org/wsrf/bf-2.xsd'.
> Retrieving schema at
'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
> relative to ' http://docs.oasis-open.org/wsrf/bf-2.xsd'.
> Retrieving schema at
'http://docs.oasis-open.org/wsn/b-2.xsd', relative
> to 'file:/D:/pathfinder/temp/'.
> Retrieving schema at
'http://docs.oasis-open.org/wsrf/bf-2.xsd',
> relative to 'http://docs.oasis-open.org/wsn/b-2.xsd '.
> Retrieving schema at
'http://docs.oasis-open.org/wsn/t-1.xsd', relative
> to 'http://docs.oasis-open.org/wsn/b-2.xsd '.
> Retrieving schema at
'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
> relative to ' http://docs.oasis-open.org/wsn/b-2.xsd'.
>
> I then attempted to build with the generated build.xml file and
> apache-ant-1.7.0 by typing:
>
> ant
>
> I received the following output:
>
> Buildfile: build.xml
>
> init:
> [mkdir] Created dir: D:\pathfinder\temp\build
> [mkdir] Created dir: D:\pathfinder\temp\build\classes
> [mkdir] Created dir: D:\pathfinder\temp\build\lib
> [mkdir] Created dir: D:\pathfinder\temp\test
>
> pre.compile.test:
>  [echo] Stax Availability= true
>  [echo] Axis2 Availability= true
>
> compile.src:
> [javac] Compiling 2 source files to
D:\pathfinder\temp\build\classes
> [javac]
>
D:\pathfinder\temp\src\org\oasis_open\docs\wsn\bw_2\NotificationConsumer
> Stub.java:1832:
>
fromString(javax.xml.stream.XMLStreamReader,java.lang.Stri
> ng) in
>
org.oasis_open.docs.wsn.bw_2.NotificationConsumerStub.MessageTypes_type4
> .Factory cannot be applied to (java.la

RE: signing the timestamp within the security header

2007-07-03 Thread Alick Buckley

Hi,

 
   
   


-Original Message-
From: Richard DeGrande [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 July 2007 7:26 AM
To: axis-user@ws.apache.org
Subject: signing the timestamp within the security header


Hi


I'm using axis 1.4 and wss4j 1.5 to generate and execute a client for a
secure webservice.  I get an error indicating that the timestamp is not
signed.  How
do I generate a signed timestamp ?

AxisFault 
 faultCode:
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1
.0.xsd}FailedCheck 
 faultSubcode: 
 faultString: Signature did not cover a timestamp; cannot determine
freshness 
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}stackTrace:Signature did not cover a timestamp;
cannot determine freshness 
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
22) 
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:12
9) 



thanks


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


HTTPS axis2 service

2007-07-03 Thread Ali, Haneef
Hi ,

What should I do make my service use https? My servlet container is
going to be weblogic?

Haneef

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



Exception in rampart configuration with inflow - outflow classes

2007-07-03 Thread Jorge Fernandez
Hi,

For quite a long time I've been trying to configure a client that is invoking 
some operations to encrypt just some of the messages.  I have read in this page 
that the rampart 1.0 configuration style could be use even though is marked as 
deprecated.

http://ruchith.blogspot.com/2007/06/apache-rampart-12-released.html

So I tried to do it and I'm getting the following exception:

rg.apache.axis2.AxisFault: Configureation error
at 
org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:94)
at org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72)
at org.apache.axis2.engine.Phase.invoke(Phase.java:383)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:433)
at  
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
at 
client.Medici_LinkSOAP12PortStub.validateSystem(Medici_LinkSOAP12PortStub.java:747)Validating
 system ch4_001mu...

at client.ClientUtilities.validateSystemTest(ClientUtilities.java:73)
at client.Client.main(Client.java:33)
Caused by: org.apache.axis2.AxisFault: Configureation error
at 
org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:151)
at 
org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:88)
... 9 more
Caused by: java.lang.ClassCastException: 
org.apache.rampart.handler.config.InflowConfiguration cannot be cast to 
org.apache.axis2.description.Parameter
at  
org.apache.rampart.util.HandlerParameterDecoder.processParameters(HandlerParameterDecoder.java:63)
at 
org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:149)
... 10 more


I'm doing this:

stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY,
 ClientUtilities.getOutflowConfiguration());

stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.INFLOW_SECURITY,
 ClientUtilities.getInflowConfiguration());


public static OutflowConfiguration getOutflowConfiguration(){
OutflowConfiguration ofc = new OutflowConfiguration();
ofc.setActionItems("Timestamp Signature Encrypt");
 ofc.setUser("client1");
ofc.setPasswordCallbackClass("client.PWCBHandler");
ofc.setSignaturePropFile("client1.properties");
ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);

//ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
ofc.setEncryptionUser("service");
ofc.getProperty();
return ofc;
}

public static InflowConfiguration getInflowConfiguration(){
InflowConfiguration ifc = new InflowConfiguration();
ifc.setActionItems("Timestamp Signature Encrypt");
 ifc.setPasswordCallbackClass("client.PWCBHandler");
ifc.setSignaturePropFile("client1.properties");
ifc.getProperty();
return ifc;
}


Can anybody tell me what's the problem??? or tell me another way to configure 
the client to encrypt certain messages???

Thanks a lot,

Jorge Fernández




-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

Re: Axis2 & rest

2007-07-03 Thread Anne Thomas Manes

Perhaps one of the developers can answer this?
I'd be more inclined to use straight HTTP than Axis2, though.

Anne

On 7/3/07, Raghu Upadhyayula <[EMAIL PROTECTED]> wrote:


 Thanks Anne.



How do you submit a request having complex types with a POST?  Can you
show me for the login method sample with User object containing username &
password?



Thanks

Raghu


 --

*From:* Anne Thomas Manes [mailto:[EMAIL PROTECTED]
*Sent:* Tuesday, July 03, 2007 2:41 PM
*To:* axis-user@ws.apache.org
*Subject:* Re: Axis2 & rest



You can submit a resource representation (containing complex types) using
PUT or POST.
But Jeff is correct that you cannot submit a complex query parameter via
URL encoding.

Also note that encoding a password as a query parameter in a URL (per
Raghu's example) violates just about every security best practice
imaginable.

And this time I'll bite my tongue and not rant about the inappropriateness
of turning a method into a resource.

Anne

On 7/3/07, *Walker**, Jeff *<[EMAIL PROTECTED]> wrote:

You don't pass complex types in REST web services. Period.
It's all about those Query parameters, the name-value pairs following
the '?' and separated by the '&'.
REST services is all about manipulating resources, not passing complex
types.
If you want to send complex types, then you need the so-called 'big' web
services technologies like SOAP/WSDL.
-jeff


-Original Message-
From: Raghu Upadhyayula [mailto: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2007 3:45 PM
To: axis-user@ws.apache.org
Subject: RE: Axis2 & rest

Hi Zakaria,

For the methods with simple parameters you use it like this

Say I have a webservice MyService with login method and username
& password parameters, then the rest URL will look like this.

http://localhost/axis2/services/MyService/login?username=raghu&password=
xxx

But I'm not sure how to call it if the parameter is a complex
type, like if my login method takes in a User object which has username
& password as members of the User object, then I'm not sure how to call
that.


Thanks
Raghu

-Original Message-
From: zakaria ghandour [mailto: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2007 9:10 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 & rest


Hi,

axis2/services/{service name}/{Operation name}

can you tel me how to call ws as rest if there is parameters ??

thanks
--
View this message in context:
http://www.nabble.com/Axis2---rest-tf4018616.html#a11414842
Sent from the Axis - User mailing list archive at Nabble.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]




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





Re: ws-addressing

2007-07-03 Thread Anthony Bull
Title: Signature




Nuno, I've programmatically accessed the username token and password
fields in my skeleton code - so I assume you can access the other
header fields.

The following article is what I based my code on:

http://wso2.org/library/169

Note that to get the message context variable on your Skeleton class
you need to set it there yourself from the message receiver in/out
class straight after the line that deals with your skeleton object (I
think the method is invokeBusinessLogic).

cheers,
Ants.



Nuno Martins wrote:
Hi all,
  
I would like to know if it possible to get replyTo Header value in my
web-service.
  
Regards,
Nuno Martins
 
  
  
  
  
  
  



-- 
Anthony
-
Anthony Bull
Senior Developer
Black Coffee Software Ltd
PO Box 10-192 The Terrace
Wellington, New Zealand

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





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



Re: [AXIS2] WSDL2Java code generation problem

2007-07-03 Thread Anne Thomas Manes

Creiky! Why would the folks behind WSN have designed a schema for using in a
SOAP environment that includes the  constructor?

I thought that XMLBeans could handle a , but maybe not...

Anne

On 7/3/07, Lucente, Richard D <[EMAIL PROTECTED]> wrote:


Axis2-1.2 wsdl2java is failing to generate compilable code for the
NotificationConsumer port defined as part of the WS-BaseNotification 1.3
standard.  Wsdl2java appears to have trouble with the definition of
TopicType within the WS-Topics 1.3 schema.  I tried this with adb,
xmlbeans, jibx, jaxme, and jaxbri and got similar results (sometimes
wsdl2java choked on WS-Topics).  Any help appreciated.

Specifically, I downloaded the wsdl file from
http://docs.oasis-open.org/wsn/bw-2.wsdl and added the following binding
and service elements:


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

http://docs.oasis-open.org/wsn/bw-2/Notify"; />







http://localhost:8080/wsn-consumer/services/NotificationConsum
er" />



I then ran the command:

wsdl2java -uri bw-2.wsdl -pn NotificationConsumer

The code generator produced the following messages:

Using AXIS2_HOME:   D:\pathfinder\axis2-1.2
Using JAVA_HOME:D:\Progra~1\Java\j2sdk1.4.2_12
Retrieving document at 'http://docs.oasis-open.org/wsrf/rw-2.wsdl',
relative to 'file:/D:/pathfinder/temp/'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/r-2.xsd', relative
to 'http://docs.oasis-open.org/wsrf/rw-2.wsdl'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd',
relative to 'http://docs.oasis-open.org/wsrf/r-2.xsd'.
Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to
'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
relative to 'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
Retrieving schema at 'http://docs.oasis-open.org/wsn/b-2.xsd', relative
to 'file:/D:/pathfinder/temp/'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd',
relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
Retrieving schema at 'http://docs.oasis-open.org/wsn/t-1.xsd', relative
to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
Retrieving document at 'http://docs.oasis-open.org/wsrf/rw-2.wsdl',
relative to 'file:/D:/pathfinder/temp/'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/r-2.xsd', relative
to 'http://docs.oasis-open.org/wsrf/rw-2.wsdl'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd',
relative to 'http://docs.oasis-open.org/wsrf/r-2.xsd'.
Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to
'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
relative to 'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
Retrieving schema at 'http://docs.oasis-open.org/wsn/b-2.xsd', relative
to 'file:/D:/pathfinder/temp/'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd',
relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
Retrieving schema at 'http://docs.oasis-open.org/wsn/t-1.xsd', relative
to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.

I then attempted to build with the generated build.xml file and
apache-ant-1.7.0 by typing:

ant

I received the following output:

Buildfile: build.xml

init:
[mkdir] Created dir: D:\pathfinder\temp\build
[mkdir] Created dir: D:\pathfinder\temp\build\classes
[mkdir] Created dir: D:\pathfinder\temp\build\lib
[mkdir] Created dir: D:\pathfinder\temp\test

pre.compile.test:
 [echo] Stax Availability= true
 [echo] Axis2 Availability= true

compile.src:
[javac] Compiling 2 source files to D:\pathfinder\temp\build\classes
[javac]
D:\pathfinder\temp\src\org\oasis_open\docs\wsn\bw_2\NotificationConsumer
Stub.java:1832:
fromString(javax.xml.stream.XMLStreamReader,java.lang.Stri
ng) in
org.oasis_open.docs.wsn.bw_2.NotificationConsumerStub.MessageTypes_type4
.Factory cannot be applied to (java.lang.String,java.lang.String)
[javac]
MessageTypes_type4.Factory.fromString(tempAttribmessageTypes,namespaceur
i));
[javac]
^
[javac]
D:\pathfinder\temp\src\org\oasis_open\docs\wsn\bw_2\NotificationConsumer
Stub.java:1837:
fromString(javax.xml.stream.XMLStreamReader,java.lang.Stri
ng) in
org.oasis_open.docs.wsn.bw_2.NotificationConsumerStub.MessageTypes_type4
.Factory cannot be applied to (java.lang.String,java.lang.String)
[javac]
MessageTypes_type4.Factory.fromString(tempAttribmessageTypes,""));
[javac]
^
[javac]
D:\pathfinder\temp\src\org\oasis_open\docs\wsn\bw_2\NotificationConsumer
St

RE: Axis2 & rest

2007-07-03 Thread Raghu Upadhyayula
Thanks Anne.

 

How do you submit a request having complex types with a POST?  Can you
show me for the login method sample with User object containing username
& password?

 

Thanks

Raghu

 



From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 03, 2007 2:41 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 & rest

 

You can submit a resource representation (containing complex types)
using PUT or POST. 
But Jeff is correct that you cannot submit a complex query parameter via
URL encoding.

Also note that encoding a password as a query parameter in a URL (per
Raghu's example) violates just about every security best practice
imaginable. 

And this time I'll bite my tongue and not rant about the
inappropriateness of turning a method into a resource.

Anne

On 7/3/07, Walker, Jeff <[EMAIL PROTECTED]> wrote:

You don't pass complex types in REST web services. Period. 
It's all about those Query parameters, the name-value pairs following
the '?' and separated by the '&'.
REST services is all about manipulating resources, not passing complex
types.
If you want to send complex types, then you need the so-called 'big' web
services technologies like SOAP/WSDL.
-jeff


-Original Message-
From: Raghu Upadhyayula [mailto: [EMAIL PROTECTED]
 ]
Sent: Tuesday, July 03, 2007 3:45 PM
To: axis-user@ws.apache.org
Subject: RE: Axis2 & rest

Hi Zakaria,

For the methods with simple parameters you use it like this 

Say I have a webservice MyService with login method and username
& password parameters, then the rest URL will look like this.

http://localhost/axis2/services/MyService/login?username=raghu&password=
xxx

But I'm not sure how to call it if the parameter is a complex
type, like if my login method takes in a User object which has username 
& password as members of the User object, then I'm not sure how to call
that.


Thanks
Raghu

-Original Message-
From: zakaria ghandour [mailto: [EMAIL PROTECTED]
 ]
Sent: Tuesday, July 03, 2007 9:10 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 & rest


Hi,

axis2/services/{service name}/{Operation name} 

can you tel me how to call ws as rest if there is parameters ??

thanks
--
View this message in context:
http://www.nabble.com/Axis2---rest-tf4018616.html#a11414842 
Sent from the Axis - User mailing list archive at Nabble.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] 




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

 



Re: Axis2 & rest

2007-07-03 Thread Anne Thomas Manes

You can submit a resource representation (containing complex types) using
PUT or POST.
But Jeff is correct that you cannot submit a complex query parameter via URL
encoding.

Also note that encoding a password as a query parameter in a URL (per
Raghu's example) violates just about every security best practice
imaginable.

And this time I'll bite my tongue and not rant about the inappropriateness
of turning a method into a resource.

Anne

On 7/3/07, Walker, Jeff <[EMAIL PROTECTED]> wrote:


You don't pass complex types in REST web services. Period.
It's all about those Query parameters, the name-value pairs following
the '?' and separated by the '&'.
REST services is all about manipulating resources, not passing complex
types.
If you want to send complex types, then you need the so-called 'big' web
services technologies like SOAP/WSDL.
-jeff


-Original Message-
From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 03, 2007 3:45 PM
To: axis-user@ws.apache.org
Subject: RE: Axis2 & rest

Hi Zakaria,

For the methods with simple parameters you use it like this

Say I have a webservice MyService with login method and username
& password parameters, then the rest URL will look like this.

http://localhost/axis2/services/MyService/login?username=raghu&password=
xxx

But I'm not sure how to call it if the parameter is a complex
type, like if my login method takes in a User object which has username
& password as members of the User object, then I'm not sure how to call
that.


Thanks
Raghu

-Original Message-
From: zakaria ghandour [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 03, 2007 9:10 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 & rest


Hi,

axis2/services/{service name}/{Operation name}

can you tel me how to call ws as rest if there is parameters ??

thanks
--
View this message in context:
http://www.nabble.com/Axis2---rest-tf4018616.html#a11414842
Sent from the Axis - User mailing list archive at Nabble.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]




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




signing the timestamp within the security header

2007-07-03 Thread Richard DeGrande
Hi


I'm using axis 1.4 and wss4j 1.5 to generate and execute a client for a secure 
webservice.  I get an error indicating that the timestamp is not signed.  How
do I generate a signed timestamp ?

AxisFault 
 faultCode: 
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}FailedCheck
 
 faultSubcode: 
 faultString: Signature did not cover a timestamp; cannot determine freshness 
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}stackTrace:Signature did not cover a timestamp; 
cannot determine freshness 
at 
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) 
at 
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) 



thanks


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



[AXIS2] WSDL2Java code generation problem

2007-07-03 Thread Lucente, Richard D
Axis2-1.2 wsdl2java is failing to generate compilable code for the
NotificationConsumer port defined as part of the WS-BaseNotification 1.3
standard.  Wsdl2java appears to have trouble with the definition of
TopicType within the WS-Topics 1.3 schema.  I tried this with adb,
xmlbeans, jibx, jaxme, and jaxbri and got similar results (sometimes
wsdl2java choked on WS-Topics).  Any help appreciated.
 
Specifically, I downloaded the wsdl file from
http://docs.oasis-open.org/wsn/bw-2.wsdl and added the following binding
and service elements:
 

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

http://docs.oasis-open.org/wsn/bw-2/Notify"; />







http://localhost:8080/wsn-consumer/services/NotificationConsum
er" />


 
I then ran the command:
 
wsdl2java -uri bw-2.wsdl -pn NotificationConsumer
 
The code generator produced the following messages:
 
Using AXIS2_HOME:   D:\pathfinder\axis2-1.2
Using JAVA_HOME:D:\Progra~1\Java\j2sdk1.4.2_12
Retrieving document at 'http://docs.oasis-open.org/wsrf/rw-2.wsdl',
relative to 'file:/D:/pathfinder/temp/'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/r-2.xsd', relative
to 'http://docs.oasis-open.org/wsrf/rw-2.wsdl'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd',
relative to 'http://docs.oasis-open.org/wsrf/r-2.xsd'.
Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to
'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
relative to 'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
Retrieving schema at 'http://docs.oasis-open.org/wsn/b-2.xsd', relative
to 'file:/D:/pathfinder/temp/'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd',
relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
Retrieving schema at 'http://docs.oasis-open.org/wsn/t-1.xsd', relative
to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
Retrieving document at 'http://docs.oasis-open.org/wsrf/rw-2.wsdl',
relative to 'file:/D:/pathfinder/temp/'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/r-2.xsd', relative
to 'http://docs.oasis-open.org/wsrf/rw-2.wsdl'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd',
relative to 'http://docs.oasis-open.org/wsrf/r-2.xsd'.
Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to
'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
relative to 'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
Retrieving schema at 'http://docs.oasis-open.org/wsn/b-2.xsd', relative
to 'file:/D:/pathfinder/temp/'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd',
relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
Retrieving schema at 'http://docs.oasis-open.org/wsn/t-1.xsd', relative
to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
 
I then attempted to build with the generated build.xml file and
apache-ant-1.7.0 by typing:
 
ant
 
I received the following output:
 
Buildfile: build.xml
 
init:
[mkdir] Created dir: D:\pathfinder\temp\build
[mkdir] Created dir: D:\pathfinder\temp\build\classes
[mkdir] Created dir: D:\pathfinder\temp\build\lib
[mkdir] Created dir: D:\pathfinder\temp\test
 
pre.compile.test:
 [echo] Stax Availability= true
 [echo] Axis2 Availability= true
 
compile.src:
[javac] Compiling 2 source files to D:\pathfinder\temp\build\classes
[javac]
D:\pathfinder\temp\src\org\oasis_open\docs\wsn\bw_2\NotificationConsumer
Stub.java:1832:
fromString(javax.xml.stream.XMLStreamReader,java.lang.Stri
ng) in
org.oasis_open.docs.wsn.bw_2.NotificationConsumerStub.MessageTypes_type4
.Factory cannot be applied to (java.lang.String,java.lang.String)
[javac]
MessageTypes_type4.Factory.fromString(tempAttribmessageTypes,namespaceur
i));
[javac]
^
[javac]
D:\pathfinder\temp\src\org\oasis_open\docs\wsn\bw_2\NotificationConsumer
Stub.java:1837:
fromString(javax.xml.stream.XMLStreamReader,java.lang.Stri
ng) in
org.oasis_open.docs.wsn.bw_2.NotificationConsumerStub.MessageTypes_type4
.Factory cannot be applied to (java.lang.String,java.lang.String)
[javac]
MessageTypes_type4.Factory.fromString(tempAttribmessageTypes,""));
[javac]
^
[javac]
D:\pathfinder\temp\src\org\oasis_open\docs\wsn\bw_2\NotificationConsumer
Stub.java:30410:
fromString(javax.xml.stream.XMLStreamReader,java.lang.Str
ing) in
org.oasis_open.docs.wsn.bw_2.NotificationConsumerStub.MessageTypes_type4
.Factory cannot be applied to (java.lang.String,java.lang.String)
[javac]
Message

Re: Error sending Username Token

2007-07-03 Thread Ryan

Wow, this is embarrassing, forget about this post. I lost track of a
resource bundle (i.e. soap.properties), while porting this app. I put the
soap.properties in a directory in the WEB-INF/classes and everything worked
great. - Thanks, Ryan

On 7/3/07, Ryan <[EMAIL PROTECTED]> wrote:


Hi All,

I have a web application on Tomcat that is calling a web service and I'm
trying to add a Username Token to the request. Following the instructions
here

http://ws.apache.org/wss4j/axis.html

More specifically I am specifying the wsdd file programmatically...

BEGIN EXAMPLE CODE
import org.apache.axis.EngineConfiguration;
import org.apache.axis.configuration.FileProvider;
...

EngineConfiguration config = new FileProvider("client_deploy.wsdd");
StockQuoteServiceService locator = new
StockQuoteServiceServiceLocator(config);
END EXAMPLE CODE

Problem is when I call the service I get this error

BEGIN ERROR
org.apache.ws.security.WSSecurityException : WSHandler: password callback
failed; nested exception is:
java.util.MissingResourceException: Can't find bundle for base
name soap, locale en_US
org.apache.ws.security.WSSecurityException: WSHandler: password callback
failed; nested exception is:
java.util.MissingResourceException: Can't find bundle for base
name soap, locale en_US
at org.apache.ws.security.handler.WSHandler.performCallback(
WSHandler.java:653)
at org.apache.ws.security.handler.WSHandler.readPwViaCallbackClass(
WSHandler.java:614)
at org.apache.ws.security.handler.WSHandler.getPassword(
WSHandler.java:571)
at org.apache.ws.security.action.UsernameTokenAction.execute(
UsernameTokenAction.java:31)
.
END ERROR

I've looked all over and can't find any info on this error that solves the
problem. I'm running...

Java  1.5.0_10
Tomcat 5.5.16
Axis 1.4

Any help would be greatly appreciated.

Thanks,
Ryan




RE: Axis2 & rest

2007-07-03 Thread Walker, Jeff
You don't pass complex types in REST web services. Period.
It's all about those Query parameters, the name-value pairs following
the '?' and separated by the '&'.
REST services is all about manipulating resources, not passing complex
types.
If you want to send complex types, then you need the so-called 'big' web
services technologies like SOAP/WSDL.
-jeff
 

-Original Message-
From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 03, 2007 3:45 PM
To: axis-user@ws.apache.org
Subject: RE: Axis2 & rest

Hi Zakaria,

For the methods with simple parameters you use it like this

Say I have a webservice MyService with login method and username
& password parameters, then the rest URL will look like this.
 
http://localhost/axis2/services/MyService/login?username=raghu&password=
xxx 

But I'm not sure how to call it if the parameter is a complex
type, like if my login method takes in a User object which has username
& password as members of the User object, then I'm not sure how to call
that.


Thanks
Raghu

-Original Message-
From: zakaria ghandour [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 03, 2007 9:10 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 & rest


Hi,

axis2/services/{service name}/{Operation name}

can you tel me how to call ws as rest if there is parameters ??

thanks
-- 
View this message in context:
http://www.nabble.com/Axis2---rest-tf4018616.html#a11414842
Sent from the Axis - User mailing list archive at Nabble.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]




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



RE: Axis2 & rest

2007-07-03 Thread Raghu Upadhyayula
Hi Zakaria,

For the methods with simple parameters you use it like this

Say I have a webservice MyService with login method and username
& password parameters, then the rest URL will look like this.
 
http://localhost/axis2/services/MyService/login?username=raghu&password=
xxx 

But I'm not sure how to call it if the parameter is a complex
type, like if my login method takes in a User object which has username
& password as members of the User object, then I'm not sure how to call
that.


Thanks
Raghu

-Original Message-
From: zakaria ghandour [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 03, 2007 9:10 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 & rest


Hi,

axis2/services/{service name}/{Operation name}

can you tel me how to call ws as rest if there is parameters ??

thanks
-- 
View this message in context:
http://www.nabble.com/Axis2---rest-tf4018616.html#a11414842
Sent from the Axis - User mailing list archive at Nabble.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: [Axis2] Problems with addinf prefix's to attributes, or removing them from headers

2007-07-03 Thread Anne Thomas Manes

The generated stubs should do it automatically.

On 7/3/07, Alex Craddock <[EMAIL PROTECTED]> wrote:


I have just created my stubs using the WSDL"Java (didnt no it existed,
thanks for mentioning it saves me a lot of time) and yes the WSDL does
specify as elementFormDefault="qualified"

How would I make it so that all my bean elements are qualified correctly
to use with the service?

Alex.

On 7/3/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
>
> I assume you mean Axis rather than Axis2. (Axis2 doesn't use
> BeanSerializer, nor does it support SOAP encoding.)
> What does the WSDL say? Does it specify elementFormDefault="qualified"
> on the schema that defines the HotelOptions type? Are you creating your
> client stub using WSDL2Java?
>
> Anne
>
>
> On 7/3/07, Alex Craddock < [EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > In the following xml that I am sending using axis2, the lowest child
> > elements eg, TAID should have the prefix ns2, as if it doesn't then i am
> > unable to connect and use a web service provided by a third party company, I
> > am using the below to create the serializer for the bean that i am using,
> >
> > QName envelopeQN = new QName("
> > http://api.content.tripadvisor.com","HotelOptions","";);
> > QName hotelOptionsQN = new QName("
> > http://api.content.tripadvisor.com","HotelOptions";);
> >
> >
> > call.registerTypeMapping (HotelOptions.class,
> > hotelOptionsQN,
> > new
> > org.apache.axis.encoding.ser.BeanSerializerFactory(HotelOptions.class,
> > envelopeQN),
> > new
> > org.apache.axis.encoding.ser.BeanDeserializerFactory (
> > HotelOptions.class, envelopeQN));
> >
> >
> >
> > 
> >http://schemas.xmlsoap.org/soap/envelope/ 
"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > ">
> >   
> >  http://schemas.xmlsoap.org/soap/encoding/";
> > xmlns:ns1="con:getHotel">
> > http://api.content.tripadvisor.com";>
> >85380
> >
> >
> > 832924179B0DACCAA58338B6D9A03F78
> >com
> >5
> >5
> >0
> >0
> >0
> >0
> > 
> >  
> >   
> >
> >
> > Does anyone have any ideas as to why i am not getting the prefix's on
> > the child elements?
> >
> > Regards
> >
> > Alex.
> >
> >
>



ws-addressing

2007-07-03 Thread Nuno Martins

Hi all,

I would like to know if it possible to get replyTo Header value in my 
web-service.


Regards,
Nuno Martins




Re: int values lost

2007-07-03 Thread Anne Thomas Manes

Roland,

In order to switch to doc/literal, you have to first make the change in your
4D server. It would then produce a doc/literal WSDL, and WSDL2Java will
generate an appropriate client for you.

Anne

On 7/3/07, Roland Carlsson <[EMAIL PROTECTED]> wrote:


Thanks for your answer!

Is this something I can set with the WSDL2Java-app or do I have to do
this when the stubs??

Best regards
Roland

Walker, Jeff skrev:
> Roland,
> I noticed your using soap encoding in your wsdl. Can you switch to
> literal?
> (I'm guessing there will be precious few bug fixes in the soap encoding
> parts of Axis 1.2/1.4 if this turns out to be an Axis error, which I
> doubt). It just isn't popular anymore.
>
> I can't help much. I don't know 4D and I also don't know how to force
> the stub to use strings all the time. (I actually don't think you can).
> The only suggestion I can make is to switch from soap encoding to
> literal, and also adopt document vs. rpc, then try again.
>
> Perhaps one of the Axis developers can help you better than I?
> Ann?
> -jeff
>
>
>
> -Original Message-
> From: Roland Carlsson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 03, 2007 5:57 AM
> To: axis-user@ws.apache.org
> Subject: Re: int values lost
>
> Hi!
>
> I have checked the version and it's 1.4. I have removed some redundat
> libraries. But it wasn't the way to success.
>
> When I change the files generated by WSDL2Java I can get values to the
> server by changing the datatype from int to String but that seems like a
>
> bad solution since I regenerate the stubs on regular basis.
>
> Is there a way to generate the stubs that perhaps could be more
> forgiving? All values as String, untyped etc etc?
>
> I append the wsdl that I use to generate the stubs from if there could
> be anything strange in that? It's from a 4D Server. (http://www.4d.com).
>
> Thanks in advance
> Roland
>
>
> Walker, Jeff skrev:
>
>> Not sure if this helps,
>> but you can call org.apache.axis.Version.getVersionText() to get the
>> version of Axis you're running.
>>
>> I'm running Axis1.3 and they are the versions of the jars I have.
>>
>> I suggest you undeploy everything, copy 1.4 again, and start again
>>
> with
>
>> a clean deployment.
>> -jeff
>>
>>
>> -Original Message-
>> From: Roland Carlsson [mailto:[EMAIL PROTECTED]
>> Sent: Monday, July 02, 2007 4:56 PM
>> To: axis-user@ws.apache.org
>> Subject: int values lost
>>
>> Hi!
>>
>> I updated Axis from 1.2 to 1.4 and now I can't use a couple of
>> web-service that have a int as first argument. The webservice-call
>> doesn't fail but the int-value is always one. I have debugged my code
>> and as far as I can follow it do what it should but the reciving
>>
> server
>
>> only recives a 0 (zero).
>>
>> java -cp
>>
>>
> activation.jar:axis.jar:commons-logging-1.0.4.jar:mailapi.jar:commons-di
>
>> scovery-0.2.jar:wsdl4j-1.5.1.jar:jaxrpc.jar:saaj.jar
>> org.apache.axis.wsdl.WSDL2Java
>>
>> and those libraries are available at the client that uses the stubs.
>>
>> I'm guessing that I have some kind of versioning-problem in the
>>
> library
>
>> (.jar) but I have no idea of how to figure out wich one it could be.
>>
>> How to find out what's wrong.
>>
>> Thanks in advance
>> Roland
>>
>> -
>> 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]




Axis2 Snapshot Code Gen w/ Exceptions

2007-07-03 Thread Alejandro Calbazana
For what its worth, it looks like the latest snapshots do not generate 
faults properly.  While generating my own wsdl that contains fault 
types, I noticed that the types names were named differently that what I 
am used to.  I then checked the samples... The faulthandling sample 
breaks as fault types are generated with the name of the message rather 
than the fault name + "Exception".  Not sure why this is happening as 
the code gen template looks good.


Regression?  Or is something changing with respect to generating fault 
types names?


Thanks,

Alejandro


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



[Axis2] CDATA tag

2007-07-03 Thread Jack Sprat
I have an Axis 1.2 web service using XMLBeans.  I want to wrap the content of 
one of the elements in a CDATA tag.  I know I could manually prepend and append 
the CDATA delimiters but that is not ideal.

What is the best way to do this?  This should be obvious but I haven't found a 
clear choice.

Thanks,
T


   
-
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 

Re: Axis2 & rest

2007-07-03 Thread zakaria ghandour

Hi,

axis2/services/{service name}/{Operation name}

can you tel me how to call ws as rest if there is parameters ??

thanks
-- 
View this message in context: 
http://www.nabble.com/Axis2---rest-tf4018616.html#a11414842
Sent from the Axis - User mailing list archive at Nabble.com.


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



HELP!

2007-07-03 Thread Richard DeGrande
I get the following error when I call a secure webservice from an axis client.  
How do I get the Timestamp to be signed ??? 
 
I'm using axis 1.4 
 
thanks in advance. 
 
AxisFault 
 faultCode: 
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}FailedCheck
 
 faultSubcode: 
 faultString: Signature did not cover a timestamp; cannot determine freshness 
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}stackTrace:Signature did not cover a timestamp; 
cannot determine freshness 
at 
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) 
at 
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) 



Error sending Username Token

2007-07-03 Thread Ryan

Hi All,

I have a web application on Tomcat that is calling a web service and I'm
trying to add a Username Token to the request. Following the instructions
here

http://ws.apache.org/wss4j/axis.html

More specifically I am specifying the wsdd file programmatically...

BEGIN EXAMPLE CODE
import org.apache.axis.EngineConfiguration;
import org.apache.axis.configuration.FileProvider;
...

EngineConfiguration config = new FileProvider("client_deploy.wsdd");
StockQuoteServiceService locator = new
StockQuoteServiceServiceLocator(config);
END EXAMPLE CODE

Problem is when I call the service I get this error

BEGIN ERROR
org.apache.ws.security.WSSecurityException: WSHandler: password callback
failed; nested exception is:
   java.util.MissingResourceException: Can't find bundle for base name
soap, locale en_US
org.apache.ws.security.WSSecurityException: WSHandler: password callback
failed; nested exception is:
   java.util.MissingResourceException: Can't find bundle for base name
soap, locale en_US
   at org.apache.ws.security.handler.WSHandler.performCallback(
WSHandler.java:653)
   at org.apache.ws.security.handler.WSHandler.readPwViaCallbackClass(
WSHandler.java:614)
   at org.apache.ws.security.handler.WSHandler.getPassword(
WSHandler.java:571)
   at org.apache.ws.security.action.UsernameTokenAction.execute(
UsernameTokenAction.java:31)
   .
END ERROR

I've looked all over and can't find any info on this error that solves the
problem. I'm running...

Java  1.5.0_10
Tomcat 5.5.16
Axis 1.4

Any help would be greatly appreciated.

Thanks,
Ryan


Re: Axis2 & rest

2007-07-03 Thread zakaria ghandour

i don't know whitch one , because it's included in Intalio server

-- 
View this message in context: 
http://www.nabble.com/Axis2---rest-tf4018616.html#a11414757
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: Axis2 & rest

2007-07-03 Thread keith chapman

Which version of Axis2 r u using?

Thanks,
Keith.

On 7/3/07, zakaria ghandour <[EMAIL PROTECTED]> wrote:



i didn't turn off REST explicitly
i use axis2 in Intalio BPM , intalio use geronimo and axis2
i think that axis2 disable rest by default.

how to activate rest in axis2.xml ?


true

false

false

can i have details ??

thanks

--
View this message in context:
http://www.nabble.com/Axis2---rest-tf4018616.html#a11414531
Sent from the Axis - User mailing list archive at Nabble.com.


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





--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


RE: A weird problem.

2007-07-03 Thread Wang, Hailong (NIH/CIT) [C]
Thanks very much for you reply.

 

But when I used addressing-1.2.mar instead of addressing-1.1.mar,
problem is gone. I looked at the SOAP message. There are same.

 

 

Hailong

 



From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 03, 2007 11:15 AM
To: axis-user@ws.apache.org
Subject: RE: A weird problem.

 

Hailong,

It looks like a WS-Addressing tag issue to me.

Seems like a SOAP header is incorrect, that is, probably isn't following
the WS-Adressing spec properly, or was omitted accidentally.

But you need to post more details, if you expect some serious
assistance.

-jeff



From: Wang, Hailong (NIH/CIT) [C] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 03, 2007 10:32 AM
To: axis-user@ws.apache.org
Subject: A weird problem.

Hi,

 

I have same client code, on one machine I can communicate with
the server, but the other machine can not communicate with the server.
Here is error message:

 

A header representing a Message Addressing Property is not valid
and the message cannot be processed.

 

Any idea? It's urgent. Thanks in advance.

 

 

Hailong Wang

National Database for Autism Research(NDAR)

NIH/CIT/DECA (MOM CONTRACTOR)

9000 Rockville Pike, Bld 12A/Room 2027

Bethesda, MD 20892

Phone:  301-402-3045

Fax:   301-480-0028

Email:   [EMAIL PROTECTED]

URL:   http://ndar.nih.gov

 



Re: Axis2 & rest

2007-07-03 Thread zakaria ghandour

i didn't turn off REST explicitly 
i use axis2 in Intalio BPM , intalio use geronimo and axis2
i think that axis2 disable rest by default.

how to activate rest in axis2.xml ?


true

false

false

can i have details ??

thanks

-- 
View this message in context: 
http://www.nabble.com/Axis2---rest-tf4018616.html#a11414531
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: A weird problem.

2007-07-03 Thread Walker, Jeff
Hailong,
It looks like a WS-Addressing tag issue to me.
Seems like a SOAP header is incorrect, that is, probably isn't following
the WS-Adressing spec properly, or was omitted accidentally.
But you need to post more details, if you expect some serious
assistance.
-jeff
  _  

From: Wang, Hailong (NIH/CIT) [C] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 03, 2007 10:32 AM
To: axis-user@ws.apache.org
Subject: A weird problem.



Hi,

 

I have same client code, on one machine I can communicate with
the server, but the other machine can not communicate with the server.
Here is error message:

 

A header representing a Message Addressing Property is not valid
and the message cannot be processed.

 

Any idea? It's urgent. Thanks in advance.

 

 

Hailong Wang

National Database for Autism Research(NDAR)

NIH/CIT/DECA (MOM CONTRACTOR)

9000 Rockville Pike, Bld 12A/Room 2027

Bethesda, MD 20892

Phone:  301-402-3045

Fax:   301-480-0028

Email:   [EMAIL PROTECTED]

URL:   http://ndar.nih.gov

 



Re: Axis2 & rest

2007-07-03 Thread keith chapman

Unless you turn off REST explicitly from your axis2.xml you should be able
to use REST with axis2.  The default url pattern that axis2 uses is

axis2/services/{service name}/{Operation name}

e.g axis2/services/version/getVersion

Although this is the default its possible to do more complex stuff using WSDL
2.0 .

Please  let us know if u need more details.

Thanks,
Keith.

On 7/3/07, zakaria ghandour <[EMAIL PROTECTED]> wrote:



hi,
how can i activate rest handling for my webservices ?
what's the format of the url to invoque webservice rest ?

thanks
--
View this message in context:
http://www.nabble.com/Axis2---rest-tf4018616.html#a11413203
Sent from the Axis - User mailing list archive at Nabble.com.


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





--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


How do you end a transport session?

2007-07-03 Thread fat suze

I have a POJO service w/ transport sesion.  How can I kill that session (on
the client side) when I no longer need it?  I've seen this asked a few times
but I can never find an answer.  Do you have to just let it expire for
inactivity?
Susanne


Re: WSDL2Java issue and/or help

2007-07-03 Thread Keith Veleba

dims,

Thanks for the bug fix - I downloaded, built the snapshot and tried  
it against the remote WSDL in question.


The generation of the stub did not error out.  Thanks for your help!   
I hope to be able to return the favor soon.  This list is a great  
resource for everyone who uses it.

--

Keith E. Veleba
President
Intellitek Services Ltd.
419-202-2676 cell
[EMAIL PROTECTED]
http://www.intellitekservices.com



On Jul 2, 2007, at 10:26 PM, Davanum Srinivas wrote:


Hmm..actually this may be a bug. i'll check in a fix tonight. Please
try a nightly tomorrow.

-- dims

On 7/2/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:

Anne, Jeff,

The problem is the "https://"; the normal URL connection expects the
cert to be in the local jks store AFAICT.

thanks,
dims

On 7/2/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> Jeff,
>
> This URL:
> https://uat-atc.regents.ohio.gov/ccx/OrgInfo/CoreMain_v1.0.0.xsd? 
wsdl
> does indeed point to the XSD in question. This problem looks to  
me to be
> caused by WSDL2Java's inability to reference a remote XSD. Keith  
should do
> as Haneef recommends and download the XSD and store it locally,  
and change
> the schemaLocation attribute in the WSDL to point to the new  
location.

>
> Also, the "urn:org:pesc:core:Coremain:v1.0.0" namespace is not  
badly formed.
> A namespace must be a valid URI (not any unique string), but it  
doesn't have
> to start with "http://";. In this case, it's a URN rather than a  
URL, which
> is quite appropriate for a namespace URI. See the Wikipedia  
definition of
> Uniform Resource Identifier [1] for a layman's definition, or  
see RFC 3986

> [2] for the formal specification.
>
> [1]
> http://en.wikipedia.org/wiki/Uniform_Resource_Identifier
> [2] http://gbiv.com/protocols/uri/rfc/rfc3986.html
>
> Anne
>
> On 6/26/07, Walker, Jeff <[EMAIL PROTECTED]> wrote:
> >
> >
> > This line looks odd to me also:
> >  schemaLocation="OrgInfo/CoreMain_v1.0.0.xsd?wsdl"/>
> >
> > Here is a definition of how import works in XML Schema:
> > http://www.w3.org/TR/xmlschema-0/ section 5.4. So, the
> ?wsdl at the end of the schemaLocation string looks weird.
> >
> > I did in fact download that wsdl file, and got the same error  
in Axis 1.3

> as you did.
> > I do believe the web service development team is wrong at this  
point.

> >
> >
> --
> > I also think the namespace "urn:org:pesc:core:Coremain:v1.0.0"  
is badly
> formatted. They usually start with "http://";, but I did read  
somewhere they

> can be any unique string. Perhaps on this point, they are right.
> > -jeff
> >
> >
> >
> > 
>  From: Keith Veleba [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 26, 2007 4:03 PM
> > To: axis-user@ws.apache.org
> > Subject: WSDL2Java issue and/or help
> >
> >
> > I'm writing a client for a web service and I am having an  
issue with stub

> generation.
> >
> >
> > This wsdl is causing the generation to fail:
> >
> >
> > https://uat-atc.regents.ohio.gov/ccx/OrgInfo?wsdl
> >
> >
> > Specifically, I get an error saying it cannot find the  
schemaLocation of

> the imported schema on line 4:
> >
> >
> >  schemaLocation="OrgInfo/CoreMain_v1.0.0.xsd?wsdl"/>
> >
> >
> > This schemaLocation looks very odd to me, but the folks who  
run the web

> service say it is valid and should be working.
> >
> >
> > Here's the error when I run wsdl2java.sh:
> >
> >
> >
> >
> > Retrieving schema at 'OrgInfo/CoreMain_v1.0.0.xsd?wsdl',
> relative to
> 'file:/Users/velebak/https:/uat-atc.regents.ohio.gov/ccx'.
> > Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> Error parsing WSDL
> > at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine. 
(CodeGenerationEngine.java:114)

> > at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > at
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > Caused by: javax.wsdl.WSDLException: WSDLException (at
> /wsdl:definitions/wsdl:types/xsd:schema):
> faultCode=OTHER_ERROR: An error occurred trying to resolve  
schema referenced

> at 'OrgInfo/CoreMain_v1.0.0.xsd?wsdl', relative to
> 'file:/Users/velebak/https:/uat-atc.regents.ohio.gov/ccx'.:
> java.io.FileNotFoundException: This file was not found:
> file:/Users/velebak/https:/uat-atc.regents.ohio.gov/OrgInfo/ 
CoreMain_v1.0.0.xsd?wsdl

> > at
> com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
> > at
> com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
> > at
> com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
> > at
> com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> Source)
> > at
> com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > at
> com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > at
> com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > at
>  
org.apache.axis2.wsdl.codegen.CodeGenerationEng

A weird problem.

2007-07-03 Thread Wang, Hailong (NIH/CIT) [C]
Hi,

 

I have same client code, on one machine I can communicate with the
server, but the other machine can not communicate with the server. Here
is error message:

 

A header representing a Message Addressing Property is not valid and the
message cannot be processed.

 

Any idea? It's urgent. Thanks in advance.

 

 

Hailong Wang

National Database for Autism Research(NDAR)

NIH/CIT/DECA (MOM CONTRACTOR)

9000 Rockville Pike, Bld 12A/Room 2027

Bethesda, MD 20892

Phone:  301-402-3045

Fax:   301-480-0028

Email:   [EMAIL PROTECTED]

URL:   http://ndar.nih.gov

 



Re: NullPointerException with axis1 1.4

2007-07-03 Thread Alexey Zavizionov

Thanks for your reply, I am researching it now.

btw, I don't use .NET

Regards,
Alexey

On 7/3/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

I Googled "wsrp axis null pointer exception getServiceDescription" and found
a reference to a problem with sending a null to .NET. What happens if you
send a value (as opposed to nil="true") in the 
element?

Anne


On 7/2/07, Alexey Zavizionov
<[EMAIL PROTECTED]> wrote:
>
> Thanks for your response!
>
> We implemented WSRP service on axis1 1.2-RC1, but now we start to
> using axis1 1.4.
>
> WSRP service has the wsdl file from oasis ( "wsrp_service.wsdl"
> from
http://www.oasis-open.org/committees/wsrp/specifications/version1/
> )
>
>
http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_service.wsdl
> ---WSDL---
> 
> 
xmlns:bind="urn:oasis:names:tc:wsrp:v1:bind"
>
xmlns="http://schemas.xmlsoap.org/wsdl/";
>
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ "
>
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";>
>  location="wsrp_v1_bindings.wsdl"/>
>   
>  name="WSRPBaseService">
>   http://my.service:8080/WSRPService"/>
> 
>  name="WSRPServiceDescriptionService">
>   http://my.service:8080/WSRPService"/>
> 
>  name="WSRPRegistrationService">
>   http://my.service:8080/WSRPService"/>
> 
>  name="WSRPPortletManagementService">
>   http://my.service:8080/WSRPService"/>
> 
>   
> 
> --
>
> Do you know where cause of this problem?
>
> Alexey
>
>
>
> On 6/27/07, Martin Gainty <[EMAIL PROTECTED] > wrote:
> > Alexey
> >
> > please post the wsdl
> >
> > Thanks
> > 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: "Alexey Zavizionov"
<[EMAIL PROTECTED]>
> > To: < axis-user@ws.apache.org>
> > Sent: Wednesday, June 27, 2007 11:10 AM
> > Subject: Re: NullPointerException with axis1 1.4
> >
> >
> > >I catch the soap message:
> > >
> > > POST /portal/services/WSRPServiceDescriptionService
HTTP/1.0
> > > Content-Type: text/xml; charset=utf-8
> > > Accept: application/soap+xml, application/dime, multipart/related,
text/*
> > > User-Agent: Axis/1.4
> > > Host: localhost:8080
> > > Cache-Control: no-cache
> > > Pragma: no-cache
> > > SOAPAction:
"urn:oasis:names:tc:wsrp:v1:getServiceDescription"
> > > Content-Length: 421
> > >
> > > 
> > >  > >
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";>
> > >  
> > >
> > >  
> > >  en
> > >
> > >  
> > > 
> > >
> > > HTTP/1.1 500 Internal Server Error
> > > Server: Apache-Coyote/1.1
> > > Set-Cookie:
JSESSIONID=D8D788AB8D4D347C7C65F5C3B3FAE75D; Path=/portal
> > > Content-Type: text/xml;charset=utf-8
> > > Date: Wed, 27 Jun 2007 15:05:28 GMT
> > > Connection: close
> > >
> > > 
> > >  > >
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";>
> > >  
> > >
> > >  soapenv:Server.userException
> > >  java.lang.NullPointerException
> > >  
> > > > > xmlns:ns1="http://xml.apache.org/axis/";>Alex
> > >  
> > >
> > >  
> > > 
> > >
> > >
> > > Any idea are appreciable!
> > >
> > > Regards,
> > > Alexey
> > >
> > >
> > > On 6/27/07, Alexey Zavizionov <
[EMAIL PROTECTED]>
> > > wrote:
> > >> Hello,
> > >> I am using axis1 version 1.4 for wsrp service.
> > >>
> > >> I have an exc:
> > >>
> > >> AxisFault
> > >>  faultCode:
> > >>
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> > >>  faultSubcode:
> > >>  faultString: java.lang.NullPointerException
> > >>  faultActor:
> > >>  faultNode:
> > >>  faultDetail:
> > >> { http://xml.apache.org/axis/}hostname:Alex
> > >>
> > >> 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(Un

Axis2 & rest

2007-07-03 Thread zakaria ghandour

hi,
how can i activate rest handling for my webservices ?
what's the format of the url to invoque webservice rest ?

thanks
-- 
View this message in context: 
http://www.nabble.com/Axis2---rest-tf4018616.html#a11413203
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: int values lost

2007-07-03 Thread Roland Carlsson

Thanks for your answer!

Is this something I can set with the WSDL2Java-app or do I have to do 
this when the stubs??


Best regards
Roland

Walker, Jeff skrev:

Roland,
I noticed your using soap encoding in your wsdl. Can you switch to
literal?
(I'm guessing there will be precious few bug fixes in the soap encoding
parts of Axis 1.2/1.4 if this turns out to be an Axis error, which I
doubt). It just isn't popular anymore.

I can't help much. I don't know 4D and I also don't know how to force
the stub to use strings all the time. (I actually don't think you can).
The only suggestion I can make is to switch from soap encoding to
literal, and also adopt document vs. rpc, then try again.

Perhaps one of the Axis developers can help you better than I?
Ann?
-jeff

 


-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 03, 2007 5:57 AM

To: axis-user@ws.apache.org
Subject: Re: int values lost

Hi!

I have checked the version and it's 1.4. I have removed some redundat 
libraries. But it wasn't the way to success.


When I change the files generated by WSDL2Java I can get values to the 
server by changing the datatype from int to String but that seems like a


bad solution since I regenerate the stubs on regular basis.

Is there a way to generate the stubs that perhaps could be more 
forgiving? All values as String, untyped etc etc?


I append the wsdl that I use to generate the stubs from if there could 
be anything strange in that? It's from a 4D Server. (http://www.4d.com).


Thanks in advance
Roland
 


Walker, Jeff skrev:
  

Not sure if this helps,
but you can call org.apache.axis.Version.getVersionText() to get the
version of Axis you're running.

I'm running Axis1.3 and they are the versions of the jars I have.

I suggest you undeploy everything, copy 1.4 again, and start again


with
  

a clean deployment.
-jeff
 


-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 02, 2007 4:56 PM

To: axis-user@ws.apache.org
Subject: int values lost

Hi!

I updated Axis from 1.2 to 1.4 and now I can't use a couple of 
web-service that have a int as first argument. The webservice-call 
doesn't fail but the int-value is always one. I have debugged my code 
and as far as I can follow it do what it should but the reciving

server 
  

only recives a 0 (zero).

java -cp 



activation.jar:axis.jar:commons-logging-1.0.4.jar:mailapi.jar:commons-di
  
scovery-0.2.jar:wsdl4j-1.5.1.jar:jaxrpc.jar:saaj.jar 
org.apache.axis.wsdl.WSDL2Java


and those libraries are available at the client that uses the stubs.

I'm guessing that I have some kind of versioning-problem in the

library 
  

(.jar) but I have no idea of how to figure out wich one it could be.

How to find out what's wrong.

Thanks in advance
Roland

-
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: [Axis2] Problems with addinf prefix's to attributes, or removing them from headers

2007-07-03 Thread Alex Craddock

I have just created my stubs using the WSDL"Java (didnt no it existed,
thanks for mentioning it saves me a lot of time) and yes the WSDL does
specify as elementFormDefault="qualified"

How would I make it so that all my bean elements are qualified correctly to
use with the service?

Alex.

On 7/3/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:


I assume you mean Axis rather than Axis2. (Axis2 doesn't use
BeanSerializer, nor does it support SOAP encoding.)
What does the WSDL say? Does it specify elementFormDefault="qualified" on
the schema that defines the HotelOptions type? Are you creating your client
stub using WSDL2Java?

Anne


On 7/3/07, Alex Craddock < [EMAIL PROTECTED]> wrote:
>
> Hello,
>
> In the following xml that I am sending using axis2, the lowest child
> elements eg, TAID should have the prefix ns2, as if it doesn't then i am
> unable to connect and use a web service provided by a third party company, I
> am using the below to create the serializer for the bean that i am using,
>
> QName envelopeQN = new 
QName("http://api.content.tripadvisor.com","HotelOptions","";);
>
> QName hotelOptionsQN = new QName("
> http://api.content.tripadvisor.com","HotelOptions";);
>
>
> call.registerTypeMapping (HotelOptions.class,
> hotelOptionsQN,
> new
> org.apache.axis.encoding.ser.BeanSerializerFactory(HotelOptions.class,
> envelopeQN),
> new
> org.apache.axis.encoding.ser.BeanDeserializerFactory (HotelOptions.class,
> envelopeQN));
>
>
>
> 
>http://schemas.xmlsoap.org/soap/envelope/ 
"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> ">
>   
>  http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:ns1="con:getHotel">
> http://api.content.tripadvisor.com";>
>85380
>
>
> 832924179B0DACCAA58338B6D9A03F78
>com
>5
>5
>0
>0
>0
>0
> 
>  
>   
>
>
> Does anyone have any ideas as to why i am not getting the prefix's on
> the child elements?
>
> Regards
>
> Alex.
>
>



Re: [Axis2] Problem with invoking web service by using Stub classes

2007-07-03 Thread Charitha Kankanamge

Hi,
The following will help you to get some understanding on creating clients.

http://ws.apache.org/axis2/1_2/quickstartguide.html#clientadb

Let us know if you cannot resolve your problem using the above reference.

regards
Charitha

Naga Srinivas wrote:


*Hi,
  I am new to Axis2, i am trying to develop a web service, and trying 
to invoke it by using it's stub classes. I had created Stubs and 
Skeletons of web service and successfully deployed services to a 
standalone Axis2 server. but now, i would like to know how can we sent 
request to that services, by using stub classes in our application. 
Can any one help me?.

Regards,
Naga.*





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



Re: [Axis2] Problems with addinf prefix's to attributes, or removing them from headers

2007-07-03 Thread Anne Thomas Manes

I assume you mean Axis rather than Axis2. (Axis2 doesn't use BeanSerializer,
nor does it support SOAP encoding.)
What does the WSDL say? Does it specify elementFormDefault="qualified" on
the schema that defines the HotelOptions type? Are you creating your client
stub using WSDL2Java?

Anne


On 7/3/07, Alex Craddock <[EMAIL PROTECTED]> wrote:


Hello,

In the following xml that I am sending using axis2, the lowest child
elements eg, TAID should have the prefix ns2, as if it doesn't then i am
unable to connect and use a web service provided by a third party company, I
am using the below to create the serializer for the bean that i am using,

QName envelopeQN = new QName("http://api.content.tripadvisor.com
","HotelOptions","");
QName hotelOptionsQN = new QName("
http://api.content.tripadvisor.com","HotelOptions";);


call.registerTypeMapping(HotelOptions.class,
hotelOptionsQN,
new
org.apache.axis.encoding.ser.BeanSerializerFactory(HotelOptions.class,
envelopeQN),
new
org.apache.axis.encoding.ser.BeanDeserializerFactory (HotelOptions.class,
envelopeQN));




   http://schemas.xmlsoap.org/soap/envelope/
" xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
">
  
 http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="con:getHotel">
http://api.content.tripadvisor.com";>
   85380
   

832924179B0DACCAA58338B6D9A03F78
   com
   5
   5
   0
   0
   0
   0

 
  
   

Does anyone have any ideas as to why i am not getting the prefix's on the
child elements?

Regards

Alex.




RE: int values lost

2007-07-03 Thread Walker, Jeff
Roland,
I noticed your using soap encoding in your wsdl. Can you switch to
literal?
(I'm guessing there will be precious few bug fixes in the soap encoding
parts of Axis 1.2/1.4 if this turns out to be an Axis error, which I
doubt). It just isn't popular anymore.

I can't help much. I don't know 4D and I also don't know how to force
the stub to use strings all the time. (I actually don't think you can).
The only suggestion I can make is to switch from soap encoding to
literal, and also adopt document vs. rpc, then try again.

Perhaps one of the Axis developers can help you better than I?
Ann?
-jeff

 

-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 03, 2007 5:57 AM
To: axis-user@ws.apache.org
Subject: Re: int values lost

Hi!

I have checked the version and it's 1.4. I have removed some redundat 
libraries. But it wasn't the way to success.

When I change the files generated by WSDL2Java I can get values to the 
server by changing the datatype from int to String but that seems like a

bad solution since I regenerate the stubs on regular basis.

Is there a way to generate the stubs that perhaps could be more 
forgiving? All values as String, untyped etc etc?

I append the wsdl that I use to generate the stubs from if there could 
be anything strange in that? It's from a 4D Server. (http://www.4d.com).

Thanks in advance
Roland
 

Walker, Jeff skrev:
> Not sure if this helps,
> but you can call org.apache.axis.Version.getVersionText() to get the
> version of Axis you're running.
>
> I'm running Axis1.3 and they are the versions of the jars I have.
>
> I suggest you undeploy everything, copy 1.4 again, and start again
with
> a clean deployment.
> -jeff
>  
>
> -Original Message-
> From: Roland Carlsson [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 02, 2007 4:56 PM
> To: axis-user@ws.apache.org
> Subject: int values lost
>
> Hi!
>
> I updated Axis from 1.2 to 1.4 and now I can't use a couple of 
> web-service that have a int as first argument. The webservice-call 
> doesn't fail but the int-value is always one. I have debugged my code 
> and as far as I can follow it do what it should but the reciving
server 
> only recives a 0 (zero).
>
> java -cp 
>
activation.jar:axis.jar:commons-logging-1.0.4.jar:mailapi.jar:commons-di
> scovery-0.2.jar:wsdl4j-1.5.1.jar:jaxrpc.jar:saaj.jar 
> org.apache.axis.wsdl.WSDL2Java
>
> and those libraries are available at the client that uses the stubs.
>
> I'm guessing that I have some kind of versioning-problem in the
library 
> (.jar) but I have no idea of how to figure out wich one it could be.
>
> How to find out what's wrong.
>
> Thanks in advance
> Roland
>
> -
> 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] Problems with addinf prefix's to attributes, or removing them from headers

2007-07-03 Thread Alex Craddock

Hello,

In the following xml that I am sending using axis2, the lowest child
elements eg, TAID should have the prefix ns2, as if it doesn't then i am
unable to connect and use a web service provided by a third party company, I
am using the below to create the serializer for the bean that i am using,

   QName envelopeQN = new QName("http://api.content.tripadvisor.com
","HotelOptions","");
   QName hotelOptionsQN = new QName("http://api.content.tripadvisor.com
","HotelOptions");


call.registerTypeMapping(HotelOptions.class,
   hotelOptionsQN,
   new
org.apache.axis.encoding.ser.BeanSerializerFactory(HotelOptions.class,
envelopeQN),
   new
org.apache.axis.encoding.ser.BeanDeserializerFactory(HotelOptions.class,
envelopeQN));




  http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>
 
http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="con:getHotel">
   http://api.content.tripadvisor.com
">
  85380
  

832924179B0DACCAA58338B6D9A03F78
  com
  5
  5
  0
  0
  0
  0
   

 
  

Does anyone have any ideas as to why i am not getting the prefix's on the
child elements?

Regards

Alex.


Re: Which databinding axis1 has?

2007-07-03 Thread Anne Thomas Manes

Axis uses it's own internal databinding system (referred to as
de/serialization) that's based on SAX. It is not a pluggable option.
(Perhaps you've seen messages such as "no deserialized found for [qname]).
Axis provides built-in de/serializers for beans and arrays, and you can
provide custom de/serializers for other types. You specify the
de/serializers to use, and the mapping between qnames and types in the WSDD
using the beanMapping and typeMapping options.

If you want to use a third-party databinding system, then you must use the
low-level message provider (provider="MSG"), which deserializes the message
into DOM, which you can then bind to your object model.

Anne

On 7/3/07, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:


I think it has xmlbeans support.

Thanks
Deepal

Alexey Zavizionov wrote:
> Hello,
>
> I googled, read docs and searched in sources, but found nothing about
> what databinding for WSDL2Java axis1 uses?
>
> Alexey
>



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




Re: Change MessageContext AND envelope in Handler

2007-07-03 Thread Sebastian Roschke
Hi Deepal,

thanks for the answer. I know that there is no change in the envelope.
But is there any possibility to change the envelope? Would it be
possible to work directly within the envelope? When I get the envelope
object, and maybe a specific part of the header as OMElement, would I be
able to change the envelope in that way. For example:

OMElement element = msgContext.getEnvelope().getHeader().getFirstChild();
element.setText("hallo");

Would this affect the envelope itself?

Thanks for the help.

Regards,
Sebastian


Deepal Jayasinghe wrote:
> hi Sebastian ,
>   
>> Hi,
>>
>> I've got a problem concerning the MessageContext used in Axis2
>> MessageReceivers and Handlers. Is it possible to change members of the
>> message context; e.g. WSAAction? How this changes can be applied to
>> envelope within this message context? I tried
>> msgContext.getEnvelope().buildWithAttachements() but it ignores the
>> changes of the WSAAction member completely.
>>   
>> 
> Envelope is built using input stream , so if you change the wsa action
> there will wont be any change in the envelope.
>
> Thanks
> Deepal
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>   




signature.asc
Description: OpenPGP digital signature


Re: Change MessageContext AND envelope in Handler

2007-07-03 Thread Deepal Jayasinghe
hi Sebastian ,
> Hi,
>
> I've got a problem concerning the MessageContext used in Axis2
> MessageReceivers and Handlers. Is it possible to change members of the
> message context; e.g. WSAAction? How this changes can be applied to
> envelope within this message context? I tried
> msgContext.getEnvelope().buildWithAttachements() but it ignores the
> changes of the WSAAction member completely.
>   
Envelope is built using input stream , so if you change the wsa action
there will wont be any change in the envelope.

Thanks
Deepal


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



Change MessageContext AND envelope in Handler

2007-07-03 Thread Sebastian Roschke
Hi,

I've got a problem concerning the MessageContext used in Axis2
MessageReceivers and Handlers. Is it possible to change members of the
message context; e.g. WSAAction? How this changes can be applied to
envelope within this message context? I tried
msgContext.getEnvelope().buildWithAttachements() but it ignores the
changes of the WSAAction member completely.

Any suggestions?

Thanks a lot for help.
Regards,
Sebastian



signature.asc
Description: OpenPGP digital signature


Re: Deploy & TCPTransport

2007-07-03 Thread Yari Marchetti
thx a lot for the answer.
i read the document and did how it was told, but i keep getting the same
error.
Here is the code snippet i use:

TCPServer t = new TCPServer(,"C:\\axis2"); //axis2.xml  in this
repository contains 
t.start();
ConfigurationContext cc =
ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:\\test\\prova",
"C:\\test\\axis2.xml");//repository with addressing module
ServiceClient service = new ServiceClient(cc,null);
service.engageModule("addressing");
Options o = new Options(); 
EndpointReference er = new
EndpointReference("tcp://localhost:777/ConnectionManager");
o.setTo(er);
o.setAction("PerformNetworkMonitoring");
service.setOptions(o);
 service.sendReceive(payload);

The service name is ConnectionManager and the operation is
PerformNetworkMonitoring. Using TCPMon i was able
to sniff the packet and i can see there is no reference to the service
name (in the W3C document http://www.w3.org/Submission/ws-addressing/
there is a /xs:QName/ but i cant find a
way to set it), so i dont
really know how the service dispatcher could dispatch this request.

thx for any help
yari

Deepal Jayasinghe ha scritto:
> Hi  Yari ,
> When you start the server , you have to give axis2.xml or there will be
> axis2.xml in your repository . Please add
>  , there in that axis2.xml.
>
> In the client side , you have to call
>
> ServiceClient client = new ServiceClient();
> client.engageModule("addressing");
>
>
> The problem is discuss in http://wso2.org/library/233
>
> Thanks
> Deepal
>   


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



Re: Eclipse Europa and XML bindings

2007-07-03 Thread Lahiru Sandakith

Maybe you can find the answer, if you posted to [EMAIL PROTECTED]

Lahiru

On 7/3/07, Desmond Whewell (CV/ETL) <[EMAIL PROTECTED]> wrote:


 Shucks, that's disappointing. :-(

Do you have a timeframe for when we might expect xmlbeans support?

Cheers, Des

 --
*From:* Lahiru Sandakith [mailto:[EMAIL PROTECTED]
*Sent:* 03 July 2007 10:03
*To:* axis-user@ws.apache.org
*Subject:* Re: Eclipse Europa and XML bindings

Hi Desmond,

For the initial release, it was agreed that we will go ahead with the
default Axis2 data binding (i.e ADB).
Its a feature improvement to the 'jst.ws' component under Eclipse WTP.
AFAIK it will be handled in next release.

Thanks

Lahiru.

On 7/3/07, Desmond Whewell (CV/ETL) <[EMAIL PROTECTED]> wrote:
>
>
> I have downloaded the new Europa release for Eclipse to make use of the
> improved support for Axis2. However, when setting the Axis preferences
> for the data binding, the only option is 'ADB'. Does anyone know what I
> have to do to enable support for xmlbeans?
>
> Cheers, Des
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F





--
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F


RE: Eclipse Europa and XML bindings

2007-07-03 Thread Desmond Whewell (CV/ETL)
Shucks, that's disappointing. :-(
 
Do you have a timeframe for when we might expect xmlbeans support?
 
Cheers, Des



From: Lahiru Sandakith [mailto:[EMAIL PROTECTED] 
Sent: 03 July 2007 10:03
To: axis-user@ws.apache.org
Subject: Re: Eclipse Europa and XML bindings


Hi Desmond, 

For the initial release, it was agreed that we will go ahead with the
default Axis2 data binding (i.e ADB).
Its a feature improvement to the 'jst.ws' component under Eclipse WTP.
AFAIK it will be handled in next release. 

Thanks

Lahiru.


On 7/3/07, Desmond Whewell (CV/ETL) <[EMAIL PROTECTED]>
wrote: 


I have downloaded the new Europa release for Eclipse to make use
of the
improved support for Axis2. However, when setting the Axis
preferences 
for the data binding, the only option is 'ADB'. Does anyone know
what I
have to do to enable support for xmlbeans?

Cheers, Des


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






-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F



Re: [jira] Commented: (AXIS2-1435) Can't generate code for more than one interface using wsdl2java

2007-07-03 Thread Alexey Zavizionov

Hi,

I cannot reopen issue and cannot vote on resolved issues. I hear
nothing from owner of the jira bug. I really want to use axis2, but
some bugs really blocked my future work with it.

Thats simplier task to generate code takes much more times than I thought.

Thanks,
Alexey

On 7/3/07, Jess Fisher <[EMAIL PROTECTED]> wrote:

Yes, you need to manually change name. I know this is not pretty at all. But
this Axis bug for Axis2 is still not yet fixed. I see you added a note in
the jira to re-open the bug. Any response from the owner of the jira bug? We
are not the only one experiencing this problem. The Axis2 user group have a
few people who have encountered this problem

Alexey Zavizionov <[EMAIL PROTECTED]>
wrote:
Hello, Jess
Thanks for your response

For me, manually run wsdl2java multiple times looks unfriendly,
because I should manually change name of port interface for geregated
service (reason: for all ports it's same name).

Why wsdl2java can't generate sources for all ports by default?

Regards,
Alexey

On 7/2/07, Jess Fisher wrote:
> Yeah, I tried the Axis2 1.2 version nightly and it's still not fixed.
> I had to manually run wsdl2java multiple times - for each port to get all
> the stubs and skeletons created. This was not a problem in Axis1.4
>
> "Alexey Zavizionov (JIRA)" wrote:
>
> [
>
https://issues.apache.org/jira/browse/AXIS2-1435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507176
> ]
>
> Alexey Zavizionov commented on AXIS2-1435:
> --
>
> I use command line
>
> -s -ss -sd -ssi -g -d none -t -o ${src.gen.dir} -ns2p
>
urn:oasis:names:tc:wsrp:v1:intf=org.exoplatform.services.wsrp.intf,urn:oasis:names:tc:wsrp:v1:types=org.exoplatform.services.wsrp.type,urn:oasis:names:tc:wsrp:v1:bind=org.exoplatform.services.wsrp.bind,urn:oasis:names:tc:wsrp:v1:wsdl=org.exoplatform.services.wsrp.wsdl
> -p org.exoplatform.services.wsrp.wsdl -uri
> wsrp_service.wsdl
>
> > Can't generate code for more than one interface using wsdl2java
> >
>
---
> >
> > Key: AXIS2-1435
> > URL: https://issues.apache.org/jira/browse/AXIS2-1435
> > Project: Axis 2.0 (Axis2)
> > Issue Type: Bug
> > Components: codegen
> > Affects Versions: 1.1
> > Environment: Sun JDK 1.5, WinXP
> > Reporter: yogen
> > Assignee: Amila Chinthaka Suriarachchi
> >
> > I am using wsdl2java to generate code for WSRP WSDL, find WSDL at this
> location:
> >
>
https://svn.apache.org/repos/asf/portals/wsrp4j/trunk/wsdl
> > Ideally, command
> > >wsdl2java -d xmlbeans -p com.sample -ss -sd -g -uri wsrp_service.wsdl
> > should generate code for all the interfaces in WSDL but wsdl2java
randomly
> picks up anyone interface and generates the code for it.
> > When its run subsequently to generate code for other interfaces, it says
> "INFO: File .\src\com\sample\WSRPServiceStub.java will
not
> be overwritten."
> > C:\work\WSRP>wsdl2java -d adb -p com.sample -ss -sd -g -uri
> wsrp_service.wsdl -pn WSRPServiceDescriptionService
> > Using AXIS2_HOME: C:\software\axis2-rc1
> > Using JAVA_HOME: //ms/dist/msjava/PROJ/sunjdk/1.5.0_04
> > Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
> 'file:/C:/work/WSRP/'.
> > Retrieving document at 'wsrp_v1_interfaces.wsdl', relative to
> 'file:/C:/work/WSRP/wsrp_v1_bindings.wsdl'.
> > Retrieving schema at 'wsrp_v1_types.xsd', relative to
> 'file:/C:/work/WSRP/wsrp_v1_interfaces.wsdl'.
> > Retrieving schema at 'xml.xsd', relative to
> 'file:/C:/work/WSRP/wsrp_v1_types.xsd'.
> > Oct 17, 2006 2:42:06 PM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > INFO: File .\src\com\sample\WSRPServiceSkeleton.java
will
> not be overwritten.
> > Oct 17, 2006 2:42:06 PM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > INFO: File
> .\src\com\sample\WSRPServiceMessageReceiverInOut.java
will
> not be overwritten.
> > Oct 17, 2006 2:42:06 PM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > INFO: File
> .\src\com\sample\InvalidRegistrationException.java will
not
> be overwritten.
> > Oct 17, 2006 2:42:06 PM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > INFO: File
.\src\com\sample\OperationFailedException.java
> will not be overwritten.
> > Oct 17, 2006 2:42:06 PM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > INFO: File
> .\src\com\sample\WSRPServiceCallbackHandler.java will not
> be overwritten.
> > Oct 17, 2006 2:42:06 PM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > INFO: File
> .\src\com\sample\InvalidRegistrationException.java will
not
> be overwritten.
> > Oct 17, 2006 2:42:06 PM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > INFO: File
.\src\com\sample\OperationFailedException.java
> will not be overwritten.
> > Oct 17, 2006 2:42:06 PM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > INFO: File .\src\com\sample\WSRPServ

Re: Eclipse Europa and XML bindings

2007-07-03 Thread Lahiru Sandakith

Hi Desmond,

For the initial release, it was agreed that we will go ahead with the
default Axis2 data binding (i.e ADB).
Its a feature improvement to the 'jst.ws' component under Eclipse WTP. AFAIK
it will be handled in next release.

Thanks

Lahiru.

On 7/3/07, Desmond Whewell (CV/ETL) <[EMAIL PROTECTED]> wrote:



I have downloaded the new Europa release for Eclipse to make use of the
improved support for Axis2. However, when setting the Axis preferences
for the data binding, the only option is 'ADB'. Does anyone know what I
have to do to enable support for xmlbeans?

Cheers, Des

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





--
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F


Re: Which databinding axis1 has?

2007-07-03 Thread Deepal Jayasinghe
I think it has xmlbeans support.

Thanks
Deepal

Alexey Zavizionov wrote:
> Hello,
>
> I googled, read docs and searched in sources, but found nothing about
> what databinding for WSDL2Java axis1 uses?
>
> Alexey
>



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



Which databinding axis1 has?

2007-07-03 Thread Alexey Zavizionov

Hello,

I googled, read docs and searched in sources, but found nothing about
what databinding for WSDL2Java axis1 uses?

Alexey

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



Eclipse Europa and XML bindings

2007-07-03 Thread Desmond Whewell (CV/ETL)
 
I have downloaded the new Europa release for Eclipse to make use of the
improved support for Axis2. However, when setting the Axis preferences
for the data binding, the only option is 'ADB'. Does anyone know what I
have to do to enable support for xmlbeans?

Cheers, Des

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