WCF 1 « soap « Java Enterprise Q&A





1. WCF - Domain Objects and IExtensibleDataObject    stackoverflow.com

Typical scenario. We use old-school XML Web Services internally for communicating between a server farm and several distributed and local clients. No third parties involved, only our own applications used by ...

2. .NET WCF faults generating incorrect SOAP 1.1 faultcode values    stackoverflow.com

I am experimenting with using the FaultException and FaultException to determine the best usage pattern in our applications. We need to support WCF as well as non-WCF service consumers/clients, including SOAP ...

3. Does anyone know of any problems with using WCF to expose a SOAP interface for non .NET clients?    stackoverflow.com

Does anyone know of any problems with using WCF to expose a SOAP interface for non .NET clients? For example incompatibilities with other SOAP libraries? This is so that the SOAP ...

4. Tool to Peek into WCF SOAP message    stackoverflow.com

I know there is a tool that enables me to see what actually gets sent/received in my WCF application, that is it let's me see the actual SOAP messages being passed ...

5. WCF and Custom Soap Authentication    stackoverflow.com

I am developing a server application using WCF to expose WebService endpoints for clients. I want to implement authentication through a simple custom provider that will use the username and password ...

6. How can I use DIME with WSE 3.0?    stackoverflow.com

I need to make calls to a legacy SOAP API that only supports DIME, but DIME is not supported in WSE 3.0. Unfortunately, WSE 2.0, which supports DIME, is not ...

7. Problem with WCF client calling one-way operation    stackoverflow.com

I have run into a problem when calling web service on a SAP PI bus from my WCF client. The operation is defined as one-way, and the method on my proxy operation ...

8. WCF and gSOAP - interoperable code?    stackoverflow.com

I'm trying to write a simple WCF Server + gSOAP client proof-of-concept application using SOAP 1.2 protocol. Here's server code:

[ServiceContract(Namespace="http://test.com")]
public interface IService1
{
    [OperationContract]
    void HelloWorld();
}

