You need to sign in to do that
Don't have an account?
Outbound Messages with .NET 1.1
Hi i am also trying to use Outbound messages. I am using .NET 1.1 with VB.I followed the information from the link provided above but i am stuck the missing webservice example, here is what i have in my webservice:
<WebMethod()> _
Public Function notifications(ByVal n As notifications) As notificationsResponse
Dim n1 As NotificationService
Return n1.notifications(n)
End Function
- I got a soap header error:
Server did not recognize the value of HTTP Header SOAPAction
- After research i found that this could be because the soap headers namespaces did not match so i had ago at matching them up but i still get the same.
- Here is my webservice declaration:
<System.Web.Services.WebService(Name:="NotificationBinding", Description:="WebService for the SalesForce Integration", [Namespace]:="http://soap.sforce.com/2005/09/outbound"> _
Public Class SalesForceIntegration
Inherits System.Web.Services.WebService
- My classes that wsdl.exe created was called NotificationService.vb
<System.Web.Services.WebServiceBindingAttribute(Name:="NotificationBinding", [Namespace]:="http://soap.sforce.com/2005/09/outbound", _
System.Xml.Serialization.XmlIncludeAttribute(GetType(sObject))> _
Public MustInherit Class NotificationService
Inherits System.Web.Services.WebService
<System.Web.Services.WebMethodAttribute(), _
System.Web.Services.Protocols.SoapDocumentMethodAttribute("", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Bare)> _
Public Function notifications(<System.Xml.Serialization.XmlElementAttribute("notifications", [Namespace]:="http://soap.sforce.com/2005/09/outbound"> ByVal notifications1 As notifications) As <System.Xml.Serialization.XmlElementAttribute("notificationsResponse", [Namespace]:="http://soap.sforce.com/2005/09/outbound"> notificationsResponse
Dim r As notificationsResponse = New notificationsResponser.Ack = True
Return r
End Function
Private objects As ArrayList = New System.Collections.ArrayList
Public Function CurrentO jects() As System.Collections.ArrayList
Return CType(objects.Clone(), ArrayList)
End Function
End Class
Any Help would be very greatfully recieved, Thanks Dan