RE: castor & axis & marshalling

2003-08-14 Thread Naresh Bhatia
in both directions, before converting back to text), which is going to really hurt performance. - Dennis Dennis M. Sosnoski Enterprise Java, XML, and Web Services Support - http://www.sosnoski.com JiBX Lead Developer - http://www.jibx.org Redmond, WA 425.885.7197 Naresh Bhatia wrote: >C

RE: castor & axis & marshalling

2003-08-14 Thread Naresh Bhatia
Cory, Theoretically, the answer to your question is yes. But practically when I tried this in the past, Castor mapping approach could not handle the complexities of my data structures. So I use an XML Pull parser to serialize / deserialize my business objects. You can look at my detailed implement

RE: How to return an XML as a complex type (xsdl)

2003-07-26 Thread Naresh Bhatia
Hi Hengel, If all you are trying to do is to return an XML document in the SOAP body, use a document-style Web service, specifically Axis's "message service-style". This is documented in the Axis user's guide. You can see an example of such usage in the Simple Messaging Framework at smfw.sourcefor

Exposing complex business objects using Axis

2003-07-21 Thread Naresh Bhatia
ach. Please let me know if this is a real problem that you are facing too. My framework code is open source - it is available at http://smfw.sourceforge.net. I also have two examples that you can run to try out the framework. Naresh Bhatia

RE: Problem with packaging Axis app - ClassNotFoundException

2003-03-22 Thread Naresh Bhatia
Title: Message Sorry, cockpit error :-). When moving to WebLogic 6.1, I had forgotten to copy a configuration file. This was causing an ExceptionInInitializerError when creating the UserService class. Everything is working fine now! Naresh -Original Message-From: Naresh Bhatia

Problem with packaging Axis app - ClassNotFoundException

2003-03-22 Thread Naresh Bhatia
Title: Problem with packaging Axis app - ClassNotFoundException I have an ear file that works perfectly well with WebLogic 7.0 but gives me a ClassNotFoundException in WebLogic 6.1. Hoping that someone might know what is going on. The ear file is structured as follows:     MyApp.ear

RE: Authorization using WS security and SAML

2003-03-17 Thread Naresh Bhatia
Hi Anne, You touch on some interesting points. I agree that one can implement authentication or authorization purely using transport level security mechanisms and JAAS. However what is the best approach today to implement single-sign on. In my application, the end user sends SOAP messages to my we

RE: Packaging WSDL in an ear file

2003-03-15 Thread Naresh Bhatia
Message-From: Naresh Bhatia [mailto:[EMAIL PROTECTED]Sent: Saturday, March 15, 2003 2:03 AMTo: [EMAIL PROTECTED]Subject: Packaging WSDL in an ear file Hi, My J2EE application is both an Axis client and an Axis Server. Since Axis.jar is quite large (~ 1MB), I would like

Packaging WSDL in an ear file

2003-03-15 Thread Naresh Bhatia
Title: Packaging WSDL in an ear file Hi, My J2EE application is both an Axis client and an Axis Server. Since Axis.jar is quite large (~ 1MB), I would like to package it only once in my ear file. So, instead of putting it in my web-app, I am packaging it at the top level of my ear file wher

RE: Accessing 'raw' document body.

2003-03-12 Thread Naresh Bhatia
Title: Message And if you are trying to access only the raw SOAP body, you can do it with the "message" style supported by Axis. The user's manual has more details, but essentially your service would have to expose a method with one of 4 signatures as described in the manual. Here is some sa

Loading configuration in an Axis webapp

2003-03-04 Thread Naresh Bhatia
Title: Loading configuration in an Axis webapp I want to load a configuration file in my webapp that is running the AxisServlet. I tried doing this in a static block within the Axis service class. But that makes Axis very upset. I get the following exception: <101017> Root cause of Servl

RE: Accessing the XML in the SOAP message body directly

2003-02-26 Thread Naresh Bhatia
e experiencing the same issues and like this approach, please chime in. Thanks. Naresh -----Original Message- From: Naresh Bhatia Sent: Monday, February 24, 2003 6:11 PM To: [EMAIL PROTECTED] Subject: RE: Accessing the XML in the SOAP message body directly Hi Mike, You wrote that: > You&

RE: Accessing the XML in the SOAP message body directly

2003-02-24 Thread Naresh Bhatia
tion) even if you explicitly set the operation style to Document. Is this a design decision of AXIS (eg, an unexpected behavior forced by JAX-RPC compliance) or is this just a bug (that it ignores operation style and only decides between messaging vs RPC based on existence of SOAPBodyElement args)?

