P
Peter van der veen
Hi
In my porject i use a custom header to be added to the SOAP message.
I added the the custom SOAP header to the follwoing function which is
in the proxy class.
But when invoking the proxy for the first time i got the message
Method XX cannot be reflected, where XX is the name of this function.
When i remove the soapheader attribute everythings works, but no
custom header is then send
How to solve?
<System.Web.Services.Protocols.SoapHeader("Vendor",
Direction:=SoapHeaderDirection.InOut)> _
<System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace:="http://berichten.communicatie.ech.bevalue.com",
ResponseNamespace:="https://echstag.ilcampo.com/axis/services/ECHBerichtenServices")>
_
Public Function zetAflosOpdracht(ByVal in0 As AflosOpdracht)
As
<System.Xml.Serialization.SoapElementAttribute("zetAflosOpdrachtReturn")>
Acknowledgement
Dim results() As Object = Me.Invoke("zetAflosOpdracht",
New Object() {in0})
Return CType(results(0), Acknowledgement)
End Function
In my porject i use a custom header to be added to the SOAP message.
I added the the custom SOAP header to the follwoing function which is
in the proxy class.
But when invoking the proxy for the first time i got the message
Method XX cannot be reflected, where XX is the name of this function.
When i remove the soapheader attribute everythings works, but no
custom header is then send
How to solve?
<System.Web.Services.Protocols.SoapHeader("Vendor",
Direction:=SoapHeaderDirection.InOut)> _
<System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace:="http://berichten.communicatie.ech.bevalue.com",
ResponseNamespace:="https://echstag.ilcampo.com/axis/services/ECHBerichtenServices")>
_
Public Function zetAflosOpdracht(ByVal in0 As AflosOpdracht)
As
<System.Xml.Serialization.SoapElementAttribute("zetAflosOpdrachtReturn")>
Acknowledgement
Dim results() As Object = Me.Invoke("zetAflosOpdracht",
New Object() {in0})
Return CType(results(0), Acknowledgement)
End Function