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
  1. Home
  2. Web Development
  3. ASP.NET
  4. How do I dump the raw xml in call to webservice?

How do I dump the raw xml in call to webservice?

Scheduled Pinned Locked Moved ASP.NET
questioncsharphelpwcfxml
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    EnkelIk
    wrote on last edited by
    #1

    Hi all. I'm writing a webservice in c#, and I have no problem in consuming it from another .net application, but the webservice seem not to be able to accept the incoming argument (a string) from calls that are not made from .net projects. I want the webservice to dump the raw xml, to a file or something, so that I can tell what the call looks like and hopefully also what is wrong. For example if I send (which does not work): osdcm2rn562 I want to be able to look at what is recieved by the webservice (that way I can compare the .net thing that works with the other that doesn't). The wsdl looks like this: Any help is greatly appreciated! Thanks /EnkelIk

    E A 2 Replies Last reply
    0
    • E EnkelIk

      Hi all. I'm writing a webservice in c#, and I have no problem in consuming it from another .net application, but the webservice seem not to be able to accept the incoming argument (a string) from calls that are not made from .net projects. I want the webservice to dump the raw xml, to a file or something, so that I can tell what the call looks like and hopefully also what is wrong. For example if I send (which does not work): osdcm2rn562 I want to be able to look at what is recieved by the webservice (that way I can compare the .net thing that works with the other that doesn't). The wsdl looks like this: Any help is greatly appreciated! Thanks /EnkelIk

      E Offline
      E Offline
      EnkelIk
      wrote on last edited by
      #2

      ...or if anyone have ideas about what might be wrong -why my webservice only recieves empty strings eventhough I know I don't send them empty (works when calling from a .net program but not from java or php), that to would be very helpfull ;) Thanks /EnkelIk

      E 1 Reply Last reply
      0
      • E EnkelIk

        ...or if anyone have ideas about what might be wrong -why my webservice only recieves empty strings eventhough I know I don't send them empty (works when calling from a .net program but not from java or php), that to would be very helpfull ;) Thanks /EnkelIk

        E Offline
        E Offline
        EnkelIk
        wrote on last edited by
        #3

        After hours of testing and searching the net I think I found the not very encouraging answer. I wrote a client in php and let it print out the request and response to and from the webservice ($soapclient->request/response using nusoap v 0.6.7). Finally I even got it to work and discovered that there are some small differenses in the syntax of the request. My guess is that the main problem is that the client (in java on Axis -not latest version) and the webservice (c#, win2000 -latest .net framework) is not running the same version of soap and therefore the communication is not working. I have talked to the 'servermanager' but since there are other stuff running on the Axis-server it will not be upgraded in the near future. Conclusion? Well we will probably not use soap for the communication after all... /EnkelIk

        1 Reply Last reply
        0
        • E EnkelIk

          Hi all. I'm writing a webservice in c#, and I have no problem in consuming it from another .net application, but the webservice seem not to be able to accept the incoming argument (a string) from calls that are not made from .net projects. I want the webservice to dump the raw xml, to a file or something, so that I can tell what the call looks like and hopefully also what is wrong. For example if I send (which does not work): osdcm2rn562 I want to be able to look at what is recieved by the webservice (that way I can compare the .net thing that works with the other that doesn't). The wsdl looks like this: Any help is greatly appreciated! Thanks /EnkelIk

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          I don't know if this will help but when I call a .net webservice from say javascript I have to set the action property in the request object header: var sSOAPAction ="http://tempuri.org/assa\_pmt\_ws/Service1/doSomthing"; xmlhttp.setRequestHeader("SOAPAction", sSOAPAction); As far as I know java and other based services do not require this and leave it blank. You would have to replicate the exact message the .Net clients create. HTH Joe BTW, the javascript client receives the return string as escaped xml i.e. If the payload is xml as a string you must do a replace '>' with '>' etc. before treating as loadable xml.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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