473,386 Members | 1,864 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,386 software developers and data experts.

Help: .net soap client sees empty responses from Axis

I've seen a couple posts by people having similar problems, but the
suggested solutions I've tried so far haven't worked.

I'm using a SOAP client in VB.Net (constructed by wsdl.exe) and the
third party web service it's consuming is served by Axis. The request
messages my client sends are processed fine by the server, and the SOAP
response is making its way to my client - but when .Net finishes
processing the message I end up with an empty result data structure,
even though the information is in the response message.

Also, the web service is using literal/wrapped wsdl.

Any help or suggestions would be appreciated. Thanks,

Jennifer

The wsdl is:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="https://mydomain.org/Tester_v1_1"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="https://mydomain.org/Tester_v1_1"
xmlns:intf="https://mydomain.org/Tester_v1_1"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2RC1
Built on Oct 04, 2004 (01:32:18 PDT)-->
<wsdl:types>
<schema elementFormDefault="qualified"
targetNamespace="https://mydomain.org/Tester_v1_1"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="count">
<complexType/>
</element>
<element name="countResponse">
<complexType>
<sequence>
<element name="countReturn" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="echo">
<complexType>
<sequence>
<element name="s" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="echoResponse">
<complexType>
<sequence>
<element name="echoReturn" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="setEchoMode">
<complexType>
<sequence>
<element name="mode" type="impl:EchoType"/>
</sequence>
</complexType>
</element>
<simpleType name="EchoType">
<restriction base="xsd:string">
<enumeration value="UNCHANGED"/>
<enumeration value="UPPERCASE"/>
<enumeration value="LOWERCASE"/>
</restriction>
</simpleType>
<element name="setEchoModeResponse">
<complexType/>
</element>
</schema>
</wsdl:types>

<wsdl:message name="setEchoModeResponse">

<wsdl:part element="impl:setEchoModeResponse" name="parameters"/>

</wsdl:message>

<wsdl:message name="countRequest">

<wsdl:part element="impl:count" name="parameters"/>

</wsdl:message>

<wsdl:message name="countResponse">

<wsdl:part element="impl:countResponse" name="parameters"/>

</wsdl:message>

<wsdl:message name="setEchoModeRequest">

<wsdl:part element="impl:setEchoMode" name="parameters"/>

</wsdl:message>

<wsdl:message name="echoResponse">

<wsdl:part element="impl:echoResponse" name="parameters"/>

</wsdl:message>

<wsdl:message name="echoRequest">

<wsdl:part element="impl:echo" name="parameters"/>

</wsdl:message>

<wsdl:portType name="Tester_v1_1">

<wsdl:operation name="count">

<wsdl:input message="impl:countRequest" name="countRequest"/>

<wsdl:output message="impl:countResponse"
name="countResponse"/>

</wsdl:operation>

<wsdl:operation name="echo">

<wsdl:input message="impl:echoRequest" name="echoRequest"/>

<wsdl:output message="impl:echoResponse" name="echoResponse"/>

</wsdl:operation>

<wsdl:operation name="setEchoMode">

<wsdl:input message="impl:setEchoModeRequest"
name="setEchoModeRequest"/>

<wsdl:output message="impl:setEchoModeResponse"
name="setEchoModeResponse"/>

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="Tester_v1_1SoapBinding" type="impl:Tester_v1_1">

<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>

<wsdl:operation name="count">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="countRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="countResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="echo">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="echoRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="echoResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="setEchoMode">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="setEchoModeRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="setEchoModeResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="Tester_v1_1Service">

<wsdl:port binding="impl:Tester_v1_1SoapBinding"
name="Tester_v1_1">

<wsdlsoap:address
location="https://mydomain.org/Tester_v1_1"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

And the resulting vb.net code is

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.1.4322.573.
'

'<remarks/>
<System.Diagnostics.DebuggerStepThroughAttribute() , _
System.ComponentModel.DesignerCategoryAttribute("c ode"), _

System.Web.Services.WebServiceBindingAttribute(Nam e:="Tester_v1_1SoapBinding",
[Namespace]:="https://mydomain.org/Tester_v1_1")> _
Public Class Tester_v1_1Service
Inherits System.Web.Services.Protocols.SoapHttpClientProtoc ol

