0

I'm currently using Xcelsius to connect to my WCF web service, however it doesn't work. Googling around I see that Xcelsius can't connect to WCF web services but can't seem to find out why.

Assuming the web service gives away what type it is (WCF or ASMX) is it possible to perhaps spoof this? Something similar changing your user agent in a browser.

Edit

Xcelsius is expecting the address to the services WSDL (http://localhost:3951/Service1.svc?wsdl). As for the format that my WCF service is emiting, it's

public string GetData(int value)
{
    return string.Format("You entered: {0}", value);
}

I've also tried using FlatWSDL, however that doesn't seem to change anything.

Nosila
  • 540
  • 7
  • 20
  • 1
    you're going to need to provide more details. Exactly what format is Xcelsius expecting? And what format is the WCF service emitting? – Cheeso Apr 19 '12 at 16:27
  • 1
    You can try [AspNetCompatibilityRequirementsMode](http://msdn.microsoft.com/en-us/library/ms752234.aspx) – Raj Ranjhan Apr 19 '12 at 16:28
  • @AnuragRanjhan: Unfortunately, none of the `AspNetCompatibilityRequirementsMode` options work. :( – Nosila Apr 19 '12 at 17:30
  • Looking at the Url you provided makes me think that you are using `localhost` while the XCelsius (whatever it is) could be installed on another machine. – Wiktor Zychla Apr 19 '12 at 17:42
  • @WiktorZychla: The address is correct because I'm able to access it via my browser. – Nosila Apr 20 '12 at 12:44
  • The question is not whether YOU can access it but whether the XCelsius can access it. Are you sure about that? – Wiktor Zychla Apr 20 '12 at 12:52
  • I think it's more a case that Xcelsius *can* access it however it does not accept WCF services for one reason or another. So if I can make my ASMX service appear like a WCF. I'm only really wanting to do this so I can use DI. – Nosila Apr 20 '12 at 13:19
  • please publish here a sample soap that the service excepts – Yaron Naveh Apr 20 '12 at 20:54

1 Answers1

1

Simply use basicHttpBinding in your service, and will look like an ASMX service to any consumer.

That still might not be enough, if the consumer is expecting a particular format. You would then need to duplicate the expected format.

John Saunders
  • 160,644
  • 26
  • 247
  • 397