Using Python 2.3 and ZSI 1.2 I am having problems getting information
back from a test web service running on a PC on our LAN.
The SOAP request details (from the .asmxfile) are as follows:
POST /rjetest/rjetestservice. asmx HTTP/1.1
Host: grouse
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://RJE.com/RJETestItDoc"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelop e xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/">
<soap:Body>
<RJETestItDoc xmlns="http://RJE.com">
<i>int</i>
<extra>string </extra>
</RJETestItDoc>
</soap:Body>
</soap:Envelope>
and the response details (from the .asmx) are:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelop e xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/">
<soap:Body>
<RJETestItDocRe sponse xmlns="http://RJE.com">
<RJETestItDocRe sult>string</RJETestItDocRes ult>
</RJETestItDocRes ponse>
</soap:Body>
</soap:Envelope>
The Python program is:
import sys
from ZSI.client import Binding, TC
class fooRequest:
def __init__(self, i, extra):
self.i = i
self.extra = extra
fooRequest.type code = TC.Struct(fooRe quest, [TC.Integer('i') ,
TC.String('extr a')], 'RJETestItDoc')
url1 = 'http://grouse/rjetest/rjetestservice. asmx'
soapaction ='http://RJE.com/RJETestItDoc'
namespace = 'http://RJE.com'
host = 'grouse'
port = 80
dict = {
'soap' : 'http://schemas.xmlsoap .org/wsdl/soap/',
's' : 'http://www.w3.org/2001/XMLSchema',
's0' : 'http://RJE.com',
'http' : 'http://schemas.xmlsoap .org/wsdl/http/',
'tm' : 'http://microsoft.com/wsdl/mime/textMatching/',
'mime' : 'http://schemas.xmlsoap .org/wsdl/mime/',
'soapenc' : 'http://schemas.xmlsoap .org/soap/encoding/'
}
i = 10
extra = 'A lovely day at the office'
b = Binding(url=url 1, ns=namespace, host=host, port=port, nsdict=dict,
soapaction=soap action, tracefile=sys.s tdout)
b.Send(url1, 'RJETestItDoc', fooRequest(i, extra))
x = b.ReceiveSOAP()
The SOAP response via the Python program is:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelop e xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"><soa p:Body><RJETest ItDocResponse
xmlns="http://RJE.com">
<RJETestItDocRe sult>********** A lovely day at the office
**********</RJETestItDocRes ult>
</RJETestItDocRes ponse></soap:Body></soap:Envelope>
and looks fine (to me anyway).
However... I can't figure out how to get the text from response. Any
advice would be very much appreciated. The input values are being
correctly received by the web service. 0 1714 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark |
last post by:
i have a very simple web servive
Imports System.Web.Services
<System.Web.Services.WebService(Namespace:="urn:Example1")> _
Public Class Example1
Inherits System.Web.Services.WebService
|
by: Cleo |
last post by:
Hi,
I am trying to call a WebService Method written in Weblogic from VB.NET and
I am getting the following error. I am using SOAP Caal s from VB.NET.
Please find the wsdl file and my code.
Any help would really be appreciated.
Thx
|
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 material and managed to get a workable solution
but it is far from ideal.
I created a new...
|
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
trace function that I added. Below that is a sample SOAP message that the
developer of the web...
|
by: kapil singhal via DotNetMonster.com |
last post by:
I have a C#/.Net 1.1 client talking to a Java based web service. I want to
make it a stateful service and i found this solution only:
1. the instance IDs are transferred in the SOAP headers.
2. The initiating call: when the server doesn't receive the instance ID of
a stateful web service, it creates a new instance and sends back the ID in
the SOAP header
3. In the following calls, the client sends the ID along with the message
in the...
| |
by: MR |
last post by:
my soap messages to a remote site are failing. as far as i can tell the only
differences between what my SOAP message looks liek and what they want are
in the SOAP envelope
SInce they don't have a wsdl doc i created a localhost site based on their
DTD documetns.
How do I configure my site (and client proxy) to match thier envelope?
Any help would be greatly appreciated
thanks
|
by: Bryan Dickerson |
last post by:
Ok, simple question: from a VB.Net web service (as I've said before, I'm a
newbie to SOAP), how would I get the SOAP body into a string? My boss and I
concur that it, at least from our perspective, should be as simple as
defining an object and viewing a parameter on that object. My boss has
worked with it and I'm still tryin'...
TIA!
--
TFWBWY...A
|
by: Enda Manni |
last post by:
Hi,
I have a gSoap Web Service written using C++, it uses SOAP username and
password authentication.
I also have a C# form client consuming the web service, all this was working
fine until I added the authentication on the server, now I can not get the
client to authenticate. Can someone tell me how to add authentication info
to the SOAP message posted from the C# SOAP client.
|
by: Enda Manni |
last post by:
Hi,
I have a gSoap Web Service written using C++, it uses SOAP username and
password authentication.
I also have a C# form client consuming the web service, all this was working
fine until I added the authentication on the server, now I can not get the
client to authenticate. Can someone tell me how to add authentication info
to the SOAP message posted from the C# SOAP client.
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |