Re: wsdl2java

2009-03-09 Thread chathuranga
Hi Nandana,
thanks for the reply.
i have added the bouncycastle jar into the path. now i am getting below
exception,


require client's private key...

org.apache.axis2.AxisFault: WSHandler: Signature: error during message *
processingorg.apache.ws.security.WSSecurityException*: An unsupported token
was provided (An X509 certificate with version 3 must be used for SKI. The
presented cert has version: 1)

at org.apache.rampart.handler.WSDoAllSender.processMessage(*
WSDoAllSender.java:67*)

at org.apache.rampart.handler.WSDoAllHandler.invoke(*WSDoAllHandler.java:72*
)

at org.apache.axis2.engine.Phase.invoke(*Phase.java:317*)

at org.apache.axis2.engine.AxisEngine.invoke(*AxisEngine.java:264*)

at org.apache.axis2.engine.AxisEngine.send(*AxisEngine.java:429*)

at org.apache.axis2.description.OutInAxisOperationClient.send(*
OutInAxisOperation.java:401*)

at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(*
OutInAxisOperation.java:228*)

at org.apache.axis2.client.OperationClient.execute(*OperationClient.java:163
*)

at
com.huawei.www.bme.cbsinterface.cbs.businessmgr.CBSInterfaceBusinessMgrServiceStub.QueryBasicInfo(
*CBSInterfaceBusinessMgrServiceStub.java:11503*)

at Test.main(*Test.java:75*)

Caused by: *org.apache.ws.security.WSSecurityException*: WSHandler:
Signature: error during message *
processingorg.apache.ws.security.WSSecurityException*: An unsupported token
was provided (An X509 certificate with version 3 must be used for SKI. The
presented cert has version: 1)

at org.apache.ws.security.action.SignatureAction.execute(*
SignatureAction.java:57*)

at org.apache.ws.security.handler.WSHandler.doSenderAction(*
WSHandler.java:197*)

at org.apache.rampart.handler.WSDoAllSender.processBasic(*
WSDoAllSender.java:201*)

at org.apache.rampart.handler.WSDoAllSender.processMessage(*
WSDoAllSender.java:64*)

... 9 more


do you have any idea about this?

thanks,
chathuranga


On Sun, Mar 8, 2009 at 12:40 AM, Nandana Mihindukulasooriya <
nandana@gmail.com> wrote:

> Hi Chathuranga,
>Did you make sure bouncycatlse jars are in the class path ? If you
> using solaris please refer to this [1] JIRA.
>
> thanks,
> nandana
>
> [1] - https://issues.apache.org/jira/browse/WSS-99
>
>
> On Fri, Mar 6, 2009 at 1:20 PM, chathuranga  wrote:
>
>>
>>
>> Hi,
>>
>> We have a server which runs on axis2 1.1 and rampart1.1.
>>
>>  I was trying to generate a client using the WSDL’s in the server. First
>> I used axis2 1.4 and rampart1.1.
>>
>> And were able to successfully generate the java files using wsdl2java
>>
>> I used WSDL2Java -uri http://10.56.176.30:8680/services/sMgrService?wsdl-uw 
>> -t -ssi –u
>>
>>
>>
>> And the client code also compiled successfully.  But when I am running the
>> code below exception is giving.
>>
>> [WARN] Dispatcher org.apache.axis2.engine.RequestURIBasedDispatcher is now
>> deprecated.
>> [WARN] Please edit axis2.xml and replace with the same class in
>> org.apache.axis2.dispatchers package
>> [WARN] Dispatcher org.apache.axis2.engine.SOAPActionBasedDispatcher is now
>> deprecated.
>> [WARN] Please edit axis2.xml and replace with the same class in
>> org.apache.axis2.dispatchers package
>> [WARN] Dispatcher org.apache.axis2.engine.AddressingBasedDispatcher is now
>> deprecated.
>> [WARN] Please edit axis2.xml and replace with the same class in
>> org.apache.axis2.dispatchers package
>> [WARN] Dispatcher org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher
>> is now deprecated.
>> [WARN] Please edit axis2.xml and replace with the same class in
>> org.apache.axis2.dispatchers package
>> [WARN] Dispatcher org.apache.axis2.engine.InstanceDispatcher is now
>> deprecated.
>> [WARN] Please remove the entry for
>> org.apache.axis2.engine.InstanceDispatcherfrom axis2.xml
>> [WARN] Dispatcher org.apache.axis2.engine.RequestURIBasedDispatcher is now
>> deprecated.
>> [WARN] Please edit axis2.xml and replace with the same class in
>> org.apache.axis2.dispatchers package
>> [WARN] Dispatcher org.apache.axis2.engine.SOAPActionBasedDispatcher is now
>> deprecated.
>> [WARN] Please edit axis2.xml and replace with the same class in
>> org.apache.axis2.dispatchers package
>> [WARN] Dispatcher org.apache.axis2.engine.AddressingBasedDispatcher is now
>> deprecated.
>> [WARN] Please edit axis2.xml and replace with the same class in
>> org.apache.axis2.dispatchers package
>> [WARN] Dispatcher org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher
>> is now deprecated.
>> [WARN] Please edit axis2.xml and replace with the same class in
>> org.apache.axis2.dispatchers package
>> [WARN] Dispatcher org.apache.axis2.engine.InstanceDispatcher is now
>> deprecated.
>> [WARN] Please remove the entry for
>> org.apache.axis2.engine.InstanceDispatcherfrom axis2.xml
>> [INFO] No services directory was found under
>> /data1/app/apache-test/htdocs/test/java/chaths/src/axis2-repo.
>> [INFO] Deploying module: rampart-1.1 -
>> file:/data1/app/apache-test/htdocs/test/java/chaths/src/axis2-repo/modules/ramp