'<remarks/>
Public Sub New()
MyBase.New
Me.Url = "https://mydomain.org/Tester_v1_1"
End Sub

'<remarks/>
<System.Web.Services.Protocols.SoapDocumentMethodA ttribute("",
RequestNamespace:="https://mydomain.org/Tester_v1_1",
ResponseNamespace:="https://mydomain.org/Tester_v1_1",
Use:=System.Web.Services.Description.SoapBindingUs e.Literal,
ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.Wrapped)>
_
Public Function count() As
<System.Xml.Serialization.XmlElementAttribute("cou ntReturn")> Integer
Dim results() As Object = Me.Invoke("count", New Object(-1) {})
Return CType(results(0),Integer)
End Function
'<remarks/>
<System.Web.Services.Protocols.SoapDocumentMethodA ttribute("",
RequestNamespace:="https://mydomain.org/Tester_v1_1",
ResponseNamespace:="https://mydomain.org/Tester_v1_1",
Use:=System.Web.Services.Description.SoapBindingUs e.Literal,
ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.Wrapped)>
_
Public Function echo(ByVal s As String) As
<System.Xml.Serialization.XmlElementAttribute("ech oReturn")> String
Dim results() As Object = Me.Invoke("echo", New Object() {s})
Return CType(results(0),String)
End Function
'<remarks/>
<System.Web.Services.Protocols.SoapDocumentMethodA ttribute("",
RequestNamespace:="https://mydomain.org/Tester_v1_1",
ResponseNamespace:="https://mydomain.org/Tester_v1_1",
Use:=System.Web.Services.Description.SoapBindingUs e.Literal,
ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.Wrapped)>
_
Public Sub setEchoMode(ByVal mode As EchoType)
Me.Invoke("setEchoMode", New Object() {mode})
End Sub

End Class

'<remarks/>
<System.Xml.Serialization.XmlTypeAttribute([Namespace]:="https://mydomain.org/Tester_v1_1")>
_
Public Enum EchoType

'<remarks/>
UNCHANGED

'<remarks/>
UPPERCASE

'<remarks/>
LOWERCASE
End Enum

Nov 23 '05 #1
0 2601

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

Similar topics

7
by: Eric Osman | last post by:
If my question sounds ill-formed, please cut me some slack as I'm just getting started with this part of the code. We're trying to do an axis soap interface, that is, talk to a site that already...
6
by: john deviney | last post by:
I have a C#/.Net 1.1 client talking to a Java based web service. I need to insert a soap header on the client side which is expected on the server side. Currently, the Java ws provider, Axis, does...
0
by: Daniel Thune, MCSE | last post by:
I am having a problem with formatting a SOAP Header in a .Net client. The client calls a Java Axis 1.1 based web service. In order to authenticate the caller, the web service call is intercepted by...
3
by: Moshe Kravchik | last post by:
Hi all! I've encountered with what seems to be a compatibility problem between ATL SOAP Web Service and Axis client. The minimal scenario is like that. I create a service having the following...
3
by: Moshe Kravchik | last post by:
Hi! We have a Web Service written in ATL Server and a client written in Java using Axis. When something goes wrong on the server side, it returns an HRESULT of the error which is translated into...
0
by: info | last post by:
Dear all, is the first time that I use SOAP, and i must say that i'm having several problems. this is SOAP message that expects the server =================XML EXPECTED FROM THE...
0
by: andreas.baus | last post by:
Hi. I created a web service (using Apache Axis) and a client for accessing it (using .NET 1.1, C# and WSE2.0), and I noticed a strange phenomenon: When the service sends it's responses using the...
2
by: bhushanbsc | last post by:
Hi, I am working on a project related to windows pocket pc 5.0 (win32). in that i am trying client-server communicationusing SOAP server. but facing problem on...
0
by: =?Utf-8?B?ZWQ=?= | last post by:
I had this exact problem using a vb.net client accessing a Java web service. The solution takes 3 steps: 1.) Create custom ClientOutputFilter 2.) Create a custom Assertion that uses filter from...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.