WCF 2 « soap « Java Enterprise Q&A

1. WCF to build SOAP based service    stackoverflow.com

I am trying to find some good tutorials that would show me to create a simple SOAP based service using WCF and deploy it. I have been googling for the past ...

2. How do I modify WCF to process messages in a different (non SOAP) format?    stackoverflow.com

I am working with WCF to exchange messages with a third party company. The messages need to be sent and received in an envelope that matches the ebXML specification. ...

3. Disposal of WCF clients where soap faults are routinely used    stackoverflow.com

I have been looking at the thorny issue of WCF client disposal recently. One common solution I have seen is along the lines of:


4. Fix invalid child element in WCF RIA with SOAP endpoint    stackoverflow.com

Is there anyway to fix the warning that Visual Studio flags when you try and add the SOAP endpoint to a WCF RIA service ?

The element 'system.serviceModel' has invalid child element ...

5. Getting error #2032 when calling WCF Service even though call succeeds    stackoverflow.com

We are developing an application using Adobe Air from the client gui with a mix of WCF and REST on the backend. One of the requirements of this application is that ...

6. Using XSL to extract values from WCF Soap Messages    stackoverflow.com

I am trying to use XSL to transform the following WCF call and place the result in a queue:

<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://www.w3.org/2003/05/soap-envelope">
    <a:Action s:mustUnderstand="1">SendMessage</a:Action>

7. Effect of Soap message in Adding a new member in Data Contract    stackoverflow.com

Adding new members in the Data contract are harmless for all versions of clients. Its a known fact. I wanted to test this. I created a Book Data Contract. Its first version had ...

8. Need help using a Service Reference in VS 2010    stackoverflow.com

This is my first time consuming a SOAP web service in ASP.Net and I am a little lost on how this works. https://www.secureach.com/AchProcessorWebService/AchProcessorService.asmx I created the Service Reference called AchProcessor in ...

9. BizTalk WCF and Soap Action    stackoverflow.com

i'm calling a WCF service using BizTalk 2009 as intermediate endpoint, now i changed the wsdl of the service being called by biztalk (i changed the soap action attributes in the ...

10. Getting SOAP messages with a specific schema in .NET    stackoverflow.com

I am writing a service in .NET that receives XML objects in a SOAP envelope that will take that message and response with a SOAP message using the same schema. For ...

11. Signing SOAP messages using X.509 certificate from WCF service to Java webservice    stackoverflow.com

It's my first question over the web. Hope it will make sense. I have seen several blogs related to this issue over the Web, and I have tried few of the ideas ...

12. What is the best practice for multiple WCF end point types? i.e.: JSON, JSONP, SOAP & POX?    stackoverflow.com

What is the best practice for multiple WCF end point types? i.e.: JSON, JSONP, SOAP & POX? I am using WCF 3.5. For instance, I have the following JSONP ...

13. mapping WCF getURL to string always returns NULL (Taleo SOAP)    stackoverflow.com

Taleo has a single operation "Dispatcher WSDL" that is supposed to return a URL for use with its WebAPI WSDL ... the purpose is to allow the URL to be ...

14. WCF Services with JSON, JSONP and SOAP End Points    stackoverflow.com

I configured traditional WCF Services using SOAP end points. In my client project I added the Service Reference, etc. These are working as expected. I created a JSONP enabled ...

15. View WCF SOAP Message with fiddler    stackoverflow.com

I have a localhost Client and WCF Webservice and I'm trying to see what the SOAP Message looks like and verify that infact a soap+xml is being used. I tried using Fiddler ...

16. Configuring WCF JSONP and SOAP Endpoints Listening at the same URI    stackoverflow.com

I JSONP enabled my WCF ServiceContract. Client is successfully calling the JSONP Service (OperationContract). I have a number of other OperationContracts (using the same ServiceContract) that I want to ...

17. Getting webservice methods from Soap Client using reflection    stackoverflow.com

