Workflow Soluiton

 View Only
  • 1.  Calling Web Services

    Posted Apr 03, 2009 09:09 AM
    Hello,

    I have a set of common services that I want to expose as a web service and call from different workflows. I can publish a web service, but I am not clear on how to incorporate a web service into other projects and retain the data that is generated. If anyone has experience working with this I would appreciate any assistance.

    Thank You :-)

    Cary


  • 2.  RE: Calling Web Services

    Posted Apr 03, 2009 09:14 AM
    A generated web service component is what you're looking for. Once you have a published web service, run through the Web Server Caller generator to make your component(s).


  • 3.  RE: Calling Web Services

    Posted Apr 03, 2009 01:54 PM

    Hello,

    That is the direction that I have tried, but I end up with the same error message each time.

    My method is to publish the webform to the server, take the URL that is used access the form and paste it into the URL space and add it. Any ideas what step I am missing?

    Thanks

    Cary

    Cannot get request from url:
    http://POCCA4WEBDEV03/Electronic_Signature/composer.aspx?StartWorkflow=true
    System.InvalidOperationException: There is an error in XML document (2, 2). ---> System.InvalidOperationException: <html xmlns='http://www.w3.org/1999/xhtml'> was not expected.
       at System.Web.Services.Description.ServiceDescriptionSerializationReader.Read125_definitions()
       at System.Web.Services.Description.ServiceDescription.ServiceDescriptionSerializer.Deserialize(XmlSerializationReader reader)
       at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
       --- End of inner exception stack trace ---
       at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
       at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
       at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
       at System.Web.Services.Description.ServiceDescription.Read(XmlReader reader, Boolean validate)
       at System.Web.Services.Description.ServiceDescription.Read(XmlReader reader)
       at LogicBase.Framework.WSDLProxyGen.ReadService(ICredentials credentials, String url, ServiceDescriptionImporter importer)
       at LogicBase.Framework.WSDLProxyGen.GenerateProxy(ICredentials credentials)
       at LogicBase.Framework.WSDLProxyGen.GenerateProxyAssembly(Boolean generateInMemory, ICredentials credentials)
       at LogicBase.Framework.WebserviceParser.Load(String PathToSourceWSDL, Boolean generateProxyAssemblyInMemory)
       at LogicBase.Framework.WebserviceParser.Load(String PathToSourceWSDL)
       at LogicBase.Components.DynamicWebserviceCaller.DynamicWebServiceGenerator.GetWebMethods(UrlReference[] urls)
    System.InvalidOperationException: There is an error in XML document (2, 2). ---> System.InvalidOperationException: <html xmlns='http://www.w3.org/1999/xhtml'> was not expected.
       at System.Web.Services.Description.ServiceDescriptionSerializationReader.Read125_definitions()
       at System.Web.Services.Description.ServiceDescription.ServiceDescriptionSerializer.Deserialize(XmlSerializationReader reader)
       at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
       --- End of inner exception stack trace ---
       at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
       at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
       at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
       at System.Web.Services.Description.ServiceDescription.Read(XmlReader reader, Boolean validate)
       at System.Web.Services.Description.ServiceDescription.Read(XmlReader reader)
       at LogicBase.Framework.WSDLProxyGen.ReadService(ICredentials credentials, String url, ServiceDescriptionImporter importer)
       at LogicBase.Framework.WSDLProxyGen.GenerateProxy(ICredentials credentials)
       at LogicBase.Framework.WSDLProxyGen.GenerateProxyAssembly(Boolean generateInMemory, ICredentials credentials)
       at LogicBase.Framework.WebserviceParser.Load(String PathToSourceWSDL, Boolean generateProxyAssemblyInMemory)
       at LogicBase.Framework.WebserviceParser.Load(String PathToSourceWSDL)
       at LogicBase.Components.DynamicWebserviceCaller.DynamicWebServiceGenerator.GetWebMethods(UrlReference[] urls)



  • 4.  RE: Calling Web Services

    Posted Apr 06, 2009 09:30 AM
    OK, it looks like you've published this WF as a form start and you're trying to access the composer.aspx page as your webservice based on the error message. What you want to do is publish the workflow as a webservice (Publishing tab - Workflow Type = Webservice), and try contacting the .asMx file that gets created as a result.