Web service consumer and provider concept

Mohit Yadav
Tera Expert

Hi Friends,

I have a confusion her in the concept of Provider and Consumer.

According to concept which i read on SNOW wiki, if SOAP Message (OUTBOUND) is configured on your SNOW instance then the instance is "Consumer" And if inbound web service is configured on your instance then the instance is "Provider".

Now here the Scenario which i have implemented.

1.I have one instance https://dev1.service-now.com/navpage.do on which i have configured outbond web service(SOAP) with WSDL of another instance ashttps://dev14240.service-now.com/u_incident_web_service.do?WSDLhttps://dev2.service-now.com/u_incident_web_service.do?WSDL .  

2.I have another instance https://dev2.service-now.com/navpage.do on which i have configured inbound web service with WSDL https://dev2.service-now.com/u_incident_web_service.do?WSDL.

3.When ever a incident is created in the instance 1 (dev1), it is getting inserted into the instance 2 (dev2).

4. But according to concept if i am taking data from somewhere to service now instance our instance should be the consumer(it should have outbound web service configured to be a consumer.), but here my dev2 is taking data and it have inbound web service configured (means it become a provider accrding to concept )

5. And i configure Outbound web service (SOAP) on to the dev1(which is basically working as 3rd Party application from which we are updating(insertion of incident record) my instance dev2.)

Conclusion i am totally confused in this concept because theory is saying something else and experiment is different which i implemented.

2 REPLIES 2

Rushit Patel2
Tera Guru

Hi mohit,



see this video .


it might clear your doubt.



if your instance is receiving the data it is consumer and if it is sending data then it is provider. dont think like this.



think in terms of which instance is providing WSDL.


when u create an Outbound web service(insatance-1). u enter WSDL of other instance(instance-2) right?. that means it is consuming the WSDL of other instance.So it is the Consumer of web service which is   provided by instance-2(Provider-Inbound Web service). now u can do any operation on that other Instance(instance-2).   u can post,update,get(incident).



i hope it helps.



Thanks,


Rushit Patel


THANKS RUSHIT,



I watch the vedio, in vedio if the inbound web service is configured on SNOW instance, then the 3 rd party tool send the request and service now is returning the data as response, but in my case inbound is configured on my instance 2, here it is accepting data (i think) from instance 1(as 3 rd party tool), and updating the service now incident table by entering a new incident record in incident table. and i think no response is going back.



Please help me to understand this process of request and response.



Regards,


Mohit