Hello,
I am working with a developer who is attempting to use the Sugar SOAP interface using Visual Studio 2003 and Visual Basic .Net and is having a very hard time getting he code to simply connect to the SOAP service.
The sugar version is 5.5.2
I work with perl and have had success using the soap lite module so I can confirm that the SOAP service is working.
He has tried PocketSoap which converts the SugarCrm WSDL description nicely to a Visual Basic
project but the result is a much older version of the Visual Basic (6.0) and we cannot find filters to convert it to Visual Studio 2003 format and Visual Basic .Net. It could be done by hand but seems awfully big project and has to be redone each time the database definition is changed.
The Microsoft WSDL to SoapClient Tool it ends in an error message. This error message is below. If you check the created Visual Basic file (koe.vb) you can see that it terminates while it is creating login-SoapMethod
How are others accessing sugarCRM with Visual Studio 2003 format and Visual Basic .Net? Any advice?
Best,
Andrew Smith
Microsoft (R) WSDL to SoapClient Utility
[Microsoft (R) Web Services Enhancements, Version 2.0]
Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.
An error occurred processing this WSDL. More information:
System.Exception: Invalid WSDL file from SoapService
at ClientGen.ClientGen.GetBindingType(ServiceDescript ion desc, OperationBinding op, Boolean isInput)
at ClientGen.ClientGen.WriteVBOperationBinding(Stream Writer writer, ServiceDescription desc, OperationBinding op)
at ClientGen.ClientGen.WriteOperationBinding(StreamWr iter writer, ServiceDescription desc, OperationBinding op)
at ClientGen.ClientGen.WriteClass(StreamWriter writer, ServiceDescription desc, String className, String url, Binding binding)
at ClientGen.ClientGen.GenerateCode(ServiceDescriptio n desc, String outputFile, XmlSchemas schemas)
at ClientGen.ClientGen.GenerateCode(String descriptionFile, String outputFile, XmlSchemas schemas)
at ClientGen.Class1.Main(String[] arguments)
--------------------------------------
'------------------------------------------------------------------------------
' <autogenerated>
' This code was generated by a tool.
' Runtime Version: 1.1.4322.2443
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </autogenerated>
'------------------------------------------------------------------------------
Option Strict Off
Option Explicit On
Imports Microsoft.Web.Services2
Imports Microsoft.Web.Services2.Addressing
Imports Microsoft.Web.Services2.Messaging
Imports System
Imports System.Xml
Imports System.Xml.Serialization
'
'InfoVersionComment, WseWsdl2, Version=2.0.3.0, Culture=neutral, PublicKeyToken=26ba029e599ec4f8, RunTime Version: 1.1.4322.2443
'
<SoapService("http://www.sugarcrm.com/sugarcrm")> _
Public Class sugarsoap
Inherits SoapClient
Public Sub New()
MyBase.New(New Uri("http://192.168.0.25/soap.php"))
End Sub
<SoapMethod("http://192.168.0.102/soap.php/is_user_admin")> _
Public Function is_user_admin( request As SoapEnvelope) As SoapEnvelope
Return MyBase.SendRequestResponse("is_user_admin", request)
End Function
Public Function Beginis_user_admin( request As SoapEnvelope, callback As System.AsyncCallback, asyncState As Object) As IAsyncResult
Return MyBase.BeginSendRequestResponse("is_user_admin", request, callback, asyncState)
End Function
Public Function Endis_user_admin( asyncResult As IAsyncResult ) As SoapEnvelope
Return MyBase.EndSendRequestResponse(asyncResult)
End Function
<SoapMethod("http://192.168.0.102/soap.php/login")> _


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks