WCF 1 « wsdl « Java Enterprise Q&A





1. WCF problem passing complex types    stackoverflow.com

I have a service contract that defines a method with a parameter of type System.Object (xs:anyType in the WSDL). I want to be able to pass simple types as well ...

2. Is it advisable to build a web service over other web services?    stackoverflow.com

I've inherited this really weird codebase where they've built an external web service over a bunch of internal web services just to add authentication/authorization using WS-Security, WS-Encryption, et al. Less than ...

3. Specify parts of the header that have to be signed and/or encrypted in WCF with binding that support standards    stackoverflow.com

Using Ws2007HttpBinding and securing the service, the WSDL file generated shows in the policy section that all the ws-addressing headers and the body will be signed, and that the body will ...

4. HTTP Bad Request error when requesting a WCF service contract    stackoverflow.com

I have a WCF service with the following configuration:

<system.serviceModel>
    <behaviors>
        <serviceBehaviors>
           ...

5. WCF WSDL location address with HTTPS    stackoverflow.com

A common issue for WCF appears to be how the hostname is resolved within the wsdl for the links to other files. The issue is that the machine name of the ...

6. WCF not using my domain name, but rather my computer name when viewing MyService.svc?wsdl    stackoverflow.com

My WCF seems to be pulling the computer-name instead of the domain name. When I view the MyService.svc?wsdl it is showing my computer name. Where do I add my domain name in the ...

7. Publishing schema as wcf service trouble    stackoverflow.com

I'm trying to publish some HL7 schemas (with quite a few ) as wcf services using the "WCF Service Publishing Wizard". The wizard seemingly runs and completes just fine, creating a ...

8. WCF, Metadata and BIGIP - Can I force the correct url for the WSDL items?    stackoverflow.com

We have a WCF service hosted on ServerA which is a server with no-direct Internet access and has a non-Internet routable IP address. The service is fronted by BIGIP which ...

9. Adding comments to a WSDL output from WCF/.Net    stackoverflow.com

based on the WSDL spec from W3 there is the possibility to add "wsdl:document" tags to the WSDL output so that people using that webservice have a better explanation/documentation about this ...





10. Getting parameters for web service programmatically?    stackoverflow.com

I have a web based system where users should be able to fetch data from a web service by entering the URL and the necessary parameter values. My problem is, somehow I ...

11. Injecting an unrelated contract into the WSDL created by WCF's MEX provider    stackoverflow.com

I am implementing a WCF service (Contract A) that will eventually make calls to a standalone service (Contract B) hosted by the client. At design-time when the client queries my service's ...

12. WCF with Multiple Endpoints accessing WSDL?    stackoverflow.com

Should the WSDl only be accessible via the ".svc?wsdl" ? I have a service that has multiple endpoints. For example (in the web.config):

<services>
  <service behaviorConfiguration="MyServiceTypeBehavior" name="WcfService1.Service">
    <endpoint ...

13. WsdlImporter Error when importing a wsdl from an ASMX web service    stackoverflow.com

HI Guys, When trying to generate a proxy code for this wsdl file (from an ASMX web service) , WsdlImporter (and svcutil) is reporting an error. I thought WCF ...

14. How to use a WSDL file to create a WCF service (not make a call)    stackoverflow.com

I have asked this question in another thread : My question I have misunderstood the task, basically I need to create a server based on this WSDL file. How can I achieve this ...

15. WCF: how to generate a single WSDL document, without WSDL:import?    stackoverflow.com

I'm troubling into an issue... I'm trying to find a way to generate a single wsdl document from my WCF service, i.e. without any link to external documents. I've used FlatWsdl ...

16. Creating bindable classes from WSDL for Flex 3    stackoverflow.com

Two of our apps are web applications with a Flex 3 front end and a SOAP-style WCF back end. To communicate with the back end, I generate web service client ...





17. How to Retrieve a Single-File WSDL for a WCF Service (Flat WSDL)    stackoverflow.com

i need single file wsdl, how to build single file wsdl? Thanks.