RE: Daylight savings problem in Australia

2009-03-09 Thread Felix Castanar
Anyone help out there?

If I have this:

2009-02-26T19:10:00

Why does Axis2 returns one hour more during daylight savings (20:10 instead of 
19:10)?

Shouldn't return always the same date?

Cheers!
Felix

-Original Message-
From: Felix Castanar [mailto:felix.casta...@hyro.com] 
Sent: Friday, 27 February 2009 12:52 PM
To: axis-user@ws.apache.org
Subject: Daylight savings problem in Australia

Hi,

I'm in Sydney (Australia) where actually there is daylight savings (DST).
The problem I have is the following:

I'm accessing a web service server (in Australia) which sends the following:
2009-02-26T19:10:00

But the response object (generated using Axis2 1.4.1) creates a Calendar object 
that is equivalent to:

2009-02-26 20:10:00

(so it added one hour to what it was sent)

Since this conversion was working in Axis2 1.0 I investigated the issue.

This is the calendar object returned by Axis2 1.0 (please note the value for 
the 
last field: DST_OFFSET=360)

java.util.GregorianCalendar[time=123563580,areFieldsSet=true,areAllFieldsSet=true,
lenient=true,zone=sun.util.calendar.ZoneInfo[id="Australia/Sydney",offset=3600,dstSavings=360,
useDaylight=true,transitions=142,lastRule=java.util.SimpleTimeZone[id=Australia/Sydney,offset=3600,
dstSavings=360,useDaylight=true,startYear=0,startMode=3,startMonth=9,startDay=1,startDayOfWeek=1,
startTime=720,startTimeMode=1,endMode=3,endMonth=3,endDay=1,endDayOfWeek=1,endTime=720,
endTimeMode=1]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2009,MONTH=1,
WEEK_OF_YEAR=9,WEEK_OF_MONTH=4,DAY_OF_MONTH=26,DAY_OF_YEAR=57,DAY_OF_WEEK=5,
DAY_OF_WEEK_IN_MONTH=4,AM_PM=1,HOUR=7,HOUR_OF_DAY=19,MINUTE=10,SECOND=0,MILLISECOND=0,
ZONE_OFFSET=3600,DST_OFFSET=360]

Whereas the same Calendar object returned by Axis2 1.4.1 returns:

java.util.GregorianCalendar[time=?,areFieldsSet=false,areAllFieldsSet=false,
lenient=true,zone=sun.util.calendar.ZoneInfo[id="Australia/Sydney",offset=3600,dstSavings=360,
useDaylight=true,transitions=142,lastRule=java.util.SimpleTimeZone[id=Australia/Sydney,offset=3600,
dstSavings=360,useDaylight=true,startYear=0,startMode=3,startMonth=9,startDay=1,startDayOfWeek=1,
startTime=720,startTimeMode=1,endMode=3,endMonth=3,endDay=1,endDayOfWeek=1,endTime=720,
endTimeMode=1]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=?,YEAR=2009,MONTH=1,
WEEK_OF_YEAR=?,WEEK_OF_MONTH=?,DAY_OF_MONTH=26,DAY_OF_YEAR=?,DAY_OF_WEEK=?,
DAY_OF_WEEK_IN_MONTH=?,AM_PM=?,HOUR=?,HOUR_OF_DAY=19,MINUTE=10,SECOND=0,MILLISECOND=0,
ZONE_OFFSET=3600,DST_OFFSET=0]

Note the last field for this version: DST_OFFSET=0

I dig down the source code till I found the method responsible for the 
conversion from "2009-02-26T19:10:00" to the Calendar object.

This method is "public static Calendar convertToDateTime(String source) " in 
the class org.apache.axis2.databinding.utils.ConvertUtils

This method explicitly sets DST_OFFSSET=0 regardless the TimeZone being in DST 
or not, so for the entry "2009-02-26T19:10:00" I will get one extra added in 
DST but the correct time when DST finishes (I already tested it changing my 
computer's clock).

I'm aware that JIRA issue 3916 
(https://issues.apache.org/jira/browse/AXIS2-3916) introduced the code where 
DST_OFFSET is set always to 0.

So... 
a) This is still a problem and the issue 3916 should be reopened
b) The web service should be sending the dates in a way we get the right time 
regardless of the DST. Any suggestion how? (AFAIK "2009-02-26T19:10:00" is the 
correct way)

It would be great if someone could put some light here.

Thanks
Felix








wsa header issue

2009-03-09 Thread Appasamy Thirugnana



Hi,

When we send out SOAP messages if WS-Addressing is engaged, then it should 
always send WS-Addressing headers inside the SOAP messages.
To disable this I got the following property to be set to true.



options.setProperty(DISABLE_ADDRESSING_FOR_OUT_MESSAGES, Boolean.TRUE);

But the problem is when this is set to false and when I try to 
send SOAP messages, in few of the SOAP messages WS-Addressing is appeared and 
in few it is not appeared.
I am trying to make it appear in all SOAP messages. So my question is
1. What might be the reasons for those WS-Addressing not to appear in few SOAP 
messages and to appear in few?
2. To make it appear in all of the SOAP messages is there any property to be 
set other than the above mentioned property 
(DISABLE_ADDRESSING_FOR_OUT_MESSAGES = FALSE) ?

Thanks,
Appu


Re: axis2 version 1.3

2009-03-09 Thread Pradeep Fernando
prateek wrote;

> But the package available is corrupted.


yes, the package is corrupted.Could you please raise a JIRA. some one will
look in to this issue.

cheers,
Pradeep Fernando.


Re: Body with multiple elements (children)

2009-03-09 Thread Pradeep Fernando
Hello Chris,

Your requirement is somewhat strange to me. you cant invoke two operations
at the same time AFAIK. If you are trying to invoke one operation at a time
then one OMelement is not an issue.It would be helpful if you can give the
WSDL of the webService that you're trying to access.

cheers,
Pradeep Fernando.


Re: [Axis2] Is there anyway to set the hostname programatically at runtime?

2009-03-09 Thread Deepal jayasinghe
You can do that, only thing you need to do is change the parameter in
axisconfiguration at the runtime. Which you can do in many ways,
- Do it at module init
- You can do that using a service etc.

Thank you!
Deepal
>
> Hi,
>
> I’m using Axis2 1.4 version.
>
> In axis2.xml there is a parameter named “hostname”
>
> 
>
> 
>
> Is there a way to set this “hostname” parameter programmatically at
> runtime?
>
> The requirement I have is that I have to set a different hostname for
> each server where my webservices is deployed and I don’t want to edit
> each of those axis2.xml files in the corresponding war files.
>
> I’ll have a hostname defined in some property file & I have to read it
> at runtime & set it to this hostname parameter programmatically.
>
> Thanks
>
> Raghu
>


-- 
Thank you!


http://blogs.deepal.org
http://deepal.org



[Axis2] Is there anyway to set the hostname programatically at runtime?

2009-03-09 Thread Raghu Upadhyayula
Hi,

 

I'm using Axis2 1.4 version.

 

In axis2.xml there is a parameter named "hostname"

 





 

Is there a way to set this "hostname" parameter programmatically at
runtime?

 

The requirement I have is that I have to set a different hostname for
each server where my webservices is deployed and I don't want to edit
each of those axis2.xml files in the corresponding war files.

 

I'll have a hostname defined in some property file & I have to read it
at runtime & set it to this hostname parameter programmatically.

 

Thanks

Raghu



need to send the request to the Apache Axis (1.1) by placing the entire XML of Soap Envelope into the Browser's address bar

2009-03-09 Thread vicki

Hi, I need to send the request to the Apache Axis (1.1) web service by
placing the entire XML of Soap Envelope into the Browser's address bar. I
was able to HTTP Post the envelope to the service successfully, but don't
know how to do it with get. Is this possible? 
Thanks!
Vicki
-- 
View this message in context: 
http://www.nabble.com/need-to-send-the-request-to-the-Apache-Axis-%281.1%29-by-placing-the-entire-XML-of-Soap-Envelope-into-the-Browser%27s-address-bar-tp22425311p22425311.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Applying policies at binding hierarchy in Apache Axis2 1.4.1/Rampart 1.4

2009-03-09 Thread Alexis Midon
Hello guys,

would you have a working sample of policies embedded in a wsdl, please?
thanks in advance for your answers.

Alexis


On Thu, Mar 5, 2009 at 3:09 PM, Alexis Midon  wrote:

> Hi Nandana,
>
> did you have a chance to look at it?
>
> Alexis
>
>
>
> On Fri, Feb 20, 2009 at 1:05 PM, Alexis Midon  wrote:
>
>> The wsdl is also available here : http://gist.github.com/67691
>> Just in case the attachement did not make it through.
>>
>> Alexis
>>
>>
>>
>> On Fri, Feb 20, 2009 at 1:02 PM, Alexis Midon  wrote:
>>
>>> Hi Nandana,
>>>
>>> sorry for the late answer. Here is attached the wsdl I used.
>>> And the code to create the AxisService is here [1]
>>>
>>> [1]
>>> http://github.com/matthieu/apache-ode/blob/085025ab3639c7aa0255bbb9b905210ff6caf295/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisService.java#L80
>>>
>>> Thanks a lot for your help.
>>>
>>> Alexis
>>>
>>>
>>> 2009/2/16 Nandana Mihindukulasooriya 
>>>
>>>  Hi Alexis,
   can you post the WSDL you used  ?

 thanks,
 nandana


 On Mon, Feb 16, 2009 at 9:06 AM, Alexis Midon wrote:

> I can't wait for your feedback, and may be a working sample ;)
>
> Thanks a lot Nandana!
>
> Alexis
>
>
>
> On Sun, Feb 15, 2009 at 3:49 PM, Nandana Mihindukulasooriya <
> nandana@gmail.com> wrote:
>
>> Hi Alexis,
>>Sorry I just saw the mail. I will have a look at your
>> WSDL11ToAxisServiceBuilder and see why the policy is not being attached
>> correctly.
>>
>> thanks,
>> nandana
>>
>>
>>
>> On Thu, Feb 12, 2009 at 10:21 AM, Alexis Midon wrote:
>>
>>> (forwarding to the rampart folks)
>>>
>>> Alexis
>>>
>>>
>>>
>>> -- Forwarded message --
>>> From: Alexis Midon 
>>> Date: Tue, Feb 10, 2009 at 5:50 PM
>>> Subject: Applying policies at binding hierarchy in Apache Axis2
>>> 1.4.1/Rampart 1.4
>>> To: axis-user@ws.apache.org
>>>
>>>
>>>
>>> Hi everyone,
>>>
>>> based on this article: http://wso2.org/library/3786, I wrote my own
>>> (simple) wsdl with a policy attached to the soap binding.
>>> I load that wsdl with a WSDL11ToAxisServiceBuilder [1]. My issue is
>>> that when I invoke the service the following AxisFault is thrown:
>>>
>>> org.apache.axis2.AxisFault: Must Understand check failed for header
>>> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd:
>>>  Security
>>> at
>>> org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:102)
>>> at
>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:166)
>>> at
>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>>>
>>>
>>> After a debugging session, it appears that the policy map of the
>>> AxisService holds a policy reference, but the policy include and 
>>> subject do
>>> not. And the policy is never accessed by the RampartReceiver.
>>>
>>> Could you tell what I'm missing and/or point me to a working sample
>>> of embedded policy (I did not find any in Rampart repo)?
>>>
>>> Thanks in advance,
>>>
>>> Alexis
>>>
>>> [1]
>>> http://github.com/matthieu/apache-ode/blob/085025ab3639c7aa0255bbb9b905210ff6caf295/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisService.java#L80
>>>
>>>
>>>
>>
>>
>> --
>> Nandana Mihindukulasooriya
>> WSO2 inc.
>>
>> http://nandana83.blogspot.com/
>> http://www.wso2.org
>>
>
>
>>>
>>
>


