2


I need to develop a service client application in C#. The service is hosted on customer's local network which I have no access. So I cannot use Add Service Reference option to create service proxy.
The customer gave me only the XML Soap declarations of their service. It looks like the following:

 <?xml version="1.0" encoding="UTF-8" ?> 
- <!--  Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Oracle JAX-WS 2.1.5. 
  --> 
- <!--  Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Oracle JAX-WS 2.1.5. 
  --> 
- <definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://helios.tedas.gov.tr/im" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://helios.tedas.gov.tr/im" name="IletisimModulu">
- <types>

It is just the head of XML, I am not putting the full XML because of its size. I think this is what we would see if we navigate to service url from explorer (http://mywebservice/Service?WSDL).

So now, how can I create service proxy from this XML document that they gave me?

JoeBilly
  • 3,057
  • 29
  • 35
Fer
  • 1,962
  • 7
  • 29
  • 58
  • 1
    [WSDL.exe](http://msdn.microsoft.com/en-us/library/7h3ystb6(v=vs.80).aspx): "The Web Services Description Language tool generates code for XML Web services and XML Web service clients from WSDL contract files, XSD schemas, and .discomap discovery documents." – Damien_The_Unbeliever Sep 24 '13 at 08:14

1 Answers1

1

So I cannot use Add Service Reference option to create service proxy.

You can paste a file path there as well as an URL. See also How can I consume a WCF service using a local WSDL file?.

Community
  • 1
  • 1
CodeCaster
  • 147,647
  • 23
  • 218
  • 272