18. Generating Service Contract from a WSDL    stackoverflow.com

I have a WSDL that I need to generate a ServiceContract (OperationContract, DataContract)... I have found a way to do it for ASMX WebServices but can't seem to find how ...

19. my wcf services only show directory listing and no wsdl    stackoverflow.com

I have a few wcf services created a number of ways. all of them only display the directory listing when i browse to them. (I fixed the part about authentication) Also I have very ...

20. WCF and IIS 6 - WSDL is not exposed    stackoverflow.com

I have developed an ASP.NET application that includes a WCF service. This service needs to be consumed by third party applications. This service has worked fine while testing in my development ...

21. WCF service with dual methods - one for structured results and one for raw XML results. Is there a better way?    stackoverflow.com

I'm designing a WCF web service method that can return results either as a raw XML string, or as a structure, depending on the client's preference. A simple approach is to have ...

22. Why doesn't WSDL from WCF service include the custom binding for the STS?    stackoverflow.com

I'm writing a C# WCF service that publishes an endpoint using a WSHttpFederationBinding. We have our own security token server providing tokens, for which callers need to use a custom binding. This ...

23. Web reference problem on WCF    stackoverflow.com

I have a WCF service which I am able to connect to from my web application and get data. I now added a web reference to this wcf project to a wsdl ...

24. WCF WebInvoke problem getting WSDL    stackoverflow.com

