Grails lagan Integration - web-services

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.

Related

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

GWT: Expose the service implementation class as web service

Problem scenario is: I am writing a Google Gadget. Data presented in the gadget will come from my deployed GWT app. I am planing to call the web service from Java script to show the required data.
I need to know how I can expose the Service implementation class like GreetingServiceImpl(generated by default as sample in Eclipse GWT project) as web service.
I did tried to to expose the logic using approach suggested here(http://igorshare.wordpress.com/2009/05/20/building-gwt-web-clients-part-2-how-to-expose-rest-full-jax-rs-service-with-jersey-on-tomcat-server/).
But rather than creating the dynamic web project, I created the Google web project in Eclipse. And I am getting the 404 exception.
Any suggestions why I am getting 404 error?
Regards,
Vikram
Check this: Retrieving JSON Data

Add SugarCRM REST services to NetBeans

I'm trying to use NetBeans "Add Web Service" wizard to see SugarCRM REST web services. But when I insert url 'http://ip/sugarcrm/service/v2/rest.php' (or 'http://ip/sugarcrm/service/v2/rest.php?wadl') I receive the error message:
"cannot determine if the service is of type wsdl or wadl".
I have already included JAX-RPC plugin, as mentioned in 'http://stackoverflow.com/questions/4762149/adding-new-web-services-in-netbeans', but this not helped. In fact, I think NetBeans doesn't need RPC plugins to connecto to REST services...
Any help?
As far as I know, Sugar uses the same methods and types for both SOAP and Rest. Can Netbeans interpret a soap wsdl for rest purposes?
I don't think you're using the correct URLs.
One of the URLs in your post: http://ip/sugarcrm/service/v2/rest.php -> is trying to go to a host called "ip". Is that a host in your network? If not, then its going nowhere.

Creating a crystal report in a web service that uses XMLRPC

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

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