0

I am developing a system that must be able to receive an XML messages (preferably without SOAP envelope) from other's company external system through the internet. I am not sure what technology is external system written in. The developers from the external company must create a XML sending feature. I would like to minimazie their effort. Is WCF good choice for that?

The OS will be either Windows XP with IIS 5.1 or Windows Server 2003 with IIS 6.0. .NET Framework is 3.5.

Thanks.

Func
  • 443
  • 3
  • 5
  • 10

5 Answers5

0

You can use the WCF but also you can use Web Services.

Sergey K
  • 4,071
  • 2
  • 23
  • 34
0

WCF is a very high level of abstraction in terms of implementing services over HTTP (and even other protocols like TCP). There are two options in your case

  1. WCF REST service : As you are expecting custom XML to be passed around in HTML payload. this can be a option but only in case you can visualize the service as resource oriented.
  2. Custom HTTP handlers : These are very low level in the whole abstraction stack of various components of ASP.NET. Which allows much more flexibility in implementing custom XML passing over HTTP but would require much more code as compared to WCF
Ankur
  • 33,367
  • 2
  • 46
  • 72
0

You can use jQuery using AJAX

$.ajax( {
  type:'Get',
  url:'http://mysite.com/mywebservice',
  success:function(data) {
    alert(data);
  }
})

related examples:

Community
  • 1
  • 1
Ahmed Magdy
  • 5,956
  • 8
  • 43
  • 75
0

It really depends by your business. If they need call a service on you can create either a WCF or a WebSerivice (which conceptually are exactly the same things) but probably they need to change something on their side to call your service. In the case you go for this road I can suggest you to use a SOAP envelop to authenticate the sender putting kind of token in the header. Another solution (in the case the XML is very big let’s say we are talking about an XML that contain a least of all the new products) you could use an FTP and pick up the XML file from there.

Massimiliano Peluso
  • 26,379
  • 6
  • 61
  • 70
0

Picking out a technology requires more details. Some of the basics are: What's your budget ? what resources do you have now? Who will be responsible for maintainence, RFC later? Will your 'product' be called for data communication or Will your product need to call them for data communication?

To process/generate XML, the free and simple ones are, for example, JAVA, PHP (and many others too).

Gary Tsui
  • 1,755
  • 14
  • 18