WCF 3 « soap « Java Enterprise Q&A

1. Need guidance with sending files to a .NET WCF Web Service    stackoverflow.com

Thank you all in advance for your assistance! I am creating a .NET WCF web service (C#) for sending emails.. basically a central emailer service that all internal apps can use. my ...

2. WCF performance issue due to unexpected line-breaks in SOAP body    stackoverflow.com

I ran into an interesting WCF performance issue while trying to send a file from client to server (self-hosted .Net 4 WCF service), using an operation like the following over basicHttpBinding: ...

3. Changing SOAP error codes in WCF    stackoverflow.com

We are developing a SOAP 1.1 application with WCF running on ISS which is going to be used by one client/partner. They want to not get html error code 500 ...

4. How can I better diagnose a WCF service when an operation returns the meta page html?    stackoverflow.com

I have a WCF service application (wsHttpBinding) hosted in IIS7.5 (.NET 4) and I can navigate the .svc file in the browser and the meta data page successfully shows up and ...

5. WCF client with SmartCard certification works on Win7, but not on XP    stackoverflow.com

Hello to everybody that bothers to read this question. Here is the brief summary: I have a WCF client (.NET 4.0) that behaves well on windows 7 (64 bit), but fails on XP ...

6. Access wcf service with clientCredentialType="UserName" using soapui    stackoverflow.com

Hi I have a WCF service which im trying to access using SoapUI .The service is working fine and im able to access with a .net client application , but im ...

7. SOAP Client Call Message with Custom Authentication and X509 Certificate    stackoverflow.com

I built a webservice using WCF and decided to use message security(wshttpbinding) with custom authentication( my own database) and X.509 certificate. I want to know how does client call a webservice ...

8. Invoke soap wcf service in Fiddler like in Wcf test client    stackoverflow.com

I have service which should support SOAP and REST. web.config

    <add name="HttpGet" />
    <add name="HttpPost" />
<httpRuntime  executionTimeout="90" maxRequestLength="1048576" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" ...

9. Digital Signature on WCF SOAP message    stackoverflow.com

I've got a requirement to connect to a web service using a digital signature. I'm using .NET 4.0 and WCF (Service Reference), and X509 SSL certificate, but can't find any suitable ...

10. How to make object property appear in xml attribute    stackoverflow.com

I want to add an xml attribute to my SOAP response. Given the following code:

using System.Collections.Generic;
[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("http://www.opengis.net/ows/2.0", ClrNamespace = "MyNameSpace.OWS")]
namespace MyNameSpace.OWS
    public class ExceptionReport

11. Enabling SOAP Message Inspection for a Single Operation    stackoverflow.com

How can I force an IMessageInspector to fire only when a specific operation is called, rather than firing whenever a call to the service is made? Currently, I am applying a ...

12. adding prefix to serialized xml element    stackoverflow.com

I have the following class which implements IXmlSerializable:

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "")]
[System.Xml.Serialization.XmlRootAttribute(IsNullable = false)]
public partial class ExceptionReport : object, System.Xml.Serialization.IXmlSerializable
    private System.Xml.XmlNode[] nodesField;

    private static System.Xml.XmlQualifiedName typeName = ...

13. Is there ways to authenticate user (username, password) through MSSOAP.SoapClient30 on WCF Service?    stackoverflow.com

Have a WCF servive working through basicHttpBinding with a customUserNamePasswordValidator.

    <basicHttpBinding><binding name="BindingName">
      <security mode="TransportWithMessageCredential">
        <message clientCredentialType="UserName"/>

14. adding xmlns:rim attribute to serialized class    stackoverflow.com

I would like to add a namespace and prefix attribute to my serialzed class so my child elements can reference by using the prefix. My class looks like this:


15. How to set up an untyped SOAP message + WSS in WCF?    stackoverflow.com

soapUI creates a message to the service:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.is.shit.com"> 
    <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
        <wsse:UsernameToken wsu:Id="UsernameToken-7" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

16. WCF SOAP Action    stackoverflow.com

I am rewriting a legacy asp.net web service in WCF 4.0. My obvious end-goal would be that the new endpoints would exactly match the legacy ones. The problem i encountered is ...

17. Deserialization issues between WSE client and WCF service    stackoverflow.com

I have a WCF service which is communicating with the WSE client. So I have old proxies at the client end. I call one contract of the WCF service. That contract returns ...

18. object property not being deserialized    stackoverflow.com

using svcutil i generated code from schema files. So far, all objects serialize and deserialize ok except this "Item" property:

    [System.Xml.Serialization.XmlElementAttribute("AbstractQuery", typeof(AbstractQueryType), Order=2)]

19. calling a webservice with custom soap    stackoverflow.com

I am having an issue with creating a custom soap envelope. I have looked into MessageContract attribute and have also looked into creating a custom web client to make the call. ...

20. How long do objects stay in memory after a soap request to WCF?    stackoverflow.com

I was wondering how long do objects instantiated during a soap request ( which do not implement IDisposable ) stay in memory? for example:

public GetRecordsResponse GetRecords(GetRecordsRequest request)

21. dispatchOperation.Formatter NULL when call soap service    stackoverflow.com

I have IDispatchMessageFormatter implementation

    class ServerMessageFormatter : IDispatchMessageFormatter
    private IDispatchMessageFormatter Formatter;

    public ServerMessageFormatter(IDispatchMessageFormatter formatter)

22. what's the minimum / maximum value of the datetime data type when using SOAP?    stackoverflow.com

I have an interoperable WCF service which needs to provide a DateTime value to the clients. I want to provide the maximum value of this DateTime if a certain field is ...

23. WCF - Soap Webservice with Basic Auth, no ssl, self-hosted    stackoverflow.com