Re: axis2 | wsa issue

2009-03-09 Thread Sagara Gunathunga
Hi Appasamy ,
following links may be useful to get  clear idea about  WS-addressing
and  it's usage , specially in axis2

[1] - http://www.ibm.com/developerworks/webservices/library/ws-address.html
[2] - http://wso2.org/library/2561


Thanks ,

On Mon, Mar 9, 2009 at 7:18 PM, Deepal jayasinghe  wrote:
> Nothing to worry this is WS-Addressing headers. So when you engage
> addressing it adds that header. However I did not understand what do you
> mean by "request SOAP xml".
>
> Thank you!
> Deepal
>> Hi,
>>
>>  In some of my axis2 request I am getting the following
>> elements appended in SOAP header and sometimes its getting appearing
>> in the request SOAP xml. Can any one please throw some light on this?
>>
>>   endpoint 
>>
>>
>> urn:uuid:A4C0CCA2DEDEF783EB1236596328532
>>
>>  url 
>>
>>
>>
>> Thanks,
>>
>> Appasamy
>>
>
>
> --
> Thank you!
>
>
> http://blogs.deepal.org
> http://deepal.org
>
>



-- 
Sagara Gunathunga

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


Re: axis2 | wsa issue

2009-03-09 Thread Deepal jayasinghe
Nothing to worry this is WS-Addressing headers. So when you engage
addressing it adds that header. However I did not understand what do you
mean by "request SOAP xml".

Thank you!
Deepal
> Hi,
>  
>  In some of my axis2 request I am getting the following
> elements appended in SOAP header and sometimes its getting appearing
> in the request SOAP xml. Can any one please throw some light on this?
>  
>   endpoint 
>
>
> urn:uuid:A4C0CCA2DEDEF783EB1236596328532
>
>  url  
>
>  
>
> Thanks,
>
> Appasamy 
>


-- 
Thank you!


http://blogs.deepal.org
http://deepal.org



axis2 | wsa issue

2009-03-09 Thread Appasamy Thirugnana
Hi,

 In some of my axis2 request I am getting the following elements 
appended in SOAP header and sometimes its getting appearing in the request SOAP 
xml. Can any one please throw some light on this?

  endpoint 
urn:uuid:A4C0CCA2DEDEF783EB1236596328532
 url 

Thanks,
Appasamy


Re: sql.Date gets converted to Util.Calendar in the denerated Stub

2009-03-09 Thread Andreas Veithen
If the server specifies the timezone information in the dateTime field
(this is not required, but recommended), than the field identifies a
precise moment in time and there is no ambiguity whatsoever.

Andreas

On Mon, Mar 9, 2009 at 10:05, Vincent FINET  wrote:
> Hi,
>
> Using Calendar might be an issue if the server and the client are not
> using the same time zone. At least that was the case in Axis 1.1
>
> Say the server is set to GMT and the client to GMT+1.
> If the server sends for example 01/01/2009 10:20:11, the client will
> receive 01/01/2009 11:20:11. Here the date do not change so you might
> think it's still ok... But what if the server send 01/01/2009
> 23:20:11...? the client will receive 02/01/2009 00:20:11.
>
> If you dont want that, you may consider sending string instead.
> unless that was corrected (if considered as a bug) in further releases...
>
> Best regards,
> Vincent Finet
>
>
> On Mon, Mar 9, 2009 at 8:40 AM, Sagara Gunathunga
>  wrote:
>> Hi Kumar,
>> I think default ADB data binding behaviour map xs:dateTime into
>> java.util.Calendar , but this is  not  a issue , can you post your
>> service class and the client code segment to see  how you pass
>> java.util.Calendar instance to stub method ?
>>
>> usually  you can pass a  date in the client side as follows
>>
>>               //req is a instance of the generated request class
>>               HelloService req=new HelloService();
>>                //create a date instance with the value
>>                Date date=..
>>                Calendar calendar=new GregorianCalendar();
>>                calendar.setTime(date);
>>                req.setDate(calendar);
>>
>> If you not specify any date to Calendar ,by default  it will pick up
>> current system  time .
>>
>> Thanks ,
>>
>>
>> On Mon, Mar 9, 2009 at 12:18 PM,   wrote:
>>> Hi,
>>>
>>> we are creating a WebService (Axis2) using Code first approach.
>>> we have created a Request class, response class and a Operation Class with 
>>> the function to be exposed to client.
>>>
>>> the Request class has a Date Field...
>>> We try declaring the Date Field as java.sql.Date / java.util.Date , but 
>>> when we generate WSDL and Stubs it getting mapped to java.util.Calendar..
>>>
>>> hence We are facing a problem. we generated Client stubs and passed the 
>>> Calendar instance to the Service, but the
>>> Calendar instance is giving the current Date and time and not the passed 
>>> input value.
>>>
>>> Any inputs on this would be of great help.
>>>
>>> thanks in advance
>>> Kumar
>>>
>>> Please do not print this email unless it is absolutely necessary.
>>>
>>> The information contained in this electronic message and any attachments to 
>>> this message are intended for the exclusive use of the addressee(s) and may 
>>> contain proprietary, confidential or privileged information. If you are not 
>>> the intended recipient, you should not disseminate, distribute or copy this 
>>> e-mail. Please notify the sender immediately and destroy all copies of this 
>>> message and any attachments.
>>>
>>> WARNING: Computer viruses can be transmitted via email. The recipient 
>>> should check this email and any attachments for the presence of viruses. 
>>> The company accepts no liability for any damage caused by any virus 
>>> transmitted by this email.
>>>
>>> www.wipro.com
>>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Blog - http://ssagara.blogspot.com
>> Web - http://sagaras.awardspace.com/
>>
>>
>


