File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes SOAP customizing object with JNI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP customizing object with JNI" Watch "SOAP customizing object with JNI" New topic
Author

SOAP customizing object with JNI

Roy Huang
Ranch Hand

Joined: Nov 21, 2001
Posts: 104
I have tried to send a self designed complete type object through SOAP and its default serializer to the SOAP server.
From the client side, everything is OK; on the Server side I want to dissolve this object and using JNI(Java Native Interface) to connect with the C dll file.
But I don't know on the server side how to notice that the SOAP object from the client is coming and how to dissolve it?
Does anybody have good examples?
Thanks,
Roy


SCJP 1.4/SCBCD/SCWCD<br />MCSE<br />IBM professional XML Developer<br />SAP certified Development Consultant (NetWeaver portal and Web JavaApplication)
Mandan Happy
Ranch Hand

Joined: Dec 17, 2001
Posts: 65
Roy,
Kudnt understand what u are attempting.
Why would you mix SOAP and JNI.
JNI you use to perform a native call using Java.
SOAP is a simple RPC mechanism without support for object-by-refernce and consequently no support for call backs and activation.
Can You give a more detailed description
-Mandan
Roy Huang
Ranch Hand

Joined: Nov 21, 2001
Posts: 104
Mandan, Hi,
I just want to use java soap to transfer several parameters with different data types to a remote soap server(using soap self defined object).
Then in the server side to dissolve it and call the java native method (from Java to C .dll files).
But I don't know how to detect the SOAP object is coming on the server side.
Thanks
Jim Baiter
Ranch Hand

Joined: Jan 05, 2001
Posts: 532
You shouldn't need to write JNI, you should be able to SOAP serialize the Java object and deserialize it into native.
Mandan Happy
Ranch Hand

Joined: Dec 17, 2001
Posts: 65
Are you attempting to transmit *User defined Java Types* using soap and then deserialize it back and convert them into native calls.
You need to write serializers/deserilaizers for that.
Are u using AXIS,SUN-JAXRPC,IBM WSTK,GLUE or WASP?
Why JNI? is it bcos that u kudnt find a c/C++ framework that enables you to make/recieve SOAP calls?
-Thanx
Mandan
Roy Huang
Ranch Hand

Joined: Nov 21, 2001
Posts: 104
Yes, I try to use *User defined Java Types* with soap and then deserialize it back and convert them into native calls.

I use standard (de)serializer, but I don't know how to catch the transferred object in the server side.
Could U offer soem example?

I use soap 2.2 and written all in java, that's why I need a JNI in the server side.
But I didn't use any current tools to develop it.
Thanks,
 
jQuery in Action, 2nd edition
 
subject: SOAP customizing object with JNI