How do I dump the raw xml in call to webservice?
-
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
-
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
...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
-
...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
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
-
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
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.