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

help with soap, please (java axis)

Hi all!

I've to produce this xml as a soap request (I'm using SOAPpy):

<soapenv:Body>
<request
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<arg0>
<item>
<key xsi:type="xsd:string">titolo</key>
<value xsi:type="xsd:string">titolo_ws</value>
</item>
<item>
<key xsi:type="xsd:string">tipoIid</key>
<value xsi:type="xsd:string">tipoIid_ws</value>
</item>
<item>
<key xsi:type="xsd:string">autore</key>
<value xsi:type="xsd:string">autore_ws</value>
</item>
<item>
<key xsi:type="xsd:string">iid</key>
<value xsi:type="xsd:string">iid_ws</value>
</item>
<item>
<key xsi:type="xsd:string">*links*</key>
<value xsi:type="soapenc:Array" soapenc:arrayType="ns1:Map[2]">
<item>
<item>
<key xsi:type="xsd:string">dataProvider</key>
<value xsi:type="xsd:string">ps_ws1</value>
</item>
<item>
<key xsi:type="xsd:string">url</key>
<value xsi:type="xsd:string">url_ws1</value>
</item>
<item>
<key xsi:type="xsd:string">diritti</key>
<value xsi:type="xsd:string">diritti_ws1</value>
</item>
</item>
<item>
<item>
<key xsi:type="xsd:string">dataProvider</key>
<value xsi:type="xsd:string">ps_ws0</value>
</item>
<item>
<key xsi:type="xsd:string">url</key>
<value xsi:type="xsd:string">url_ws0</value>
</item>
<item>
<key xsi:type="xsd:string">diritti</key>
<value xsi:type="xsd:string">diritti_ws0</value>
</item>
</item>
</value>
</item>
</arg0>
</request>
</soapenv:Body>

I can the first part (without *links*) with:

import SOAPpy

server = SOAPpy.SOAPProxy("http://myserver.com/service")

a=[{'key':'titolo','value':'I Promessi
Sposi'},{'key':'tipoIid','value':'isbn'
{'key':'autore','value':'Alessandro
Manzoni'},{'key':'iid','value':'566669'}]

a1=SOAPpy.structType()

a1._addItem('id0',a)

print server.request(a1)

========

this works. The server is Java Axis.

But, when I try the *links* part, I've failed. Can someone explain me how to
create a python object that can used by SOAPpy to send the full request?

I've tried with:

links=[{'key':'dataProvider','value':'DATA
PROVIDER'},{'key':'url','value':'ht
://dafnedb.cab.unipd.it/repository/123458'},{'key':'diritti','value':'stringa
n i diritti'}]

link1=SOAPpy.arrayType()
link1=[links]

a=[{'key':'titolo','value':'I Promessi Sposi'},{'key':'tipoIid','value':'is
{'key':'autore','value':'Alessandro Manzoni'},{'key':'iid','value':'566669'
ey':'*links*','value':link1}]
but I receive a:

SOAPpy.Types.faultType: <Fault soapenv:Server.userException:
org.xml.sax.SAXException: No deserializer defined for array type
{http://www.w3.org/1999/XMLSchema}list: >

Help! :)

P.S. I'm not subscrive, please CC me... thanks!

________________________________________________
Message sent using ALFANET Caorle WEBMAIL 1.0
Jul 18 '05 #1
1 2278
[Yurj]
but I receive a:

SOAPpy.Types.faultType: <Fault soapenv:Server.userException:
org.xml.sax.SAXException: No deserializer defined for array type
{http://www.w3.org/1999/XMLSchema}list:


I don't have time to answer this in detail, but I do have one
suggestion:

That error looks like it's coming from Axis (from the
"org.xml.sax.SAXException"). Looking through my Axis config file, I
see no mention of the namespace you mentioned, namely

http://www.w3.org/1999/XMLSchema

However, the 2001 schema is listed in the axis config file
(webapps/axis/WEB-INF/server-config.wsdd).

http://www.w3.org/2001/XMLSchema

If I'm right that this is the cause of the error, you have two options
to resolve the problem

1. Make SOAPpy generate calls in the 2001/XMLSchema namespace.

2. Configure Axis to have a deserializer for the 1999/XMLSchema
namespace.

Sorry, don't have time to help with either option right now.

HTH,

--
alan kennedy
-----------------------------------------------------
check http headers here: http://xhaus.com/headers
email alan: http://xhaus.com/mailto/alan
Jul 18 '05 #2

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

Similar topics

1
by: JD | last post by:
Hello everybody, web services are still new for me ; I've just created a basic one with Apache soap which only receive and send a string. But now, I'd like to create one which will be able to...
4
by: kj | last post by:
I'm just learning about SOAP, and one of the claims about SOAP that I'm having the hardest time understanding/believing is this business about language independence. Please tell me if I got this...
1
by: carl.stottlemyer | last post by:
Currently our company is interfacing with several other companies using a few different technologies, CORBA, RMI and an independently developed middleware that we are stuck with using. In some...
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...
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...
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! 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: =?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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.