Two method error in .asmx web service - web-services

I developed a web service and i write with c#. My web service is an asmx. But in my service i have 2 method. first one is helloworld(),second method is insert_Data. All of them is webmethod. But if i want to write third method , my application give me an error. My application couldn't see any method like insert_Data or helloworld or new method is refresh.
I used to Ado.net entity data model,and can't find anything about this problem.
Thanks

Related

SOAP request in .net core 2 for a web service

I'm writing a project in .Net Core 2.2. As a part of it, for the payment service I have to use this web service: The Payment Web Service
My problem is that I want to make a SOAP request, and I don't exactly know how and there are no available documentation about it!
I want to use the SalePaymentRequest method. The sample code from the bank has the following code which uses in web reference: System.Web.Services.Protocols.SoapHttpClientProtocol. Apparently, it is not available in .net core.
In the Following Question there are elements like BasicHttpBinding which I really do not understand how to use! (My Bad!)
I just want to make a sale request and verify it afterwards.

Is a servlet inside a portlet required to make the portlet as a web service?

I have few questions with respect to portlets and servlets. This may be a continuation of
my previous question.
I m trying to create a portlet which should act also as a web service. I dont know Why,
but the client requires it this way. I negotiated with the client that I can make a
separate web service application using simple jersey servlet... but cannot convince.
I have the following doubts:
A portlet by itself cannot represent independently to the outside world. If that is
the case then what is the benefit in making a portlet as a webservice than not making a
complete webservice project with just servlets?
By web searches, I came across few code sample which can make a portlet as a
webservice. These sample codes suggested me to create a portlet, in the web.xml include the jersey-servlet and servlet container to make the portlet as a web service. Though it might work(I m trying hard to make a working codebase) but why to include a servlet container inside the portlet container which is already residing inside a servlet container. Sounds confusing? The following image can convey by doubt:
In this the liferay is a the servlet which is visible to the browser first. This has
multiple portlets in it. If I am making a portlet as a web service then I have to make it
visible to the browser, so I m including a servlet inside the portlet(Its my assumption
according to the sample code from web). This is like taking a round trip to touch my nose.
I really dont understand why this architecture is like that. The following points which I
guess is sensible for making a portlet as web service are:
(i) If I make a servlet(a separate project) for web service then (working as a liferay developer in the team) we cannot claim this as a liferay project.
(ii) If the web service is a portlet then I can have inter-portlet communication. In case of servlet it cannot(if I m not wrong).
Please suggest.
I think this can drive you to what you need. A portlet can be called in a EXCLUSIVE mode, where no portal or portlet content are generate in the response. So you can produce whatever "HTML" or data you need as a response.
Im researching and starting with Restful, but it seams like a request/response HTML communication. The main difference is the annotation that map an HTML to a Class and methods in standard modes. In liferay you can assign an URL to your portlet. It can produce a behaviour like the one in Restful.

Consume webservice Workflow Foundation 4.5

My solution has 2 projects. One is a workflow service and the other is a webservice. I want to know if I can make the workflow consume the webservice without having to create a custom code activity...
Basically the webservice is a call-and-forget kind of thing... I tried the "send" activity but i couldnt manage to get it working...
i also downloaded the code samples from MSDN but couldnt find a match for my case...
As long as your webservice is a WCF compatible service you can do an add service reference and the required custom activities will be generated. And if that works you can also configure a standard Send and ReceiveReply to do the same thing. If you are using an ASMX/WSE style web service this usually works but takes a bit more doing to get the message contract right.

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