[Axis2] How to use xml version 1.1 with Axis2?

2007-08-03 Thread Sathija Pavuluri


Hi,

I'd like my Axis2 service requests and responses to use xml version 1.1 as 
opposed to the default 1.0 that it is using now.
Is there any configuration setting that lets me specify which xml version to 
use?

Thanks,
Sathija.



  Be a better Heartthrob. Get better relationship answers from someone who 
knows.
Yahoo! Answers - Check it out. 






   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 

Re: unable to engage the addressing module

2007-02-19 Thread Sathija Pavuluri
I had a similar problem when the addressing module was in the right folder.
In my case, it happened because I was deploying my app directly from war 
without unpacking it (tomcat 5.5.20)

Is that what you are doing too?

- Sathija.


> Hi all,
>
> according to previous messages usually, if any, problems with the
> addressing module (or others) happen on the client side. I'm facing the
> same problem on the server side (tomcat 5.5.20). The addressing module
> is in the right folder.
>
> Any idea?
>
> Thanks,
> Michele
>
> ncl.qosp.controller.handler.Handler.send(Handler.java:411) ERROR
> [http-8081-Processor23] - Unable to forward the request
> org.apache.axis2.AxisFault: Unable to engage module : addressing
> at
> org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:296)
> at
> ncl.qosp.controller.handler.sender.DefaultSender.send(DefaultSender.java:118)
> at ncl.qosp.controller.handler.Handler.send(Handler.java:401)
> at ncl.qosp.controller.handler.Handler.submit(Handler.java:370)
> at
> ncl.qosp.controller.scheduler.DefaultServiceManager.queue(DefaultServiceManager.java:170)
> at
> ncl.qosp.controller.scheduler.managed.queue.Dispatcher.queue(Dispatcher.java:517)
> at
> ncl.qosp.controller.RoutingService.forward(RoutingService.java:401)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver.invokeBusinessLogic(RawXMLINOnlyMessageReceiver.java:79)
> at
> org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:35)
> at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:177)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
> at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:268)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at org.apache.coyote.http11.Http11BaseProtocol
> $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool
> $ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:595)
>
>
>
> -
> 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] Axis classloading issue in tomcat war deployment

2007-02-15 Thread Sathija Pavuluri
Deepal,

I am using tomcat 5.5.20.
It works for me when I drop my war file to /webapps and server.xml setting is:



This unpacks the war file and everything works fine.

However, when I drop my war file to /webapps and change the above setting to


I get the axis startup error described below.

I suspect you were unpacking the war on your test run.
Would you try with unpackWARs="false" and make sure you only have the .war file 
in your /webapps and not the unpacked
archvie.

I have been reading up on this issue and found a thread on tomcat user list 
that said this about running apps without
unpacking the war:

One thing to watch out for when running an app directly from a .war
file is that if the application is trying to do any File IO where it
tries to load resources existing within the WAR structure, it won't
work if the .war is not expanded into a directory.  I've noticed
various frameworks that ignore this and continue to use File IO.
These apps *will* break.  See if you are getting any stack traces in
Tomcat's log files.
The webapp itself has to be written so that it can work inside a WAR.
Most commonly, that means using ServletContext.getResource() or
ServletContext.getResourceAsStream() instead of file i/o in order to read
webapp resources.


If this is true, I suspect axis uses file i/o to load modules, hence the error 
below.

Is this something axis can support if doesnt already?


Thanks,
Sathija.





> I test with tomcat 5.0 and it worked for me, so what is the Tomcat
> version are you using ?
>
> Thanks
> Deepal
>
> Sathija Pavuluri wrote:
>
>>Hi,
>>
>>When I startup tomcat on my development box with my webapp containing axis 
>>repo, everything works fine.
>>My app's WEB-INF contains services/Test.aar
>>  modules/addressing.mar
>>  conf/axis2.xml
>>When I war the same application and deploy on a test box, tomcat log shows 
>>this error during startup of axis servlet.
>>Happens both on Linux and Windows environments.
>>
>>Looks like there are some class loading issues when the webapp is deployed as 
>>a war file.
>>
>>Are there any known issues here? I am using Axis2 1.1.1.
>>
>>Below is the snippet from tomcat's log that shows axis startup error.
>>
>>Thanks,
>>Sathija.
>>
>>
>>
>>SEVERE: Servlet /test-app threw load() exception
>>org.apache.axis2.AxisFault: The system is attempting to engage a module
>>that is not available: addressing
>>at
>>org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:394)
>>at
>>org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEngine.java:663)
>>at
>>org.apache.axis2.deployment.WarBasedAxisConfigurator.engageGlobalModules(WarBasedAxisConfigurator.java:269)
>>at
>>org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:69)
>>at
>>org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:385)
>>at
>>org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:335)
>>at
>>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
>>at
>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>>at
>>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
>>at
>>org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
>>
>>
>>-
>>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]
>
>



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



[Axis2] Axis classloading issue in tomcat war deployment

2007-02-14 Thread Sathija Pavuluri

Hi,

When I startup tomcat on my development box with my webapp containing axis 
repo, everything works fine.
My app's WEB-INF contains services/Test.aar
  modules/addressing.mar
  conf/axis2.xml
When I war the same application and deploy on a test box, tomcat log shows this 
error during startup of axis servlet.
Happens both on Linux and Windows environments.

Looks like there are some class loading issues when the webapp is deployed as a 
war file.

Are there any known issues here? I am using Axis2 1.1.1.

Below is the snippet from tomcat's log that shows axis startup error.

Thanks,
Sathija.



SEVERE: Servlet /test-app threw load() exception
org.apache.axis2.AxisFault: The system is attempting to engage a module
that is not available: addressing
at
org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:394)
at
org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEngine.java:663)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.engageGlobalModules(WarBasedAxisConfigurator.java:269)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:69)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:385)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:335)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)


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



Re: Service not found problem

2007-02-01 Thread Sathija Pavuluri
Does your services.xml describe the UserService?


> Hi,
>
>   I'm having trouble fixing the "Service not found operation terminated"
> problem.
>
>  The end point in my wsdl in
> "http://localhost:8080/Comergent/ws/matrix/services/UserService";. I've
> turned on logging and i see in the logs on the server side, that the
> 'RequestURIBasedDispatcher handler is trying to parse the request URI
> which is
> "http://localhost:8080/Comergent/ws/matrix/services/UserService";, same
> as the defined in the wsdl. However, the RequestURIBasedDispatcher does
> not find the service and neither can any of the other dispatchers find
> the service. The soap action does have the operation parameter
> (action="urn:getUser") set. I've configured axis2 as an embedded webapp.
> Is this causing the problem when the dispatchers are trying to locate
> the service? Can anyone let me know where i've gone wrong.
>
> Thanks in advance,
> vedha
>
>
>
>
> -
> 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] RPCMessageReceiver deserialize error when Date is null

2007-01-31 Thread Sathija Pavuluri
Kinichiro, Deepal,

Actually my issue is related more with the datetime problem described in
http://issues.apache.org/jira/browse/AXIS2-1883 which was linked to AXIS2-1745 
that Kinichiro mentioned.

I have been using Axis2 1.1.1 release.
Will get the latest nightly and try the fix.

Thanks,
Sathija.


> Hi,
>
> Did you try current latest nightly ?
> I think this issue was resolved by AXIS2-1745, after 1.1.1 release.
> http://issues.apache.org/jira/browse/AXIS2-1745
>
> kinichiro
>
> --- Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> I thought Date issues with RPCMessageReceiver might've been fixed,
>> but not this one maybe.
>> When my service returns an object that contains a java.util.Date
>> field whose value is null,
>> the deserializer throws as exception about bad date format.
>> I am using Axis2 1.1.1. Works fine when the date value is non-null
>> though.
>>
>> Here is the exception stack trace:
>>
>> java.lang.NumberFormatException: badDateTime00
>> at
>>
> org.apache.axis2.databinding.typemapping.SimpleTypeMapper.makeCalendar(SimpleTypeMapper.java:214)
>> at
>>
> org.apache.axis2.databinding.typemapping.SimpleTypeMapper.getSimpleTypeObject(SimpleTypeMapper.java:95)
>> at
>>
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:291)
>> at
>>
> org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:557)
>> at
>>
> org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:507)
>> at
>>
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:446)
>> at
>>
> org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:97)
>> at
>>
> com.emprisa.ena.ws.client.DeviceServiceStub.getConfiguration(DeviceServiceStub.java:50)
>> at
>>
> com.emprisa.ena.ws.DeviceServiceTest.testGetConfiguration(DeviceServiceTest.java:56)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>> at
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>>
>> Thanks,
>> Sathija.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
>
> 
> Finding fabulous fares is fun.
> Let Yahoo! FareChase search your favorite travel sites to find flight and 
> hotel bargains.
> http://farechase.yahoo.com/promo-generic-14795097
>
> -
> 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] RPCMessageReceiver deserialize error when Date is null

2007-01-30 Thread Sathija Pavuluri
Hi,

I thought Date issues with RPCMessageReceiver might've been fixed, but not this 
one maybe.
When my service returns an object that contains a java.util.Date field whose 
value is null,
the deserializer throws as exception about bad date format.
I am using Axis2 1.1.1. Works fine when the date value is non-null though.

Here is the exception stack trace:

java.lang.NumberFormatException: badDateTime00
at 
org.apache.axis2.databinding.typemapping.SimpleTypeMapper.makeCalendar(SimpleTypeMapper.java:214)
at 
org.apache.axis2.databinding.typemapping.SimpleTypeMapper.getSimpleTypeObject(SimpleTypeMapper.java:95)
at 
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:291)
at 
org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:557)
at 
org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:507)
at 
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:446)
at 
org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:97)
at 
com.emprisa.ena.ws.client.DeviceServiceStub.getConfiguration(DeviceServiceStub.java:50)
at 
com.emprisa.ena.ws.DeviceServiceTest.testGetConfiguration(DeviceServiceTest.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


Thanks,
Sathija.


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



Re: [AXIS2] Which binding framework should i use for complex xml handling

2007-01-29 Thread Sathija Pavuluri
> > >As i mention usually, start from WSDL/Schema. (NOT from
> > > java/pojo's).

Sorry for chipping into this thread with an unrelated question, but wanted to 
know why you say that
Is that because axis2 has less good features for pojo services?
I had read some articles early on when I was jumping into this, that didnt 
advocate for either approach.

Thanks,
Sathija.



> oops forgot the link:
>
> http://mail-archives.apache.org/mod_mbox/ws-axis-user/200609.mbox/[EMAIL 
> PROTECTED]
>
> -- dims
>
> On 1/29/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>> #1) Yes. Start with Schema first (i use XMLSPY to write xsd's). Then
>> follow instructions from Anne here to fill up the template WSDL.
>>
>> #2) Axis2 w/o a doubt.
>>
>> thanks,
>> dims
>>
>>
>> On 1/29/07, mvkirankumar <[EMAIL PROTECTED]> wrote:
>> >
>> > Thanks Davanum Srinivas for your response.
>> >
>> > OK, you advise to start from WSDL rather than java/pojo's.
>> >
>> > I got two questions:
>> >
>> > 1. But, does that mean we have to prepare a WSDL on our own first and then
>> > start off.
>> > Sorry, if this question is silly. I am new to this axis world.
>> >
>> > 2. I would have a big xml data with complicated schema. So using xmlbeans
>> > would work fine means, which one is stable to use xmlbeans AXIS1.4 or 
>> > AXIS2.
>> >
>> > Thanks,
>> > Kiran kumar.
>> >
>> >
>> > Davanum Srinivas wrote:
>> > >
>> > > If you have a complicated schema, you should use xmlbeans. If you are
>> > > willing to sacrifice a bit of schema support for better performance,
>> > > use ADB. As i mention usually, start from WSDL/Schema. (NOT from
>> > > java/pojo's).
>> > >
>> > > thanks,
>> > > dims
>> > >
>> > > On 1/29/07, mvkirankumar <[EMAIL PROTECTED]> wrote:
>> > >>
>> > >> Hi,
>> > >>
>> > >> Please suggest me with the following:
>> > >>
>> > >> Which xml java binding framework should i use or which one is stable to
>> > >> use.
>> > >> I have tried AXIOM sample, jibx both do not work.
>> > >> Only the samples given in axis2 works.
>> > >> if i try out something, they do not work.
>> > >>
>> > >> Please help me, to take up a robust framework to implement in my 
>> > >> project.
>> > >>
>> > >> thanks
>> > >> kiran kumar.
>> > >> --
>> > >> View this message in context:
>> > >> http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8694267
>> > >> Sent from the Axis - User mailing list archive at Nabble.com.
>> > >>
>> > >>
>> > >> -
>> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > >> For additional commands, e-mail: [EMAIL PROTECTED]
>> > >>
>> > >>
>> > >
>> > >
>> > > --
>> > > Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services 
>> > > Developers
>> > >
>> > > -
>> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > > For additional commands, e-mail: [EMAIL PROTECTED]
>> > >
>> > >
>> > >
>> >
>> > --
>> > View this message in context:
>> http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8695199
>> > Sent from the Axis - User mailing list archive at Nabble.com.
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>> --
>> Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
>>
>
>
> --
> Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
>
> -
> 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] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-29 Thread Sathija Pavuluri
I have created a JIRA: AXIS2-2055
Also attached the entire source and the tcpmon response to the JIRA.

Thanks.
Sathija.


> Sounds like a bug to me. Can you please raise a JIRA?
>
> Paul
>
> On 1/29/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> > The client won't be able to "see" the hierarchy. In other words the
>> > client will only see a Weather schema, it won't know that Weather
>> > extends from ABC. But apart from that it should work fine.
>>
>> Does that mean that data from parent class will be lost?
>>
>> I actually tested this out with these objects.
>>
>> public class CustomerDTO {
>> private String name;
>> private String phone;
>> private String address;
>> // public getters/setters
>> }
>>
>> public class PremierCustomerDTO extends CustomerDTO {
>> private String clubName;
>> private String vipNumber;
>> // public getters/setters
>> }
>>
>> My service class returns a PremierCustomerDTO with data populated on it for 
>> all five attributes.
>> Whereas, after I retrieve the PremierCustomerDTO at the client side, only 
>> the 2 attrs (clubName, vipNumber) declared
>> on it are returned.
>> The other 3 from the parent are null.
>>
>> Is that the way its designed to work? Or should I be doing something 
>> different?
>>
>> Thanks!
>> Sathija.
>>
>> >
>> > Paul
>> >
>> > On 1/29/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Paul,
>> >>
>> >> No, I have not used that approach yet, but was looking at that option. My 
>> >> question regarding that, however is,
>> does
>> >> it
>> >> support POJOs that are hierarchical because that's what I really need.
>> >> In the Weather example in the POJO guide, if Weather extended from say 
>> >> ABC (could be abstract and also has its
>> >> public
>> >> getter/setters), would things be any different?
>> >> And can the client and service still make use of this hierarchy without 
>> >> doing anything additional that whats
>> >> described
>> >> in that sample?
>> >>
>> >> Thanks,
>> >> Sathija.
>> >>
>> >>
>> >> > Sajith
>> >> >
>> >> > Are you following the POJO sample?
>> >> >
>> >> > Paul
>> >> >
>> >> > On 1/26/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >> >> > When you run WSDL2Java -ss -sd to create the server side skeleton and
>> >> >> > ADB binding objects it generates a message receiver and services.xml
>> >> >> > for you. You simply need to type ant to built it all into an AAR.
>> >> >>
>> >> >> Paul,
>> >> >> I am using the code first approach and generating wsdl from the java 
>> >> >> classes.
>> >> >> How does what you described stick into this method?
>> >> >>
>> >> >> Thanks.
>> >> >> Sathija
>> >> >>
>> >> >> >
>> >> >> > Paul
>> >> >> >
>> >> >> > On 1/26/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >> >> >> Deepal,
>> >> >> >>
>> >> >> >> Both the server and client use ADB binding.
>> >> >> >>
>> >> >> >> > If you are using ADB in server side you do not need to use
>> >> >> >> > RPCMessageReceiver.
>> >> >> >>
>> >> >> >> What message receiver do I need to use then?
>> >> >> >>
>> >> >> >> Thanks,
>> >> >> >> Sathija.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> > Hi Sathija ;
>> >> >> >> >
>> >> >> >> >>Hello,
>> >> >> >> >>
>> >> >> >> >>I am using Axis2 1.1.1 for my web services and use ADB for data 
>> >> >> >> >>binding with RPCMessageReceiver.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> > are you using ADB in client side or server side

Re: [Axis2] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-29 Thread Sathija Pavuluri
> The client won't be able to "see" the hierarchy. In other words the
> client will only see a Weather schema, it won't know that Weather
> extends from ABC. But apart from that it should work fine.

Does that mean that data from parent class will be lost?

I actually tested this out with these objects.

public class CustomerDTO {
private String name;
private String phone;
private String address;
// public getters/setters
}

public class PremierCustomerDTO extends CustomerDTO {
private String clubName;
private String vipNumber;
// public getters/setters
}

My service class returns a PremierCustomerDTO with data populated on it for all 
five attributes.
Whereas, after I retrieve the PremierCustomerDTO at the client side, only the 2 
attrs (clubName, vipNumber) declared
on it are returned.
The other 3 from the parent are null.

Is that the way its designed to work? Or should I be doing something different?

Thanks!
Sathija.

>
> Paul
>
> On 1/29/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>>
>> Paul,
>>
>> No, I have not used that approach yet, but was looking at that option. My 
>> question regarding that, however is, does
>> it
>> support POJOs that are hierarchical because that's what I really need.
>> In the Weather example in the POJO guide, if Weather extended from say ABC 
>> (could be abstract and also has its
>> public
>> getter/setters), would things be any different?
>> And can the client and service still make use of this hierarchy without 
>> doing anything additional that whats
>> described
>> in that sample?
>>
>> Thanks,
>> Sathija.
>>
>>
>> > Sajith
>> >
>> > Are you following the POJO sample?
>> >
>> > Paul
>> >
>> > On 1/26/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >> > When you run WSDL2Java -ss -sd to create the server side skeleton and
>> >> > ADB binding objects it generates a message receiver and services.xml
>> >> > for you. You simply need to type ant to built it all into an AAR.
>> >>
>> >> Paul,
>> >> I am using the code first approach and generating wsdl from the java 
>> >> classes.
>> >> How does what you described stick into this method?
>> >>
>> >> Thanks.
>> >> Sathija
>> >>
>> >> >
>> >> > Paul
>> >> >
>> >> > On 1/26/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >> >> Deepal,
>> >> >>
>> >> >> Both the server and client use ADB binding.
>> >> >>
>> >> >> > If you are using ADB in server side you do not need to use
>> >> >> > RPCMessageReceiver.
>> >> >>
>> >> >> What message receiver do I need to use then?
>> >> >>
>> >> >> Thanks,
>> >> >> Sathija.
>> >> >>
>> >> >>
>> >> >>
>> >> >> > Hi Sathija ;
>> >> >> >
>> >> >> >>Hello,
>> >> >> >>
>> >> >> >>I am using Axis2 1.1.1 for my web services and use ADB for data 
>> >> >> >>binding with RPCMessageReceiver.
>> >> >> >>
>> >> >> >>
>> >> >> > are you using ADB in client side or server side ?
>> >> >> > If you are using ADB in server side you do not need to use
>> >> >> > RPCMessageReceiver.
>> >> >> >
>> >> >> >>I have been unsuccessfully trying to return a datatype 'A1' to my 
>> >> >> >>client. 'A1' extends from an abstract
>> object
>> >> 'A'
>> >> >> >>that also contains from attributes.
>> >> >> >>
>> >> >> >>However, when the client receives the response, all attributes from 
>> >> >> >>A1 are in the response but attributes
>> from
>> >> A
>> >> >> are
>> >> >> >>missing.
>> >> >> >>
>> >> >> >>So I am back to thinking if ADB supports this object hierarchy. I 
>> >> >> >>have seen some older posts with such
>> >> scenarios
>> >> >> but
>> >> >> >>no useful suggestions.
>> >> >> >>
>> >> >> &

Re: [Axis2] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-29 Thread Sathija Pavuluri

Paul,

No, I have not used that approach yet, but was looking at that option. My 
question regarding that, however is, does it
support POJOs that are hierarchical because that's what I really need.
In the Weather example in the POJO guide, if Weather extended from say ABC 
(could be abstract and also has its public
getter/setters), would things be any different?
And can the client and service still make use of this hierarchy without doing 
anything additional that whats described
in that sample?

Thanks,
Sathija.


> Sajith
>
> Are you following the POJO sample?
>
> Paul
>
> On 1/26/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> > When you run WSDL2Java -ss -sd to create the server side skeleton and
>> > ADB binding objects it generates a message receiver and services.xml
>> > for you. You simply need to type ant to built it all into an AAR.
>>
>> Paul,
>> I am using the code first approach and generating wsdl from the java classes.
>> How does what you described stick into this method?
>>
>> Thanks.
>> Sathija
>>
>> >
>> > Paul
>> >
>> > On 1/26/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >> Deepal,
>> >>
>> >> Both the server and client use ADB binding.
>> >>
>> >> > If you are using ADB in server side you do not need to use
>> >> > RPCMessageReceiver.
>> >>
>> >> What message receiver do I need to use then?
>> >>
>> >> Thanks,
>> >> Sathija.
>> >>
>> >>
>> >>
>> >> > Hi Sathija ;
>> >> >
>> >> >>Hello,
>> >> >>
>> >> >>I am using Axis2 1.1.1 for my web services and use ADB for data binding 
>> >> >>with RPCMessageReceiver.
>> >> >>
>> >> >>
>> >> > are you using ADB in client side or server side ?
>> >> > If you are using ADB in server side you do not need to use
>> >> > RPCMessageReceiver.
>> >> >
>> >> >>I have been unsuccessfully trying to return a datatype 'A1' to my 
>> >> >>client. 'A1' extends from an abstract object
>> 'A'
>> >> >>that also contains from attributes.
>> >> >>
>> >> >>However, when the client receives the response, all attributes from A1 
>> >> >>are in the response but attributes from
>> A
>> >> are
>> >> >>missing.
>> >> >>
>> >> >>So I am back to thinking if ADB supports this object hierarchy. I have 
>> >> >>seen some older posts with such
>> scenarios
>> >> but
>> >> >>no useful suggestions.
>> >> >>
>> >> >>Thanks!
>> >> >>Sathija.
>> >> >>
>> >> >>
>> >> >>-
>> >> >>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]
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > Paul Fremantle
>> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>> >
>> > http://bloglines.com/blog/paulfremantle
>> > [EMAIL PROTECTED]
>> >
>> > "Oxygenating the Web Service Platform", www.wso2.com
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> [EMAIL PROTECTED]
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: [Axis2] Serialization of super class elements

