Topic
  • 5 replies
  • Latest Post - ‏2016-09-09T12:02:00Z by TabishAhmed
MukeshRathod
MukeshRathod
1 Post

Pinned topic Integrating With Leads using WebService

‏2012-07-17T07:57:42Z |
In this blog we will run through an example in which we will create Product in Leads Application through WebService. Leads also provides a way in which you can test the ALI scripts without actually creating a SOAP
Client.

Step 1: Creating an ALI script :

In the script below, MSIRequestSource represents the Soap Request. This is available in Xml form. The Execution part of Script parses the Name and Code from the Soap Request and creates an Product in Leads.The Script Outputs the Product Name and Code using XmlWriter.

ALI Script to Create Product:(This script can be invoke using Soap webservices Library like Axis)

<msi>
<source>
<MSIRequestSource>
<out><port>XML_IN</port></out>
</MSIRequestSource>
</source>
<main>
<xmlparser>
<in><port>XML_IN</port></in>
<xquery>
<template>/product/name</template>
<out><port>PRODUCT_NAME</port></out>
</xquery>
<xquery>
<template>/product/code</template>
<out><port>PRODUCT_CODE</port></out>
</xquery>
</xmlparser>
<product>
<create>
<setField>
<attribute>Name</attribute>
<in><port>PRODUCT_NAME</port></in>
</setField>
<setField>
<attribute>ProductCode</attribute>
<in><port>PRODUCT_CODE</port></in>
</setField>
</create>
</product>
<xmlwriter>
<element><name>product</name></element>
<element><name>product/name</name><in><port>PRODUCT_NAME</port></in></element>
<element><name>product/code</name><in><port>PRODUCT_CODE</port></in> </element>
<out><port>XML_OUT</port></out>
</xmlwriter>
<msiresponse>
<in><port>XML_OUT</port></in>
</msiresponse>
</main>
</msi>

Step 2 : Publishing the Web service
You need drop in the newProduct-webMode.ali newProduct-webMode-server.conf files attached in leads.war\msi\installed of deployment. Theses files have the ALI Script above and its registration file.
Note : By default leads will use the admin user to start the WebService execution engine.

Step 3: Test The Web Service:
Login to leads and navigate to below link
http://host:port/leads/msi.jsp
This page will Display list of all MSI Service that available in the Leads installation.Click on the service named newProduct-webMode. Use the below sample Soap Request Snippet in Test Client.
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<product>
<name>SchoolOffer</name>
Fall2007 </product>
</soapenv:Body>
</soapenv:Envelope>

Once done you see an Product SchoolOffer has been created in Leads.
  • buydissertationonline
    1 Post

    Re: Integrating With Leads using WebService

    ‏2016-07-09T10:26:06Z  

    You have given good example to create Product in Leads Application through WebService. I am to be a part of the outstanding. All the information you share is quite meaningful and helpful. Please do share this kind of information again and again.

    Buy dissertation online

     

  • jenny23
    jenny23
    3 Posts

    Re: Integrating With Leads using WebService

    ‏2016-07-22T09:28:23Z  

    Pokemon go is the biggest success of the era and it has increased the overall share of ninetendo and with it popular there are so many website giving the pokemon go cheats online. This has made the game more interesting and you can get pokecoins and pokeballs for them.

  • ridis
    ridis
    6 Posts

    Re: Integrating With Leads using WebService

    ‏2016-08-06T23:08:25Z  
    • jenny23
    • ‏2016-07-22T09:28:23Z

    Pokemon go is the biggest success of the era and it has increased the overall share of ninetendo and with it popular there are so many website giving the pokemon go cheats online. This has made the game more interesting and you can get pokecoins and pokeballs for them.

    This is Best blog high interesting and full of information Great one of story. I still waiting for next. Keep posting pokemon go hack

  • ridis
    ridis
    6 Posts

    Re: Integrating With Leads using WebService

    ‏2016-08-06T23:09:16Z  

    You have given good example to create Product in Leads Application through WebService. I am to be a part of the outstanding. All the information you share is quite meaningful and helpful. Please do share this kind of information again and again.

    Buy dissertation online

     

    I actually don't find out know a amount with enable that your chosen blogs and forums give. I believe, I recognize not wearing running shoes them weren't for your personal blogs and forums I will can't you create determined to support by using this works. The following company presents a it has the term plus Everyone loves toughness they give you

    pokemon go hack

  • TabishAhmed
    TabishAhmed
    2 Posts

    Re: Integrating With Leads using WebService

    ‏2016-09-09T12:02:00Z  

    All these web service leads are accurate. Thanks for the help as we were looking for such post or article from a long time. It's really helpful information. Thesis Writing Help Service