Comments (5)
Hi @tknuppe,
Some questions:
- Can you tell me more about your use-case?
-Are you talking about XSD complex types that extend a different complex type? (I am not sure how ext-soap handles these.) - Can you provide me a WSDL for this?
The ExtendAssembler was not created for this purpose but for extending an existing class to e.g. provide ways to place collection code in an abstract class.
I would prefer to keep both the constructor and jsonserializeable they way they are in this package. Unless you have a very common use-case.
from soap-client.
Yes, a complex type extending another complex type. Sorry I cannot give you the WSDL but I could try to give you an excerpt:
<xs:complexType name="MarkenAuftrag"> <xs:complexContent mixed="false"> <xs:extension base="tns:BasisAuftrag"> <xs:sequence/> </xs:extension> </xs:complexContent> </xs:complexType> <xs:element name="MarkenAuftrag" nillable="true" type="tns:MarkenAuftrag"/> <xs:complexType name="BasisAuftrag"> <xs:sequence> <xs:element minOccurs="0" name="Auftragsnummer" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="Eingangsdatum" nillable="true" type="xs:dateTime"/ </xs:sequence> </xs:complexType> <xs:element name="BasisAuftrag" nillable="true" type="tns:BasisAuftrag"/>
What if I edit the constructor and jsonserializable assember and implement a switch to turn the function on (off by default)? I just call the parent __construct and jsonSerialize functions to handle the case. You can decide when I create the pull request. I don't want to force you into this. It could be useful for others, too.
The only other way for me is to use a fork for the rest of the project lifetime :(
from soap-client.
You could also create a custom assembler inside your project ;)
I'll need a WSDL to see how ext-soap parses this exactly.
from soap-client.
Okay, then I will keep it for now. Actually I don't know if it works. I'm in the middle of developing. The Assemblers are now ready. I have to use the SOAP functions and then I will see if it works.
Thanks for the hint to put the Assemblers into my project. That should do it.
from soap-client.
Update: Doesn't work. I needed to build a static SoapType for that cases. The idea with extending the construct and jsonSerialize functions was good but the SOAP-XML could not be built properly.
from soap-client.
Related Issues (20)
- Automatic generated types from wsdl HOT 2
- Providing a path to file for wizard gives invalid scheme error HOT 3
- Using GuzzleHttp with the plugin HOT 5
- Typed property ... must not be accessed before initialization HOT 4
- Soap Attachments HOT 2
- Set null as a default value for nullable properties HOT 5
- Issue when I'm trying to execute the wizzard - error of Allowed memory. Size HOT 5
- Problem to understand how to access the respons element HOT 10
- [Question] Is there a way to configure xmlns:SOAP-ENV? HOT 2
- customize clientfactory creation config HOT 3
- Generator doesn't initialise nullable values resulting in crash on access HOT 2
- Response object is not populated correctly HOT 8
- Can't instantiate custom type for GUIDs HOT 3
- Unable to handle "import" in wsdl HOT 3
- Support for complexType with sequnce of any HOT 6
- Explicitly specifying a type HOT 10
- Using different bindings HOT 1
- Using classes that extends another HOT 3
- I am getting SOAP-ERROR: Encoding: object has no 'mapped' property HOT 1
- Date xsi:type 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 soap-client.