473,508 Members | 2,283 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1940
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2933
by: Michael | last post by:
Hi I anyone have a clue or can solve my problem I would be glad :-) Regards Michael I have a problem with creating an XML-document where the returning data from the webservice, have been...
3
7051
by: Robb Gilmore | last post by:
Hello, We have a C#.NET app which is calling a Java webservice. We use the wsdl file exportted from the java webservice to create our web-reference in Visual Studio. We are able to create the...
4
18534
by: ad | last post by:
I want to send a DataSet to WebService, but the DataSet if too huge(there about 50000 records, and 50 fields every record). My solution is 1.save the DataSet as XML file, 2.zip the XML file. 3....
3
2741
by: Stacey Levine | last post by:
I have a webservice that has the below procedure. Basically a procedure to called a stored procedure and return the results. When I try to call the webservice from my program I get the error. Both...
0
2215
by: Alexiel | last post by:
Hi, i have a problem, I have a Java Client and i call my webservice on ..NET. This run perfectly just except when i send parameters don't work fine. I send my code : This is my java...
0
1117
by: kingking | last post by:
Hi All, I have a java webservice . I want to communicate to it through Dot Net client. Webservice contains 6 methods and I want to use 5 methods. Based on the provided WSDL, I have created web...
6
2971
by: Peter | last post by:
I have a WebService which returns a List of RunningReport class How do I read this XML data on the client side. How do I convert List<RunningReportfrom the WebService side to List<RunningReporton...
0
1483
by: rashmiks | last post by:
Hi , I want to send and recive the data from the java to .net application . i am trying for webservice it is not working . Is there any other way to do this . please help me on this . ...
0
1801
by: vagueante | last post by:
Hi, I have to connect to a webservice, and the data i have is: WSDL XML sample file (which is what i have to send to the webservice and with credentials, user and password tags). XSD file My...
0
7120
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.