-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong value object type for ComplexType #43
Comments
Ok, Schema_a8452 = xsd.Schema(
imports = [],
targetNamespace = 'urn:PayBemoovListener',
elementFormDefault = 'qualified',
simpleTypes = [],
attributeGroups = [],
groups = [],
complexTypes = [BuyReqResponse],
elements = {'NotifyRequest': xsd.Element( NotifyRequest() ), 'NotifyResponse': xsd.Element( NotifyResponse() )},
) and I changed in: Schema_a8452 = xsd.Schema(
imports = [],
targetNamespace = 'urn:PayBemoovListener',
elementFormDefault = 'qualified',
simpleTypes = [],
attributeGroups = [],
groups = [],
complexTypes = [BuyReqResponse, NotifyRequest, NotifyResponse],
elements = {'NotifyRequest': xsd.Element( NotifyRequest() ), 'NotifyResponse': xsd.Element( NotifyResponse() )},
) and, obviously, changing the reference from I tested it with SoapUI using this request: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:PayBemoovListener">
<soapenv:Header/>
<soapenv:Body>
<urn:NotifyRequest>
<urn:idMerchant>1</urn:idMerchant>
<urn:idTransactionMerchant>1</urn:idTransactionMerchant>
<!--Optional:-->
<urn:idUser>1</urn:idUser>
<urn:amount>1</urn:amount>
<urn:productCode>1</urn:productCode>
<!--Optional:-->
<urn:itemCode00>1</urn:itemCode00>
<!--Optional:-->
<urn:itemCode01>?</urn:itemCode01>
<!--Optional:-->
<urn:itemCode02>?</urn:itemCode02>
<!--Optional:-->
<urn:itemCode03>?</urn:itemCode03>
<!--Optional:-->
<urn:itemCode04>?</urn:itemCode04>
<urn:requestType>1</urn:requestType>
<urn:BuyReqResponse>
<urn:movincomAuthId>1</urn:movincomAuthId>
<urn:movincomCompId>1</urn:movincomCompId>
<urn:responseCode>1</urn:responseCode>
<!--Optional:-->
<urn:responseDesc>1</urn:responseDesc>
<!--Optional:-->
<urn:category>1</urn:category>
<!--Optional:-->
<urn:outMessage>1</urn:outMessage>
</urn:BuyReqResponse>
<urn:executionCode>1</urn:executionCode>
<urn:executionDesc>1</urn:executionDesc>
<urn:mac>1</urn:mac>
</urn:NotifyRequest>
</soapenv:Body>
</soapenv:Envelope> and this is the response: <ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/">
<ns0:Body>
<ns0:NotifyResponse xmlns:ns0="urn:PayBemoovListener">
<ns0:responseCode>0</ns0:responseCode>
</ns0:NotifyResponse>
</ns0:Body>
</ns0:Envelope> It seem the listener responds correctly :) What's the difference from soapbox? At this point, IMHO, seems to be only the wsdl2py script? Thanx a lot! |
First of all I find it a bit hard to understand what the problem is here exactly. Can you please post the reference WSDL you used to generate the source? I need somehow a way to reproduce your issue easily. Ideally you would send a unit test (or a single Python file which clearly demonstrates the problem) but I realize that this might be quite complicated. So the next best thing is having the original WSDL and also the code you are currently using (for example in a temporary git repo). |
Oooops.... I found my error :P sorry, sorry, sorry... |
This might be a problem from the code generation. As it is very hard to generate a valid response I guess we could implement something like |
Hi,
I installed this beautiful lib, I used wsdl2py to generate the class python, no errors, all seem ok.
I tested my link to django dispatcher with "?wsdl" option in the path with SoapUI, the project in SoapUI is created correctly, but when I run the test with values this is the error:
In this link there is the wsdl file and the original python generated code from wsd2py:
https://drive.google.com/folderview?id=0B0uiGluEWZlOT0x3cWp2c20wdGc&usp=sharing
Please help me, if possible!
thanx
Vale
The text was updated successfully, but these errors were encountered: