473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Soap Response

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.SoapDocumentMethodAt tribute, 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("c ode"), _

System.Web.Services.WebServiceBindingAttribute(Nam e:="GTPSRouterServiceSoap",
[Namespace]:="urn:ServiceRequest")> _
Public Class GTPSRouterService
Inherits System.Web.Services.Protocols.SoapHttpClientProtoc ol

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

'<remarks/>

<System.Web.Services.Protocols.SoapDocumentMethodA ttribute("urn:ServiceRequest/process3ParmRequest", _

RequestNamespace:="urn:ServiceRequest", _

ResponseNamespace:="urn:ServiceRequest", _

Use:=System.Web.Services.Description.SoapBindingUs e.Encoded, _

ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.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
Nov 21 '05 #1
4 2631
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.SoapDocumentMethodAt tribute, 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("c ode"), _

System.Web.Services.WebServiceBindingAttribute(Nam e:="GTPSRouterServiceSoap",
[Namespace]:="urn:ServiceRequest")> _
Public Class GTPSRouterService
Inherits System.Web.Services.Protocols.SoapHttpClientProtoc ol

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

'<remarks/>

<System.Web.Services.Protocols.SoapDocumentMethodA ttribute("urn:ServiceRequest/process3ParmRequest", _

RequestNamespace:="urn:ServiceRequest", _

ResponseNamespace:="urn:ServiceRequest", _

Use:=System.Web.Services.Description.SoapBindingUs e.Encoded, _

ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.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

Nov 21 '05 #2
HG
Hi there

This is a shoot in the dark.

But, if I remember correctly .NET 1.0 used RPC style call to web services as
default. 1.1 use the Wrapped/Document style as default when generating proxy
classes.

Check your webmethod attributes, if there's a difference here between the
1.0 proxy class and the 1.1 proxy class.

Best regards

Henrik

"Jit Prasad" <Jit Pr****@discussions.microsoft.com> skrev i en meddelelse
news:59**********************************@microsof t.com...
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.SoapDocumentMethodAt tribute, 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("c ode"), _

System.Web.Services.WebServiceBindingAttribute(Nam e:="GTPSRouterServiceSoap"
, [Namespace]:="urn:ServiceRequest")> _
Public Class GTPSRouterService
Inherits System.Web.Services.Protocols.SoapHttpClientProtoc ol

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

'<remarks/>

<System.Web.Services.Protocols.SoapDocumentMethodA ttribute("urn:ServiceReque
st/process3ParmRequest", _
RequestNamespace:="urn:ServiceRequest", _

ResponseNamespace:="urn:ServiceRequest", _

Use:=System.Web.Services.Description.SoapBindingUs e.Encoded, _

ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.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

Nov 21 '05 #3
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==?=" <Ji*******@discussions.microsoft.com>
References: <59**********************************@microsoft.co m>
Subject: RE: Soap Response
Date: Wed, 10 Nov 2004 14:29:07 -0800
Lines: 170
Message-ID: <F7**********************************@microsoft.co m>
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.SoapDocumentMethodAt tribute, 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("c ode"), _

System.Web.Services.WebServiceBindingAttribute(Nam e:="GTPSRouterServiceSoap"
, [Namespace]:="urn:ServiceRequest")> _
Public Class GTPSRouterService
Inherits System.Web.Services.Protocols.SoapHttpClientProtoc ol

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

'<remarks/>

<System.Web.Services.Protocols.SoapDocumentMethodA ttribute("urn:ServiceReque
st/process3ParmRequest", _
RequestNamespace:="urn:ServiceRequest", _

ResponseNamespace:="urn:ServiceRequest", _

Use:=System.Web.Services.Description.SoapBindingUs e.Encoded, _

ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.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


Nov 21 '05 #4
Hi,

I pretty much have the same problem like Jit.
It worked under 1.0 it does not work under 1.1
In my case I have also "encoded" SoapBinding-use and SoapParameterStyle
"wrapped".

I recompiled the whole project using .NET 1.1
I even intercepted the dynamically generated code and even disassambled it.
No actual difference in program flow and program logic.
However, the .NET 1.1 Framework returns nothing instead of the XML-string.
I had the SOAP-sniffer of the Soap Toolkit 3.0 running - and the return
string ist just fine... just under .NET 1.1 I get a "nothing" response.

I have no way of further debugging what happens after the ".invoke" call,
since the framework hides the rest of the processing.

I tried to tackle this quite a while now and I find traces here and there
online that several people have the same problem.

All of them communicating with non-.net-based systems of some sort.

Regards,

Andi

"Dan Rogers" wrote:
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==?=" <Ji*******@discussions.microsoft.com>
References: <59**********************************@microsoft.co m>
Subject: RE: Soap Response
Date: Wed, 10 Nov 2004 14:29:07 -0800
Lines: 170
Message-ID: <F7**********************************@microsoft.co m>
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.SoapDocumentMethodAt tribute, 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("c ode"), _

System.Web.Services.WebServiceBindingAttribute(Nam e:="GTPSRouterServiceSoap"
,
[Namespace]:="urn:ServiceRequest")> _
Public Class GTPSRouterService
Inherits System.Web.Services.Protocols.SoapHttpClientProtoc ol

'<remarks/>
Public Sub New()
MyBase.New
Me.Url =

"http://localhost/GTPSRRWebService/GTPSRouterService.asmx"
End Sub

'<remarks/>

<System.Web.Services.Protocols.SoapDocumentMethodA ttribute("urn:ServiceReque
st/process3ParmRequest", _

RequestNamespace:="urn:ServiceRequest", _

ResponseNamespace:="urn:ServiceRequest", _

Use:=System.Web.Services.Description.SoapBindingUs e.Encoded, _

ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.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

Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stephen Chell | last post by:
I'm using SAAJ 1.2 (from jwsdp-1.3) and JDK 1.4.2_03. I've written a client application that uses the SAAJ api to send a SOAP message to a servlet. The servlet successfully receives the message...
0
by: bigbinc | last post by:
I have setup a soap machine on linux and similar configuration works properly. on a windows mahcine, I get these erros on the addressbook, samples, any ideas. I am pretty sure my classpaths are...
0
by: Hans Kesting | last post by:
Hi, I'm trying to create a client for some webservice. BUT I have only limited information: * no WSDL available ("expected Q1-06") (it seems to be written in Java) * I don't have access (yet)...
0
by: Michael Jackson | last post by:
I have attempted to mark up a service and it's methods so that it doesn't require the SOAPAction HTTP header to resolve the methods being called, this is done from first element in <SOAP-ENV:Body>...
2
by: Paul Hale | last post by:
I have a vb.net web service and client that are both working fine. If someone wanted to consume our web service using .NET, no problem. Im a little confused on how non .NET clients would use the...
3
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the...
4
by: Christian Wilhelm | last post by:
Hi! I have a Problem understanding the deserialisation of SOAP-Responses. The "normal" way, calling a XML WebService is to use WSDL 1) Send Request 2) Get SOAP-Response 3) With Informations...
3
by: Siva | last post by:
Hi all, I want to Convert a WSDL to a SOAP message. Is there any way to do this. I am using .NET 2.0 Thanks in Advance Siva
1
by: akumar8k | last post by:
when i am excusing the below code i am getting the error. Error 1 − <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> − <SOAP-ENV:Body> −
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.