Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > ZSI and WSDL schema

Reply
Thread Tools

ZSI and WSDL schema

 
 
Grzegorz Smith
Guest
Posts: n/a
 
      02-01-2007
Hi all. I have problem with ZSI and WSDL schema.I generate from WSDL
by wsdl2py client method for webservice. I made soap call and
something goes wrong. Doeas anyone know hot to create some server code
by ZSI from WSDL?? I just suspectes that my return data from
webservice is in incorrect envelope -> so maybe wsdl2py can help mi
generate correct server method, or just generate correct structure
that webservice should return.
Thanks for any help.
Gregor

 
Reply With Quote
 
 
 
 
Simon Brunning
Guest
Posts: n/a
 
      02-01-2007
On 1 Feb 2007 03:14:14 -0800, Grzegorz Smith <(E-Mail Removed)> wrote:
> Hi all. I have problem with ZSI and WSDL schema.I generate from WSDL
> by wsdl2py client method for webservice. I made soap call and
> something goes wrong.


It might help if you were a little more specific.

--
Cheers,
Simon B
http://www.velocityreviews.com/forums/(E-Mail Removed)
http://www.brunningonline.net/simon/blog/
 
Reply With Quote
 
 
 
 
Grzegorz Smith
Guest
Posts: n/a
 
      02-01-2007
Ok here goes a detail:
I call two methods by soap. The response of that methods is described
by xml.
Here is first request: (method name QuickSearch, one parameter called
name)
<xsd:element name="QuickSearch">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="name" minOccurs="0" maxOccurs="1" type="xsd:int"/
>

</xsd:sequence>
</xsd:complexType>
</xsd:element>
So here go 1 response (part of the wsdl):
<xsd:element name="QuickSearchReturn">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="name" minOccurs="0" maxOccurs="1" type="xsd:int"/
>

</xsd:sequence>
</xsd:complexType>
</xsd:element>
and the methods that I call is here:

def QuickSearch(name):
#here done something by name paramater passed by
#and return parameter name
return {'name':50}
I don't know how to pack returned data to the proper envelope. When I
made SOAP call by hand (just like examples from ZSI everything goes
well), but when I made SOAP by WSDL everything goes wrong.

And here is the second question
I descripe response from my second SOAP Method, it looks like this:
<xsd:complexType name="AlbumResult">
<xsd:sequence>
<xsd:element name="NALB" minOccurs="0" maxOccurs="1" type="xsd:int"/
>

<xsd:element name="NFTG" minOccurs="0" maxOccurs="1" type="xsd:int"/
>

<xsd:element name="NAZW" minOccurs="0" maxOccurs="1"
type="xsd:string"/>
<xsd:element name="KATG" minOccurs="0" maxOccurs="1"
type="xsd:string"/>
<xsd:element name="DTWO" minOccurs="0" maxOccurs="1"
type="xsd:string"/>
<xsd:element name="MISC" minOccurs="0" maxOccurs="1"
type="xsd:string"/>
<xsd:element name="LOCL" minOccurs="0" maxOccurs="1"
type="xsd:string"/>
<xsd:element name="OPIS" minOccurs="0" maxOccurs="1"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
I have data prepared in Python script, but still don't know how to
made proper response envelop with that data.
As you see it's complicated type, but I don't what It should look like
to be proper response.
Any help?
Please
Gregor

Thanks Simon
On 1 Lut, 12:42, "Simon Brunning" <(E-Mail Removed)> wrote:
> On 1 Feb 2007 03:14:14 -0800, Grzegorz Smith <(E-Mail Removed)> wrote:
>
> > Hi all. I have problem with ZSI and WSDL schema.I generate from WSDL
> > by wsdl2py client method for webservice. I made soap call and
> > something goes wrong.

>
> It might help if you were a little more specific.
>
> --
> Cheers,
> Simon B
> (E-Mail Removed)://www.brunningonline.net/simon/blog/



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
webservices, wsdl & xsd (schema-2-wsdl) Dark Java 1 11-14-2008 07:58 PM
ZSI sample and issues with the WSDL David Ross Python 1 09-05-2007 07:02 PM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
ZSI SOAP/WSDL Question =?UTF-8?B?0LTQsNC80ZjQsNC9INCzLg==?= Python 0 10-03-2003 03:09 PM
is the w3c's schema for wsdl and wsdl/soap binding possibly buggy ? _clb_ Chris Bedford XML 0 08-20-2003 11:52 PM



Advertisments