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

RE: castor axis marshalling

2003-08-14 Thread Naresh Bhatia
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: Cory, Theoretically, the answer to your question

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

Exposing complex business objects using Axis

2003-07-21 Thread Naresh Bhatia
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

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: 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

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

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

RE: Packaging WSDL in an ear file

2003-03-15 Thread Naresh Bhatia
PROTECTED]'Subject: RE: Packaging WSDL in an ear file Naresh, I am trying to do the similar project. However, I was not able to package server-config.wsdd. Where and how did you package it? Brian -Original Message-From: Naresh Bhatia [mailto:[EMAIL PROTECTED]Sent

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

RE: Accessing the XML in the SOAP message body directly

2003-02-26 Thread Naresh Bhatia
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 not actually transforming

RE: Accessing the XML in the SOAP message body directly

2003-02-24 Thread Naresh Bhatia
(call.ATTACHMENT_ENCAPSULATION_FORMAT, call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME); Object ret = call.invoke( new Object[] { dhSource } ); //Add the attachment. thanks, Aria -Original Message-From: Naresh Bhatia Sent: Friday

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

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 couldchime 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

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 RemoteException;

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: Subject:Accessing

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

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

RE: Does Java2Wsdl support EJBs?

2003-01-28 Thread Naresh Bhatia
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 'http://ejb.javax'. Namespace

How to deploy two web services in one web container?

2003-01-27 Thread Naresh Bhatia
. Is this 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 using the

Error deploying application axis: Could not load axis

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

Adding SOAP header in Axis client

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

RE: Adding SOAP header in Axis client

2002-09-30 Thread Naresh Bhatia
((SOAPHeaderElement)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
mailingdoes 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 C# client over SSL

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
"/ element name="value" type="xsd:anyType"/ /all /complexType /element /sequence /complexType /schema As soon as I remove this section, .NET reads the WSDL successfully and creates the associated classes. So the big question is, has anyone been able to make the Map work

.NET does not take WSDL generated by Axis

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

Enabling .NET client to maintain session with Axis web service

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

RE: .NET does not take WSDL generated by Axis

2002-07-12 Thread Naresh Bhatia
E: .NET does not take WSDL generated by Axis You may want to try using the WSDL tool (wsdl.exe in Microsoft.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

RE: How to use DateSerializer?

2002-07-03 Thread Naresh Bhatia
ontains 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:[EMAIL PROTECT

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

RE: Help needed in writing a deserializer

2002-07-01 Thread Naresh Bhatia
no reason to write a custom deserializer at all just type map both TransactionId and AccountNumber and let BeanSerializer do the work for you. Michael Naresh Bhatia NBhatia@sapi To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] ent.com cc: Subject: Help needed in writing a deserializer 06/30

Help needed in writing a deserializer

2002-06-30 Thread Naresh Bhatia
this? Thanks. Naresh Bhatia

equals() and hashCode() methods generated by WSDL2Java

2002-06-29 Thread Naresh Bhatia
, is it 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

Is this a bug in serialization?

2002-06-29 Thread Naresh Bhatia
age object using WSDL2Java and it contains the equals() and hashcode() methods. Please help! Naresh Bhatia

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]]

RE: Parameters Name

2002-06-27 Thread Naresh Bhatia
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 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

Java classes generated by WSDL2Java

2002-05-13 Thread Naresh Bhatia
of 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

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

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

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

2002-05-10 Thread Naresh Bhatia
( 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 Call object in code generated by WSDL2Java? I have used WSDL2Java to generate my Web Service

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

2002-05-10 Thread Naresh Bhatia
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: '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc: Subject: RE: How to control

RE: Authentication and digital signatures

2002-05-09 Thread Naresh Bhatia
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 Could the group clarify the relationship between 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

NullPointerException

2002-04-16 Thread Naresh Bhatia
) at com.sapient.donutstore.donut.WebServiceTest.main(WebServiceTest.java:17) Please help. Naresh Bhatia