469,076 Members | 1,947 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,076 developers. It's quick & easy.

How can i send a Data Type to a Java WebService?

Hi at all!
How can i send a DATA (not a DataTime) Type to a Java WebService?
In .NET we have only a DataTime that is incompatible with the Data
(calendar) Type of Java!
How can i resolve this problem?
I can't modify the java web-service and i need to send a simple
data!!!
AAARGH :P Help me!
Tnx at all!

Feb 27 '06 #1
2 1731
Hi,

Pablo wrote:
Hi at all!
How can i send a DATA (not a DataTime) Type to a Java WebService?
In .NET we have only a DataTime that is incompatible with the Data
(calendar) Type of Java!
How can i resolve this problem?
I can't modify the java web-service and i need to send a simple
data!!!
AAARGH :P Help me!
Tnx at all!


Do you mean Date, resp DateTime? And do you mean a JavaScript webservice?

In any case, it is good to keep things simple when you program a
webservice. The serialization/deserialization time and difficulty must
not be neglected, since everything is sent in text form (XML over HTTP).

I recommend you to use a string representation of your Date/DateTime,
and to plan a little logic to code/decode this value on the server,
respectively on the client.

I hope that helps,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Feb 27 '06 #2
Thus wrote Pablo,
Hi at all!
How can i send a DATA (not a DataTime) Type to a Java WebService?
In .NET we have only a DataTime that is incompatible with the Data
(calendar) Type of Java!
How can i resolve this problem?
I can't modify the java web-service and i need to send a simple
data!!!


If the Web Service only works with Java types like java.util.Date or java.util.Calendar
(as opposed to platform agnostic types defined by XSD), there's little you
can do -- other than implement the client in Java or shell out money for
some commercial Java/.NET bridge.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Feb 28 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Michael | last post: by
3 posts views Thread by Robb Gilmore | last post: by
4 posts views Thread by ad | last post: by
6 posts views Thread by Peter | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.