Web service and Java interop.

K

Kevin Burton

I am sorry if this has been asked before but I could not find any specific refereneces to my question

We have a web service that is hosted in IIS and we are having some problems with interop and a Java client. The automatically generated WSDL seems to be giving the Java compiler fits. We are specifically having problems with Arrays, TimeSpan (Time) and DateTime(Date). Any suggestions

Thank you

Kevi
(e-mail address removed)
 
D

Dino Chiesa [Microsoft]

suggestions?
Yes, here are some


1. Select a Java stack that mostly just works. What Java stack are you
using? Apache AXIS 1.1 generally works. GLUE v3.2 and above works pretty
well. WebSphere v4.0 (Apache SOAP v2.2) works not very well.

2. start with XSD to define your datatypes.

3. if you cannot do the above, then ...in the .NET code, attribute your
Datetime with a [XmlElement(DataType="date")]
which will produce better interoperability. Still need to be careful of
timezones.

4. Avoid the use of platform-specific datatypes such as .NET's TimeSpan in a
webservices interface. If you need a span, cook up some portable way to do
it, like an integer quantity of days, or something like that (*on the .NET
side, you can serialize a TimeSpan to/from this integer).

5. last suggestion: never never never post your real email address in full,
without spam protection, in a newsgroup. Unless you have excellent spam
filtering, you will regret this.


--
Dino Chiesa
Microsoft Developer Division
d i n o c h @ o n l i n e . m i c r o s o f t . c o m

(remove the online part to get my real email address)

Kevin Burton said:
I am sorry if this has been asked before but I could not find any specific refereneces to my question.

We have a web service that is hosted in IIS and we are having some
problems with interop and a Java client. The automatically generated WSDL
seems to be giving the Java compiler fits. We are specifically having
problems with Arrays, TimeSpan (Time) and DateTime(Date). Any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top