[ServiceBehavior(Namespace ...

9. Improving WCF performance    stackoverflow.com

Could I know ways to improve performance of my .Net WCF service? Right now its pretty slow and sometimes it gets clogged & eventually stops responding.





10. WCF: Use JSON to encode a SOAP Message Body    stackoverflow.com

We have SOAP implementations of our services and up till now we had some legacy code that was wrapping our args and returns in another object to get around some serialization ...

11. When to use SOA (Service Oriented Architecture)    stackoverflow.com

I had a conversation with one of our architects recently and he summarized his use of SOA as "The only time we'll use services is when we need async actions otherwise ...

12. Standards for queries over SOAP    stackoverflow.com

Is there a standards-sanctioned XML format for describing entity queries? Background: I plan to build a library for writing queries over WCF services. On the client I want to be ...

13. WCF Service with Binary Data    stackoverflow.com

I have a unique problem and I would like the capability to process an incoming HTTP POST request that contains arbitrary binary data. I can currently process this data using a standard ...

14. How can I invoke a WCF operation without HTTP container?    stackoverflow.com

I have an environment in which I cannot add another HTTP container (whether ServiceHost, IIS, etc.) but I still need to process SOAP requests (represented as strings) with a WCF web ...

15. Avoiding web service god classes    stackoverflow.com

I have a complex RIA client that communicates with a WCF SOAP web service, the second a being the operative word. This has resulted in a dreaded god class containing ...

16. WCF EntLib Validation - change default SOAP Fault Reason text    stackoverflow.com

I'm using the Enterprise Library Validation Application Block for my WCF service. All is fine, and .Net consumers can catch the FaultException<ValidationFault> exception to get a collection of human-readable ...





17. Is there a Fiddler plugin for binary XML?    stackoverflow.com

Fiddler has many useful extensions. However, I can't find one that understands WCF's binary-encoded SOAP envelopes. (Content-Type: application/soap+msbin1) Suggestions for comparable (non-Fiddler) tools are welcome too.

18. Serialize WCF message in a binary way, and not as a SOAP Message    stackoverflow.com

I have a client-server application, which communicates using WCF, and uses NetDataContractSerializer to serialize the objects graph. Since a lot of data is transferred between the server and the client, I ...

19. Can XmlDictionaryReader really handle binary XML? If not, what does?    stackoverflow.com

I'm trying to write a debugging tool that allows the user to view WCF's new binary XML format (application/soap +msbin1) in plain text. Once I found the

20. Queueing SOAP operation    stackoverflow.com

I'm having a strange problem invoking a WCF service from flex. When I'm testing from Eclipse (Run as or Debug) and the url in the browser points to C:..., the service ...

21. Multiple name spaces in a soap fault message causing FaultException deserialization to fail    stackoverflow.com

We're connecting to a web service and the fault message we're getting back isn't deserializing (at all), and no version of class that I can make will deserialize correctly. We have ...

22. Submit a SOAP Web service request with RAW SOAP XML    stackoverflow.com

I've got a simple WCF Web service that uses basicHttpBinding to make it SOAP 1.1 compliant. When called with a WSDL-derived proxy (by setting a service or Web reference), the service ...

23. Call WCF Using SOAP call    stackoverflow.com

I want to call a WCF service using SOAP? this is my contract:

[ServiceContract(Namespace = "http://www.MySite.com/Services/TransferFile")]
public interface ITransferFile : ICloseableAndAbortable
{
    /// <summary>
    /// This will send the ...

24. How can you force WCF to use xs:All instead of xs:Sequence so that SOAP element ordering is irrelevant?    stackoverflow.com

How can you make WCF use xs:All instead of xs:Sequence when it defines complex object types in the wsdl/xsd for a web service? The issue I am having is that xs:Sequence requires ...

25. Infopath 2007 and WCF Data Connection    stackoverflow.com

I am having trouble trying to connect an Infopath 2007 form to an WCF web service. I appears that the Infopath only wants to communicate via a SOAP 1.0 message. ...

26. How do I send SOAP Request to WCF Service?    stackoverflow.com

Can anyone point me to an example how to post a SOAP Request to a WCF Service and return a SOAP Response? Basically a Travel client sends ...

27. Can't Access SOAP Methods When Using Class Library    stackoverflow.com

I am having problems accessing methods in my WCF class library and am wondering if somebody could explain why? I have a web project that has a single DLL file - ...

28. WCF sending huge data    stackoverflow.com

I want to send a huge set of data to a WCF service. The data might consist of thousands od records (entities), depending on the parsed input file. Now the question is: what ...

29. Get Just the Body of a WCf Message    stackoverflow.com

I'm having a bit of trouble with what should be a simple problem. I have a service method that takes in a c# Message type and i want to just extract the ...

30. What is simplest WCF/SOAP configuration?    stackoverflow.com

We have a WCF service and I use wsHttpBinding with transport security and custom authentication. I recently discovered that secure sessions are on by default (see this SO question). I'm surprised ...

31. verifying a WCF signed SOAP message    stackoverflow.com

I have a problem verifying a SOAP message timestamp and body. Before starting to write any code I'm trying to verify it by myself, these are the steps I followed to verify ...

32. How to generate SOAP message from a WCF service?    stackoverflow.com

Is there any way programmatically or any tool by which i can generate SOAP messages from WCF services ?

33. Sending raw SOAP XML directly to WCF service from C#    stackoverflow.com

I have a WCF service reference:

http://.../Service.svc(?WSDL)
and I have an XML file containing a compliant SOAP envelope
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Body>
    <MyXML>
       ...
Now, I ...

34. ServiceContractGenerator vs ServiceDescriptionImporter    stackoverflow.com

I'm trying to build a light-weight SOAP client without using Add Service Reference. Ideally, this client should work for as many services as possible. Currently, it uses ServiceDescriptionImporter to generate the ...

35. WCF - ASMX - CommunicationException    stackoverflow.com

So I've got a WCF client consuming an ASMX web-service. Everything works fine, except exception handling. Where I should get a (non-contractual) FaultException, i get the CommunicationException. What may be wrong?


Here goes the ...

36. Messages via SOAP throws CommunicationException    stackoverflow.com

This is how my service is set up:

myServiceHost = new ServiceHost(typeof(ChatCommunicationService), new Uri("http://localhost:8080"));
myServiceHost.AddServiceEndpoint(typeof(IChatService), new WSHttpBinding(), "Soap");
myServiceHost.Open();
This is how my webservice client is set up:
ChannelFactory<IChatService> scf = new ChannelFactory<IChatService>(new WSHttpBinding(), "http://localhost:8080/Soap");
_chatService = ...

37. View raw XML request    stackoverflow.com

I am very new to WCF and SOAP messaging but I have managed to put together a reasonably good client which I am using to download news stories from a media ...

38. WCF: SOAP output body contains tag names instead of elements    stackoverflow.com

I have an object created with the xsd.exe tool that defines xml attributes in the code, but the SOAP response from my web service is returning xmlelements instead of attributes.

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", ...

39. How to access SOAP 1.1 fault detail from WCF client (no fault contract)    stackoverflow.com

I'm accessing a SOAP 1.1 web service, and it's returning a fault. The web service does not define any fault contract in the WSDL as far as I can see. ...

40. How do I get the details of a SOAP fault in Dynamics AX?    stackoverflow.com

I'm currently communicating with an external SOAP service within AX using the a service reference and the generated .NET class. Everything is working out greatly with the exception of how ...

41. WCF: "IsRequired" property for DataMember with "IsReference" property for DataContract    stackoverflow.com

Why does WCF does not allow to set the "IsRequired" property for DataMembers when I set the "IsReference" property for the DataMember's DataContract? And is there a way to solve this ...

42. WCF and Soap 1.1    stackoverflow.com

I am trying to create a service that a 3rd party should hopefully consume.
The consumer is compatible with SOAP 1.1, which is why I am using basicHttpBinding for the server. ...

43. WCF: (MTOM) is there any way to change the scheme used in xop:Content reference uris generated by WCF?    stackoverflow.com

WCF uses http://tempuri/1/number for Content-ID uri references when handling streamed MTOM requests. Is there any way how to force WCF to use a different Content-ID references for the xop:Include? Bakcground of the ...

44. How to handle incorrect SOAP fault in WCF?    stackoverflow.com

I have to consume to a third-party web service using SOAP. It was easy to get it to work with WCF, but now I have a problem with SOAP faults. The ...

45. How to sign a SOAP request with WCF    stackoverflow.com

I have an 3rd party SOAP web service. I need to make a call to one of its methods. The request needs to be signed. How can I ...

46. Converting generic.list to ArrayOfInt for transmission over SOAP to web service    stackoverflow.com

I'm attempting to pass a generic list of integers from a client application to a web service using the the SOAP protocol. When I attempt to pass the list as a parameter ...

47. Server-side tracing of SOAP messages for WCF service    stackoverflow.com

I'm trying to follow this tutorial on configuring server-side SOAP tracing for my WCF service, as well as the MSDN documentation. When I run a test, I see ...

48. WCF configuration for SOAP plain text password authentication over SSL    stackoverflow.com

I have an application that connects via https to a SOAP-based web service that implements WS-Security. The web service is written in Java, expects a plain text password as well ...

49. How do you change the SOAP Envelope schema in WCF?    stackoverflow.com

I am connecting to a third-party end point via WCF and I have one problem. The schema for the SOAP envelope that is generated by WCF isn't compatible with the end ...

50. How to obtain client's URL from WCF service?    stackoverflow.com

Here is the problem: I have a WCF service and a few sites connecting to it and sending certain messages. How can I obtain client's URL (not IP) from the WCF service ...

51. Windows Workflow Foundation 4.0 and WCF web service faults (soap fault)    stackoverflow.com

In my Workflow Foundation 4.0 RC app I have a 'Receive' and 'SendReplyToReceive' WCF messaging pair that work fine with a simple request/response operation, but I'm having trouble attempting to perform ...

52. How do I use WS-Security with WCF?    stackoverflow.com

Below is the style of header I need to create. I am expected to use either a public/private key or a SSL style certificate. I don't know for certain, but I think ...

53. InvalidOperationException when using soap client    stackoverflow.com

I've added as wsdl file using the add servece reference dialog in vs2008.

MyService serviceproxy = new MyService();
When I instantiate the service proxy, I get an InvalidOperationException with the following text (translated ...

54. How do you bypass TLS/SSL cetification validation in WCF for Exchange Web Services    stackoverflow.com

I wan't to bypass SSL and use regular http protocol to connect to a Exchange 2007 server however we dont want to invest in a real SSL cert and the one ...

55. Svcutil generating bad config with multiple endpoints    stackoverflow.com

I have a WCF service that has exposed a soap and an xml endpoint. When I use svcutil to generate the proxy code on the client side the generated configuration ...

56. Should my WCF webservice return a 500 or 200 http code (soap fault / functional return message)    stackoverflow.com

after reading the SOAP 1.1 specs, it states that a SOAP Fault should return a http 500 errorcode when communication goes over a http binding, so when a SoapException is thrown, ...

57. Why would Basic Auth not work with my WCF client to Java SOAP Web Service?    stackoverflow.com

I have a Java based web service that requires basic authentication to communicate with it. If I type the WSDL url into my browser I'm prompted for Basic Auth. ...

58. How to access WCF RIA service from Windows Service?    stackoverflow.com

I have a functioning SL4 application (VS2010, SL4, WCF RIA, hosted on my dev box using Cassini, 64-bit Windows 7). Inside the ClientBin directory I have an .svc file that ...

59. SOAP WCF Webservice behaves differently when called locally or remotely    stackoverflow.com

I have a WCF SOAP 1.1 Webservice with the configuration specified below. A concurrent call to any method of this endpoint hangs until the other returns when called remotely (from another computer ...

60. WCF Service instead of ASMX Web Service?    stackoverflow.com

I'm writing a SOAP Server that will act as an endpoint for an external client. The external client expects SOAP 1.1. I'll be taking embedded business objects in the SOAP messages ...

61. Create a service that connects to remote database and uses public key encryption    stackoverflow.com

I have been searching all day and reading many tutorials and still I am confused. I am working on a project that has the following requirements as specified by the client ...

62. SOAP client in .NET - references or examples?    stackoverflow.com

Background: I am creating a webservices site which will provide many types of simple services over SOAP and possibly other protocols too. The goal is to make it easy to do for ...

63. Designing WCF Contracts (Operation / Data)    stackoverflow.com

I am currently looking to design some WCF services and wanted to get the community's opinion on the best way to handle operation / data contracts. I have 2 basic operation contracts, ...

64. XmlElement wrapped in extra tag in SOAP request    stackoverflow.com

Hi I have a service-proxy with one method:

void SendRequest(MyMessage msg);
The MyMessage is defined as follows:
[MessageContract(IsWrapped=false)]
public class MyMessage{
    [MessageBodyMember(Order=0)]
    public XmlElement Body;

    public ...

65. Attributes and elements missing from serialized object    stackoverflow.com

I have some generated proxy classes, that contain properties with the XMLAttribute attribute, e.g.

[System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified, Namespace="http://www.egem.nl/StUF/StUF0301")]
public Verwerkingssoort verwerkingssoort
{
    get
    {
       ...

66. Turn off WCF SOAP Service for Maintenance and provide friendly message    stackoverflow.com

I'm hosting some SOAP services with WCF. How can I turn off these services via config for the purposes of maintenance, etc., and provide a friendly message to the service consumer ...

67. Custom SOAP Fault has wrong namespace http://schemas.datacontract.org/2004/07/    stackoverflow.com

Hi there I've defined a custom schema for a soap fault which looks like this: ... ... I've genereated code in VS 2008:

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.3053")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.zurich.com/zsoa/corporate/common/2008/08/fault")]
[System.Xml.Serialization.XmlRootAttribute("zsoaFault", Namespace="http://schemas.zurich.com/zsoa/corporate/common/2008/08/fault", IsNullable=false)]
public partial class ZSOAFault : AbstractFault
{
... I've developed a custom IErrorHandler ...

68. WCF auditing/logging    stackoverflow.com

I need to provide non repudiation in my WCF services and want to store all my incomming SOAP requests into a SQL server DB with signature/security data and all the envelope ...

69. How to transfer a large zip file(50MB) using a WCF Service thorugh SOAP to aby client?    stackoverflow.com

I have a WCF Service that returns a byte array with a ZIP file (50MB) to any client that requests it. If the zip is very small (say 1MB), the soap ...

70. VB.NET WCF Soap Web Service Variables Missing    stackoverflow.com

I have created a WCF VB.Net Soap service. The service compiles and runs, but at runtime, only half of the variables passed to the function via a soap request are ...

71. Receiving plain XML in .NET WCF service    stackoverflow.com

I'm setting up a really simple WCF service whos only job is to receive an XML-message via SOAP and send the message on to an internal service. Let's say the one ...

72. WCF SOAP1.2 Service IIS hosted behind a router with port forwarding    stackoverflow.com

I have an IIS hosted WCF service with SOAP 1.2 and MLS. The service is hosted using a port 18001. What I need is to access it from the Internet (www.domain.com) using a ...

74. WCF Method that receive GET AND SOAP Requests    stackoverflow.com

i created a WCf service with a method that can receive GET requests using WebGET attribute, i want the same method to receive Soap calls too (that when the programmer does ...

75. Post SOAP Envelope to WCF service    stackoverflow.com

I have the following SOAP message that i want to post it to my WCF Service and get response.

"<s:Envelope xmlns:a=\"http://www.w3.org/2005/08/addressing\" xmlns:s=\"http://www.w3.org/2003/05/soap-envelope\">\r\n  <s:Header>\r\n    <a:Action s:mustUnderstand=\"1\">http://schemas.devleap.com/OrderService/IOrderService/InsertOrder</a:Action>\r\n    ...

76. Compressing data coming out of WCF    stackoverflow.com

I would like to compress the data coming out of WCF on a basicHttpBinding.
I am trying to produce a new version of a system originally written as SOAP web services. ...

77. Exchange 2010 PushSubscription WCF SOAP    stackoverflow.com

I'm trying to use the PushSubscription feature of Exchange 2010. So far I've got the code to setup push on Exchange 2010:

ExchangeService esService = new ExchangeService();
esService.Credentials = new WebCredentials("user", "pass", ...

78. Use json body in Soap envelope when sending to WCF service    stackoverflow.com

I need to interface with a soap header of autentication with a json body. I Created the contract like this:

[ServiceContract(Namespace = "http://tourico.com/webservices/hotelv3")]
public interface IHotelMobileFlow
{
    [OperationContract, WebInvoke(
    ...

79. Why do I get a 403 error when calling a WCF Webservice?    stackoverflow.com

I'm really posting this question so that others searching for the answer can find it. Scenario: WCF Service: Has worked fine at some point but currently is returning 403 errors. The ...

80. WCF MesageContract - customizing outgoing SOAP message - multiple bodies    stackoverflow.com

I have to call a Web service that is extremely demanding (unstandard) regarding the SOAP message format that it chooses to process. I have no control over the server side implementation ...

81. how does XML and Soap work with WCF?    stackoverflow.com

I have been asked this question in interview how does XML and Soap work with WCF ? can any one explain this?

82. Get WCF to recognise incoming SOAP request    stackoverflow.com

I'm trying to write a C# app to receive eBay notifications which are sent as SOAP over HTTP. I am receiving the notifications ok but I can't get them passed to ...

83. WCF service returns 404 over https but not http    stackoverflow.com

I'm migrating an existing service from HTTP (Dev/UAT) to HTTPS (Production), and I'm having trouble with the configuration. Here is the system.serviceModel section of my web.config:

<system.serviceModel>
    <behaviors>
 ...

84. C# async soap object handle    stackoverflow.com

Is there a way to attach a handler to a soap call? For example: I’m calling a row validate for each row in a data grid. This then calls async soap service. On ...

85. BizTalk Orchestration: Respond with Untyped SOAP Fault    stackoverflow.com

I have a BizTalk 2009 orchestration with a request-response port type that is published as a WCF Basic-HTTP web service. The port has one operation, and that operation has request ...

86. Active Directory Web Services (ADWS) SDK    stackoverflow.com

I recently come to know that there are web services by WCF for Active Directory. I presume this is not about LDAP. Are there any documentations or blogs about it as ...

87. WCF service for Java client    stackoverflow.com

Creating service on .NET for Java client. Messages will be signed by certificate and will work over https. Java client will be provide signature in form of Issuer Name and Serial. Are ...

88. Calling a WCF service from Java, redux    stackoverflow.com

http://stackoverflow.com/questions/3015124/calling-a-wcf-service-from-java Following on from the above question, does anyone know how to get wsimport to see WCF properties marked with the [MessageHeader] attribute, and hence generate fields for said properties on ...

89. Does Streaming a WCF Soap Help the Client Send Using Less Memory?    stackoverflow.com

I have a windows mobile application that sends data via WCF to a server. The data it sends sometimes exceeds the limit on the windows mobile device. I am wondering if ...

90. WCF troubleshooting - async and zero results    stackoverflow.com

How do you troubleshoot a WCF Service consumption from the client side (silverlight) when from the server you can tell that you service works (stepping through) and the client gets an ObservableCollection ...

91. Is there any relationship between Open Data Protocol and SOAP?    stackoverflow.com

What is the role of Open Data Protocol and SOAP in WCF?

92. WCF MessageContract List Serialization    stackoverflow.com

I have the following MessageContracts to use as a request:

<MessageContract(WrapperName:="get")> _
Public Class GetRequest
    Inherits BaseAuthenticatedRequest

    Protected _typeName As cEnum.eType
    Protected _id As ...

93. WCF SOAP service changing name of array item elements when (de)serializing    stackoverflow.com

I have a client (that isn't very flexible in the SOAP it sends) which generates SOAP similar to the following from a method with signature void Test(int[] test):

<?xml version="1.0" encoding="UTF-8" ?>
<SOAP:Envelope ...

94. 404 Error when TFS 2010 Sends SOAP Alert to a WCF 4.0 Service    stackoverflow.com

I'm trying to write a WCF 4.0 service that will receive SOAP alerts from TFS 2010. Here is my service contract:

 [ServiceContract(Namespace = "http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/03")]
 public interface IService1
 {
    ...

95. SOAP Web Services Attributes to verify authentication token    stackoverflow.com

I would like to create some sort of authentication attribute and attach it to various OperationContracts. Inside this attribute, it would check for an authentication token and make sure its still ...

96. What tools can be used for testing WCF SOAP services with X.509 authentication?    stackoverflow.com

Can anyone recommend a tool to help with the manual and automated testing of WCF SOAP 1.2 services that use X.509 certificates for authentication? I've tried WCFStorm - and while ...

97. What is SOAP injection?    stackoverflow.com

I am new to WCF and recently came to know that Web services are prone to many kind attacks and one among them is 'SOAP injection'. 1.Can anyone explain to me what ...

98. What's the logic behind WCF generated names for DataContracts    stackoverflow.com

When I use WCF to expose a DataContract as a SOAP wevservice I get some funky genenerated names, such as:

[Flags]
public enum EnumType1
{
    EnumMember1 = 1;
    ...

99. Self Hosted WCF Programattic HTTPS?    stackoverflow.com

I have a certificate installed and netsh/httpcfg setup. I am trying to create a WCF (.NET 4.0) service in a Windows Service / console app, that has all of the settings ...

100. Problem deserializing soap message on call back    stackoverflow.com

I am implementing a WCF .NET service that is called back by another service.
The soap message that the call back service sends back is below

The SOAP Message

<?xml version="1.0" ...