This Forum is ARCHIVE only
For LightSwitch questions,
please use the official forums at:

http://social.msdn.microsoft.com/forums/en-US/lightswitch/threads


SOAP Web service
Last Post 30 Jul 2013 04:57 PM by Liviu01. 9 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
DedoOneUser is Offline
New Member
New Member
Send Private Message
Posts:14
Avatar

--
11 May 2013 11:38 AM
    Hi all,

    I am trying to consume Adobe's Echosign API into my lightswitch application. It's webservice is a SOAP Web Service, whereby I can make HTTP requests to their SOAP gateway and receive synchronous responses.

    I was successful in integrating it into my development environment, by using Lightswitch's server side 'Service Reference', which was able to retrieve all the various classes from their WSDL url.

    However, once I publish into a IIS environment, my application fails to communicate with their web service. Do I need to build this via a WCF RIA service?

    Any help would be most welcomed.

    Roger

    DedoOneUser is Offline
    New Member
    New Member
    Send Private Message
    Posts:14
    Avatar

    --
    11 May 2013 04:18 PM
    If I can connect with the SOAP services OK within Visual Studio's development environment, I should be able to do so in a IIS production environment. If so, I am thinking it might be a https binding issue within the web.config file.

    I'll have to tinker with it some more. If anyone thinks I am heading in the wrong direction, please let me know.

    BTW, here is a snippet of my web.config file:
    
      <system.serviceModel>
        <client>
          <endpoint address="https://egrain.echosign.com/services/EchoSignDocumentService15" binding="basicHttpBinding" bindingConfiguration="EchoSignDocumentService15HttpBinding" contract="ServiceReference1.EchoSignDocumentService15PortType" name="EchoSignDocumentService15HttpPort" />
        </client>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
        <behaviors>
          <serviceBehaviors>
            <behavior>
              <dataContractSerializer maxItemsInObjectGraph="6553600" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <bindings>
          <basicHttpBinding>
            <binding name="EchoSignDocumentService15HttpBinding">
              <security mode="Transport" />
            </binding>
            <binding name="EchoSignDocumentService15HttpBinding1" />
          </basicHttpBinding>
          <webHttpBinding>
            <binding maxReceivedMessageSize="6553600" />
          </webHttpBinding>
        </bindings>
      </system.serviceModel>
     
    Michael WashingtonUser is Offline
    Send Private Message
    Posts:1313
    Avatar

    --
    11 May 2013 09:36 PM
    1) I did not know it was possible to connect to a web service in LightSwitch without using a WCF RIA Service (you can google for examples)
    2) However, if you have it working when you run in Debug mode then it must be possible. If it does not work when you publish I suspect that the web.config is missing settings
    3) Google LightSwitch tracing that should help you debug Production application problems.
    -----------
    Michael Washington
    http://LightSwitchHelpWebsite.com
    DedoOneUser is Offline
    New Member
    New Member
    Send Private Message
    Posts:14
    Avatar

    --
    12 May 2013 06:22 PM
    Thanks for the reply Michael. I'll update this thread as I learn more.

    BTW, the LightSwitch tracing was something I was looking for, as Fiddler operates outside of the application. Thank you for linking that!

    Roger
    DedoOneUser is Offline
    New Member
    New Member
    Send Private Message
    Posts:14
    Avatar

    --
    13 May 2013 06:24 AM
    I resolved the issue with many thanks to the Lightswitch Tracing, and your recommendation Michael.

    My application fetches a templated document, populates many fields within it, and then sends it out for signatures. The problem was due to the fact my application could not find the template. I just changed it from a relative path to an absolute path and everything works as it should

    Once again Michael, you have helped me greatly.

    Roger
    Michael WashingtonUser is Offline
    Send Private Message
    Posts:1313
    Avatar

    --
    13 May 2013 06:54 AM
    Thank you for reporting back because that helps others.
    -----------
    Michael Washington
    http://LightSwitchHelpWebsite.com
    DedoOneUser is Offline
    New Member
    New Member
    Send Private Message
    Posts:14
    Avatar

    --
    13 May 2013 09:07 AM
    BTW, this is the third Web Service my LightSwitch application has consumed without the need of a WCF RIA Service.

    The first consumes www.webservicex.net, and was built with thanks to Keith's posting here: http://code.msdn.microsoft.com/wind...0#content.

    The second consumes Bing Maps API, whereby, my application requires to calculate the exact driving distance between two points.

    And now Echosign's API.

    The last two were built upon Paul Patterson's Demo (http://www.paulspatterson.com) in how to send an email without the need of a "fancy" WCF RIA Service. You will have to sign up to his website to have access to it.

    If you wish, I can put together a Demo in how to access Bing Maps and also Echosign and post it here within the Forums.

    Roger
    LiviuUser is Offline
    New Member
    New Member
    Send Private Message
    Posts:3
    Avatar

    --
    24 Jul 2013 04:03 PM
    Hi Roger,

    Would be great to post a demo here if you wish. I also tried to integrate a SOAP service but I couldn't retrieve the classes I needed from it and I ended up using a WCF ria where I have integrated that service.
    DedoOneUser is Offline
    New Member
    New Member
    Send Private Message
    Posts:14
    Avatar

    --
    30 Jul 2013 03:18 PM
    Will do Liviu01... As soon as I can get my desk cleared off
    LiviuUser is Offline
    New Member
    New Member
    Send Private Message
    Posts:3
    Avatar

    --
    30 Jul 2013 04:57 PM
    Ok, Thanks.
    You are not authorized to post a reply.


    Microsoft Visual Studio is a registered trademark of Microsoft Corporation / LightSwitch is a registered trademark of Microsoft Corporation