[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Fedora-suds-list] Problems using the attached WSDL's



Hi,

I'm trying to use the attached WSDL's and I'm having some difficulties. I've got this working in C# .NET but I think I don't understand how suds works.
I can create my client

>>> from suds import *
>>> from suds.client import Client
>>> client = Client("http://10.1.10.11:81/flex/rpc/zephyrrpcservice?wsdl")

My client looks like this.

>>> print client

Suds ( https://fedorahosted.org/suds/ )  version: 0.3.7 GA  build: R580-20091016

Service ( zephyrrpcservice ) tns="http://impl.rpc.thed.com/"
   Prefixes (1)
      ns0 = "http://rpc.thed.com/"
   Ports (1):
      (ZephyrRPCServicesImplPort)
         Methods (1):
            updateTestStatus(ns0:remoteTestResult testResult, )
         Types (4):
            ns0:exception
            ns0:remoteTestResult
            ns0:updateTestStatus
            ns0:updateTestStatusResponse


With other WSDL's  I was just able to access the methods at this point like this
>>>client.someMethod()

This doesn't work with the attached WSDL's.

It looks like

client.service.updateTestStatus(remoteTestResult testResult)

might work (I could be totally wrong), but I don't know how to properly create a remoteTestResult object.

Thanks for your help,



Nick Wiesmueller
QA Analyst
Singlewire Software
PO Box 46218
Madison, WI 53744-6218

Phone Direct - 608.298.1625
www.singlewire.com
<?xml version='1.0' encoding='UTF-8'?><wsdl:definitions name="ZephyrRPCServices" targetNamespace="http://rpc.thed.com/"; xmlns:ns1="http://rpc.thed.com/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  <wsdl:types xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://rpc.thed.com/"; xmlns:tns="http://rpc.thed.com/"; xmlns:xs="http://www.w3.org/2001/XMLSchema";>
    <xs:element name="updateTestStatus" type="tns:updateTestStatus" xmlns:xs="http://www.w3.org/2001/XMLSchema"; />
    <xs:element name="updateTestStatusResponse" type="tns:updateTestStatusResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema"; />
    <xs:complexType name="updateTestStatus" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
        <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema";>
            <xs:element minOccurs="0" name="testResult" type="tns:remoteTestResult" xmlns:xs="http://www.w3.org/2001/XMLSchema"; />
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="remoteTestResult" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
        <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema";>
            <xs:element minOccurs="0" name="encTestScheduleId" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"; />
            <xs:element minOccurs="0" name="executionDate" type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema"; />
            <xs:element minOccurs="0" name="executionNotes" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"; />
            <xs:element minOccurs="0" name="executionStatus" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"; />
            <xs:element minOccurs="0" name="id" type="xs:long" xmlns:xs="http://www.w3.org/2001/XMLSchema"; />
            <xs:element minOccurs="0" name="testerId" type="xs:long" xmlns:xs="http://www.w3.org/2001/XMLSchema"; />
            <xs:element minOccurs="0" name="timeTaken" type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"; />
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="updateTestStatusResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
        <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema";>
            <xs:element minOccurs="0" name="return" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"; />
        </xs:sequence>
    </xs:complexType>
    <xs:element name="exception" type="tns:exception" xmlns:xs="http://www.w3.org/2001/XMLSchema"; />
    <xs:complexType name="exception" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
        <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema"; />
    </xs:complexType>
</xs:schema>
  </wsdl:types>
  <wsdl:message name="updateTestStatus" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    <wsdl:part element="ns1:updateTestStatus" name="parameters" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="ZephyrServiceException" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    <wsdl:part element="ns1:exception" name="ZephyrServiceException" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="updateTestStatusResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    <wsdl:part element="ns1:updateTestStatusResponse" name="parameters" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="ZephyrRPCServices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    <wsdl:operation name="updateTestStatus" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
      <wsdl:input message="ns1:updateTestStatus" name="updateTestStatus" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    </wsdl:input>
      <wsdl:output message="ns1:updateTestStatusResponse" name="updateTestStatusResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    </wsdl:output>
      <wsdl:fault message="ns1:ZephyrServiceException" name="ZephyrServiceException" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    </wsdl:fault>
    </wsdl:operation>
  </wsdl:portType>
</wsdl:definitions>
<?xml version='1.0' encoding='UTF-8'?><wsdl:definitions name="zephyrrpcservice" targetNamespace="http://impl.rpc.thed.com/"; xmlns:ns1="http://rpc.thed.com/"; xmlns:ns2="http://cxf.apache.org/bindings/xformat"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="http://impl.rpc.thed.com/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  <wsdl:import location="http://10.1.10.11:81/flex/rpc/zephyrrpcservice?wsdl=ZephyrRPCServices.wsdl"; namespace="http://rpc.thed.com/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    </wsdl:import>
  <wsdl:message name="updateTestStatus" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    <wsdl:part element="ns1:updateTestStatus" name="parameters" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="updateTestStatusResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    <wsdl:part element="ns1:updateTestStatusResponse" name="parameters" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    </wsdl:part>
  </wsdl:message>
  <wsdl:binding name="zephyrrpcserviceSoapBinding" type="ns1:ZephyrRPCServices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; />
    <wsdl:operation name="updateTestStatus" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
      <soap:operation soapAction="" style="document" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; />
      <wsdl:input name="updateTestStatus" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; />
      </wsdl:input>
      <wsdl:output name="updateTestStatusResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; />
      </wsdl:output>
      <wsdl:fault name="ZephyrServiceException" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
        <soap:fault name="ZephyrServiceException" use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; />
      </wsdl:fault>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="zephyrrpcservice" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    <wsdl:port binding="tns:zephyrrpcserviceSoapBinding" name="ZephyrRPCServicesImplPort" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
      <soap:address location="http://10.1.10.11:81/flex/rpc/zephyrrpcservice"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]