Question about an exception

2009-03-09 Thread Michael Frey
Hi,

there are a number of threads and hints about the "too many socket
exceptions" but none of them are working for me. Maybe somebody can
point me into the right direction?

I've built a web service client with axis (to be precise with axis/adb)
which sends a number of requests to a web service. So far I'm just using
 the adb generated stub and wrap some thread and command line parsing
stuff around it. My client crashes with the following exception:

"org.apache.axis2.AxisFault: Too many open files"

The output of "lsof -r -i TCP" states that there are 1019 file
descriptors in use by the client. About 95 % are in the state
"CLOSE_WAIT" while the others are "ESTABLISHED".

I've set setCallTransportCleanup in the constructor of the service stub
to true (with no effect).

Any hints? Thanks in advance!

Best regards,
 Michael



Body with multiple elements (children)

2009-03-09 Thread Chris Nofneur

Hello,

I am writing a client web service using Axis2

The message I want to send looks like this :


 
 
 
  bar
  foo
 

The body as many children.

I use the class ServiceClient to send the message.

My problem is that the method sendReceive only takes one element in
parameter (an OMElement) which is the child of a Body element, so I can't
send many elements

I had a look in the source code, the only to fix this is to re write this
class and modify the method : private void fillSOAPEnvelope(MessageContext
messageContext, OMElement xmlPayload), it is a too hacky for me...

