Comments (5)
can you provide some python sample code so we can reproduce the issue ourself? Ideally we'd have a simple python test case which contains your (minimal) model, the expected output as well as the current output.
That being said missing namespaces should be fixable.
from soapfish.
I created repo with sample code:
https://github.com/sergey-aleshin/soaptest
See test.py and wcf.soap.xml files.
client.py was generated by wsdl2py from http://seweb.bars-glonass.ru/seweb5wcf/Service.svc?wsdl
wcf.soap.xml was produced by WCF Test Client for AddContract method
The main diffrence between xml produced by soapbox-bsd and wcf test client is use of d4p1 namespace. Without this namespace wcf service can not parse request properly and all fields of CI parameter are nulls.
from soapfish.
Hi,
I did not have the time to investigate your problem yet, but I encountered a similar issue with namespaces. You might try this commit trecouvr/soapbox-bsd@3355d64 from my branch wich is not yet merged in Felix's repo.
from soapfish.
I just checked the requests produced by your test.py
file with the latest soapfish code and it generates the same SOAP requests as FlightDataServices/soapbox@78a59005dfda481fcbbbbecdccffec627a341372 .
For the record: These are the SOAP bodies which are generated currently:
<ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/">
<ns0:Body>
<ns0:AddContract xmlns:ns0="http://tempuri.org/">
<ns0:CI>
<ns0:Login xmlns:ns0="http://schemas.datacontract.org/2004/07/">asg6</ns0:Login>
<ns0:Password xmlns:ns0="http://schemas.datacontract.org/2004/07/">1234</ns0:Password>
</ns0:CI>
</ns0:AddContract>
</ns0:Body>
</ns0:Envelope>
# --- second request -------------------------------------------------------------------
<ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/">
<ns0:Body>
<ns0:GetNewSessionId xmlns:ns0="http://tempuri.org/">
<ns0:UserLogin>asg6</ns0:UserLogin>
<ns0:UserPassword>1234</ns0:UserPassword>
</ns0:GetNewSessionId>
</ns0:Body>
</ns0:Envelope>
However I'm not completely sure that we generate bad SOAP requests in the first place. It is confusing for sure that the "ns0" namespace is redefined so often but as far as I can see the CI
tag is in the http://tempuri.org/
namespace while Login
and Password
are using http://schemas.datacontract.org/2004/07/
.
Also the server seems to be happy about the XML we're sending. The answer I got for the first request uses HTTP status code 200 and does not contain any Faults:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<AddContractResponse xmlns="http://tempuri.org/">
<AddContractResult>bbb7c6b6-c730-493b-90f0-ebeacba89977</AddContractResult>
</AddContractResponse>
</s:Body>
</s:Envelope>
@sergey-aleshin If I'm right, we could close this ticket as there is nothing wrong with the code, right? Maybe everything works as expected already?
I understand that is has been a long time since you filed that ticket. Sorry for the late response. In case you solved that problem and/or moved on please leave a short notice so we can close that ticket. I'm trying to keep the only "active" issue in the tracker so I'd like to avoid "stale" tickets :-)
from soapfish.
I'm closing this ticket as I think there is nothing to do for soapfish. Feel free to reopen in case I'm wrong (I'll be happy to help). Thank you very much for your effort reporting this issue.
from soapfish.
Related Issues (20)
- Add template file extensions. HOT 1
- Round trip through wsdl2py and py2wsdl should be consistent.
- Create <wsdl:documentation> and <xs:documentation> from docstrings and vice versa
- Python code generation behaviour when dealing with invalid WSDL HOT 1
- Repetition in xs:pattern broken by string formatting.
- wsdl2py failing HOT 2
- Fix Github parent child relationship with FlightDataServices/Soapfish HOT 5
- wsdl2py should mangle python keywords and reserved symbols HOT 4
- soapfish.xsd.Time is missing HOT 1
- wsdl2py throws AttributeError: 'Part' object has no attribute 'split' error HOT 1
- Multiples schema fail to validate in server mode HOT 1
- Client connection to a SOAP service with authentication
- After Enumeration a comma is missing when generating a client code from a locally saved WSDL file
- AttributeError: 'str' object has no attribute 'Service' HOT 6
- Refactor handling of location rewriting. HOT 3
- wsdl2py with imported xsd fails HOT 4
- Do not import base namespaces HOT 5
- Remote imports are handled as local files HOT 2
- Named XSD Element with unnamed complexType child generates invalid python. HOT 4
- wsdl2py jinja2 template not found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soapfish.