2007-01-26 Thread Sathija Pavuluri
>  name="getPremierCustomersFault"/>
> 
> 
>  type="axis2:CustomerServicePortType">
> http://schemas.xmlsoap.org/soap/http"; 
> style="document"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>     
> 
> 
>  type="axis2:CustomerServicePortType">
> http://schemas.xmlsoap.org/soap/http"; 
> style="document"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  type="axis2:CustomerServicePortType">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  binding="axis2:CustomerServiceSOAP11Binding">
>  location="http://s-pavuluri-02:8080/enetaware/services/CustomerService"/>
> 
>  binding="axis2:CustomerServiceSOAP12Binding">
>  location="http://s-pavuluri-02:8080/enetaware/services/CustomerService"/>
> 
> 
> 
>
> **
>
> Thanks!
>
>
>
>
>> On 1/25/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>>>
>>> Sanjiva,
>>>
>>> The code has been generated from wsdl. I think the problem is not with
>>> generated code.
>>
>>
>> Sometimes it may not  serialize the child object correctly. Can you send you
>> wsdl?
>>
>> The soap response itself does not look right.
>>> It is missing some elements which are defined in the wsdl. Specifically,
>>> these are the elements from the super class
>>> of the object that the service is returning.
>>>
>>> I am not sure if this is a bug or my approach is incorrect.
>>> Is there anything different I need to do so that the super class elements
>>> are serialized when its child class element
>>> is being sent in the response?
>>>
>>> Thanks,
>>> Sathija.
>>>
>>>
>>>
>>
>>
>> --
>> Amila Suriarachchi,
>> WSO2 Inc.
>>
>
>
>
> -
> 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] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-26 Thread Sathija Pavuluri
> When you run WSDL2Java -ss -sd to create the server side skeleton and
> ADB binding objects it generates a message receiver and services.xml
> for you. You simply need to type ant to built it all into an AAR.

Paul,
I am using the code first approach and generating wsdl from the java classes.
How does what you described stick into this method?

Thanks.
Sathija

>
> Paul
>
> On 1/26/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> Deepal,
>>
>> Both the server and client use ADB binding.
>>
>> > If you are using ADB in server side you do not need to use
>> > RPCMessageReceiver.
>>
>> What message receiver do I need to use then?
>>
>> Thanks,
>> Sathija.
>>
>>
>>
>> > Hi Sathija ;
>> >
>> >>Hello,
>> >>
>> >>I am using Axis2 1.1.1 for my web services and use ADB for data binding 
>> >>with RPCMessageReceiver.
>> >>
>> >>
>> > are you using ADB in client side or server side ?
>> > If you are using ADB in server side you do not need to use
>> > RPCMessageReceiver.
>> >
>> >>I have been unsuccessfully trying to return a datatype 'A1' to my client. 
>> >>'A1' extends from an abstract object 'A'
>> >>that also contains from attributes.
>> >>
>> >>However, when the client receives the response, all attributes from A1 are 
>> >>in the response but attributes from A
>> are
>> >>missing.
>> >>
>> >>So I am back to thinking if ADB supports this object hierarchy. I have 
>> >>seen some older posts with such scenarios
>> but
>> >>no useful suggestions.
>> >>
>> >>Thanks!
>> >>Sathija.
>> >>
>> >>
>> >>-
>> >>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]
>> >
>> >
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> [EMAIL PROTECTED]
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: [Axis2] Serialization of super class elements

2007-01-26 Thread Sathija Pavuluri
Amila,

Posted below are the service implementation classes, the soap response and wsdl.

I have taken the code first approach so I coded the service classes first,
and generated the wsdl from the service class.

As you will see in the generated wsdl, the child class is described along with 
the parent's fields as well,
but strangely the response is missing those.
The data objects are well formed java bean with public getters/setters.
Is the serializer using reflection on the child where it is somehow skipping 
the parent's fields?
Could this be a serializer bug?

**
public class CustomerService {
public PremierCustomerDTO[] getPremierCustomers() throws AxisFault {
PremierCustomerDTO pc = new PremierCustomerDTO();
pc.setName("nametest");
pc.setAddress("addrtest");
pc.setPhone("545-454-5434");
pc.setVipNumber("xyz");
pc.setClubName("ToastMasters");
PremierCustomerDTO[] pcs = new PremierCustomerDTO[]{pc};
return pcs;
}
}

public class CustomerDTO {
private String name;
private String phone;
private String address;
// public getters and setters .
}

public class PremierCustomerDTO extends CustomerDTO {
private String clubName;
private String vipNumber;
// public getters and setters .
}
**


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


http://service.ws.xyz.abc.com/xsd";>

http://service.ws.ena.emprisa.com/xsd";>ToastMasters
http://service.ws.ena.emprisa.com/xsd";>xyz





**
http://service.ws.xyz.abc.com";>

Service class used to retrieve and update device component.


http://service.ws.xyz.abc.com/xsd";>



 





































http://schemas.xmlsoap.org/soap/http"; 
style="document"/>














http://schemas.xmlsoap.org/soap/http"; 
style="document"/>



























http://s-pavuluri-02:8080/enetaware/services/CustomerService"/>


http://s-pavuluri-02:8080/enetaware/services/CustomerService"/>




**

Thanks!




> On 1/25/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>>
>> Sanjiva,
>>
>> The code has been generated from wsdl. I think the problem is not with
>> generated code.
>
>
> Sometimes it may not  serialize the child object correctly. Can you send you
> wsdl?
>
> The soap response itself does not look right.
>> It is missing some elements which are defined in the wsdl. Specifically,
>> these are the elements from the super class
>> of the object that the service is returning.
>>
>> I am not sure if this is a bug or my approach is incorrect.
>> Is there anything different I need to do so that the super class elements
>> are serialized when its child class element
>> is being sent in the response?
>>
>> Thanks,
>> Sathija.
>>
>>
>>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>



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



Re: [Axis2] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-26 Thread Sathija Pavuluri
Deepal,

Both the server and client use ADB binding.

> If you are using ADB in server side you do not need to use
> RPCMessageReceiver.

What message receiver do I need to use then?

Thanks,
Sathija.



> Hi Sathija ;
>
>>Hello,
>>
>>I am using Axis2 1.1.1 for my web services and use ADB for data binding with 
>>RPCMessageReceiver.
>>
>>
> are you using ADB in client side or server side ?
> If you are using ADB in server side you do not need to use
> RPCMessageReceiver.
>
>>I have been unsuccessfully trying to return a datatype 'A1' to my client. 
>>'A1' extends from an abstract object 'A'
>>that also contains from attributes.
>>
>>However, when the client receives the response, all attributes from A1 are in 
>>the response but attributes from A are
>>missing.
>>
>>So I am back to thinking if ADB supports this object hierarchy. I have seen 
>>some older posts with such scenarios but
>>no useful suggestions.
>>
>>Thanks!
>>Sathija.
>>
>>
>>-
>>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]
>
>



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



[Axis2] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-25 Thread Sathija Pavuluri
Hello,

I am using Axis2 1.1.1 for my web services and use ADB for data binding with 
RPCMessageReceiver.

I have been unsuccessfully trying to return a datatype 'A1' to my client. 'A1' 
extends from an abstract object 'A'
that also contains from attributes.

However, when the client receives the response, all attributes from A1 are in 
the response but attributes from A are
missing.

So I am back to thinking if ADB supports this object hierarchy. I have seen 
some older posts with such scenarios but
no useful suggestions.

Thanks!
Sathija.


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



Re: [Axis2] Serialization of super class elements

2007-01-25 Thread Sathija Pavuluri
Sanjiva,

The code has been generated from wsdl. I think the problem is not with 
generated code.
The soap response itself does not look right.
It is missing some elements which are defined in the wsdl. Specifically, these 
are the elements from the super class
of the object that the service is returning.

I am not sure if this is a bug or my approach is incorrect.
Is there anything different I need to do so that the super class elements are 
serialized when its child class element
is being sent in the response?

Thanks,
Sathija.




> This seems like a bug .. did you generate code from a WSDL and is the
> generated code not working? Or is it for a POJO service?
>
> Please give more info and file a bug so this can be fixed for the next
> release.
>
> Thanks,
>
> Sanjiva.
>
> On Wed, 2007-01-24 at 17:56 -0500, Sathija Pavuluri wrote:
>> Hello,
>>
>> I was surprised by what I found recently while trying to serialize an object 
>> along with its super class' fields.
>>
>> TheParent {
>> a;
>> b;
>> }
>>
>> TheChild {
>> c;
>> d;
>> }
>>
>> My service class returns an object of TheChild. The generated wsdl defined 
>> the complex type TheChild with elements
>> a,b,c,d.
>> Now, when I invoked the web service and inspected the response, a and b 
>> (which are from the parent) are totally
>> missing in the response.
>> Looks like the super class fields are not being serialized.
>> I thought (wishfully expected) axis would handle class hierarchy. Its not to 
>> be so.
>> If the serializer didnt handle this, the generated wsdl probably should not 
>> generate a single complex type because
>> it
>> is misleading.
>>
>> Is there a different approach to this or am I off track?
>> I would hate for the client to have to invoke multiple service calls for 
>> each object and put them together to
>> achieve
>> the desired result.
>>
>> Thanks,
>> Sathija.
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> --
> Sanjiva Weerawarana, Ph.D.
> Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
> Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
> Director; Open Source Initiative; http://www.opensource.org/
> Member; Apache Software Foundation; http://www.apache.org/
> Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/
>
>
> -
> 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] Serialization of super class elements

2007-01-24 Thread Sathija Pavuluri
Hello,

I was surprised by what I found recently while trying to serialize an object 
along with its super class' fields.

TheParent {
a;
b;
}

TheChild {
c;
d;
}

My service class returns an object of TheChild. The generated wsdl defined the 
complex type TheChild with elements
a,b,c,d.
Now, when I invoked the web service and inspected the response, a and b (which 
are from the parent) are totally
missing in the response.
Looks like the super class fields are not being serialized.
I thought (wishfully expected) axis would handle class hierarchy. Its not to be 
so.
If the serializer didnt handle this, the generated wsdl probably should not 
generate a single complex type because it
is misleading.

Is there a different approach to this or am I off track?
I would hate for the client to have to invoke multiple service calls for each 
object and put them together to achieve
the desired result.

Thanks,
Sathija.




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



Re: engaging soapmonitor-1.1 in Axis2

2007-01-18 Thread Sathija Pavuluri
You can use tcpmon as well to sniff axis request and response messages.
I thought it was easier to setup and is quite easy to use.

You just need to run the launch script from the download's bin and setup the 
port on which you want to sniff.
Make sure your requests are sent to this port from where they will be forwarded 
onto where ever your services are
deployed.

http://ws.apache.org/commons/tcpmon/


HTH.
Sathija.



> I have a webservices written. It is running correctly as far as I can
> tell. I have a client that's calling the service and is receiving the
> correct responses. Next week, I plan to give a small demo to my
> management. I thought of using soapmonitor in the Axis2 Administrator
> webapp. I was able to "engage" a servicer and/or an "operation" with
> soapmonitor-1.1 module. What do I need to do next so that I can have a
> visual for webservices activities other than usiing the debug logs?
>
> Thanks.
>
> Danny
>
>



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



1.1.1 modules not downloadable from mirrors

2007-01-18 Thread Sathija Pavuluri
The new Addressing and SoapMonitor modules from version 1.1.1 downloads point 
to apache mirror sites, but the mirrors
dont have the files for download.
I tried a bunch of mirrors with no success.
The files probably have not yet been uploaded.
Can someone verify this and have them available for download?

Thanks,
Sathija.


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



[Axis2] Custom serializer for HashMap

2007-01-16 Thread Sathija Pavuluri
Hi,

Is anyone aware of the effort involved in writing a custom serializer for 
HashMap?
I've not been able to find much help/tutorial on axis2 website.
Will appreciate if others who've been through this can share their experiences.

Thanks,
Sathija


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



RE: [Axis2] How to retrieve client's IP address?

2007-01-05 Thread Sathija Pavuluri
Thanks.
Yes, indeed I was looking for the remote client's IP address, not the 
locathost's.
I will try as you described.

Sathija.


> That would give you the address of the machine the request is being processed 
> on.
>
> You can go about it a couple ways. The simplest is getting to the 
> HttpServletRequest from the MessageContext and
> requesting the remote address.
>
> e.g.
>
> String ip = ((HttpServletRequest)
> MessageContext.getCurrentContext().getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST)).getRemoteAddr();
>
> - Doug
>
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 03, 2007 4:18 PM
> To: axis-user@ws.apache.org
> Subject: Re: [Axis2] How to retrieve client's IP address?
>
> java.net.InetAddress.getLocalHost().getHostAddress();
>
> M-
> ---
> This e-mail message (including attachments, if any) is intended for the use 
> of the individual or entity to which it is
> addressed and may contain information that is privileged, proprietary , 
> confidential and exempt from disclosure. If
> you are not the intended recipient, you are notified that any dissemination, 
> distribution or copying of this
> communication is strictly prohibited.
> ---
> Le présent message électronique (y compris les pièces qui y sont annexées, le 
> cas échéant) s'adresse au destinataire
> indiqué et peut contenir des renseignements de caractère privé ou 
> confidentiel. Si vous n'êtes pas le destinataire de
> ce document, nous vous signalons qu'il est strictement interdit de le 
> diffuser, de le distribuer ou de le reproduire.
> - Original Message -
> From: "Sathija Pavuluri" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, January 03, 2007 3:43 PM
> Subject: [Axis2] How to retrieve client's IP address?
>
>
>> Hello,
>>
>> When a web service receives a client call, I'd like to extract the IP
>> address of the client from where the call was requested.
>> How is this possible using Axis2?
>>
>> Thanks.
>> Sathija.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



[Axis2] How to retrieve client's IP address?

2007-01-03 Thread Sathija Pavuluri
Hello,

When a web service receives a client call, I'd like to extract the IP address 
of the client from where the call was
requested.
How is this possible using Axis2?

Thanks.
Sathija.


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



[Axis2] Issues with Java 6

2006-12-20 Thread Sathija Pavuluri
Hello,

An issue had been posted earlier about axis2 issues when running on jdk 6. -
http://marc.theaimsgroup.com/?l=axis-user&m=116593301416986&w=2

And the proposed solution was to copy the stax-api.jar from axis2 distribution 
to jre's endorsed folder.

The issue was actually resolved by copying the jar to tomcat's common/endorsed 
folder.
Didnt have to copy to jre's endorsed.

Just an FYI.

- Sathija Pavuluri.


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



Re: [Axis 2] What's wrong with this tcpmon response?

2006-12-13 Thread Sathija Pavuluri
Well, not quite.
I get the exception only when I expect it. I am basically querying some stuff 
from the client here, by passing some
parameters.
When my params are good, the service can process them properly and returns 
appropriate data.
Then I deliberately pass in bad data (only bad data, not bad request), where 
the service cannot process such data and
returns me an exception. say even an NPE, which I am wrapping in an AxisFault 
and throwing to the client.
In this scenario, the client only throws an OMException, where I'd expect an 
AxisFault which the service actually threw.

This is actually just a simple test for axis' exception propagation capability.
My only question is, when the response is valid (atleast seems to me it is 
valid), why do I get the OMException.

Thanks,
Sathija



> Hi Sathija ;
>
>>Deepal,
>>Here is the request.
>>When an exception is not returned and the service processes the data and 
>>returns a response correctly.
>>
> Dose that mean you are not getting the exception for each request? , are
> u getting that randomly ?
>
> Thanks
> Deepal
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: [Axis 2] What's wrong with this tcpmon response?

2006-12-12 Thread Sathija Pavuluri
Deepal,
Here is the request.
When an exception is not returned and the service processes the data and 
returns a response correctly. The client
seems to handle that well. It is only when an exception is thrown that the 
client throws an OMException.

Thanks,
Sathija.


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

http://service.ws.ena.emprisa.com/xsd";>

http://ws.ena.emprisa.com/xsd";>0
http://ws.ena.emprisa.com/xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:nil="true" />
http://ws.ena.emprisa.com/xsd";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true" />
http://ws.ena.emprisa.com/xsd";>0
http://ws.ena.emprisa.com/xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:nil="true" />
http://ws.ena.emprisa.com/xsd";>0
http://ws.ena.emprisa.com/xsd";>0
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>0
http://ws.ena.emprisa.com/xsd";>0
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:nil="true" />
http://ws.ena.emprisa.com/xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:nil="true" />
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:nil="true" />
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>false
http://ws.ena.emprisa.com/xsd";>0
http://ws.ena.emprisa.com/xsd";>0




0




> Hi Sathija ;
> Can you pls send me the req message as well.
>
> Thanks
> Deepal
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



[Axis 2] What's wrong with this tcpmon response?

2006-12-11 Thread Sathija Pavuluri
Resending as an Axis 2 post.


Hello,

Can someone identify what if anything is wrong with the below tcp response.
The service method throws an AxisFault as declared and is returning a NPE as 
expected, but the client code just
throws me an OMException encapsulating an IllegalStateException: Current state 
not START_ELEMENT.

Thanks!
Sathija.

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=5BDD5DDC6A14AA55FC0045247DD7ABF1; Path=/enetaware
Content-Type: multipart/related; 
boundary=MIMEBoundaryurn_uuid_334849F3E9B5911F6811658797561853;
type="application/xop+xml"; start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml";charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 11 Dec 2006 23:29:16 GMT
Connection: close

bc5
--MIMEBoundaryurn_uuid_334849F3E9B5911F6811658797561853
content-type: application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding: binary
content-id: <0.urn:uuid:[EMAIL PROTECTED]>

http://schemas.xmlsoap.org/soap/envelope/";>
soapenv:ClientNo
 devices have been retrieved; nested
exception is:
java.lang.NullPointerException: No devices have been
retrievedorg.apache.axis2.AxisFault:
No devices have been retrieved; nested exception is:
java.lang.NullPointerException: No devices have been retrieved
at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:184)
at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:324)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:234)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
com.emprisa.ena.webapp.filter.LicenseValidationFilter.doFilter(LicenseValidationFilter.java:197)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

3b

--MIMEBoundaryurn_uuid_334849F3E9B5911F6811658797561853--
0



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



What's wrong with this tcpmon response?

2006-12-11 Thread Sathija Pavuluri
Hello,

Can someone identify what if anything is wrong with the below tcp response.
The service method throws an AxisFault as declared and is returning a NPE as 
expected, but the client code just
throws me an OMException encapsulating an IllegalStateException: Current state 
not START_ELEMENT.

Thanks!
Sathija.

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=5BDD5DDC6A14AA55FC0045247DD7ABF1; Path=/enetaware
Content-Type: multipart/related; 
boundary=MIMEBoundaryurn_uuid_334849F3E9B5911F6811658797561853;
type="application/xop+xml"; start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml";charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 11 Dec 2006 23:29:16 GMT
Connection: close

bc5
--MIMEBoundaryurn_uuid_334849F3E9B5911F6811658797561853
content-type: application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding: binary
content-id: <0.urn:uuid:[EMAIL PROTECTED]>

http://schemas.xmlsoap.org/soap/envelope/";>
soapenv:ClientNo
 devices have been retrieved; nested
exception is:
java.lang.NullPointerException: No devices have been
retrievedorg.apache.axis2.AxisFault:
No devices have been retrieved; nested exception is:
java.lang.NullPointerException: No devices have been retrieved
at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:184)
at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:324)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:234)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
com.emprisa.ena.webapp.filter.LicenseValidationFilter.doFilter(LicenseValidationFilter.java:197)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

3b

--MIMEBoundaryurn_uuid_334849F3E9B5911F6811658797561853--
0


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



Re: [Axis2] Rampart not available on Axis modules page

2006-12-08 Thread Sathija Pavuluri
Thanks.
Until that happens, where can I obtain the rampart nightly?
Couldnt find it on the axis nightly page or WS4J site.

Sathija.


> Hi Sathija,
>
> We are yet to release Rampart-1.1 for Axis2-1.1.
>
> The page will be updated when the release is done - most probably over
> the weekend.
>
> Thanks,
> Ruchith
>
> On 11/29/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> Why is Rampart 1.1 (or whatever is the compatible version for Axis2 1.1) not 
>> listed/available for download on Axis
>> Modules page?
>> http://ws.apache.org/axis2/modules/index.html
>>
>> There are other pages on Axis2 website that point to this link for Rampart.
>>
>>
>> Thanks,
>> Sathija
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> www.ruchith.org
>
> -
> 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] Rampart not available on Axis modules page

2006-11-29 Thread Sathija Pavuluri
Hello,

Why is Rampart 1.1 (or whatever is the compatible version for Axis2 1.1) not 
listed/available for download on Axis
Modules page?
http://ws.apache.org/axis2/modules/index.html

There are other pages on Axis2 website that point to this link for Rampart.


Thanks,
Sathija


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



[Axis2] Issues using PasswordDigest with Rampart

2006-11-28 Thread Sathija Pavuluri
Hello,