Any suggestions ?

Chris
-- 
View this message in context: 
http://www.nabble.com/Body-with-multiple-elements-%28children%29-tp22411094p22411094.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Ibatis Integration

2009-03-09 Thread Ognjen Blagojevic
I need to use Ibatis as a DAO frame work with Apache AXIS2, i am 
newbie to AXIS2 please help me to configure the same.


You can use any ORM framework, including iBatis, in combination with 
Axis2. Axis2 and iBatis wont interfere, so there shouldn't be any 
problems with combining them.


Start by writing elementary ORM project that uses iBatis, and elementary 
web service project using Axis2 (you have useful examples in the 
distro), and than try to integrate the two.


Regards,
Ognjen


Re: sql.Date gets converted to Util.Calendar in the denerated Stub

2009-03-09 Thread Vincent FINET
Hi,

Using Calendar might be an issue if the server and the client are not
using the same time zone. At least that was the case in Axis 1.1

Say the server is set to GMT and the client to GMT+1.
If the server sends for example 01/01/2009 10:20:11, the client will
receive 01/01/2009 11:20:11. Here the date do not change so you might
think it's still ok... But what if the server send 01/01/2009
23:20:11...? the client will receive 02/01/2009 00:20:11.

If you dont want that, you may consider sending string instead.
unless that was corrected (if considered as a bug) in further releases...

