on 05-16-2006 6:57 AM
Hello,
I am sorry if this is too primitive question for this advanced forum.
I wish to use BAPI_SALESORDER_GETLIST netweaver webservice.
I do NOT want to create a proxy, but want to add web reference in Visual Studio 2003 in C# project.
Can some one provide sample code for using this netweaver webservice in my C# code with above conditions, including .Credential and explain a little bit about every thing ?
Thanks a lot.
ALl necessary information can be found in the media library of the Soap Processor at service.sap.com/connectors .
BTW: You will use a proxy if you add a Web Reference. It is not a .NET Connector proxy, but still a (WS) proxy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can provide you with such a sample, but for VB.Net (and other BAPI / function module). Should be easy to convert to C#. This example covers how the credentials should be used.
Dim d As New WindowsApplication1.WebReference.ZCustomerTestWebservice
Dim service As New WindowsApplication1.WebReference.service
Dim doutput As WindowsApplication1.WebReference.ZCustomerTestWebserviceResponse
service.Credentials = New System.Net.NetworkCredential("user", "password")
service.PreAuthenticate = True
d.IKunnr = ""
d.IVkorg = "1000"
doutput = service.ZCustomerTestWebservice(d)
Edited by: Piotr Sliwinski on Mar 6, 2009 4:58 PM
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.