Urgent: WSDL problem with SAP R/3
-
Howdy my friends! I have been developing Pocket PC solution for SAP R/3. But, I faced a problem with web service on VB.NET 2003. My problem is, return parameters are set to "nothing", when I try to invoke web method from VB.NET. Actually, the SOAP response message recieves by client without a problem. I can see the response SOAP message by MS SOAP Trace tool. But Invoke method cannot parse it anyway. As a result i can't get any return value. What's lying behind of it? My sample code as below; ' Set RFC parameters Dim strPrm1 As String Dim strPrm2 As String ' Set URL Dim sURL As String sURL = "http://ybpent:8000/sap/bc/soap/rfc?sap-client=274" ' Set credentials Dim m_Credentials As ICredentials m_Credentials = New NetworkCredential("xxxxx", "xxxxx") ' Set web service Dim m_RfcClientInfoYBT As New dNETSOAP4SAPR3.RfcClientInfoYBT.RFC_CLIENT_INFOService m_RfcClientInfoYBT.Url = sURL m_RfcClientInfoYBT.Credentials = m_Credentials ' Call web service m_RfcClientInfoYBT.RFC_CLIENT_INFO(strPrm1, strPrm2) Proxy method as below; ' _ Public Function RFC_CLIENT_INFO( ByRef HOSTNAME As String, ByRef SYSID As String) As String Dim results() As Object = Me.Invoke("RFC_CLIENT_INFO", New Object(-1) {}) HOSTNAME = CType(results(1), String) SYSID = CType(results(2), String) Return CType(results(0), String) End Function Anybody has an idea about it? Thanks. Orkun GEDiK