Best regards,
Vincent Finet


On Mon, Mar 9, 2009 at 8:40 AM, Sagara Gunathunga
 wrote:
> Hi Kumar,
> I think default ADB data binding behaviour map xs:dateTime into
> java.util.Calendar , but this is  not  a issue , can you post your
> service class and the client code segment to see  how you pass
> java.util.Calendar instance to stub method ?
>
> usually  you can pass a  date in the client side as follows
>
>               //req is a instance of the generated request class
>               HelloService req=new HelloService();
>                //create a date instance with the value
>                Date date=..
>                Calendar calendar=new GregorianCalendar();
>                calendar.setTime(date);
>                req.setDate(calendar);
>
> If you not specify any date to Calendar ,by default  it will pick up
> current system  time .
>
> Thanks ,
>
>
> On Mon, Mar 9, 2009 at 12:18 PM,   wrote:
>> Hi,
>>
>> we are creating a WebService (Axis2) using Code first approach.
>> we have created a Request class, response class and a Operation Class with 
>> the function to be exposed to client.
>>
>> the Request class has a Date Field...
>> We try declaring the Date Field as java.sql.Date / java.util.Date , but when 
>> we generate WSDL and Stubs it getting mapped to java.util.Calendar..
>>
>> hence We are facing a problem. we generated Client stubs and passed the 
>> Calendar instance to the Service, but the
>> Calendar instance is giving the current Date and time and not the passed 
>> input value.
>>
>> Any inputs on this would be of great help.
>>
>> thanks in advance
>> Kumar
>>
>> Please do not print this email unless it is absolutely necessary.
>>
>> The information contained in this electronic message and any attachments to 
>> this message are intended for the exclusive use of the addressee(s) and may 
>> contain proprietary, confidential or privileged information. If you are not 
>> the intended recipient, you should not disseminate, distribute or copy this 
>> e-mail. Please notify the sender immediately and destroy all copies of this 
>> message and any attachments.
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient should 
>> check this email and any attachments for the presence of viruses. The 
>> company accepts no liability for any damage caused by any virus transmitted 
>> by this email.
>>
>> www.wipro.com
>>
>
>
>
> --
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://sagaras.awardspace.com/
>
>


Re: Axis 1.1 / Multiple Proxies

2009-03-09 Thread Vincent FINET
Any ideas ?