I've previously used Rampart to authenticate my web service client using 
cleartext password
as described in this article:
http://www.wso2.net/2006/08/15/rampart-ut-auth

I am now trying to use PasswordDigest and running into issues. In my service 
impl, I have a PasswordCallbackHandler
that has some custom authentication. (I basically pass off the credentials to a 
tomcat realm to authenticate the ws
client).

This worked previously when the password was in clear text. The 
WSPasswordCallback's getPassword() returned the plain
text password. But with the digested password, the getPassword() returns me 
null.

I am using a nightly from the last days of 1.0.
I've read the 1.1 Rampart documentation on Axis2 site and what was described 
was significantly different from what was
listed in this article I mentioned above.
In any case, the 1.1 doc doesnt even talk about the PasswordDigest and 
PasswordText types.
Has a lot of this been revamped?

Thanks,
Sathija.


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



[Axis2] 1.1 Problem parsing AxisFault

2006-11-27 Thread Sathija Pavuluri
Hello,

I have written some web services using Axis2 1.1. They've been working 
reasonably well.
I've now enabled my web service calls to throw an AxisFault with a simple error.

My service implementation class throws an AxisFault created this way.

throw new AxisFault(new QName("http://aaa.com";, "EnaWSFault", 
"test"), "Bad parameters",
new Exception("Bad device filter parameters"));


My client simply calls the stub and invokes this operation. When there is a 
fault, the AxisFault is not handled
elegantly and I get the exception:

org.apache.axiom.om.OMException: java.lang.IllegalStateException: Current state 
not START_ELEMENT
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:199)
at 
org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:554)
at 
org.apache.axiom.om.impl.llom.OMElementImpl.getFirstOMChild(OMElementImpl.java:565)
at 
org.apache.axiom.om.impl.llom.OMElementImpl.getChildren(OMElementImpl.java:279)
at 
org.apache.axiom.soap.impl.llom.SOAPFaultImpl.getChildWithName(SOAPFaultImpl.java:185)
at 
org.apache.axiom.soap.impl.llom.SOAPFaultImpl.getCode(SOAPFaultImpl.java:101)
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)
at 
com.emprisa.ena.ws.client.DeviceServiceStub.listDevices(DeviceServiceStub.java:909)
at 
com.emprisa.ena.ws.client.DeviceServiceInvoker.invokeListDevices(DeviceServiceInvoker.java:76)
at 
com.emprisa.ena.ws.client.DeviceServiceInvoker.main(DeviceServiceInvoker.java:57)
Caused by: java.lang.IllegalStateException: Current state not START_ELEMENT
at 
com.ctc.wstx.sr.BasicStreamReader.getAttributeCount(BasicStreamReader.java:582)
at 
org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes(StAXBuilder.java:130)
at 
org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.createOMElement(MTOMStAXSOAPModelBuilder.java:126)
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:125)
... 9 more
RemoteException in listdevices: java.lang.IllegalStateException: Current state 
not START_ELEMENT

The code in method DeviceServiceStub.listDevices() is catching an AxisFault but 
at runtime looks like that fault is
not being thrown by the _operationClient.execute(true); line (which is line 909)


When the service generates a fault, this is how the response looks in TCPmon.

http://schemas.xmlsoap.org/soap/envelope/";>soapenv:ClientBad
 parameters; nested exception is:
java.lang.Exception: Bad device filter 
parametersorg.apache.axis2.AxisFault: Bad
parameters; nested exception is:
java.lang.Exception: Bad device filter parameters
at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:184)
at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:324)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:234)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

3b

--MIMEBoundaryurn_uuid_2237363A7411511C1E11646456980741--
0


I have seen similar posts with responses that suggested to use latest 1.0 
lightly.

[Axis2] Passing complex type HashMap

2006-11-09 Thread Sathija Pavuluri
Hello,

I need to pass a HashMap as one of the parameters to my web service call.
How can I do that?

Thanks,
Sathija.


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



[Axis2] Complex Datatypes - ArrayList of objects.

2006-10-27 Thread Sathija Pavuluri
Hello,

I've read in one of these messages that in order to pass an ArrayList it needs 
to be converted to an Array.
If it is an array of primitive types that might work fine.
But if we need to pass an ArrayList of other objects like simple data transfer 
objects, how is that possible?
Or is that possible?

Thanks,
Sathija.


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



[Axis2] Integrating rampart/wss4j with tomcat realms

2006-10-12 Thread Sathija Pavuluri
Hello,

I have been able to successfully setup authentication on my web services using 
rampart.
I have used plain text password and in my password callback handler I extract 
the password and verify against my
database.
(I have this setup over SSL, so clear text is fine).

Now the next step if for me to get the password authenticated through tomcat 
realms.
The web application which I am now exposing as web services supports jdbc 
realm, jndi realm, jaas realm etc.

I want to be able to authenticate the ws users through the same realms. Is that 
possible?

Thanks,
Sathija.



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



[Axis2] Unable to download Rampart samples from wso2

2006-10-11 Thread Sathija Pavuluri
Hello,

http://www.wso2.net/articles/rampart/java/2006/08/15/usernametoken-auth

This is by far the best tutorial I've read about Rampart.
But the link to download the rampart samples in this tutorial does not
seem to work. It probably needs to be updated.

Thanks,
Sathija.


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



Re: [Axis2] Convering DOM Element to OMElement

2006-10-10 Thread Sathija Pavuluri
Hi,

The XMLUtils class can be found but I see this after adding the xmlsec jar
to the classpath.

org.apache.xml.security.c14n.InvalidCanonicalizerException: You must
initialize the xml-security library correctly before you use it. Call the
static method "org.apache.xml.security.Init.init();" to do that before you
use any functionality from that library.
at org.apache.xml.security.c14n.Canonicalizer.(Unknown Source)
at org.apache.xml.security.c14n.Canonicalizer.getInstance(Unknown
Source)
at org.apache.xml.security.utils.XMLUtils.outputDOM(Unknown Source)
at org.apache.rampart.util.Axis2Util.toOM(Axis2Util.java:176)


Thanks.


> that one is in the xml-security jar.
>
> On 10/10/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> I am trying to use the org.apache.rampart.util.Axis2Utils class from the
>> lastest nightly snapshot axis2-security-SNAPSHOT.jar to convert a DOM
>> element to OMElement.
>>
>> However, when I call the Axis2Utils.toOM(Element el) method it throws a
>> "NoClassDefFoundError org.apache.xml.security.utils.XMLUtils"
>> Where can I find this class?
>>
>> I did find "org.apache.ws.security.util.XMLUtils" class in the wss4j
>> jar.
>> But it is still not the same as the one that Axis2Utils is looking for.
>>
>> I'd appreciate if someone could point to the right jar where this class
>> can be found.
>>
>> Thanks!
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
>
> -
> 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] Convering DOM Element to OMElement

2006-10-10 Thread Sathija Pavuluri
Hello,

I am trying to use the org.apache.rampart.util.Axis2Utils class from the
lastest nightly snapshot axis2-security-SNAPSHOT.jar to convert a DOM
element to OMElement.

However, when I call the Axis2Utils.toOM(Element el) method it throws a
"NoClassDefFoundError org.apache.xml.security.utils.XMLUtils"
Where can I find this class?

I did find "org.apache.ws.security.util.XMLUtils" class in the wss4j jar.
But it is still not the same as the one that Axis2Utils is looking for.

I'd appreciate if someone could point to the right jar where this class
can be found.

Thanks!


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



Re: [Axis2] Retrieving an MTOM attachment

2006-10-09 Thread Sathija Pavuluri
Thilina,
Could this also be an issue because I am using the ADB data binding?
Is there any other data binding I need to use for MTOM?

Thanks!


> IMO xs:anyType should work at this point... Please file a bug report for
> that...
>
> While above is also correct, you can define the return element by
> using the following complex type and it's the better way..
>
> 
> 
> 
> 
> 
>
> ~Thilina
>
> On 10/7/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> Hi,
>> My replies are inline.
>>
>>
>> >> System.out.println("\n");
>> >> omNode.serialize(System.out);
>> > Please let me know the output you get at this point...
>>
>> http://www.w3.org/2004/08/xop/include";
>> href="cid:1.urn:uuid:[EMAIL PROTECTED]"
>> />
>>
>>
>> >
>> >> OMElement omNode2 = (OMElement)
>> omChildren.next();
>> >  if the deserialization is happening correctly you  should get  a
>> > ClassCastException at this point.
>>
>> No, I do not get a ClassCastException. I, in fact, get the exception
>> when
>> I try to cast it to OMText instead of OMElement.
>>
>> >
>> > Can you show us your WSDL... What is the data binding machanism your
>> > used,,,
>> I dit not use a specific data binding , just whatever the default is.
>> Here is the wsdl. I have a few other methods here, but the one I use for
>> MTOM is "getDiscrepancyReport".
>>
>> http://ws.apache.org/axis2";
>> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
>> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
>> xmlns:ns0="http://service.ws.ena.emprisa.com/xsd";
>> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
>> xmlns:ns1="http://org.apache.axis2/xsd";
>> xmlns:xs="http://www.w3.org/2001/XMLSchema";
>> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>> targetNamespace="http://ws.apache.org/axis2";>
>> This is a device service.
>> > attributeFormDefault="qualified" elementFormDefault="qualified"
>> targetNamespace="http://service.ws.ena.emprisa.com/xsd";>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> > name="getDiscrepancyReportMessage">> element="ns0:getDiscrepancyReport" />> name="getDiscrepancyReportResponse">> element="ns0:getDiscrepancyReportResponse"
>> />> name="getEnaCallbackMessage" />> name="getEnaCallbackResponse">> element="ns0:getEnaCallbackResponse" />> name="listDevicesMessage" />> name="listDevicesResponse">> element="ns0:listDevicesResponse" />> name="getDeviceMessage">> />> name="part1" element="ns0:getDeviceResponse"
>> />> name="DeviceServicePortType">> name="getDiscrepancyReport">> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
>> message="axis2:getDiscrepancyReportMessage"
>> wsaw:Action="urn:getDiscrepancyReport" />> message="axis2:getDiscrepancyReportResponse"
>> />> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
>> message="axis2:getEnaCallbackMessage" wsaw:Action="urn:getEnaCallback"
>> />> />> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
>> message="axis2:listDevicesMessage" wsaw:Action="urn:listDevices"
>> />> />> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
>> message="axis2:getDeviceMessage" wsaw:Action="urn:getDevice"
>> />> />> name="DeviceServiceSOAP11Binding"
>> type="axis2:DeviceServicePortType">> transport="http://schemas.xmlsoap.org/soap/http"; style="document"
>> />> soapAction="urn:getDiscrepancyReport" style="document"
>> />> />> />> name="getEnaCallback">> 

Re: [Axis2] Retrieving an MTOM attachment

2006-10-06 Thread Sathija Pavuluri
Hi,
My replies are inline.


>> System.out.println("\n");
>> omNode.serialize(System.out);
> Please let me know the output you get at this point...