I'm fully aware of the insecurity of this approach, but have a justified need for Basic http authentication for a WCF hosted SOAP webservice. Is there really no way to make ...

24. No signature in the WS-Security message for the configured soap actor/role ""! (from client)    stackoverflow.com

I'm binding as follows

    //Get certificate in bytes[]
            X509Store store = new X509Store(StoreLocation.CurrentUser);

25. Wcf as soap: different problems depending on clients    stackoverflow.com

I'm developing a simple wcf service and trying to expose it as Soap for compatibility reasons: the client will be a flash application with its nice actionscript. I am obviously using basicHttpBinding ...

26. wcf client - soap encoding - complex types in different namespace    stackoverflow.com

I keep running into namespace mismatches when trying to deserialize the SOAP response. The response is unqualified and the nested complex types are qualified with a namespace like this:

<enc:ApplicationExceptionOccurred xmlns:enc="com.namespace1.www/complexTypes">false</enc:ApplicationExceptionOccurred>
<enc:SystemExceptionOccurred xmlns:enc="com.namespace1.www/complexTypes">false</enc:SystemExceptionOccurred>
<enc:ComplexType xmlns:enc="com.namespace1.www/complexTypes">
I ...

27. Web Service with Windows Authentication with Soap Client    stackoverflow.com

I need to access a webservice from a c# forms app. The webservice needs Windows Authentication. I use the following code:

ServiceDeskSoapClient sd = new ServiceDeskSoapClient();
sd.ClientCredentials.UserName.UserName = @"mydomain\myusername";
sd.ClientCredentials.UserName.Password = "mypassword";
But get the following error:
The ...

28. WCF & Soap returning --uuid:{value} in body?    stackoverflow.com

I am making a soap request which is returning the following:

HTTP/1.1 200 OK
Content-Length: 7048
Content-Type: multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:dc2ee0dc-fd91-40ef-949d-2c1b02108e23+id=4";start-info="text/xml"
Server: Microsoft-HTTPAPI/2.0
MIME-Version: 1.0
Date: Tue, 25 Oct 2011 12:56:17 GMT

Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"

<s:Envelope details />
Everything is good ...

29. Put a MessageContract as MessageBodyMember in other contract in WCF    stackoverflow.com

Can I use recursive MessageContract in WCF ? for example : I need to post some parameters, one of the parameters is an array of file stream. this is My OperationContract :

DomainResult AddSomethingNew(int externalCustomerId, ...

30. WCF Contract from XML Soap file    stackoverflow.com

I have an inverse task about of WCF service construction. Have a SOAP Request description XML file:

    <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
  <nsp:run xmlns:nsp="http://someurl"  ...

31. Can't get JSON out of a WCF service    stackoverflow.com

I can't seem to succeed with getting JSON out of a WCF service even if I tag the method with the attributes:

[WebGet(UriTemplate = "Product/{productIdString}",
ResponseFormat = WebMessageFormat.Json)]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
I'm always getting XML, ...

32. Error while using Linq "Include" method with Entity framework 4.1, Bug?    stackoverflow.com

I am using SQL Azure as database with code first technique of Entity framework 4.1. I'm accessing EF from WCF as middle tier and providing the service reference to ASP.NET ...

33. WCF service using basicHttpBinding is still sending content type "text/xml"    stackoverflow.com

I am writing a WCF service, running on IIS, and I have a customer whose client can only talk SOAP 1.1. Among other things, they need the content type to be "application/soap+xml; ...

34. WCF Refusing to Attach ClientCredentials to Requests    stackoverflow.com

I have a web service I'm trying to interface with however no matter what I try it is refusing to send the clients credentials along with the request. The security block in ...

35. Including another NameSpace in SOAP Envelope in WCF Client    stackoverflow.com

I'm connecting to a Soap1.1 Service. It's a pre-existing service that is using an industry standard interface definition (named MultiSpeak, extremely common in the utility space) The MultiSpeak standards do not ...

36. WCF service for gSOAP client    stackoverflow.com

I have received a request to build a Service to handle trafic from a predesigned client. The documentation stated the service is a SOAP service but I later found out the protocol ...

37. WCF features outside of a WCF "building"    stackoverflow.com

I want to know if there's a way to extrapolate some security WCF features to be used in a custom environment. I will explain better, I need to create a dynamic service ...

38. Serializing WCF message using "generic" XML namespace instead of that of data contract    stackoverflow.com

I am writing a tool (MyTool) that works in conjunction with another programmer's tool (HisTool). Both of our tools deal with a WCF service that is not under our control. ...

39. Customizing the xmlns:a= tag in a soapresponse from WCF    stackoverflow.com

I'm creating a service to respond to calls. However the client(not written by me) cannot read the response. What we have located is that this seems to be due to th missmatching namespace ...

40. How to send files from soap lite client to wcf service?    stackoverflow.com

I have a wcf service set up to accept basic http binding. I want to send an excel file from perl soap lite to my wcf service. What is ...

41. Using Dictionary objects in WCF service for both JSON and SOAP endpoints    stackoverflow.com

I want to use a list of Dictionary objects as part of a WCF service output, for both REST/JSON and SOAP endpoints. It worked okay, except instead of returning the Dictionary ...

42. WCF doesn't serialize all properties    stackoverflow.com

I'm consuming a SOAP service that has been imported as a Service Reference in VS2010. I call one of the services with a request object that is provided by the service. ...

43. View SOAP XML from WCF Creating Client    stackoverflow.com

I have created a WCF Client with the SVCUTIL.exe following these instructions : http://msdn.microsoft.com/en-us/library/ms733133.aspx It creates a app.config and a soapproxy.cs file to use. I can not figure out any way ...