I'm trying to get a MethodInfo collection from a SOAPClient object that contains only the methods of the webservice itself. Here is what I'm currently doing. At the moment it returns ...

18. WCF (SOAP):Protecting single operations with custom UserName validator - similar to what WcfRestContrib offers but for soap?    stackoverflow.com

I was hoping to be able to protect my WCF services on an operation level not service level. Hence some methods are protected and others not. I know there is an attribute ...

19. wcf configuration maxStringContentLength does not seem to be working    stackoverflow.com

We're trying to send a large xml string to a service method in WCF and we're getting the error

The maximum string content length quota (8192) has been ...

20. WCF Custom serialization based on params    stackoverflow.com

Can I implement some custom serialization (SOAP) to serialize only the fields wich can be changed dynamically Class:

public class Video


21. SOAP client not handling XML entities properly; encountering "There is an error in XML document"    stackoverflow.com

Some consumers of our WCF web service are encountering an exception when trying to parse our responses:

System.InvalidOperationException: There is an error in XML document (5, -349).
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, ...

22. Why WCF client not receiving SOAP Fault as FaultException?    stackoverflow.com

I am using a WCF client to consume a non-WCF SOAP 1.2 web service. When receiving a SOAP fault as shown below, I receive a ProtocolException instead of a FaultException. There ...

23. What is the difference between BasicHttpBinding and CustomBinding/Soap11?    stackoverflow.com

for the first time we're consuming an SAP NetWeaver web-service on SOAP 1.1 which requires user-name and password authentication over HTTPS. I'm currently prototyping the WCF application and I successfully can consume ...

24. Problems exposing a RIA services as SOAP, Json, etc    stackoverflow.com

I'm trying to expose an existing RIA service with SOAP and JSON. In the web.config, serviceModel section, I've put:

    <add name="OData" type="System.ServiceModel.DomainServices.Hosting.ODataEndpointFactory, System.ServiceModel.DomainServices.Hosting.OData, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ...

25. Custom SoapException detail not returned in WCF web service    stackoverflow.com

I'm building a WCF web service inside a Web Application using Visual Studio 2010. The code of the service is structured as a try-catch-finally block, where the catch block ends with

throw ...

26. Save outgoing SOAP message signed but not yet encrypted    stackoverflow.com

I have a WCF client that sends messages signed and encrypted to webservice. Question: How can I save the outgoing SOAP message at the state where it is already signed but not yet ...

27. Is a message inspector really the only way to remove unwanted attributes from the s:Body tag?    stackoverflow.com

I have a WCF service (.Net 4 hosted in IIS 7.5) adding unwanted attributes to the s:Body tag in the response.

 <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xmlns:xsd="http://www.w3.org/2001/XMLSchema">  
Implementing ...

28. WCF Service - Different datacontracts for SOAP + XML and JSON endpoints    stackoverflow.com

I have a .NET 3.5 WCF Service which is currently a SOAP + XML service. There is now a need to expose this same service to some clients who need the responses ...

29. sending request with generic data type from FlashBuilder4 to wcf service    stackoverflow.com

I've got a wcf service set up on the server which is supplying data to a flex project built using Flashbuilder4. I've used the webservice introspection feature to generate the DTOs ...

30. Message contract translation to SOAP message    stackoverflow.com

How .NET framework creates SOAP message from message contract? Which serializer class is used to serialize the message contract?

31. Why use WCF instead of old SOAP webservices?    stackoverflow.com

What's the benefit of using WCF services instead of old .NET SOAP webservices. I'm not seeing any immediate benefit of using these than the usual boilerplate code-crap.

32. SOAP is Simple Object Access Protocol or Service Oriented Application Platform?    stackoverflow.com

Are they the same thing? does that Service Oriented Application Platform use Simple Object Access Protocol? not clear to me.

33. Can a .Net HashTable deserialize into the Java equivalent when sent via SOAP?    stackoverflow.com

My DataContract for a WCF service could benefit from a HashTable (or Dictionary<string,string>) so I can store arbitrary key=value pairs. If the client that consumes the WCF service happens to be ...

34. using json as input for a create method in WCF RIA SAervices    stackoverflow.com

Is it possible to pass in JSON as input to a WCF RIA Service in order to create an object? The reason is that i have a hash full of key value ...

35. WCF Soap 1.1 & 1.2 authentication    stackoverflow.com

i dont see the soap header exposed in our wsdl but the service is configured to use ...

36. Adding Service Reference for a Web Reference    stackoverflow.com

I've started working on Windows Phone 7 and came across this problem. I have a VS 08 console application that has a Web reference added to it and every thing works great, ...

37. Does WCF support WS-Security with SOAP 1.1?    stackoverflow.com

I need to call some 3rd Web services that require WS-Security. I created a WCF endpoint with the following configuration:


38. Sending (pushing) Soap WS messages trough biztalk at given time    stackoverflow.com

I would like to know if someone could provide example or a link on some tutorial which would show how to send messages using soap as a job (at given time) ...

39. How can I generate a custom SOAP message    stackoverflow.com

I have a site that give me this xml response on my GET request:

    <State Name="ServerName" Date="2008-04-01" >

40. How do I get the XML soap request of an WCF Web service request?    stackoverflow.com

I'm calling this web service within code and I would like to see the XML, but I can't find a property that exposes it.

41. Using Generic Dictionary in SOAP: It can be serialized, but should it?    stackoverflow.com

I ran in to a fellow programmer and was discussing a method i needed to write, and in an OOP aspect, the a Dictionary<T,U> is perfect. But, i voiced concerns ...

42. WCF - SOAP or JSON    stackoverflow.com

Are there any performance benefits in using JSON over SOAP to encode messages while working with WCF? Thanks

43. Do you need c# to use wcf-soap?    stackoverflow.com

Are you required to use a .net service to send and receive data using the WCF-SOAP framework/protocol? I have an application using HTTP POST currently, but need to switch it over to ...

44. Sending the HTTP sender in WCF calls ( used SOAP on .net compact framework )    stackoverflow.com

I am having Mobile application calling WCF using the proxy generated using NetCFSvcUtil.exe. I need to send the simple HTTP header information ( required for server side) for each WCF calls. ...

45. replace property types of XmlQualifiedName[] with string[]?    stackoverflow.com

I have generated a proxy class running svcutil on a wsdl based of this wsdl. I had to do some modification for the web service to even work. For example ...

46. Building a reliable service in WCF    stackoverflow.com

I am currently designing a service (wsHttp) which should be used to return sensitive data. As soon as a client asks for this data, I get it from the database, compile ...

47. Transmitting SOAP messages over Named Pipes in WCF    stackoverflow.com

I fear I may be displaying my ignorance with this question, but here goes... I would like to use WCF to implement interprocess communication between a .NET app and a third-party app ...

48. How can I capture the SOAP request generated on localhost?    stackoverflow.com

I have a simple windows console app that I have added a service reference to and I am trying to call a method and make a request! I am using the ...

49. Two endpoints in WCF 3.5 for SOAP and JSON    stackoverflow.com

I dont know what I am doing wrong. I have a WCF (.NET 3.5) service (JsonSoap.svc) that has two endpoints for soap and json content type. Both the endpoints refer to ...

50. Latest MonoTouch 4.0 problem when trying to access a WCF service    stackoverflow.com

My MonoTouch application is calling to a SOAP WCF Service using CustomBinding with HttpTransportBinding and TextMessageEncodingBinding and everything is working fine with MonoTouch version 3.2.6. I'm updating my system to use ...

51. SOAP message is empty when catching MessageLoggingTraceRecords with CustomTraceListener    stackoverflow.com

I want to write CustomTraceListener which writes all data to SQL Server DB. Here's the stub for it:

public class SqlTraceListener : TraceListener 
    public SqlTraceListener()

52. Obtaining the SOAP Username value contained in a WCF request    stackoverflow.com

