My legacy ColdFusion 4.5 app needs to consume a VB.NET web service and I am wondering if anyone has had success deserializing XML using the ColdFusion CFWDDX ACTION="WDDX2CFML"
I have not had success yet and would appreciate any code examples as I cannot use CFINVOKE.
What are you using to Serialize your VB.Net data? If you haven't found a decent means of doing that, then this library: http://boncode.blogspot.com/2011/10/net-wddxnet-library-revision.html looks to be a good one for doing so. You should be able to deserialize well formed WDDX back into CF code with the <cfwddx action="WDDX2CFML">, as you mentioned. If you have some WDDX values that are not being correctly brought over with that tag, then please post that WDDX so we can see what might be causing the problem.
Related
I am fairly new to web API and i'm currently following this tutorial
I have only got as far as task 3 and i'm quite learning a lot.
As you can see the tutorial is using Internet Explorer and I am using Chrome .. for some reason Chrome is returning xml and IE is returning a json object. Should I worry about this or not? i'd love it if Chrome returned a Json object though..
Thank you
WebApi is pretty cool in that it will serialise it's output as JSON or XML based on the accept header sent by the browser.
I expect that Chrome's default is XML, and IE's is JSON.
I can't find a simple configuration change example for Chrome, with most information pointing to having to use a plugin to change the accept header. In Firefox the default is XML but you can adjust it with a config change.
In my project we have one webservice which contain the data like date, time, total number of transaction and all this information i have to print in some other website i am using JSP for printing this information but i don't have idea about how to take data and print the information from webservice because i am new in this technology please help me.
this is my data
<asa-details asa-id="1"><dep_txn>6</dep_txn><pre_auth_txn>3936164</pre_auth_txn><pre_bfd_txn>34</pre_bfd_txn><pre_otp_txn>93</pre_otp_txn><prod_auth_txn>505949</prod_auth_txn><prod_bfd_txn>0</prod_bfd_txn><prod_otp_txn>0</prod_otp_txn></asa-details>
Thank you in advance
First of all, check the wsimport program in your jdk installation. This lets you convert a wsdl file to java classes. (Or use the wsdl2java which comes with cxf)
Next I suggest taking a look at the cxf framework for communicating with the web-service itself: http://cxf.apache.org/
They have really good guides and the framework is well supported.
This framwework will hide all complexity of working with soap envelopes for you. You are just working with java classes.
I know there might be close answers around but I needed help on specific matter.
I have to create a web service that has to accept a URI like below:
serverip/?userID=15068866&serviceID=595&username=222&password=333&message=something
The response should also be in JSON format and the Service SHOULD be RESTful.
Since there is logic behind this service that has been developed by VB .NET, I have to develop this bit using VB .Net too.
If anyone can suggest a very basic tutorial (FOR VB .NET PLEASE NOT C#) or put me in a right direction that would be great.
thanks
This is a basic tutorial in VB.NET which may be helpful to you:
http://visualstudiomagazine.com/articles/2011/06/21/wcnet_configure-wcf-for-rest-with-json.aspx
I have read a few post about this (on stackoverflow as well) and cant seem to get a relevant solution.
I have a standard .NET web service that has one method as below:
[WebMethod]
public SupplyResponseMessage GetSupply(SupplyRequestMessage SupplyRequest)
{
...
}
To debug it, im using log4net writing to a log file and I want it to log the serialized SupplyRequestMessage (hoping in XML) as well, but cant seem to get access to the current HttpContext to do so. What is the recommended way to log the incoming XML that the web service deserializes to create the SupplyRequestMessage object?
SOLUTION
I found exactly what I was looking for in the SoapExtensionAttribute. Here is an article that will help anyone looking for something similar:
Efficient Tracing Using SOAP Extensions in .NET
I have looked into everything but I think this is a unique problem. I have a web service in my website. This web service uses XMLRPC.NET but that hardly matters. i use this web service to get the string sent by the client and convert it into XML.This all is working fine. But the real problem is: I have a .aspx that uses the above written xml to generate a crystal report and save it as a PDF. The problem is I cannot call the .aspx page from my web service as response. redirect does not work. I tried writing the complete crystal report generation and PDF save logic in the web service method but it does not work because the CrystalReportViewer1.reportsource gives an error as it does not recognize the CrystalReportViewer1 in the current context. is there any way that I can do this by redirecting or by using the crystal report logic in the web service or any other way. Seems a little complicated but any help will be greatly appreciated. Please need help.
Thank You