On Thu, Mar 5, 2009 at 8:21 PM, Vincent FINET  wrote:
> Hi Axis Users!
>
>
> I have a question about Axis 1.1
>
> I have a Web Application that should call two Web Services with Axis 1.1.
>
> The two Web Services can be reached via two different HTTP proxies.
> Meaning WS #1 can be reached via HTTP proxy #1 (and only this one) and
> WS #2 can be reached via HTTP proxy #2 (and only this one).
>
> The two calls are not synchronised and can be done at the same time.
> So in my case, i'm looking for a thread safe solution.
>
> I read an article
> (http://tjordahl.blogspot.com/2007/03/apache-axis-and-commons-httpclient.html)
> saying i must change the client-config.wsdd, but according to me this
> file is only for application servers offering the web service. i'm a
> the client of the web services.. the "consumer" i mean.
>
> Moreover, the solutions below are already out of the scope because they are 
> not
> thread safe :
>   - system properties :
>        System.setProperty("https.proxyHost", );
>        System.setProperty("https.proxyPort", .);
>   - axis properties :
>        AxisProperties.setProperty("https.proxyHost", );
>        AxisProperties.setProperty("https.proxyPort", .);
>
> Finally, my question is :
>     Do you have any idea how can I specify two different proxies for
> calling WS with axis 1.1 from a Web Application in a thread-safe way?
>
>
> Thanks for your kind responses.
>
> Vince
>


Re: sql.Date gets converted to Util.Calendar in the denerated Stub

2009-03-09 Thread Sagara Gunathunga
Hi Kumar,
I think default ADB data binding behaviour map xs:dateTime into
java.util.Calendar , but this is  not  a issue , can you post your
service class and the client code segment to see  how you pass
java.util.Calendar instance to stub method ?

usually  you can pass a  date in the client side as follows

   //req is a instance of the generated request class
   HelloService req=new HelloService();
//create a date instance with the value
Date date=..
Calendar calendar=new GregorianCalendar();
calendar.setTime(date); 
req.setDate(calendar);

If you not specify any date to Calendar ,by default  it will pick up
current system  time .

Thanks ,


On Mon, Mar 9, 2009 at 12:18 PM,   wrote:
> Hi,
>
> we are creating a WebService (Axis2) using Code first approach.
> we have created a Request class, response class and a Operation Class with 
> the function to be exposed to client.
>
> the Request class has a Date Field...
> We try declaring the Date Field as java.sql.Date / java.util.Date , but when 
> we generate WSDL and Stubs it getting mapped to java.util.Calendar..
>
> hence We are facing a problem. we generated Client stubs and passed the 
> Calendar instance to the Service, but the
> Calendar instance is giving the current Date and time and not the passed 
> input value.
>
> Any inputs on this would be of great help.
>
> thanks in advance
> Kumar
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments to 
> this message are intended for the exclusive use of the addressee(s) and may 
> contain proprietary, confidential or privileged information. If you are not 
> the intended recipient, you should not disseminate, distribute or copy this 
> e-mail. Please notify the sender immediately and destroy all copies of this 
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should 
> check this email and any attachments for the presence of viruses. The company 
> accepts no liability for any damage caused by any virus transmitted by this 
> email.
>
> www.wipro.com
>



-- 
Sagara Gunathunga

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


Using Netbeans IDE to Develop Axis WS

2009-03-09 Thread Dhanush Gopinath
 Hi,

 

Has anyone used the Netbeans IDE to generate Axis WS as per this
tutorial -
http://www.netbeans.org/kb/61/websvc/gs-axis.html#java_project

If so has any one used the Axis2 Service in WSDL option which creates
the WS in top down approach. I got an error saying that the WSDL is not
available.

 

Any help is appreciated.

 

Thanks & Regards

Dhanush 



RE: Need Help on AXIS Integration with IBATIS

2009-03-09 Thread Jain, Prateek
 

 

 

Shilpa,

 

  Just use WSDL2JAVA to get your java objects from WSDL provided. Then
in skeleton generated in this task, out your logic and in the backend
use iBatis as you use in any normal java app.

 

 

Regards,

Prateek

 

 

 



From: shilpa.raghaven...@wipro.com [mailto:shilpa.raghaven...@wipro.com]

Sent: Monday, March 09, 2009 12:44 PM
To: axis-user@ws.apache.org
Subject: Need Help on AXIS Integration with IBATIS

 

Hi,

 

I need to use Ibatis as a DAO frame work with Apache AXIS2, i am
newbie to AXIS2 please help me to configure the same.

 

Regards,

Shilpa

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email. 

www.wipro.com 



Need Help on AXIS Integration with IBATIS

2009-03-09 Thread shilpa.raghavendra
Hi,

I need to use Ibatis as a DAO frame work with Apache AXIS2, i am
newbie to AXIS2 please help me to configure the same.

Regards,
Shilpa

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com