I have a WCF service that listens for SOAP requests and these requests contain a Username as part of the SOAP header security elements, for example:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">

53. soap instead of odata in wcf ria services?    stackoverflow.com

hello friends i learnt about odata and soap,but do clear me one thing. if i use soap protocol in my wcf ria services instead of enabling odata what effect does it makes? i have ...

54. Correct way communicate WSSE Usernametoken for SOAP webservice    stackoverflow.com

I am attempting to consume a web service through it's corresponding wsdl. This service is dependent upon authentication conforming to Web Services Security Basic Security Profile 1.0 including that ...

55. SOA vs Database    stackoverflow.com

I have been reading up on WCF and coming from a background where we didn't use web services that much I am trying to figure out the comparative advantages of using ...

56. SOAP endpoint over HTTPS returns 400 Bad Request    stackoverflow.com

I have a WCF service hosted under IIS, behind a load balancer. SSL is offloaded at the LB and then the service is called in plain HTTP. I got the REST endpoint ...

57. WCF: Using the same code for SOAP and JSON implementation?    stackoverflow.com

I have taken over development on a .NET WCF project. Among other things, the project contains 3 files:

  • IApi.cs <= Defining the interfaces
  • JsonApi.svc.cs ...

58. Implementing a SOAP client in C# with WCF and -NET 4.0    stackoverflow.com

I'm having trouble getting started with WCF in .NET 4.0. This is my situation: I have created a small SOAP Server in PHP. I have a C# project in which ...

59. How to convert string to SOAPMessage in C#    stackoverflow.com

I am writing application where in the requirement I have to communicate with one device witch send SOAP message over UDP. I am using .Net UDPClient class to communicate with this ...

60. WCF Wait for operations to finish when closing ServiceHost    stackoverflow.com

I create a WCF SOAP server with an operation that takes some time to perform:

public interface IMyService
    string LongRunningOperation();

    ConcurrencyMode = ...

61. Does a SOAP Based WCF Service Operation automatically serialize with a Soap Envelope?    stackoverflow.com

I have a WCF Service which returns a list or array. When it is called by a third party, does it automatically serialize into the proper soap envelope?

62. How to parse soap+xml message that is passed into my wcf service operation?    stackoverflow.com

I have the following Soap Request I receive from the client, where basically I have to extract the Name and then send back "Hello Test"

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"   

63. Can't send WCF Service request as SOAP+XML    stackoverflow.com

Using Visual Studio 2010, I developed a WCF service hosted on a web application for a third party to use. They're telling me that they cannot invoke it. For testing, they ...

64. Use of GUIDs as id in public facing data integration web service    stackoverflow.com

To put the question into some context, the system exposing the web service uses GUIDs internally as identifiers for all entities. In such case, when designing a public facing data integration web ...

65. WCF - Inspect the messages being sent/received?    stackoverflow.com

I have 2 solutions: - Server Solution - Client Solution The server registers itself to my localhost IIS: http://localhost/MyApp/ The client adds WCF Services (Service References) from the localhost application:

66. WCF not sending all data    stackoverflow.com

I have set up my WCF client to go through a Fiddler proxy so i can capture and analyze traffic. It turns out, my WCF client is not sending all the ...

67. WCF authentication using credentials embedded in message    stackoverflow.com

We are replacing an existing web service that supports both SOAP and POX endpoints for a large number of clients. SSL provides transport security but the messages contain credentials (username/password) embedded ...

68. How can I retrieve SoapEnvelope information just from the URL of web services in C#?    stackoverflow.com

Basically I am trying to make a generic client which will retrieve the Methods Names, Parameters that it takes and Parameter that it returns from the any kind of web service. ...

69. WCF DataMember EmitDefaultValue on value type? (but set my own default value)    stackoverflow.com

I have the following:

public class Foo
    [DataMember(EmitDefaultValue = true)
    public bool Bar { get; set; }
2 Questions:
  1. What really happens here because my bool can't really ...

70. Reading ClientCredentials from SOAP Request body node and verifying it against a Custom Validator?    stackoverflow.com

I have a method GetColors which takes a GetColorIdsRQ as a parameter and returns a GetColorIdsRS. GetColorIdsRQ is the SOAP Request and GetColorIdsRS is the SOAP Resposne. Here are ...

71. What class will be used to create SOAP?    stackoverflow.com

I need a class for easy formation of such structures

str += "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n";
str += "<S:Envelope xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\">\r\n";
str += "<S:Header/>\r\n";
str += "<S:Body>\r\n";
str += "\t<ns2:get_version xmlns:ns2=\"http://gdfgd/\" />\n\r";
str += "</S:Body>\r\n";
str += "</S:Envelope>";

72. wcf soap message deserialization error    stackoverflow.com

I am getting following error when i make the service call Error in deserializing body of request message for operation 'IbankClientOperation'. OperationFormatter encountered an invalid Message body. Expected to find node type ...

73. how to send a already constructed SOAP message in WCF    stackoverflow.com

I have a SOAP message in a string at my client side

string requestMessageString = "<soapenv:Envelope 
       <inf:Security> ...

74. ksoap2 and WCF complex types    stackoverflow.com

I'm sending this request to my WCF webservice with a Android client using ksoap2:

<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"><v:Header />
        <HelloComplex ...

75. How to get the value from MessageHeaderInfo    stackoverflow.com

I am sending some SOAP headers to a WCF service and I am trying to catch them using behavior extension. When the message is received I am going through its headers collection. Each ...

76. ObservableCollection vs Normal List for Async Webservices Call    stackoverflow.com

All, I was just implementing a Webservices method that needs to take as an argument a list of objects. On the client side, I tried to call this passing it a list ...

77. How can I prevent the following nested soap request?    stackoverflow.com

I have a WCF Operation that is defined like this:

GetColorsRS GetColors(GetColorsRQ rq);
Where GetColorsRS will hold the response and GetColorsRQ holds the request. When I run this, it creates the following ...

78. How to integrate WCF and SOAP to existing server-client application?    stackoverflow.com

I am new to server-client applications. I am trying to build a prototype where a Java server communicates with a .net WPF client over http. The server and client currently communicate ...

79. WCF SOAP Service    stackoverflow.com

I am working on a WCF SOAP service, and I noticed something weird. I have the following code in my service contract

public interface IService
   int MethodA(int a, ...

80. WCF OperationContract - What's the point of Action and ReplyAction?    stackoverflow.com

[ServiceContract(Namespace = "http://schemas.mycompany.com/", Name = "MyService")]
public interface IMyService
    [OperationContract(Name = "MyOperation")
    OperationResponse MyOperation(OperationRequest request);
In this scenario, what is the point of the Action and ReplyAction ...

81. WCF - Implementing client which requires encryption of one soap:body element, how?    stackoverflow.com

I've been looking all over for this, and its not looking promising so far, trying to get a client app written that is consuming a 3rd party service(sample request below, from ...

82. Does WCF's WS-Security implementation fully support the specification?    stackoverflow.com

Reading this question WCF - Implementing client which requires encryption of one soap:body element, how? gave me a question of my own. According to WS-Security specification "The message creator MUST NOT ...

83. What's wrong with my wcf endpoints?    stackoverflow.com

I am trying to create a wcf service with two endpoints, one SOAP 1.1 and the other SOAP 1.2. Here is my config:

<?xml version="1.0"?>

<add name="ProgramInformationWS.Properties.Settings.IMTConnectionString" connectionString="Data Source=DLADD00001;Initial Catalog=IMT;Integrated Security=True" providerName="System.Data.SqlClient"/>
<compilation debug="true"/>
<!-- ...

84. SOAP Request not working    stackoverflow.com

I'm consuming a SAP PI Web Service and some reason it's not working. I'm thinking due to incorrect SOAP XML below: This is what SAP PI is expecting:

<?xml version="1.0" encoding="UTF-8"?>
<ns0:A_Request xmlns:ns0="http://domain.co.au/abc">

85. Windows Communication Foundation vs Sockets, size of client application and metadata    stackoverflow.com

I started to make an application, in which the priority is client application size, smaller is better. I have to retrieve and add some data from/to a server, basic Add(), GetAll(), ...

86. .NET 4 WCF SOAP Service Http POST returns 404 NOT Found    stackoverflow.com

I have WCF hosted SOAP service which I'm able to hit from the browser as well as from my SOAP client fine when making HTTP GET requests, however, when doing any ...

87. How to get the soap or http request object from a wcf class    stackoverflow.com

From a wcf4 service need to access to the underlying http request,including it's soap message, how can I do that from code?, I know I can use fiddler, etc, but need ...

88. WCF SOAP Idempotent    stackoverflow.com

I might be getting myself confused here but say I want a service to be idempotent. That is, receiving the same request more than once will not change the state of ...

89. Read the soap message body contents in WCF custom message filter    stackoverflow.com

I've been working with WCF routing and implemented a custom message filter,

    public override bool Match(Message message)

90. WCF + IIS Redirect failing, is it possible?    stackoverflow.com

I'm trying to migrate a live, active WCF service (SOAP, standard HTTP binding config) to a new server [on IIS 7] without necessitating a client redeployment. The WCF service in ...

91. Save Request Soap Operation In WCF    stackoverflow.com

I've a windows form application on .Net 4.0 this application use a operations available on a proxy on WCF. How the best way to logg the messages between my application and ...

92. How can i set attributes with soap in WCF / .net    stackoverflow.com

I am trying to make a soap server with the attribute OptIn in WCF / .net 4.0 This is my test code

public class Relatie
    [DataMember(IsRequired = false)]

93. Java WebService with .NET issue. Results different with scvutil /wrapped and not    stackoverflow.com

I'm using a well known vendor's API with a WSDL link1, link2 (click wait to download): The above mentioned documentation wants me to create an Authentication ...

94. Is it possible to change the result attribute of a wcf webservice?    stackoverflow.com

I have a problem with the response method of the Soap server. It is a .net WCF webservice The following code:

public interface IService1
    List<DealerLead> GetDealerLeads(List<DealerLeadsRequest> accountnummerString);
Will ...

95. Calling SOAP UI mock service with WCF: "The provided URI scheme 'https' is invalid; expected 'http'."    stackoverflow.com

A colleague of mine gave me a copy of a mock service project for SOAP UI. I can open and run this mock service fine on my machine. It is running ...

96. can i create a soap request whit multiple elements of the same type    stackoverflow.com

I'm having a problem with my soap request. this is de code that creates the request.

    [return: MessageParameter(Name = "Dealer")]
    List<Dealer> GetDealer(String AccountNumber);   ...

97. How to change SOAP version in custom WCF MessageEncoder?    stackoverflow.com

I'm trying to utilize GZip compression for the self hosted WCF service. The SOAP 1.1 is required. I implemented custom MessageEncoder from the next sample http://msdn.microsoft.com/en-us/library/cc138373.aspx. The message encoder was incorporated to ...

98. Skipping an Element when serializing a "MessageBodyMember" property    stackoverflow.com

Whenever object of a class marked with MessageContract attribute is serialized, I see that it looks for [MessageBodyMember] members and serializes them under seperate XML elements in the message. Is there ...

99. Sending SOAP messages WCF client that include a username token and digital signature but are NOT encrypted    stackoverflow.com

WCF does my head in. What I'm trying to do is create a WCF client that will send SOAP messages that contain a username token and are signed with a certificate, ...

100. SOAP not getting encoded as MTOM in a WCF client    stackoverflow.com

I am connecting to a DFS(Documentum Foundation Services) instance from a WCF client. I am using basicHttpBinding and I have set the messageEncoding="Mtom". However, when I inspect the soap, I see ...