Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Antessima

@Antessima
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • SOAP from scratch?
    A Antessima

    That's what I'm working on right now, actually. I suppose the most specific my question could be is this: Given a class with various members, how can I turn that into a SOAP message? For instance, if my class is wsRecord, and wsRecord has a String field called ID, a String field called Title, a DateTime field called RecordDate, and a String field called Comments, how do I put that into the message? None of the examples I've found online include any messages, only empty requests that return a response.

    C#

  • SOAP from scratch?
    A Antessima

    Hi all, I'm trying to build a SOAP message from scratch in C# for a webservice-consuming application. The WSDL provided for the service specifies using as a paramter to a particular method a class generated by the WSDL that includes roughly 70 different properties. When such a class is returned as the result of a method on this webservice, the proxy has no trouble moving the data from the SOAP message into this class, regardless of whether all 70 properties are present or not. Those missing fields are represented in the incoming message as self-closing tags. However, when the proxy generates a SOAP message *to* the webservice using this class, generating self-closing tags for empty fields, the webservice rejects the call. It's only when it's presented with non-empty tags--and at that, not all of the properties, if they contain a value, will be accepted--will it accept the message. About 6 months ago I figured out how to create the message from scratch in C#, using the HttpWebRequest/Response classes (I think so, anyway), but since then I've lost those code files and can't figure out how I did it. Does anybody have an example of how to do it? Or, even better, any suggestions about what I can do to force the proxy to ignore empty properties when creating the SOAP message?

    C#

  • MTOM and .NET question
    A Antessima

    I'd been to that page many, many times already, and it wasn't much help. The problem was that I didn't know how to get from just having a WSDL doc to that point. Funny how you can Google "MTOM .NET" and "WCF MTOM" and "WCF MTOM .NET Client" all day long and get lots of stuff that doesn't fit the bill, but if you just Google "WCF Client", like I finally did yesterday around 1:30pm, you get this[^] as your fourth result. I've since followed the instructions on that page, and, combined with a little help finding the right WSDL for WCF (the original didn't have the necessary data to implement in WCF) and finding additional instructions[^] on how to use svcutil via the command line to generate a WCF-compliant proxy class, I now have exactly what I was looking for. :-D

    .NET (Core and Framework)

  • MTOM and .NET question
    A Antessima

    I've been working on a new .NET client to replace my organization's Java tool that they've been using for consuming a web service. Nobody here knows much Java, nor do they care to learn it. Since .NET is my background anyway, I was tasked with getting this to work. Everything works except downloading documents. The web service is configured to send them as MTOM attachments. The server side works fine because I can execute the API calls in SoapUI without any trouble, but when I added the service reference via svcutil to my .NET client, it didn't auto-configure to look for and decode MTOM attachments; instead, I get the error message about "client was looking for text/xml and found multipart/xml", etc. I did a lot of searching to find information about configuring it to look for MTOM, but the problem is that svcutil didn't configure the proxy class from System.ServiceModel, but rather built it on System.Web.Services. I can't find examples that use System.Web.Services, so I'm rather in the dark. I've already asked for specific help about how to fix the current client on Stack Overflow[^] and on MSDN[^], and in the 3-4 days since, haven't even gotten a comment. So, that's not what I'm after here. What I want to know is this: If you were to write an app in .NET to upload and download documents using MTOM, where would you start?

    .NET (Core and Framework)
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups