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
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
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
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
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
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
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
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
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
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
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
(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
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
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
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
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;
/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
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
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
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
. Is this possible?
2) Two separate Web Apps? This would mean running two Axis servlets on two different ports.
Thanks.
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
(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]
((SOAPHeaderElement)myHeaders.get(i));
...
}
Please let me know what is the recommended way to add a SOAP header in client code.
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
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
.
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
for the problem?
Thanks.
Naresh Bhatia
MySvc.MyService();
ws.sendToken(token);
int receivedToken = ws.getToken();
Thanks.
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
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
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
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
this?
Thanks.
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
age object using WSDL2Java and it contains the equals() and hashcode() methods.
Please help!
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]]
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
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
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
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
( 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
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
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
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
)
at com.sapient.donutstore.donut.WebServiceTest.main(WebServiceTest.java:17)
Please help.
Naresh Bhatia
47 matches
Mail list logo