RE: Soap Response

From: Dan Rogers (danro_at_microsoft.com)
Date: 12/03/04


Date: Fri, 03 Dec 2004 22:54:14 GMT

Try refreshing the proxy. When you see a null response coming back, it
often means that the serializer did not see the right content that it
expected on the wire.

Regards

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: Soap Response
thread-index: AcTHdLDViDg9mhfyRkuSypob6ADBaA==
X-WBNR-Posting-Host: 210.55.201.197
From: "=?Utf-8?B?Sml0IFByYXNhZA==?=" <JitPrasad@discussions.microsoft.com>
References: <596D72F5-4148-4DFD-83E6-B308F433F7EA@microsoft.com>
Subject: RE: Soap Response
Date: Wed, 10 Nov 2004 14:29:07 -0800
Lines: 170
Message-ID: <F733DE2F-B20E-4D85-A99A-3723EA4DC09A@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
        charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7359
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Further to my earlier email....
The response (results()) is null when the method call returns from the
webservice as per the following code in the proxy class:
        Dim results() As Object = Me.Invoke("process3ParmRequest", New
Object() {inputHeader, messageControlPayload, inputMessage})

The results of the immediate window are:
?results(0)
Nothing

..Jit.

"Jit Prasad" wrote:

> I have been consuming a IBM Websphere (Java) web service using .Net 1.0
front
> end writen in VB.NET. The proxy class submits a soap request and gets a
soap
> response.
> When I migrated the front-end to .NET1.1, the response from the web
service
> appears as null in the proxy class. This only happens with .NET1.1,
NET1.0
> is ok and works fine. I have played around with the
> System.Web.Services.Protocols.SoapDocumentMethodAttribute, but no luck. I
> regenerated the proxy class using WSDL.exe v1.1 - it generated the same
proxy
> as per .NET1.0.
> Could you please advise whether I need to change some other settings, and
> also why the problem only occurs in .NET1.1.
> Find attached the wsdl file and the proxy class.
> ...Jit.
>
> 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:ServiceReque
st/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
> 
> 


Relevant Pages

  • RE: Dropping carriage return characters from web service
    ... It works...I'm just surprised that the proxy was written to drop ... string data in soap response message. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: How create Prosy Class for soap.tcp
    ... This command-line tool is used to create proxy classes from ... to create a proxy class called HelloWorld.cs. ... > that and hows client access that web service. ... > NCConnection As String, ByVal strSQL As String) As DataSet ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • RE: How create Prosy Class for soap.tcp
    ... I Know that I asking about soao.tcp proxy. ... > to create a proxy class called HelloWorld.cs. ... >> that and hows client access that web service. ... >> NCConnection As String, ByVal strSQL As String) As DataSet ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Please help me Run web services from information stored in a datab
    ... Or do you really want to get the WSDL from the server, ... generate proxy code on-the-fly for that WSDL-data? ... To give you an idea what string will be stored in the databse, ... > Once I have the string that describes where I can find the Web Service, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: System.Net.WebException
    ... My network hasnt a proxy buy I m working with the idea.... ... Why do you think that the ASP.NET app can connect and the conolse/windforns ... >> at Proceso.Proceso.MiRequest(String Method, String URL, String ... >> Dim res As HttpWebResponse ...
    (microsoft.public.dotnet.framework)