RE: Accessing the XML in the SOAP message body directly

2003-02-24 Thread Naresh Bhatia
the attachment.     thanks, Aria -Original Message-----From: Naresh Bhatia Sent: Friday, February 21, 2003 7:44 PMTo: [EMAIL PROTECTED]Subject: Accessing the XML in the SOAP message body directly I am using the Axis "Message" style service to populate the SOA

Accessing the XML in the SOAP message body directly

2003-02-21 Thread Naresh Bhatia
Title: Accessing the XML in the SOAP message body directly I am using the Axis "Message" style service to populate the SOAP body myself. My payload originates in an XML file, which I read into a SOAPBodyElement. When I invoke the call, Axis obviously reconverts the SOAPBodyElement into XML an

Best practices for Lists and Maps

2003-02-18 Thread Naresh Bhatia
Title: Best practices for Lists and Maps Hi, I am trying to find the best practices around serializing / deserializing Lists and Maps. So far I have come up with the following approaches. Please feel free to give me your comments as well as list other approaches that you may have found usef

RE: Clarification on Service Styles - RPC, Document, Wrapped and Message

2003-02-11 Thread Naresh Bhatia
Title: Message I am hoping that some of the developers could chime in on this one. I am unable to move forward without answering these questions. Thanks. Naresh -Original Message-From: Naresh Bhatia Sent: Monday, February 10, 2003 3:57 PMTo: [EMAIL PROTECTED]Subject

Clarification on Service Styles - RPC, Document, Wrapped and Message

2003-02-10 Thread Naresh Bhatia
Title: Clarification on Service Styles - RPC, Document, Wrapped and Message Hi, I have some questions about the 4 service styles supported by Axis, i.e. RPC, Document, Wrapped and Message. I hope someone can answer these for me. 1) WSDL 1.1 talks about two SOAP binding styles: "rpc" and "d

WSDLException when generating DOCUMENT style WSDL

2003-02-09 Thread Naresh Bhatia
Title: WSDLException when generating DOCUMENT style WSDL I am getting a WSDLException when generating a DOCUMENT style WSDL using java2wsdl. Here's my Java interface: public interface UserProvider extends java.rmi.Remote {     public String getUser(String userId)     throws RemoteEx

RE: Accessing a service via SOAP as well as Java

2003-02-03 Thread Naresh Bhatia
/wsif ...ant Anthony Elder [EMAIL PROTECTED] Web Services Development IBM UK Laboratories, Hursley Park (+44) 01962 818320, x248320, MP208. "Naresh Bhatia" <[EMAIL PROTECTED]> on 02/02/2003 14:57:01 Please respond to [EMAIL PROTECTED] To:<[EMAIL PROTECTED]> cc: S

Does Axis 1.1 Beta support custom faults?

2003-02-02 Thread Naresh Bhatia
Title: Does Axis 1.1 Beta support custom faults? Java2Wsdl and Wsdl2Java seem to support custom faults. But when I throw such a fault on the server-side, I get an AxisFault on the client. Naresh

Accessing a service via SOAP as well as Java

2003-02-02 Thread Naresh Bhatia
Title: Accessing a service via SOAP as well as Java I have exposed a service via SOAP. However, I also need to access this service internally from my application. Do you think it is okay to access the service directly by calling its SOAP implementation (bypassing the Axis servlet completely)?

RE: How to deploy two web services in one web container?

2003-01-28 Thread Naresh Bhatia
any number of different .wars or .jars or .earson 27/1/03 7:10 PM, Naresh Bhatia at [EMAIL PROTECTED] wrote: I would like to deploy two web services in the same web container. What is the recommended approach for doing this? I was thinking of two possibilities: 1) One Web App with tw

RE: Does Java2Wsdl support EJBs?

2003-01-28 Thread Naresh Bhatia
hy do you need Java2Wsdl?on 26/1/03 11:42 AM, Naresh Bhatia at [EMAIL PROTECTED] wrote: Does Java2Wsdl support WSDL generation from EJBs? I tried it but I am getting the following exception: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'h

How to deploy two web services in one web container?

2003-01-27 Thread Naresh Bhatia
possible? 2) Two separate Web Apps? This would mean running two Axis servlets on two different ports. Thanks. Naresh Bhatia

Does Java2Wsdl support EJBs?

2003-01-26 Thread Naresh Bhatia
Title: Does Java2Wsdl support EJBs? Does Java2Wsdl support WSDL generation from EJBs? I tried it but I am getting the following exception: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://ejb.javax'.     Namespace prefixes must be set on the Definition object usi

Error deploying application axis: Could not load axis

2002-10-01 Thread Naresh Bhatia
ic.t3.srvr.T3Srvr.start(T3Srvr.java:518)     at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)     at weblogic.Server.main(Server.java:35) Naresh Bhatia Sapient One Memorial Drive, Cambridge, MA 02142 Tel: 617-761-1771  Fax: 617-621-1300 Email: [EMAIL PROTECTED]

RE: Adding SOAP header in Axis client

2002-09-30 Thread Naresh Bhatia
aderElement)myHeaders.get(i));     ...     } Please let me know what is the recommended way to add a SOAP header in client code. Naresh Bhatia

Adding SOAP header in Axis client

2002-09-30 Thread Naresh Bhatia
aderElement)myHeaders.get(i));     ...     } Please let me know what is the recommended way to add a SOAP header in client code. Naresh Bhatia

RE: Connecting to Axis server from a C# client over SSL

