473,411 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Non .NET Web Services - How do I consume

Hi Everyone

I went on a lovely Microsoft course a fortnight ago, which served as an
introduction to ASP.NET - I think it was Course 6310. And there was a
good module on consuming XML Web Services.

However, we only covered how to consume Web Services created in
ASP.NET.

What do you do if they weren't done in .NET? Because the supplier we
are working with has written them in another platform. Should there
still be a .wsdl file for them?

Alternatively, do I have to use a .NET equivalent of XMLHTTP get?

Many thanks guys - I hope in a couple of months time I can be helping
out people in the same situation as me :)

Thanks

Daz

May 15 '06 #1
8 1501
I believe yes, if there is a WSDL file, then you can consume it.

For XMLHTTP equivalent in the .net framework look at the WebRequest class.

<Da**************@gmail.com> wrote in message
news:11*********************@j55g2000cwa.googlegro ups.com...
Hi Everyone

I went on a lovely Microsoft course a fortnight ago, which served as an
introduction to ASP.NET - I think it was Course 6310. And there was a
good module on consuming XML Web Services.

However, we only covered how to consume Web Services created in
ASP.NET.

What do you do if they weren't done in .NET? Because the supplier we
are working with has written them in another platform. Should there
still be a .wsdl file for them?

Alternatively, do I have to use a .NET equivalent of XMLHTTP get?

Many thanks guys - I hope in a couple of months time I can be helping
out people in the same situation as me :)

Thanks

Daz

May 15 '06 #2
Theres should be WSDL if they have written them correctly and are publishing
the WSDL file, that does not mean it will be publically available. For
anything that does not have a WSDL available you can generate your own but
its a fiddly exercise.

If you need to create one of your own, I would start by reading this
article:
http://msdn.microsoft.com/library/de...rstandWSDL.asp

An poor mans alternative is to issue a GET query (if the service accepts the
protocol) and parse manually the results.

--
Regards

John Timney
Microsoft MVP

<Da**************@gmail.com> wrote in message
news:11*********************@j55g2000cwa.googlegro ups.com...
Hi Everyone

I went on a lovely Microsoft course a fortnight ago, which served as an
introduction to ASP.NET - I think it was Course 6310. And there was a
good module on consuming XML Web Services.

However, we only covered how to consume Web Services created in
ASP.NET.

What do you do if they weren't done in .NET? Because the supplier we
are working with has written them in another platform. Should there
still be a .wsdl file for them?

Alternatively, do I have to use a .NET equivalent of XMLHTTP get?

Many thanks guys - I hope in a couple of months time I can be helping
out people in the same situation as me :)

Thanks

Daz

May 15 '06 #3
Thanks John (and Marina)

The documentation I have on the API states: "Each request must consist
of a HTTP request...it must be a HTTP post message"

I will follow them up with some questions about this, as for a massive
massive company, it doesn't quite seem right to me!! However, they do
describe what they are offering as "WebServiceIntegration". So there's
some hope!!

Many thanks

Darren

May 16 '06 #4
Web Services <> Soap Web Services. Some people issue public API's that
use HTTP GET and HTTP POST and refer to them as Web Services. They are
web services, however, not SOAP web services which is a new comer.

May 16 '06 #5
Hi John

Further to your message yesterday, all I got back from them was "we
don't provide a WSDL file because we provide DTDs". I have requested
that they develop WSDLs but I won't build my hopes up!!!

May 17 '06 #6
You cannot simply convert a DTD to a WSDL file. WSDLs define both the data
structure of a document and the interfaces available to allow date to be
exchanged. A DTD will only give you the data structure, so you'll have to
hand create the WSDL file.

I have heard of people using XML Spy to convert a supplied DTD into a
Schema, which is then placed into the relevent types section of a basic
WSDL, allowing the web service methods to be referenced and a proxy compiled
from the resulting WSDL, but I aint never done it myself.

--
Regards

John Timney
Microsoft MVP

<Da**************@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Hi John

Further to your message yesterday, all I got back from them was "we
don't provide a WSDL file because we provide DTDs". I have requested
that they develop WSDLs but I won't build my hopes up!!!

May 17 '06 #7
I think that maybe you trying to drive a screw with a hammer.
From the way you are describing things , it sounds like you are talking
about a simple 'web service' that simply returns a payload which happens to
be an xml document, this is completely unrelated to soap web services which
is how you are trying to access it. You should be using a simple WebRequest
to access this service and processing the returned data as you would any
other xml document - in which case, although perhaps not absolutely ideal, a
DTD should work just fine.

Gerry

<Da**************@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Hi John

Further to your message yesterday, all I got back from them was "we
don't provide a WSDL file because we provide DTDs". I have requested
that they develop WSDLs but I won't build my hopes up!!!

May 17 '06 #8
Thanks Gerry - this is pretty much the conclusion that I have come to -
simple WebRequests it shall be!

:)

Daz

Thanks again to everyone for helping out.

May 17 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Hatmaker | last post by:
I have begun experimenting with web services, and I created some simple web services in C# and was able to install them with IIS and create an equally simple C# client to consume them. My next...
4
by: elpako | last post by:
Why ? Another M$ Idea ??? or realy hard architecture problem ? elpako
2
by: hashamkhan | last post by:
Dear All, I have build a web services that returns product information. In that web services I want to display some text in the Footer. To get this I have a .js file constructed. Now I want to...
2
by: Deecrypt | last post by:
Hi, I'm creating an ASP.NET website in Visual Studion 2005 using Csharp and have added Web References to "two" Web Services running on my localhost (Both WebServices and ASP.Net website are on the...
0
by: Smokey Grindle | last post by:
I am just starting to learn web services... We've wrote a few large client server / 3 tier apps and now want to start adding some web services ontop of that. Our problem however there may be...
3
by: =?Utf-8?B?VGVycnlC?= | last post by:
Hi there, Just wanted to know before I go through the pain and suffering of writing a prototype if it is possible for a 1.1 framework client to reference and consume a web service using WSE3.0....
2
by: sasikala gupta | last post by:
hello i am Gupta working in a small company and i am a freshere and my technology is JAVA.. can i get any material or any tutorial or guidance on "How To Consume .NET Web Services In JAVA ". i...
1
by: pchaw | last post by:
I try to develop a demo, which client in Perl will try to call the web services I wrote in C#. I've no knowledge in Perl, but as I refer to online forum, I try to follow their example but return no...
3
by: Sylvie | last post by:
My Windows Application has two forms, one form contains a grid (lets say Stock Listing), and the other is a form of one stock, contains some edit boxes for one stock's fields.. Is it possible to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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...

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.