473,544 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:definitio ns targetNamespace ="https://mydomain.org/Tester_v1_1"
xmlns:apachesoa p="http://xml.apache.org/xml-soap"
xmlns:impl="htt ps://mydomain.org/Tester_v1_1"
xmlns:intf="htt ps://mydomain.org/Tester_v1_1"
xmlns:wsdl="htt p://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 elementFormDefa ult="qualified"
targetNamespace ="https://mydomain.org/Tester_v1_1"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="count">
<complexType/>
</element>
<element name="countResp onse">
<complexType>
<sequence>
<element name="countRetu rn" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="echo">
<complexType>
<sequence>
<element name="s" type="xsd:strin g"/>
</sequence>
</complexType>
</element>
<element name="echoRespo nse">
<complexType>
<sequence>
<element name="echoRetur n" type="xsd:strin g"/>
</sequence>
</complexType>
</element>
<element name="setEchoMo de">
<complexType>
<sequence>
<element name="mode" type="impl:Echo Type"/>
</sequence>
</complexType>
</element>
<simpleType name="EchoType" >
<restriction base="xsd:strin g">
<enumeration value="UNCHANGE D"/>
<enumeration value="UPPERCAS E"/>
<enumeration value="LOWERCAS E"/>
</restriction>
</simpleType>
<element name="setEchoMo deResponse">
<complexType/>
</element>
</schema>
</wsdl:types>

<wsdl:message name="setEchoMo deResponse">

<wsdl:part element="impl:s etEchoModeRespo nse" name="parameter s"/>

</wsdl:message>

<wsdl:message name="countRequ est">

<wsdl:part element="impl:c ount" name="parameter s"/>

</wsdl:message>

<wsdl:message name="countResp onse">

<wsdl:part element="impl:c ountResponse" name="parameter s"/>

</wsdl:message>

<wsdl:message name="setEchoMo deRequest">

<wsdl:part element="impl:s etEchoMode" name="parameter s"/>

</wsdl:message>

<wsdl:message name="echoRespo nse">

<wsdl:part element="impl:e choResponse" name="parameter s"/>

</wsdl:message>

<wsdl:message name="echoReque st">

<wsdl:part element="impl:e cho" name="parameter s"/>

</wsdl:message>

<wsdl:portTyp e name="Tester_v1 _1">

<wsdl:operati on name="count">

<wsdl:input message="impl:c ountRequest" name="countRequ est"/>

<wsdl:output message="impl:c ountResponse"
name="countResp onse"/>

</wsdl:operation>

<wsdl:operati on name="echo">

<wsdl:input message="impl:e choRequest" name="echoReque st"/>

<wsdl:output message="impl:e choResponse" name="echoRespo nse"/>

</wsdl:operation>

<wsdl:operati on name="setEchoMo de">

<wsdl:input message="impl:s etEchoModeReque st"
name="setEchoMo deRequest"/>

<wsdl:output message="impl:s etEchoModeRespo nse"
name="setEchoMo deResponse"/>

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="Tester_v1 _1SoapBinding" type="impl:Test er_v1_1">

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

<wsdl:operati on name="count">

<wsdlsoap:opera tion soapAction=""/>

<wsdl:input name="countRequ est">

<wsdlsoap:bod y use="literal"/>

</wsdl:input>

<wsdl:output name="countResp onse">

<wsdlsoap:bod y use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operati on name="echo">

<wsdlsoap:opera tion soapAction=""/>

<wsdl:input name="echoReque st">

<wsdlsoap:bod y use="literal"/>

</wsdl:input>

<wsdl:output name="echoRespo nse">

<wsdlsoap:bod y use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operati on name="setEchoMo de">

<wsdlsoap:opera tion soapAction=""/>

<wsdl:input name="setEchoMo deRequest">

<wsdlsoap:bod y use="literal"/>

</wsdl:input>

<wsdl:output name="setEchoMo deResponse">

<wsdlsoap:bod y use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="Tester_v1 _1Service">

<wsdl:port binding="impl:T ester_v1_1SoapB inding"
name="Tester_v1 _1">

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

</wsdl:port>

</wsdl:service>

</wsdl:definition s>

And the resulting vb.net code is

Option Strict Off
Option Explicit On

Imports System
Imports System.Componen tModel
Imports System.Diagnost ics
Imports System.Web.Serv ices
Imports System.Web.Serv ices.Protocols
Imports System.Xml.Seri alization

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

'<remarks/>
<System.Diagnos tics.DebuggerSt epThroughAttrib ute(), _
System.Componen tModel.Designer CategoryAttribu te("code"), _

System.Web.Serv ices.WebService BindingAttribut e(Name:="Tester _v1_1SoapBindin g",
[Namespace]:="https://mydomain.org/Tester_v1_1")> _
Public Class Tester_v1_1Serv ice
Inherits System.Web.Serv ices.Protocols. SoapHttpClientP rotocol

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

'<remarks/>
<System.Web.Ser vices.Protocols .SoapDocumentMe thodAttribute(" ",
RequestNamespac e:="https://mydomain.org/Tester_v1_1",
ResponseNamespa ce:="https://mydomain.org/Tester_v1_1",
Use:=System.Web .Services.Descr iption.SoapBind ingUse.Literal,
ParameterStyle: =System.Web.Ser vices.Protocols .SoapParameterS tyle.Wrapped)>
_
Public Function count() As
<System.Xml.Ser ialization.XmlE lementAttribute ("countReturn") > Integer
Dim results() As Object = Me.Invoke("coun t", New Object(-1) {})
Return CType(results(0 ),Integer)
End Function
'<remarks/>
<System.Web.Ser vices.Protocols .SoapDocumentMe thodAttribute(" ",
RequestNamespac e:="https://mydomain.org/Tester_v1_1",
ResponseNamespa ce:="https://mydomain.org/Tester_v1_1",
Use:=System.Web .Services.Descr iption.SoapBind ingUse.Literal,
ParameterStyle: =System.Web.Ser vices.Protocols .SoapParameterS tyle.Wrapped)>
_
Public Function echo(ByVal s As String) As
<System.Xml.Ser ialization.XmlE lementAttribute ("echoReturn ")> String
Dim results() As Object = Me.Invoke("echo ", New Object() {s})
Return CType(results(0 ),String)
End Function
'<remarks/>
<System.Web.Ser vices.Protocols .SoapDocumentMe thodAttribute(" ",
RequestNamespac e:="https://mydomain.org/Tester_v1_1",
ResponseNamespa ce:="https://mydomain.org/Tester_v1_1",
Use:=System.Web .Services.Descr iption.SoapBind ingUse.Literal,
ParameterStyle: =System.Web.Ser vices.Protocols .SoapParameterS tyle.Wrapped)>
_
Public Sub setEchoMode(ByV al mode As EchoType)
Me.Invoke("setE choMode", New Object() {mode})
End Sub

End Class

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

'<remarks/>
UNCHANGED

'<remarks/>
UPPERCASE

'<remarks/>
LOWERCASE
End Enum

Nov 23 '05 #1
0 2627

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

Similar topics

7
3045
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 has a defined "dtd" . I've already seen some java examples that use SOAP and AXIS to do the communication. However, we'd like to communicate...
6
20229
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 not support automatic wsdl generation of custom headers so the wsdl has no information regarding the required header. I've read through a lot of...
0
4657
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 another web service that validates a security token in the header. I have pasted my current SOAP message that my code sends as captured from a...
3
2192
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 function: struct SITest{ int val;
3
4229
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 the SoapFault. The problem is that the SoapFault is interpreted by Axis not as a SoapFaultException, but as a more generic AxisFault exception with...
0
5598
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 SERVER================ <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"...
0
1226
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 multiref method for serializing complex data types, the client receives them without a problem. If I however set the service to send *without*...
2
2127
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 IXMLHTTPRequest. #################### CODE ########################## //included files are,
0
2430
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 step 1 3.) Bind service to custom Assertion Step 1 Custom Filter(Called by Custom Assertion) Class ClientOutputFilter
0
7781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7388
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5925
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5305
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4925
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3425
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3420
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1848
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
676
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.