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

  • Thread starter Thread starter Pablo
  • Start date Start date
P

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!!!
AAARGH :P Help me!
Tnx at all!
 
Hi,
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
 
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,
 
Back
Top