What technology is nopCommerce Web Services?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 năm cách đây
Hello,

It seems that web services can be provided using four different technologies:

Web Services

WCF

WCF Rest

WEB API

Which of these technologies describes the web services provided in nopCommerce 3.0 and up?

Thanks,
Tony
9 năm cách đây
There is none of these currently in nopCommerce.
If you are going to implement it, web api is the way to go.
9 năm cách đây
Nop-Templates.com wrote:
There is none of these currently in nopCommerce.
If you are going to implement it, web api is the way to go.


I'm not sure of what you mean.

What is this: Nop.Plugin.Misc.WebServices?

Thanks,
Tony
9 năm cách đây
WCF
\Plugins\Nop.Plugin.Misc.WebServices\Remote\NopService.svc
7 năm cách đây
New York wrote:
WCF
\Plugins\Nop.Plugin.Misc.WebServices\Remote\NopService.svc

Hi.
ver 3.8 ... almost the same

http://localhost:15536/Plugins/Misc.WebServices/Remote/NopService.svc

... and as a result you will get


NopService Service

You have created a service.

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:

svcutil.exe http://localhost:15536/Plugins/Misc.WebServices/Remote/NopService.svc?wsdl

You can also access the service description as a single file:

http://localhost:15536/Plugins/Misc.WebServices/Remote/NopService.svc?singleWsdl

This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example:

C#

class Test
{
    static void Main()
    {
        NopServiceClient client = new NopServiceClient();

        // Use the 'client' variable to call operations on the service.

        // Always close the client.
        client.Close();
    }
}


Visual Basic

Class Test
    Shared Sub Main()
        Dim client As NopServiceClient = New NopServiceClient()
        ' Use the 'client' variable to call operations on the service.

        ' Always close the client.
        client.Close()
    End Sub
End Class

Best Regards.
7 năm cách đây
Have a look at this nopCommerce Web Api plugin by SevenSpikes: https://github.com/SevenSpikes/nopCommerce/tree/Web-Api-3.70
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.