2002-09-29 Thread Naresh Bhatia
as the mailing does not like too much such attachments).   Thomas  -Original Message-From: Naresh Bhatia [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 4:02 PMTo: '[EMAIL PROTECTED]'Subject: RE: Connecting to Axis server from a

Logging SOAP messages

2002-09-27 Thread Naresh Bhatia
. (BTW, I am using Weblogic 6.1. Tried to set up log4j on it once but could not get it to work. If anyone has pointers on this, that would be very helpful). Thanks. Naresh Bhatia

RE: Connecting to Axis server from a C# client over SSL

2002-09-26 Thread Naresh Bhatia
Certification Authorities tab. The installed certificate is called localhost (check the genkey target in the build.xml file to understand why localhost). Thomas -Original Message-From: Naresh Bhatia [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002

Connecting to Axis server from a C# client over SSL

2002-09-25 Thread Naresh Bhatia
. Naresh Bhatia

RE: .NET does not take WSDL generated by Axis

2002-07-14 Thread Naresh Bhatia
ith .NET?   Thanks. Naresh -Original Message-From: Naresh Bhatia [mailto:[EMAIL PROTECTED]]Sent: Friday, July 12, 2002 6:33 PMTo: '[EMAIL PROTECTED]'Subject: RE: .NET does not take WSDL generated by Axis Thanks Dan.   So I ran my wsdl using VisutalStudio'

RE: .NET does not take WSDL generated by Axis

2002-07-12 Thread Naresh Bhatia
NET\FrameworkSDK\Bin) outside of VisualStudio and then add the created resources to your project if this is successful. type the command only for a list of options.   Dan          -Original Message-From: Naresh Bhatia [mailto:[EMAIL PROTECTED]]Sent: Friday,

Enabling .NET client to maintain session with Axis web service

2002-07-12 Thread Naresh Bhatia
ce ws = new MySvc.MyService();     ws.sendToken(token);     int receivedToken = ws.getToken(); Thanks. Naresh Bhatia

.NET does not take WSDL generated by Axis

2002-07-12 Thread Naresh Bhatia
for the problem? Thanks. Naresh Bhatia

RE: How to use DateSerializer?

2002-07-03 Thread Naresh Bhatia
l contains a String like this "2002-07-02".  can you please send me your mapping entry in your  deployment file? I think this is the only position where I coult have made something wrong.   Thanks Christian    -Original Message-From: Naresh Bhatia [mailto:[

RE: How to use DateSerializer?

2002-07-02 Thread Naresh Bhatia
Title: RE: How to use DateSerializer? I am currently using the nightly build of Axis. It appears that Date is now correctly mapped to xsd:dateTime. And that is what JAX-RPC specification asks for. I have found that the conversion to/from Date works fine for this build. -Original Message--

RE: Help needed in writing a deserializer

2002-07-01 Thread Naresh Bhatia
chael       Naresh Bhatia           ent.com>   

Help needed in writing a deserializer

2002-06-30 Thread Naresh Bhatia
the members. How can I do this? Thanks. Naresh Bhatia

Is this a bug in serialization?

2002-06-29 Thread Naresh Bhatia
ror   I have created the Message object using WSDL2Java and it contains the equals() and hashcode() methods. Please help! Naresh Bhatia

equals() and hashCode() methods generated by WSDL2Java

2002-06-29 Thread Naresh Bhatia
necessary for my beans to override these methods? If yes, can I simplify the two methods by using the unique key within my objects instead of considering every field? Naresh Bhatia

RE: Parameters Name

2002-06-27 Thread Naresh Bhatia
so On Thu, 2002-06-27 at 18:22, Naresh Bhatia wrote: > - But isn't Java2WSDL supposed to generate the implementation class? > > - Can't Java2WSDL pick the parameter names from the class-of-portType if it > is compiled with -g? > > Thanks. > Naresh > > ---

RE: Parameters Name

2002-06-27 Thread Naresh Bhatia
Title: RE: Parameters Name - But isn't Java2WSDL supposed to generate the implementation class? - Can't Java2WSDL pick the parameter names from the class-of-portType if it is compiled with -g? Thanks. Naresh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Se

Java2WSDL - parameter names

2002-05-13 Thread Naresh Bhatia
Title: Java2WSDL - parameter names Is there a way for Java2WSDL to generate method parameter names as specified in the Java classes instead of in0, in1 etc? Thanks. Naresh Bhatia

Java classes generated by WSDL2Java

2002-05-13 Thread Naresh Bhatia
the data classes in order to keep them generic and not tied to SOAP? If there is a more elegant approach to solving this problem, I would like to hear about it. Thanks. Naresh Bhatia

RE: How to control the Call object in code generated by WSDL2Java ?

2002-05-10 Thread Naresh Bhatia
PERTY, password); where "Stub" is javax.xml.rpc.Stub.  (You can see why we added the AXIS API's.  setUserName(userName) is a whole lot easier to read.) Russell Butek [EMAIL PROTECTED] Naresh Bhatia <[EMAIL PROTECTED]> on 05/10/2002 02:46:40 PM Please respond to [EMAIL PROTECTED] To: 

RE: How to control the Call object in code generated by WSDL2Java ?

2002-05-10 Thread Naresh Bhatia
name" ); yourStub._setProperty( javax.xml.rpc.Call.PASSWORD_PROPERTY, "password" ); Good luck! alan -Original Message- From: Naresh Bhatia [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:36 AM To: '[EMAIL PROTECTED]' Subject: How to control the Cal

How to control the Call object in code generated by WSDL2Java?

2002-05-10 Thread Naresh Bhatia
Title: How to control the Call object in code generated by WSDL2Java? I have used WSDL2Java to generate my Web Service. I need to set the username and password properties on the Call object before I send out the SOAP message. How can I do that? Currently the client code that invokes the call l

RE: Authentication and digital signatures

2002-05-09 Thread Naresh Bhatia
house" user to the tomcat-users.xml file as described in the installation instructions that come with the examples. Dan - Original Message - From: Naresh Bhatia To: '[EMAIL PROTECTED]' Sent: Thursday, May 09, 2002 9:31 AM Subject: Authentication and digital signatures

RE: Lists (was RE: How to use a return type java.util.List)

2002-04-17 Thread Naresh Bhatia
Title: RE: Lists (was RE: How to use a return type java.util.List) I have a process question related to this issue. To create my web service, I usually run Java2WSDL on my interface followed by WSDL2Java. I assume that I have to tweak the files Generated by Java2WSDL in order to make this work

NullPointerException

2002-04-16 Thread Naresh Bhatia
tstore.donut.WebServiceTest.main(WebServiceTest.java:17) Please help. Naresh Bhatia