Click here to Skip to main content
15,911,646 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: String from vb to VC Pin
Matthew Hazlett24-Feb-04 21:28
Matthew Hazlett24-Feb-04 21:28 
GeneralRe: String from vb to VC Pin
Dave Kreskowiak25-Feb-04 6:47
mveDave Kreskowiak25-Feb-04 6:47 
GeneralVB6 & VS.NET Pin
cnurse24-Feb-04 16:04
cnurse24-Feb-04 16:04 
GeneralRe: VB6 & VS.NET Pin
Dave Kreskowiak24-Feb-04 19:17
mveDave Kreskowiak24-Feb-04 19:17 
GeneralRe: VB6 & VS.NET Pin
cnurse24-Feb-04 19:22
cnurse24-Feb-04 19:22 
GeneralFileSystemWatcher event handler Pin
WESHILL24-Feb-04 12:09
WESHILL24-Feb-04 12:09 
GeneralRe: FileSystemWatcher event handler Pin
John Kuhn24-Feb-04 14:25
John Kuhn24-Feb-04 14:25 
GeneralUrgent: WSDL problem with SAP R/3 Pin
Orkun GEDiK24-Feb-04 8:42
Orkun GEDiK24-Feb-04 8:42 
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;

'<remarks/>
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.sap.com/RFC_CLIENT_INFO", RequestNamespace:="urn:sap-com:document:sap:rfc:functions", ResponseNamespace:="urn:sap-com:document:sap:rfc:functions", Use:=System.Web.Services.Description.SoapBindingUse.Default, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _
Public Function RFC_CLIENT_INFO(<System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)> ByRef HOSTNAME As String, <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)> ByRef SYSID As String) As <System.Xml.Serialization.XmlElementAttribute("HOSTID", Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)> 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
QuestionHow to retrieve network Drives/All Computers in Network Pin
Tasnim24-Feb-04 1:04
Tasnim24-Feb-04 1:04 
AnswerRe: How to retrieve network Drives/All Computers in Network Pin
John Kuhn24-Feb-04 14:33
John Kuhn24-Feb-04 14:33 
GeneralReportEvent fails Pin
alex120523-Feb-04 23:36
alex120523-Feb-04 23:36 
GeneralRe: ReportEvent fails Pin
Dave Kreskowiak24-Feb-04 5:20
mveDave Kreskowiak24-Feb-04 5:20 
GeneralCrystalViewer Formula Field in VB.net Pin
Tasnim23-Feb-04 22:31
Tasnim23-Feb-04 22:31 
GeneralRe: CrystalViewer Formula Field in VB.net Pin
John Kuhn24-Feb-04 15:00
John Kuhn24-Feb-04 15:00 
GeneralBut I am not using Report Document Pin
Tasnim24-Feb-04 19:52
Tasnim24-Feb-04 19:52 
GeneralRe: But I am not using Report Document Pin
Dave Kreskowiak25-Feb-04 6:39
mveDave Kreskowiak25-Feb-04 6:39 
GeneralRe: But I am not using Report Document Pin
John Kuhn25-Feb-04 10:10
John Kuhn25-Feb-04 10:10 
GeneralHelp me please... Pin
badaikeramat23-Feb-04 21:29
badaikeramat23-Feb-04 21:29 
GeneralRe: Help me please... Pin
Dave Kreskowiak24-Feb-04 6:13
mveDave Kreskowiak24-Feb-04 6:13 
GeneralSet Printer Stapling Pin
Edbert P23-Feb-04 19:39
Edbert P23-Feb-04 19:39 
GeneralRe: Set Printer Stapling Pin
Dave Kreskowiak24-Feb-04 5:48
mveDave Kreskowiak24-Feb-04 5:48 
GeneralRe: Set Printer Stapling Pin
Edbert P24-Feb-04 10:59
Edbert P24-Feb-04 10:59 
QuestionEmail &quot;To&quot; functionality - how to do? Pin
Malcolm Green23-Feb-04 19:19
Malcolm Green23-Feb-04 19:19 
AnswerRe: Email &quot;To&quot; functionality - how to do? Pin
Dave Kreskowiak24-Feb-04 5:50
mveDave Kreskowiak24-Feb-04 5:50 
QuestionHow to make the form moveable? Pin
younghand23-Feb-04 16:23
younghand23-Feb-04 16:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.