Invoke Method Returning Nothing
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.webservices.

Post a new message to this list...

Jit Prasad
I have had a working application using .NET 1.0 where I am calling an internet web service (Webshere hosted). The web service proxy classes were generated from a wsdl file using wsdl.exe.
I have migrated my app to VS2003, and hence to .NET framework 1.1, however when I call the web service, the result (Result()) returned by the Invoke method is nothing, even though I can see the web service returning a result. The reuslt is base64 encoded. I tried to regenerate the proxy classes, but they are no different to the v1.0.
I am I missing something?
Thanks.
....Jit.
Reply to this message...
 
    
Jit Prasad
Further to my earlier posting, the wsdl and the proxy class are shown below:

*********************wsdl**************************************************************
<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:s0="urn:ServiceRequest" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns="http://schemas.xmlsoap.org/wsdl/"; targetNamespace="urn:ServiceRequest"><types><s:schema elementFormDefault="qualified" targetNamespace="urn:ServiceRequest"><s:complexType name="process3ParmRequest"><s:sequence><s:element minOccurs="0" maxOccurs="1" name="inputHeader" type="s:string"/><s:element minOccurs="0" maxOccurs="1" name="messageControlPayload" type="s:string"/><s:element minOccurs="0" maxOccurs="1" name="inputMessage" type="s:string"/></s:sequence></s:complexType><s:complexType name="process3ParmRequestResponse"><s:sequence><s:element minOccurs="0" maxOccurs="1" name="process3ParmRequestResult" type="s:string"/></s:sequence></s:complexType><s:element name="string" nillable="true" type="s:string"/></s:schema></types><message name="process3ParmRequestSoapIn"><part name="parameters" type="s0:process3ParmRequest"/></message><message name="process3ParmRequestSoapOut"><part name="parameters" type="s0:process3ParmRequestResponse"/></message><portType name="GTPSRouterServiceSoap"><operation name="process3ParmRequest"><input message="s0:process3ParmRequestSoapIn"/><output message="s0:process3ParmRequestSoapOut"/></operation></portType><binding name="GTPSRouterServiceSoap" type="s0:GTPSRouterServiceSoap"><soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http";/><operation name="process3ParmRequest"><soap:operation soapAction="urn:ServiceRequest/process3ParmRequest" style="document"/><input><soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";/></input><output><soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";/></output></operation></binding><service name="GTPSRouterService"><port name="GTPSRouterServiceSoap" binding="s0:GTPSRouterServiceSoap"><soap:address location="http://localhost/GTPSRRWebService/GTPSRouterService.asmx";/></port></service></definitions>

********************Proxy class**********************************************************
'------------------------------------------------------------------------------
' <autogenerated>
' This code was generated by a tool.
' Runtime Version: 1.0.3705.0
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </autogenerated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.ComponentModel
Imports System.Diagnostics
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Xml.Serialization

'
'This source code was auto-generated by wsdl, Version=1.0.3705.0.
'

'<remarks/><System.Diagnostics.DebuggerStepThroughAttribute(), _
System.ComponentModel.DesignerCategoryAttribute("code"), _
System.Web.Services.WebServiceBindingAttribute(Name:="GTPSRouterServiceSoap", [Namespace]:="urn:ServiceRequest")> _
Public Class GTPSRouterService
Inherits System.Web.Services.Protocols.SoapHttpClientProtocol

'<remarks/>
Public Sub New()
MyBase.New
Me.Url = "http://localhost/GTPSRRWebService/GTPSRouterService.asmx";
End Sub

'<remarks/><System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:ServiceRequest/process3ParmRequest", RequestNamespace:="urn:ServiceRequest", ResponseNamespace:="urn:ServiceRequest", Use:=System.Web.Services.Description.SoapBindingUse.Encoded, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _
Public Function process3ParmRequest(ByVal inputHeader As String, ByVal messageControlPayload As String, ByVal inputMessage As String) As String
Dim results() As Object = Me.Invoke("process3ParmRequest", New Object() {inputHeader, messageControlPayload, inputMessage})
Return CType(results(0),String)
End Function

'<remarks/>
Public Function Beginprocess3ParmRequest(ByVal inputHeader As String, ByVal messageControlPayload As String, ByVal inputMessage As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
Return Me.BeginInvoke("process3ParmRequest", New Object() {inputHeader, messageControlPayload, inputMessage}, callback, asyncState)
End Function

'<remarks/>
Public Function Endprocess3ParmRequest(ByVal asyncResult As System.IAsyncResult) As String
Dim results() As Object = Me.EndInvoke(asyncResult)
Return CType(results(0),String)
End Function
End Class

Reply to this message...
 
 
System.AsyncCallback
System.ComponentModel.DesignerCategoryAttribute
System.Diagnostics.DebuggerStepThroughAttribute
System.IAsyncResult
System.Web.Services.Description.SoapBindingUse
System.Web.Services.Protocols.SoapDocumentMethodAttribute
System.Web.Services.Protocols.SoapHttpClientProtocol
System.Web.Services.Protocols.SoapParameterStyle
System.Web.Services.WebServiceBindingAttribute




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com