472,111 Members | 1,999 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,111 software developers and data experts.

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.