1. I am trying to communicate with a server using pysimplesoap, 

2. I wanted to invoke mTaxAddPayment but a
schema invalid (type not found) error occurs, what am I doing wrong

3. code and xml documents are posted below


def testSoap():
>     from gluon.contrib.pysimplesoap.client import SoapClient, SoapFault
>     # create a SOAP client
>     
> client=SoapClient(wsdl="http://www.tlmgateway.com/tlmgateway/TAXAddPayment.asmx?WSDL",trace=True)
>     # call SOAP method
>     response = client.mTAXAddPayment(ii={'password': 'password',
>                                          'PriSSN' : 'test',
>                                          'PymtType' : 'test',
>                                          'PymtNum' : 'test',
>                                          'PymtAmt' : 44,
>                                          'PymtRTN' : 'test',
>                                          'PymtDDA' : 'test',
>                                          'IssuedUser' : 'test',
>                                          'PrintUser' : 'test',
>                                          'DisburseInd' : 'test',
>                                          'PymtStatus' : 'test',
>                                          'PayeeName' : 'test',
>                                          'PymtDLR' : 'test',
>                                          'PymtLOCID' : 'test',
>                                          'LoanNum' : 'test'
>                                         }
>                                      )
>     try:
>         result = response
>     except SoapFault:
>         result = None
>     return dict(xml_request=client.xml_request,
>                 xml_response=client.xml_response,
>                 result=result)



This XML file does not appear to have any style information associated with 
> it. The document tree is shown below.
> <wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:soap12
> ="http://schemas.xmlsoap.org/wsdl/soap12/"; xmlns:mime="
> http://schemas.xmlsoap.org/wsdl/mime/"xmlns:tns="TAXAddPayment"; xmlns:soap
> ="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tm="
> http://microsoft.com/wsdl/mime/textMatching/"xmlns:http=";
> http://schemas.xmlsoap.org/wsdl/http/"; xmlns:soapenc="
> http://schemas.xmlsoap.org/soap/encoding/"; xmlns:wsdl="
> http://schemas.xmlsoap.org/wsdl/"targetNamespace="TAXAddPayment";>
> <wsdl:types>
> <s:schema elementFormDefault="qualified" targetNamespace="TAXAddPayment">
> <s:element name="mTAXAddPayment">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="ii" type="tns:InputInfo"/>
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="InputInfo">
> <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string"/>
> <s:element minOccurs="0" maxOccurs="1" name="PriSSN" type="s:string"/>
> <s:element minOccurs="0" maxOccurs="1" name="PymtType" type="s:string"/>
> <s:element minOccurs="0" maxOccurs="1" name="PymtNum" type="s:string"/>
> <s:element minOccurs="1" maxOccurs="1" name="PymtAmt" type="s:decimal"/>
> <s:element minOccurs="0" maxOccurs="1" name="PymtRTN" type="s:string"/>
> <s:element minOccurs="0" maxOccurs="1" name="PymtDDA" type="s:string"/>
> <s:element minOccurs="0" maxOccurs="1" name="IssuedUser" type="s:string"/>
> <s:element minOccurs="0" maxOccurs="1" name="PrintUser" type="s:string"/>
> <s:element minOccurs="0" maxOccurs="1" name="DisburseInd" type="s:string"
> />
> <s:element minOccurs="0" maxOccurs="1" name="PymtStatus" type="s:string"/>
> <s:element minOccurs="0" maxOccurs="1" name="PayeeName" type="s:string"/>
> <s:element minOccurs="0" maxOccurs="1" name="PymtDLR" type="s:string"/>
> <s:element minOccurs="0" maxOccurs="1" name="PymtLOCID" type="s:string"/>
> <s:element minOccurs="0" maxOccurs="1" name="LoanNum" type="s:string"/>
> </s:sequence>
> </s:complexType>
> <s:element name="mTAXAddPaymentResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="mTAXAddPaymentResult">
> <s:complexType>
> <s:sequence>
> <s:any minOccurs="0" maxOccurs="unbounded" namespace="
> http://www.w3.org/2001/XMLSchema"; processContents="lax"/>
> <s:any minOccurs="1" namespace="urn:schemas-microsoft-com:xml-diffgram-v1"
>  processContents="lax"/>
> </s:sequence>
> </s:complexType>
> </s:element>
> </s:sequence>
> </s:complexType>
> </s:element>
> </s:schema>
> </wsdl:types>
> <wsdl:message name="mTAXAddPaymentSoapIn">
> <wsdl:part name="parameters" element="tns:mTAXAddPayment"/>
> </wsdl:message>
> <wsdl:message name="mTAXAddPaymentSoapOut">
> <wsdl:part name="parameters" element="tns:mTAXAddPaymentResponse"/>
> </wsdl:message>
> <wsdl:portType name="TaxAddPaymentSoap">
> <wsdl:operation name="mTAXAddPayment">
> <wsdl:input message="tns:mTAXAddPaymentSoapIn"/>
> <wsdl:output message="tns:mTAXAddPaymentSoapOut"/>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="TaxAddPaymentSoap" type="tns:TaxAddPaymentSoap">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="mTAXAddPayment">
> <soap:operation soapAction="TAXAddPayment/mTAXAddPayment" style="document"
> />
> <wsdl:input>
> <soap:body use="literal"/>
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:binding name="TaxAddPaymentSoap12" type="tns:TaxAddPaymentSoap">
> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="mTAXAddPayment">
> <soap12:operation soapAction="TAXAddPayment/mTAXAddPayment" style="
> document"/>
> <wsdl:input>
> <soap12:body use="literal"/>
> </wsdl:input>
> <wsdl:output>
> <soap12:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="TaxAddPayment">
> <wsdl:port name="TaxAddPaymentSoap" binding="tns:TaxAddPaymentSoap">
> <soap:address location="
> http://www.tlmgateway.com/tlmgateway/TAXAddPayment.asmx"/>
> </wsdl:port>
> <wsdl:port name="TaxAddPaymentSoap12" binding="tns:TaxAddPaymentSoap12">
> <soap12:address location="
> http://www.tlmgateway.com/tlmgateway/TAXAddPayment.asmx"/>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>



 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to