http://www.w3.org/2004/08/xop/include";
href="cid:1.urn:uuid:[EMAIL PROTECTED]"
/>


>
>> OMElement omNode2 = (OMElement) omChildren.next();
>  if the deserialization is happening correctly you  should get  a
> ClassCastException at this point.

No, I do not get a ClassCastException. I, in fact, get the exception when
I try to cast it to OMText instead of OMElement.

>
> Can you show us your WSDL... What is the data binding machanism your
> used,,,
I dit not use a specific data binding , just whatever the default is.
Here is the wsdl. I have a few other methods here, but the one I use for
MTOM is "getDiscrepancyReport".

http://ws.apache.org/axis2";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:ns0="http://service.ws.ena.emprisa.com/xsd";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:ns1="http://org.apache.axis2/xsd";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
targetNamespace="http://ws.apache.org/axis2";>
This is a device service.
http://service.ws.ena.emprisa.com/xsd";>












































http://www.w3.org/2006/05/addressing/wsdl";
message="axis2:getDiscrepancyReportMessage"
wsaw:Action="urn:getDiscrepancyReport" />http://www.w3.org/2006/05/addressing/wsdl";
message="axis2:getEnaCallbackMessage" wsaw:Action="urn:getEnaCallback"
/>http://www.w3.org/2006/05/addressing/wsdl";
message="axis2:listDevicesMessage" wsaw:Action="urn:listDevices"
/>http://www.w3.org/2006/05/addressing/wsdl";
message="axis2:getDeviceMessage" wsaw:Action="urn:getDevice"
/>http://schemas.xmlsoap.org/soap/http"; style="document"
/>http://schemas.xmlsoap.org/soap/http"; style="document"
/>http://10.1.1.76:8080/enetaware/services/DeviceService";
/>http://10.1.1.76:8080/enetaware/rest/DeviceService";
/>http://10.1.1.76:8080/enetaware/services/DeviceService";
/>http://10.1.1.76:8080/enetaware/rest/DeviceService";
/>http://10.1.1.76:8080/enetaware/rest/DeviceService";
/>http://10.1.1.76:8080/enetaware/rest/DeviceService";
/>


Thanks!




>
> ~Thilina
>
>>
>>
>> > Hi,
>> >
>> >> But when I traverse the "reportElement" there is only one child
>> element
>> >> i.e the "xop:Include" element. I can never get to the attachment
>> itself.
>> > This can't be... Axis2 should automatically detect XOP:include and
>> > should create an OMText instead of XOP:Include...
>> >
>> > If possible please post your message snapshots and the client code...
>> > I would appreciate if you can do it soon, since we need to figure out
>> > whether this is a bug prior to the release...
>> >
>> > Thanks,
>> > Thilina
>> >
>> >> How do I rertieve the binary data which is outside the soap envelope?
>> >> Appreciate any help..
>> >>
>> >> Thanks,
>> >> Sathija.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > http://webservices.apache.org/~thilina/
>> > http://thilinag.blogspot.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]
>>
>>
>
>
> --
> http://webservices.apache.org/~thilina/
> http://thilinag.blogspot.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] Retrieving an MTOM attachment

2006-10-06 Thread Sathija Pavuluri
Hi Thilina,

Here is the tcpmon response:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=32D3D08F1EA838446315878FA3E1975E; Path=/enetaware
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_5AA4462B26C922F16A1160142103004103;
type="application/xop+xml";
start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml";charset=UTF-8Transfer-Encoding: chunkedDate: Fri, 06
Oct 2006 13:41:43
GMT2bf--MIMEBoundaryurn_uuid_5AA4462B26C922F16A1160142103004103content-type:
application/xop+xml; charset=UTF-8;
type="text/xml";content-transfer-encoding: binarycontent-id:
   <0.urn:uuid:[EMAIL PROTECTED]>
  
 http://schemas.xmlsoap.org/soap/envelope/";>


   http://service.ws.ena.emprisa.com/xsd";>
  
 
http://www.w3.org/2004/08/xop/include";
/>
 
  
   

 
2000

--MIMEBoundaryurn_uuid_5AA4462B26C922F16A1160142103004103
content-type: image/jpeg
content-transfer-encoding: binary
content-id:
 <1.urn:uuid:[EMAIL PROTECTED]>
(???(? ??(
BINARY DATA HERE

--MIMEBoundaryurn_uuid_5AA4462B26C922F16A1160142103004103--
0


And the client code is below:

DeviceServiceStub.GetDiscrepancyReport rep = new
DeviceServiceStub.GetDiscrepancyReport();
rep.setDevName(devName);

DeviceServiceStub.GetDiscrepancyReportResponse repResponse = stub
.getDiscrepancyReport(rep);
OMElement reportElement = repResponse.get_return();
Iterator repChildren = reportElement.getChildren();
while (repChildren.hasNext()) {
OMElement omNode = (OMElement) repChildren.next();
System.out.println("\n");
omNode.serialize(System.out);
Iterator omChildren = omNode.getChildren();
while (omChildren.hasNext()) {
OMElement omNode2 = (OMElement) omChildren.next();
System.out.println("class name: " +
omNode2.getClass().toString());
System.out.println("node2 name" + omNode2.getQName());
}
}

When I run the client, "class name" of the node is printed as
"org.apache.axiom.om.impl.llom.OMElementImpl"
and the "node2 name" is "{http://www.w3.org/2004/08/xop/include}Include";
and it does not have any more children as we can also see in the response.

Thanks,
Sathija.



> Hi,
>
>> But when I traverse the "reportElement" there is only one child element
>> i.e the "xop:Include" element. I can never get to the attachment itself.
> This can't be... Axis2 should automatically detect XOP:include and
> should create an OMText instead of XOP:Include...
>
> If possible please post your message snapshots and the client code...
> I would appreciate if you can do it soon, since we need to figure out
> whether this is a bug prior to the release...
>
> Thanks,
> Thilina
>
>> How do I rertieve the binary data which is outside the soap envelope?
>> Appreciate any help..
>>
>> Thanks,
>> Sathija.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://webservices.apache.org/~thilina/
> http://thilinag.blogspot.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 1.0] Asynchronous doc/lit, no output.

2006-08-15 Thread Sathija Pavuluri
Hi ppl,

I have'nt yet filed a JIRA either.
Waiting for input from the devs. Ajith was on this thread a while ago,
maybe he can give us some insight.

Sathija.


> Hi James,
>
> Yes, if the client thread doesn't sleep, as the call to execute() is
> nonblocking, the thread dies before it can create a SOAP envelope and
> ship it out. That is why we do not see any SOAP requests in the SOAP
> monitor. So "sleeping" is essential even for sending the request :)
>
> I was waiting for some of the developers to confirm this being a bug to
> file a JIRA. Not sure if Sathija already filed it.
>
> -Nirmit
>
>
>
>
>
>
>  "Bessette, James
>M."
>   <[EMAIL PROTECTED]
>  To  s.com>
> 
> cc
>
>  08/15/2006 11:08
>AM
> Subject
>RE: [Axis2 1.0] Asynchronous
>doc/lit, no output.
>
>  Please respond to
>[EMAIL PROTECTED]
>
>   he.org
>
>
>
>
>
>
>
>
>
> I have experienced the same issue using the generated code.  I can
> understand making the client sleep to receive the request and response.
> But based on my experience and the experience of others, it appears if
> the thread does not sleep at all, the request never makes it to the
> server.  Has anyone logged a JIRA issue on this?  Can anyone from the
> Axis 2 team confirm our findings?
>
> Thanks
>
> James Bessette
>
>
> -Original Message-
> From: Sathija Pavuluri [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 14, 2006 5:24 PM
> To: axis-user@ws.apache.org
> Subject: Re: [Axis2 1.0] Asynchronous doc/lit, no output.
>
> Ajith, Nirmit,
> This is indeed for Axis2 1.0.
>
> When I tried the nightlies(8/14/06) I ran into even bigger problems. The
> web services did not even get deployed properly.
> Something about method not found error for
> javax.xml.stream.XMLOutputFactory.newInstance(ClassLoader) method not
> found.
> Not sure if its just me or others who have had problems with today's
> nightly.
> I'll try again tomorrow.
>
> Anyway, for now I reverted back to my previous libraries and tried the
> same thing that Nirmit mentioned below.
>
> With sufficient sleep(5000), I could send the request and get response
> back. And the callback methods got invoked too!
>
> Nirmit, you might want to sequentially increase your sleep time and try.
> Once the req and res are sent I dont see why the callbacks shouldnt get
> invoked.
>
> Thanks,
> Sathija.
>
>
>
>
>
>> Hi Ajith, Sathija,
>>
>> I partly figured out the problem.
>>
>> As the userguide shows, with asynchronous clients, the calling thread
>> must do a Thread.sleep(). But in the generated code, I do not see any
>> Thread.sleep().
>>
>> So, I put a Thread.sleep(1000) in the generated test client's
>> testStart method, and then I saw a SOAP request/response
>> in SOAPMonitor. However, my callback methods were not invoked!! So, I
>> still haven't figured out how to receive the response. I gave up and
>> started using synchronous clients instead.
>>
>> -Nirmit
>>
>>
>>
>>
>>  "Ajith Ranabahu"
>><[EMAIL PROTECTED]
>>   mail.com>
>>  To
>>axis-user@ws.apache.org
>>
>>  08/14/2006 04:25
>> cc  PM
>>
>>
>> Subject
>>
>>Re: [Axis2 1.0] Asynchronous
>>
>>  Please respond to doc/lit, no output.
>>[EMAIL PROTECTED]
>>
>>   he.org
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Hi,
>> Is this for 1.0 ? Can you guys try with the latest nightlies ?
>>
>> Ajith
>>
>> On 8/14/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>>> Hi Nirmit,
>>>
>>> I am running an async call in Axis2 1.0 using generated code in a
>>> similar scenario as yours and seeing the exact same problem.
>>> Nothing is SOAP monitor unlike other sync calls. Looks like the
>>> request was never made.
>>> But I see no errors either.
>>>
>>> The async call goes thru in one case, when my test program also
>>> invokes a sync call. At that time, I see the req/res for the async
>>> call too. But when I run it by itself, 

Re: [Axis 2] MTOM Response is missing MIMEBoundary

2006-08-14 Thread Sathija Pavuluri
Thilina,
I am not using any specific data binding other than the default binding
that axis uses while generating client code.
These are the 3 arguments I pass to the wsdl2java tool.
"-uri  -output  -p "

> reportElement.getFirstChildWithName(new QName("image"));
> Then look for a OMText child in the above returned element.
I have done this and it contains the  but again its not of
OMText but of OMElement type.

And lastly, here is the request/response from tcpmon.
In the response, there is some binary data after the very last line
(content-transfer-encoding:binary) which I am unable to paste into my
email editor.

REQUEST

POST /enetaware/services/DeviceService HTTP/1.1
SOAPAction: urn:getDiscrepancyReport
User-Agent: Axis2
Host: s-pavuluri-02:5002
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8
146
http://schemas.xmlsoap.org/soap/envelope/";>http://service.ws.ena.emprisa.com/xsd";>ATL-cisco1760-01
0



RESPONSE
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=E42153E815F2B6E0C73BA4A1411998F5; Path=/enetaware
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_72F26FE4A15CA07131115559259687314;
type="application/xop+xml";
start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml";charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 14 Aug 2006 21:56:36 GMT
2b9
--MIMEBoundaryurn_uuid_72F26FE4A15CA07131115559259687314
content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binary
content-id:<0.urn:uuid:[EMAIL PROTECTED]>

http://schemas.xmlsoap.org/soap/envelope/";>http://service.ws.ena.emprisa.com/xsd";>http://www.w3.org/2004/08/xop/include";
/>
2000

--MIMEBoundaryurn_uuid_72F26FE4A15CA07131115559259687314
content-id:<1.urn:uuid:[EMAIL PROTECTED]>
content-type:image/jpeg
content-transfer-encoding:binary



Thanks,
Sathija.







> hmmm...Strange.
>
>> OMElement > xmlns:xop="http://www.w3.org/2004/08/xop/include";
>> href="cid:1.urn:uuid:[EMAIL PROTECTED]" />
> In Axis2 this element automatically gets replaced by an OMText.
> Wonder whether this is caused by the data binding stuff you have used in
> the client side.
>
> Can you try without data binding. Or send me your full code so that i
> can try to reproduce this in my machine.
>>
>> Also, when I tried to get it using,
>> reportElement.getFirstChildWithName(new QName("Include"));
>> it didnt return anything.
> reportElement.getFirstChildWithName(new QName("image"));
> Then look for a OMText child in the above returned element.
>
>>
>> Is there a different way to get to the OMText?
>>
>> Also, is tcpmon available in Axis2?
> http://ws.apache.org/commons/tcpmon/
>
> ~Thilina
>
>> If so, how do I set it up.
>> I have read Axis1 documentation which mentions the class
>> "org.apache.axis.utils.tcpmon" to run the tcpmon.
>> But there is no such class in Axis2.
>>
>> Thanks,
>> Sathija.
>>
>>
>> > Sithija,
>> > Looking at your ealier posted message snapshot, your client need to
>> dig one more level in to the OM.
>> >  
>> >  
>> >
>> >  
>> > Now it seems your only looking at the children of the return
>> element. Also it would have been easier to use the
>> getFirstChildWithQname() method rather than taking out the
>> iterator.
>> >
>> > Also as a favour, if possible please capture the messages using both
>> tcpmon SOAPMonitor and send me the snapshots. I need to figure out
>> whether there is a bug in SOAPMonitor.
>> >
>> > Regards,
>> > Thilina
>> >
>> >
>> > On 8/11/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >> Thilina,
>> >>
>> >> Here is the client code.
>> >>
>> >> DeviceServiceStub.GetReportResponse repResponse =
>> >> stub.getReport(rep);
>> >> OMElement reportElement = null;
>> >>
>> >> reportElement = repResponse.get_return();
>> >>
>> >> System.out.println("First child: " +
>> >> reportElement.getFirstOMChild().getClass().toString());
>> >>
>> >> Iterator repChildren = reportElement.getChildren();
>> while (repChildren.hasNext()) {
>> >> OMNode omNode = (OMNode) repChildren.next();
>> >> System.out.println("\n");
>> >> System.out.println("OM child class: " +
>> >> o

Re: [Axis2 1.0] Asynchronous doc/lit, no output.

2006-08-14 Thread Sathija Pavuluri
Ajith, Nirmit,
This is indeed for Axis2 1.0.

When I tried the nightlies(8/14/06) I ran into even bigger problems. The
web services did not even get deployed properly.
Something about method not found error for
javax.xml.stream.XMLOutputFactory.newInstance(ClassLoader) method not
found.
Not sure if its just me or others who have had problems with today's nightly.
I'll try again tomorrow.

Anyway, for now I reverted back to my previous libraries and tried the
same thing that Nirmit mentioned below.

With sufficient sleep(5000), I could send the request and get response
back. And the callback methods got invoked too!

Nirmit, you might want to sequentially increase your sleep time and try.
Once the req and res are sent I dont see why the callbacks shouldnt get
invoked.

Thanks,
Sathija.





> Hi Ajith, Sathija,
>
> I partly figured out the problem.
>
> As the userguide shows, with asynchronous clients, the calling thread
> must do a Thread.sleep(). But in the generated code, I do not see any
> Thread.sleep().
>
> So, I put a Thread.sleep(1000) in the generated test client's
> testStart method, and then I saw a SOAP request/response in
> SOAPMonitor. However, my callback methods were not invoked!! So, I still
> haven't figured out how to receive the response. I gave up and started
> using synchronous clients instead.
>
> -Nirmit
>
>
>
>
>  "Ajith Ranabahu"
><[EMAIL PROTECTED]
>   mail.com>
>  To
>axis-user@ws.apache.org
>
>  08/14/2006 04:25
> cc  PM
>
>Subject
>
>Re: [Axis2 1.0] Asynchronous
>
>  Please respond to doc/lit, no output.
>[EMAIL PROTECTED]
>
>   he.org
>
>
>
>
>
>
>
>
>
> Hi,
> Is this for 1.0 ? Can you guys try with the latest nightlies ?
>
> Ajith
>
> On 8/14/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> Hi Nirmit,
>>
>> I am running an async call in Axis2 1.0 using generated code in a
>> similar scenario as yours and seeing the exact same problem.
>> Nothing is SOAP monitor unlike other sync calls. Looks like the
>> request was never made.
>> But I see no errors either.
>>
>> The async call goes thru in one case, when my test program also
>> invokes a sync call. At that time, I see the req/res for the async
>> call too. But when I run it by itself, nothing happens.
>>
>> Have you been able to figure out the problem?
>>
>> Thanks,
>> Sathija.
>>
>>
>>
>>
>>
>> >Hi,
>>
>> >I am trying to invoke a doc/lit service with an asynchronous (two
> transport
>> >connections) client. I started from a WSDL and generated client side
>> and server side code with Axis databinding, along with a junit test.
>>
>> >However, when I run the test, I do not get any output, no exceptions,
> and
>> >no callbacks from the server. Also, SOAPMonitor does not show any
>> request/response message. My SOAPMonitor works with other clients.
>> Where did the call go?
>>
>> >I am really confused why this is happening. Has anyone tried clients
> with
>> >callbacks?
>>
>> >Thanks,
>>
>> >-Nirmit
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Ajith Ranabahu
>
> - 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 1.0] Asynchronous doc/lit, no output.

2006-08-14 Thread Sathija Pavuluri
Hi Nirmit,

I am running an async call in Axis2 1.0 using generated code in a similar
scenario as yours and seeing the exact same problem.
Nothing is SOAP monitor unlike other sync calls. Looks like the request
was never made.
But I see no errors either.

The async call goes thru in one case, when my test program also invokes a
sync call. At that time, I see the req/res for the async call too.
But when I run it by itself, nothing happens.

Have you been able to figure out the problem?

Thanks,
Sathija.





>Hi,

>I am trying to invoke a doc/lit service with an asynchronous (two transport
>connections) client. I started from a WSDL and generated client side and
>server side code with Axis databinding, along with a junit test.

>However, when I run the test, I do not get any output, no exceptions, and
>no callbacks from the server. Also, SOAPMonitor does not show any
>request/response message. My SOAPMonitor works with other clients. Where
>did the call go?

>I am really confused why this is happening. Has anyone tried clients with
>callbacks?

>Thanks,

>-Nirmit



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



Re: [Axis 2] MTOM Response is missing MIMEBoundary

2006-08-14 Thread Sathija Pavuluri

Thilina,

Thanks.
I have dug one level deeper and still there is no OMText, but only this
OMElement http://www.w3.org/2004/08/xop/include";
href="cid:1.urn:uuid:[EMAIL PROTECTED]" />

Also, when I tried to get it using,
reportElement.getFirstChildWithName(new QName("Include"));
it didnt return anything.

Is there a different way to get to the OMText?

Also, is tcpmon available in Axis2?
If so, how do I set it up.
I have read Axis1 documentation which mentions the class
"org.apache.axis.utils.tcpmon" to run the tcpmon.
But there is no such class in Axis2.

Thanks,
Sathija.


> Sithija,
> Looking at your ealier posted message snapshot, your client need to dig
> one more level in to the OM.
>  
>  
>
>  
> Now it seems your only looking at the children of the return element.
> Also it would have been easier to use the getFirstChildWithQname()
> method rather than taking out the iterator.
>
> Also as a favour, if possible please capture the messages using both
> tcpmon SOAPMonitor and send me the snapshots. I need to figure out
> whether there is a bug in SOAPMonitor.
>
> Regards,
> Thilina
>
>
> On 8/11/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> Thilina,
>>
>> Here is the client code.
>>
>> DeviceServiceStub.GetReportResponse repResponse =
>> stub.getReport(rep);
>> OMElement reportElement = null;
>>
>> reportElement = repResponse.get_return();
>>
>> System.out.println("First child: " +
>> reportElement.getFirstOMChild().getClass().toString());
>>
>> Iterator repChildren = reportElement.getChildren();
>> while (repChildren.hasNext()) {
>> OMNode omNode = (OMNode) repChildren.next();
>> System.out.println("\n");
>> System.out.println("OM child class: " +
>> omNode.getClass().toString());
>> System.out.println("\n");
>> System.out.println("Data: \n");
>> omNode.serialize(System.out);
>> System.out.println("");
>> }
>>
>> The line
>> omNode.serialize(System.out);
>> prints  > xmlns:xop="http://www.w3.org/2004/08/xop/include";
>>  href="cid:1.urn:uuid:[EMAIL PROTECTED]"
>> />
>>
>> There is one child as I expect but the child/omNode is always of type
>> OMElement while I am expecting it to be OMText.
>>
>> The other soap message snapshot I posted earlier was from the SOAP
>> Monitor. I had set it up as described here:
>> http://ws.apache.org/axis2/1_0/soapmonitor-module.html
>>
>>
>> Thanks,
>> Sathija.
>>
>>
>> >> > xmlns:xop="http://www.w3.org/2004/08/xop/include";
>> href="cid:1.urn:uuid:[EMAIL PROTECTED]"
>> />
>> >
>> >
>> > This means your client is correctly receiving a MTOM optimised
>> message. Now I wonderhow you got the message snapshot you posted
>> in your first message.  What is the mechanism you used for message
>> sniffing. Try using TCPMON and send the on the wire  message
>> > snapshots.
>> > Also if possible post your client code. Problem seems to be with
>> your client code.
>> >
>> > ~Thilina
>> >
>> >
>> >
>> >> > If that can help you diagnose the problem any better.
>> >>
>> >> Thanks!
>> >>
>> >>
>> >> > Thilina,
>> >> > Thanks for the quick response.
>> >> > I do have MTOM enabled in axis2.xml as you mentioned below. And
>> on the server side, I construct the OMText this way.
>> >> >
>> >> > OMText textData = factory.createOMText(dh, true);
>> >> > which means should it should be optimized.
>> >> >
>> >> > And I am pretty sure I have followed all other steps as outlined
>> in
>> >> the MTOM guide.
>> >> > Can't figure out what else might be wrong.
>> >> > Here's my server code (almost an exact replica of what's in mtom
>> >> guide).
>> >> >
>> >> > public OMElement getReport(String devName) {
>> >> >
>> >> > OMElement imageElement = null;
>> >> > String inputImageFileName = "Blue_hills.jpg";
>> >> > try {
>> >> > OM

Re: [Axis 2] MTOM Response is missing MIMEBoundary

2006-08-11 Thread Sathija Pavuluri
Thilina,

Here is the client code.

DeviceServiceStub.GetReportResponse repResponse =
stub.getReport(rep);
OMElement reportElement = null;

reportElement = repResponse.get_return();

System.out.println("First child: " +
reportElement.getFirstOMChild().getClass().toString());

Iterator repChildren = reportElement.getChildren();
while (repChildren.hasNext()) {
OMNode omNode = (OMNode) repChildren.next();
System.out.println("\n");
System.out.println("OM child class: " +
omNode.getClass().toString());
System.out.println("\n");
System.out.println("Data: \n");
omNode.serialize(System.out);
System.out.println("");
}

The line
omNode.serialize(System.out);
prints  http://www.w3.org/2004/08/xop/include";
 href="cid:1.urn:uuid:[EMAIL PROTECTED]"
 />

There is one child as I expect but the child/omNode is always of type
OMElement while I am expecting it to be OMText.

The other soap message snapshot I posted earlier was from the SOAP Monitor.
I had set it up as described here:
http://ws.apache.org/axis2/1_0/soapmonitor-module.html


Thanks,
Sathija.


>> http://www.w3.org/2004/08/xop/include";
>> href="cid:1.urn:uuid:[EMAIL PROTECTED]"
>> />
>
>
> This means your client is correctly receiving a MTOM optimised
> message. Now I wonderhow you got the message snapshot you posted in
> your first message.  What is the mechanism you used for message
> sniffing. Try using TCPMON and send the on the wire  message
> snapshots.
> Also if possible post your client code. Problem seems to be with your
> client code.
>
> ~Thilina
>
>
>
>> > If that can help you diagnose the problem any better.
>>
>> Thanks!
>>
>>
>> > Thilina,
>> > Thanks for the quick response.
>> > I do have MTOM enabled in axis2.xml as you mentioned below.
>> > And on the server side, I construct the OMText this way.
>> >
>> > OMText textData = factory.createOMText(dh, true);
>> > which means should it should be optimized.
>> >
>> > And I am pretty sure I have followed all other steps as outlined in
>> the MTOM guide.
>> > Can't figure out what else might be wrong.
>> > Here's my server code (almost an exact replica of what's in mtom
>> guide).
>> >
>> > public OMElement getReport(String devName) {
>> >
>> > OMElement imageElement = null;
>> > String inputImageFileName = "Blue_hills.jpg";
>> > try {
>> > OMFactory factory = OMAbstractFactory.getOMFactory();
>> OMNamespace ns = factory.createOMNamespace("",
>> "getReport");
>> > imageElement = factory.createOMElement("image", ns);
>> > Image image;
>> > image = new ImageIO().loadImage(new
>> > FileInputStream(inputImageFileName));
>> > ImageDataSource ds = new
>> ImageDataSource("Blue_hills.jpg",
>> > image);
>> > DataHandler dh = new DataHandler(ds);
>> >
>> > OMText textData = factory.createOMText(dh, true);
>> >     imageElement.addChild(textData);
>> > } catch (Exception e) {
>> > e.printStackTrace();
>> > }
>> >
>> > return imageElement;
>> > }
>> >
>> >
>> > Thanks,
>> > Sathija.
>> >
>> >
>> >> Hi,
>> >> First of all your message does not contain any MTOM Optimised
>> parts. Binary attachment has been sent inline with XML payload by
>> base64 encoding. Enable MTOM in the server by adding follwing to
>> the axis2.xml.
>> >>
>> >> true
>> >>
>> >> ~Thilina
>> >>
>> >>
>> >> On 8/10/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> >>> Hi,
>> >>>
>> >>> I am implementing an Axis service to send binary attachments from
>> the server to an axis client.
>> >>> I've enabled MTOM and optimized the data as described in the MTOM
>> Guide.
>> >>>
>> >>> When I try to retrieve the OMText at the cl

Re: [Axis 2] MTOM Response is missing MIMEBoundary

2006-08-10 Thread Sathija Pavuluri
Oh, and btw, when I extract the OMElement at the client and print, this is
what it contains:

http://www.w3.org/2004/08/xop/include";
href="cid:1.urn:uuid:[EMAIL PROTECTED]"
/>

If that can help you diagnose the problem any better.

Thanks!


> Thilina,
> Thanks for the quick response.
> I do have MTOM enabled in axis2.xml as you mentioned below.
> And on the server side, I construct the OMText this way.
>
> OMText textData = factory.createOMText(dh, true);
> which means should it should be optimized.
>
> And I am pretty sure I have followed all other steps as outlined in the
> MTOM guide.
> Can't figure out what else might be wrong.
> Here's my server code (almost an exact replica of what's in mtom guide).
>
> public OMElement getReport(String devName) {
>
> OMElement imageElement = null;
> String inputImageFileName = "Blue_hills.jpg";
> try {
> OMFactory factory = OMAbstractFactory.getOMFactory();
> OMNamespace ns = factory.createOMNamespace("", "getReport");
> imageElement = factory.createOMElement("image", ns);
> Image image;
> image = new ImageIO().loadImage(new
> FileInputStream(inputImageFileName));
> ImageDataSource ds = new ImageDataSource("Blue_hills.jpg",
> image);
> DataHandler dh = new DataHandler(ds);
>
> OMText textData = factory.createOMText(dh, true);
> imageElement.addChild(textData);
> } catch (Exception e) {
> e.printStackTrace();
> }
>
> return imageElement;
> }
>
>
> Thanks,
> Sathija.
>
>
>> Hi,
>> First of all your message does not contain any MTOM Optimised parts.
>> Binary attachment has been sent inline with XML payload by base64
>> encoding. Enable MTOM in the server by adding follwing to the
>> axis2.xml.
>>
>> true
>>
>> ~Thilina
>>
>>
>> On 8/10/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>>> Hi,
>>>
>>> I am implementing an Axis service to send binary attachments from the
>>> server to an axis client.
>>> I've enabled MTOM and optimized the data as described in the MTOM
>>> Guide.
>>>
>>> When I try to retrieve the OMText at the client side, I get a class
>>> cast exception, since the response is returning an OMElement.
>>> Here's what the TCPMon response shows:
>>>
>>> 
>>> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>>>   
>>>   
>>> >> xmlns:ns="http://service.ws.ena.emprisa.com/xsd";>
>>> /9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAJYAyADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRol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QIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3TNGaj3Ck3fnW9jz+!
Y!
> lz
>>  R!
>

Re: [Axis 2] MTOM Response is missing MIMEBoundary

2006-08-10 Thread Sathija Pavuluri
Thilina,
Thanks for the quick response.
I do have MTOM enabled in axis2.xml as you mentioned below.
And on the server side, I construct the OMText this way.

OMText textData = factory.createOMText(dh, true);
which means should it should be optimized.

And I am pretty sure I have followed all other steps as outlined in the
MTOM guide.
Can't figure out what else might be wrong.
Here's my server code (almost an exact replica of what's in mtom guide).

public OMElement getReport(String devName) {

OMElement imageElement = null;
String inputImageFileName = "Blue_hills.jpg";
try {
OMFactory factory = OMAbstractFactory.getOMFactory();
OMNamespace ns = factory.createOMNamespace("", "getReport");
imageElement = factory.createOMElement("image", ns);
Image image;
image = new ImageIO().loadImage(new
FileInputStream(inputImageFileName));
ImageDataSource ds = new ImageDataSource("Blue_hills.jpg",
image);
DataHandler dh = new DataHandler(ds);

OMText textData = factory.createOMText(dh, true);
imageElement.addChild(textData);
} catch (Exception e) {
e.printStackTrace();
}

return imageElement;
}


Thanks,
Sathija.


> Hi,
> First of all your message does not contain any MTOM Optimised parts.
> Binary attachment has been sent inline with XML payload by base64
> encoding. Enable MTOM in the server by adding follwing to the
> axis2.xml.
>
> true
>
> ~Thilina
>
>
> On 8/10/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I am implementing an Axis service to send binary attachments from the
>> server to an axis client.
>> I've enabled MTOM and optimized the data as described in the MTOM
>> Guide.
>>
>> When I try to retrieve the OMText at the client side, I get a class
>> cast exception, since the response is returning an OMElement.
>> Here's what the TCPMon response shows:
>>
>> 
>> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>>   
>>   
>> > xmlns:ns="http://service.ws.ena.emprisa.com/xsd";>
>> /9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAJYAyADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYW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AVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3TNGaj3Ck3fnW9jz+Y!
lz
>  R!
>> mosilzRYOYkzRmo80ZosHMSZozTM0ZpWDmHc0uajzRmnYOYkzRmmZozSsFx+aM0zNGaLBzD80ZpuaM0DuPzRmmZozRYXMPzRTM0ZosFx+aM0zNGaLDuPzRmmZozRYLj80ZpM0Uiri0ZpuaM0WDmJM03NNzRmiwc47NFJmjNAXFozSU3NAXH5ozTM0Zp2DmH0ZpuaM0rBcdmjNMzS5FFg5iTNFR5pc0WC4/NGaZmjNIdx9GaZmjNAXH0ZpmaM0BcfmjNMzS0BcdmjNMzRmgLj80ZpmaM0BcdmkpM0Ux8w7NGabRRYOYdmjNNzRmiwcw/NGabmkzSFcfmjNNozQFx1GaZRmgLj80ZpmaM0BcfRTM0uaAuOzRmm5ozQFx1GaZmlzQFx1GaZmlzQVcdRmm5ozQFx1GabmjNAXHZozTc0maLE3FzRmm5pC3XvTsLmH5pM1A8rheE5PQVW8u4dsl8e1Wo9zOVa2yNDIpc1nC3mB/1v41NEGXq7H3ocF3Eqze6LeQ==ozUQyP4qXfzU2NOYkzRk0zNGaLCuP30b6ZmkzRYfMSb6M1HmjNFg5iTNGajzRmiwe0JM0Z

[Axis 2] MTOM Response is missing MIMEBoundary

2006-08-10 Thread Sathija Pavuluri
Hi,

I am implementing an Axis service to send binary attachments from the
server to an axis client.
I've enabled MTOM and optimized the data as described in the MTOM Guide.

When I try to retrieve the OMText at the client side, I get a class cast
exception, since the response is returning an OMElement.
Here's what the TCPMon response shows:


http://schemas.xmlsoap.org/soap/envelope/";>
  
  
http://service.ws.ena.emprisa.com/xsd";>
/9j/4AAQSkZJRgABAgAAA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