Creating a crystal report in a web service that uses XMLRPC - web-services

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

Related

Returning Json objetcs in Chrome using ASp.Net Web Apis

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.

Grails lagan Integration

I have a grails project where I need to place a report in a CRM called Lagan. I am using grails cxf client for accessing SOAP web services of Lagan. By following the example given in https://github.com/Grails-Plugin-Consortium/grails-cxf-client-demo
I am not able to correctly set the configuration parameters in conf file. I got a user name and password and url for accessing the lagan server which is part of a website.
Does anybody have experience in integraing with Lagan?
Starting with new web service is always hard part. I found useful to first figure out correct SOAP envelope. For example using this https://chrome.google.com/webstore/detail/wizdler/oebpmncolmhiapingjaagmapififiakb plugin. When you have envelope that is working fine you can start troubleshooting your library. Review SOAP differences.

SOAP Web Service basics

am new on WS.
some simple questions in my mind, please try to solve it.
i did a demo WS for Calculator on calculator(), where it has one UI where i enter values for it, internally pass it to WS. Ok i got answer/output. but if i want to create only webservice which take/give xml data or just give xml data. how can i create it.
i found some WS URL's about some fame company. is it used by using by opening Connection. how they define this URL? am using MyEclipse10 when i went to create new WS, needed to use Java Bean class for create it. ok, if i create myWS url then how it ll get call? because it is JavaBean?
and if just want to create WS then i need not required to create New WS client?
i dont know it is simple or may be foolish question, when i walk on WS i stop here. i feel like , without basic knowledge started to build it.
please, clear it.
Thanx.
MyEclipse (as well as Eclipse, IBM D Developer, etc) let you create a Java Web service server in one of two ways:
Bottom up Java Bean: you supply a bean, it turns it into a WSDL (and generates the corresponding stub code)
Top down WSDL: you supply a WSDL, and it generates the corresponding stub code
When a company creates a web page, they set up a web server and publish some HTML pages on it.
When a company publishes a WSDL, they also set up a web server ... and publish an XML WSDL on it.
The URL you go to in order to read a WSDL is just an ordinary HTTP web server, that happens to be serving an XML WSDL at that location.
The WSDL specifies where the service can be found, and what operations and data types the service uses. A WSDL you create, or a WSDL that's published by some other company.
'Hope that helps

calling web services from UNIX

I have a requirement to kickoff a workflow which is in salesforce.com thorugh web service from UNIX box. Can any one suggest me options or guide lines to achive this scenario?
I don't think you can just "kick off workflows". You'll have to perform an insert or update of records in Salesforce that will satisfy the workflow's entry criteria.
There's a Java tool called Data Loader for your basic data manipulation activities (you can download it from your own production org)
and it can be scripted for scheduled runs, has config file where you can store user's password in secure way etc. Check out the pdf guide for more ("Command Line Quick Start" chapter)
So I don't think you really need a webservice call...
Unless I misunderstood and you're talking about calling an Apex class' method that has "webservice" keyword and it will somehow perform the updates?
In that case you'll need to download the WSDL file generated for this class (Setup->Develop->Classes) and well, consume it in language of your choice (Java, PHP, Python... this link will help, steps aren't too different), then do your command line magic?
http://wiki.developerforce.com/page/Integration has tons of resources for you :)
Salesforce uses SOAP for their web service. They don't have restful web services now. Just request them to give the wsdl file.
Use this wsdl file to generate the java code. After that get their webService url so that you can proceed with your data pulling
This link may help you..
http://salesforce-walker.blogspot.in/2011/12/to-access-salesforce-data-from-java-we.html
Hope this helps

Create SOAP message from WSDL using axiom

I'm a starting a project which consist in sending a request to a web-service (which is already available) and parsing the response. I have the WSDL and URL endpoints. Does anyone have a startup tutorial on how to build something from there?
I would like to use Axis2 + Axiom to send the service request and receive and process the response. I'm using eclipse as dev env. I've been search for a tut on how to do this but with no success.
Any suggestion would be greatly appreciated!
this might help you
creating a webservice client using eclipse
I don't know about Axiom, but SOAP UI is a terrific tool for testing web services in just the manner you describe.
I don't know if Eclipse has a plug-in for it. (They do for everything else.) IntelliJ supports it, so that's how I use it.
Well in conclusion, I did find two very useful links for the Apache axis2 project, got it working in no time!
A deep explanation Invoking Web Services using Apache Axis2:
http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html
For code generation from WSDL:
http://axis.apache.org/axis2/java/core/tools/eclipse/wsdl2java-plugin.html