i got a webservicedefinition like this:

    [OperationContract]
    [FaultContract(typeof(Exception))]
    [WebInvoke(ResponseFormat = WebMessageFormat.Xml,
            ...

25. Wcf binding type from wsdl    stackoverflow.com

Is there a way to retrieve wcf binding type and security mode just from a wsdl? i.e. I want to know what bindings are supported by a wcf service by reading it's ...

26. Can a WCF data contract be recursive? For example a binary tree? Is there a difference with ASMX services in supporting recursive data structures?    stackoverflow.com

In SOA I believe that the wsdl does not support recursive data types but I saw some examples where the proxy actually works. Anybody knows more about this?

27. Unable to generate a temporary class (result=1). CS0266    stackoverflow.com

I am getting this error only on one test server but the code works on other servers as well as my dev machine.

    Unable to generate a temporary ...

28. Schema First WCF Development    stackoverflow.com

It is well-known how to create a "contract first" WCF service where the first step is to define the ServiceContracts and DataContracts. How should one approach WCF development if one has the ...

29. How can I consume a WCF service using a local WSDL file?    stackoverflow.com

I need to consume a WCF service based on a (preferably single) wsdl file. The environment is VS-2008 (sp1), and I will be using a customized "Add Service Reference" macro to ...

30. How the WSDL is written in WCF?    stackoverflow.com

I want to know how the wsdl is written in wcf. As i know the proxy class serialize the data and form a soap message to send over network, in the same ...

31. Can you combine the WSDL and XSD data from a WCF service?    stackoverflow.com

Is it possible to create a single file to generate a client from a WCF generated WSDL file (and any additional XSD files that are also generated from this service) I can ...

32. wcf : string element nillable="false"    stackoverflow.com

I have a client that is mandating that my 'required' string elements have nillable="false", currently all strings in the wsdl come out will nillable="true", IE:

<xs:element name="username" nillable="true" type="xs:string" />
how can ...

33. wcf Extract wsdl from WCF Service with Flattened WSDL    stackoverflow.com

I have a wcf web service and I need to provide the client with the wsdl files. Previously I used svcutil on the .dll and everything was fine. However, recently I ...

34. How to avoid processContents="lax" in WCF WSDL from classes implementing IXmlSerializable?    stackoverflow.com

I have a wcf service written in a contract-first fashion. As some of the elements in the schema uses attributes, I had to create a custom serialization for this (using IXmlSerializable). ...

35. Create message from a MessageDescription    stackoverflow.com

I'm trying to create a Message using only a set of parameters provided by the user and a MessageDescription I resolved by extracting the input message from an OperationDescription object in ...

36. Adding a new parameter to a WCF operation: choices?    stackoverflow.com

What's the best way to handle adding a new (optional) parameter to an existing opertion without requiring the client to update their WSDL? I do not want to update the namespace ...

37. WSDL from WCF Issue    stackoverflow.com

I'm trying to use NeoLoad to generate and execute SOAP requests and upon supplying the WSDL, it doesn't seem to like the imports that they are referring to. I'm thinking I would ...

38. What does this WCF error mean: "Custom tool warning: Cannot import wsdl:portType"    stackoverflow.com

I created a WCF service library project in my solution, and have service references to this. I use the services from a class library, so I have references from my WPF ...

39. Expose WSDL on Remote Server    stackoverflow.com

Is there a clever way to expose WSDL from a WCF service hosted on one IIS server automatically on another server? Thanks

40. ServiceKnownTypeAttribute doesn't pop up in WSDL    stackoverflow.com

I have an service Interface:

[ServiceContract]
[ServiceKnownType(typeof(Models.ArticleImage))]
public interface IPhotoManagementService
{
 [OperationContract]
 bool Login(string username, string password);

 [OperationContract]
 bool IsLoggedIn();

 [OperationContract]
 void UpdateImage(string articleID, string selectedImage);
}
As you can see I specify a typeof(Models.ArticleImage) on my ...

41. System.InvalidOperationException: An exception was thrown in a call to a WSDL export extension: System.ServiceModel.Description.DataContractSerialize...    stackoverflow.com

can any one help me to fix this exception.... I have created service to get the country details information of various clients.. but while hosting the service i am getting this exception. ...

42. Any viable alternatives to WCF and WSDL for integration endpoints?    stackoverflow.com

My employer is a software vendor for a specific market. Our customers integrate our system with others using web services. We use Microsoft technology, and our web services are implemented in ...

43. How can I make WCF talk to this web service?    stackoverflow.com

This is a follow up of this question. As suggested by @Benjamin here, I am trying to add a service reference for my wsdl now (in stead of a web ...

44. How do I get a WCF service's WSDL to say that it requires basic authentication?    stackoverflow.com

We have a WCF service hosted on IIS behind a SiteMinder proxy (for lack of a better term). In essence, requests enter the SiteMinder at https://public.domain.com/SOA/Service.svc with http ...

45. Exposing only the interface in WSDL in WCF, rather then the service    stackoverflow.com

I have a service contract ICalc, and I want to expose a WSDL through the MEX endpoint, which will only describe the ICalc contract, i.e. will contain only the portType element, ...

46. WCF hosting: Can access svc file but cannot go to wsdl link    stackoverflow.com

I have a WCF service that is hosted in IIS 7.5. I have two servers, one for test and one for production. The service works fine on test server, but on the production ...

47. Given wsdl + xds type file, how do I create a stub WCF webservice?    stackoverflow.com

I understand this is a basic topic but never done this before starting from wsdl. I am being handed a wsdl file and a bunch of xsd with the types definitions. I ...

48. WSDL automatically generated by WCF    stackoverflow.com

i've got this servicedefinition:

[DataContract]
public class Test
{

    [DataMember(IsRequired = true)]
    public TestArray[] array;
}

[DataContract]
public class TestArray
{
   public DateTime? field1;
   public string field2;
}
which WCFs ...

49. Web Service contract without implementation specific information    stackoverflow.com

I have to define a web service contract that afterwards will be used by different software suppliers to implement their servers and clients. I tried to do it defining classes, making a ...

50. WCF Difference in two URLs that point to the WSDL    stackoverflow.com

URL in browser: http://localhost:12345/FRB.EC.BMI.WebSvc/Datafaction.svc shows this:

You have created a service.

To test this service, you will need to create a client and use it to call the service. You ...

51. Error message: "Two different contracts have the same ConfigurationName" when downloading wsdl from xamlx in AppFabric beta 2    stackoverflow.com

I get the following error message when I try to use svcutil to generate a client proxy for a xamlx file that is hosted by AppFabric beta 2: Two different contracts have ...

52. WCF - Wsdl.exe generated class - Service timeout    stackoverflow.com

I've created a WCF service project. Using the standard generated example service the project generates I create a wrapper class using wsdl.exe. However the service times out when I use the following ...

53. Is there any good JAVA lib for playing with WSDL's and WS-* bindings?    stackoverflow.com

Is there any good JAVA lib for playing with reading from WSDL's and connecting to WS-* bindings?

54. In WCF how to remove bindings from the metadata?    stackoverflow.com

The WSDL generated by WCF is describing all my bindings, and I want it to describe only the wsHttpBinding. I want it because a PHP client can't parse the WSDL if it ...

55. svcutil, WSDL, and the generated interfaces not being sufficient for implementation    stackoverflow.com

I have a WSDL file defining a service that I have to implement in WCF. I had read that I could generate the proxy using svcutil from the WSDL file, and ...

56. WCF Web Service chnage wsdl name and targetNamespace    stackoverflow.com

All, I'm a little new to WCF over IIS but have done some ASMX web services before. My WCF service is up and running but the helper page generated by the web ...

57. WCF Custom WSDL XmlSerializerOperationBehavior    stackoverflow.com

I have code that builds a custom WCF wsdl on the fly. In one particular scenario, the WSDL exported should use the XmlSerializerOperationBehavior as the IWsdlExportExtension as opposed to the default ...

58. WCF .svc Accessible Over HTTP But Accessing WSDL Causes "Connection Was Reset"    stackoverflow.com

I have a WCF service which is hosted on IIS6 on a Win2003 SP2 machine. The WCF service is hosting correctly and is visible over HTTP giving the usual "To test ...

59. WCF host in windows service: cannot get wsdl    stackoverflow.com

i've a windows service that hosts a WCF service with basicHTTPBinding. In test everything goes right, when i deploy the win service on a Window Server 2003, service hosts correctly wcf, ...

60. Change Address/Port of WSDL EndPointAddress at runtime?    stackoverflow.com

So I currently have 2 WSDLs added as Service References in my solution. They look like this in my app.config file (I removed the "bindings" field, because it's uninteresting):

<system.serviceModel>
  <client>
 ...

61. Adding description to WCF web service that appears in WSDL    stackoverflow.com

should it be possible to tag DataContracts, DataMembers, ServiceContracts and OperationContracts with a Description attribute, (System.ComponentModel.DescriptionAttribute) so that those descriptions appear in the WSDL to aid the developer or so an ...

62. All about WSDL vs MEX?    stackoverflow.com

I am not able to open the meta data url - http://localhost:8082/Tasks/mex I have added the mexhttpBinding in the config file. Can I see this mex endpoint in browser? The config ...

63. MyService.svc?wsdl shows 400 Bad Request IIS 7.5    stackoverflow.com

I'm on Windows 7 Ultimate x64 IIS 7.5
I have deployed the services to the web server and when I try them in IE like this: MyService.svc?wsdl I get the 400 "Bad ...

64. help a .NET developer consume a wcf service using coldfusion    stackoverflow.com

I am a .NET developer with no coldfusion experience, but I need to write cf code to access a wcf service i've set up. I've got a few WCF services ...

65. How to programmatically generate WSDL for a WCF service?    stackoverflow.com

Kindly let me know how to create WSDL for a WCF service programmatically. Thanks & Regards, Priya.R

66. ServiceRoute + WebServiceHostFactory kills WSDL generation? How to create extensionless WCF service with ?wsdl    stackoverflow.com

I'm trying to use extenionless / .svc-less WCF services. Can anyone else confirm or deny the issue I'm experiencing? I use routing in code, and do this in Application_Start of global.asax.cs:

RouteTable.Routes.Add(new ...

67. How to add version number in WSDL for a WCF service?    stackoverflow.com

I am looking for adding a version number to the wsdl that gets created for a WCF service. Let me know whether it is a good practice to add the version ...

68. Join two contracts into the same WSDL    stackoverflow.com

Maybe it is science fiction, but i would like to know if it is possible to join a WF exposed with WCF and a WCF into the same WSDL. As you ...

69. What is the difference between building a WSDL in Eclipse and using WCF?    stackoverflow.com

I'm somewhat familiar with WCF in that I can build Web Services in VS.Net ... I understand some of the concepts... But, the other day I cam across this option in Eclipse ...

70. How to programmatically generate WSDL from WCF service (Integration Testing)    stackoverflow.com

I am looking to write some integration tests to compare the WSDL generated by WCF services against previous (and published) versions. This is to ensure the service contracts don't differ from ...

71. Generating multiple WSDLs for a WCF web service    stackoverflow.com

Is it possible to get WCF to generate multiple different WSLDs for the same web service? The reason that I ask is that I want to generate a separate schema file for ...

72. WCF Web Method that Accepts Different Message Types    stackoverflow.com

Microsofts's WCF is easy to work with when you create Web services where each message has it's own Web method. WCF generates all of the WSDL and everything is easy. What I ...

73. How to change the default schemalocation in wsdl file of WCf Service?    stackoverflow.com

Following is the wsdl file of my service:

    <wsdl:types>
      <xsd:schema targetNamespace="http://tempuri.org/Imports">
      <xsd:import schemaLocation="http://localhost:3789/VideoUpload.svc?xsd=xsd0" namespace="http://tempuri.org/" /> 
   ...

74. Help: Contract First Webservices    stackoverflow.com

I want to write a high level design document for a application which will expose it's webs ervices for various clients. For this purpose I need to provide the WSDL of ...

75. Better solution for WCF service(s) that talk to 3rd party Java services?    stackoverflow.com

I am in a scenario where I have to integrate with a 3rd party system here at my job that exposes Java-based web services. I can parse the service WSDL definitions ...

76. Web service interoperability broken by developers incompetence?    stackoverflow.com

How do you develop web services and how do you create WSDL? What do you include in WSDL? This question is based on observation that developers don't use WSDL properly. WSDL describes ...

77. generate wcf server code from wsdl files    stackoverflow.com

Greetings, I would like to generate some contract based on wsdl file. I used svcutil but I suspect it generated it wrong as all contract methods have void returned type. Is ...

78. Name attribute on the tag    stackoverflow.com

I am writing a WCF service and need to control the value of the name atttribute on the wsdl:definitions tag in the generated WSDL document. The ServiceBehavior and the ServiceContract attributes ...

79. Interoperable way to send XML data in WCF?    stackoverflow.com

I'm using System.Xml.XmlElement as a parameter for sending XML data in WCF. Is this generally the interoperable way to send XML data in WCF, so that, for example, a PHP or ...

80. .net 4 WCF Endpoint in generated metadata (WSDL) points to node rather than virtual host hosted on load balanced (NLBS) IIS6    stackoverflow.com

This is real simple. I have a wcf service (nothing fancy, just New Project-> WCF Service Application), that runs great in Visual Studio. When I deploy it to an ...

81. WS-Policy Specification in WSDL document - .NET    stackoverflow.com

I have authored a simple calculator Web service using visual studio 2010. I need to specify policy using WS-Policy language (which I need to append with the WSDL document generated for ...

82. correct WCF service server side stub from WSDL    stackoverflow.com

I have the following WSDL

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:tns="${namespace}" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="${namespace}">
 <message name="addADetails">
  <part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:string" name="string">
  </part>
  <part xmlns:partns="http://www.w3.org/2001/XMLSchema" ...

83. Wrong URL in WSDL hyperlink when using WCF (https)    stackoverflow.com

I got my WCF Service running with HTTPS, It shows the Infopage, but the URL below "To test this service, ... with the following syntax:" is: svcutil.exe https://servername.group.service.com/MyService.svc?wsdl (full address ...

84. How to create Nullable fields/variables from WSDL instead of extra fields/variables    stackoverflow.com

I am using wsdl.exe to convert a WSDL file and Types.xsd file into a C# file. The wsdl file specifies optional variables (minOccurs="0" maxOccurs="1"), and the generated .NET type handles this ...

85. Why can't I view the contents of my WCF service's WSDL?    stackoverflow.com

when i navigate to my WCF svc page https://mywebstie.project.com/myproject/myuploadservice.svc, i hit the svc as expected but the svcutil URL it supplies uses the actual server name; not the mywebsite.project.com ...

86. WCF Serialization problems with WSDL file created by Java tools    stackoverflow.com

My team is tasked with getting several in-house developed .NET client applications to connect to some new Java web services. The Java web service is a third party, vendor supplied WSDL ...

87. Shape a WCF service by endpoint    stackoverflow.com

I have 2 contracts (cA & cB) implemented by a single WCF service with 2 endpoints (epA & epB). This is not for security purposes, but purely for reasons of clarity/organization, I'd ...

88. WCF Callback: Is it interoperable with Java?    stackoverflow.com

Currently I implement all my webservices in the "normal" fashion... that is, I create a WSDL file in Eclipse and then use WSCF.blue (A visual studio extension) to auto-generate the necessary ...

89. WCF and IIS confusion on the wsdl location    stackoverflow.com

I created my WCF project and it works fine when I just run it from the debugger. But when I publish it to IIS and point a browser to the svc the ...

90. How do I force the auto-generated WSDL on two load-balanced machines to match?    stackoverflow.com

We have a WCF service that is deployed to two servers. The bits are exactly the same. In the auto-generated WSDL at https://mywebsite.com/SomeService/Soap.svc?wsdl, the <wsdl:types> node lists out a bunch of XSD's, ...

91. WCF is failed to consumed by Flex code    stackoverflow.com

I have https://mysite/myservice.asmx which is consumed fine with Flashbuilder. When i ported it to https://mysite/myservice.svc, and generate proxy objects, flash proxy objects fails to call any operations. ...

92. Consuming ASMX Web Service With WCF    stackoverflow.com

I have to write a WCF service that consumes a third party 'Web Service'. They provided WSDL and the URL so that I can post the transaction. Can some body ...

93. WCF read MEX endpoint WSDL    stackoverflow.com

I have a WCF service that has the contract published on a Net.Tcp MEX endpoint. I need to connect to the MEX endpoint and download the WSDL as XML. How can ...

94. Is there any way I can create a WSDL file from WCF Service Application?    stackoverflow.com

Im creating a WCF Service application, I dnt want to give the URL to the client use rather I need to give a Single WSDL file. How I can do it?

95. Make WCF 4 WSDL look like Web Service WSDL?    stackoverflow.com

I have an ancient web service client that needs to talk to my WCF 4.0 service. The client is a large old system in a another company that is not going ...

96. What tools to use to generate service code from schemas (svcutil analogue), if they do not meet the DataContractSerializer requirements    stackoverflow.com

We are working on SOA, both on client (Silverlight) and server (WCF) sides, but with possibility of the clients being implemented by 3rd parties (.NET, Java, etc.). We use WSDL-first approach ...

97. WCF creates no WSDL portType element    stackoverflow.com

Why the below WCF 4.0 code does NOT!? generate any portType elements in it WSDL? How am I supposed to modify it to correct the problem?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using ...

98. SVCUtil generates file without wrapper    stackoverflow.com

I have used SVCUtil to generate a proxy interface class, the WSDL file is based on output from Enterprise Architect 8.0.863. I create a simple WCF service in Visual Web Developer 2010 When ...

99. How can I view the generated WSDL for a wcf function    stackoverflow.com

I have a WCF service. I built from an xsd file from another department. All it generated was classes, which I inturn modified to match our "standards". I need ...

100. WCF binding with both basicHttpBinding AND netTcpBinding; can't access http endpoing    stackoverflow.com

I want to make available the same interface with a netTcpBinding and basicHttpBinding. I also wanna make available the wsdl for both endpoints. When I access http://localhost:9876/TestService/, I get ...