jkichline / sudzc Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://sudzc.com
Home Page: http://sudzc.com
Hi, I can't visit sudzc.com. Is there any way to deploy this website using the source code?
Hi,
I downloaded the website and hosted it locally. Then I could generate code for internal web services. The first time it worked. But now I have code generated that inherit from SoapDictionary, but this SoapDictionary is not in the source code any longer?
Can you help please.
god bless you!
Hi, I noticed that sudzc only retrieve the first element in the returned array result. so how can i did it for all? thanks!
file: SoapRequest.m
line - 161
current code: [self.handler performSelector: self.action withObject: output];
should be [self.handler performSelector: self.action withObject: fault];
is it possible to replace the xml parser that comes with SudzC (which is TouchXML) with TBXML parser ? I want to do so because TBXML parser has much lower memory foot-print and the fastest parser according to this comparison:
http://www.raywenderlich.com/553/how-to-chose-the-best-xml-parser-for-your-iphone-project
can you summarize the process in steps ?
thank you so much in advance ...
try deserialize below line:
<ns2:lastInvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:upcInvoice">
here is fail:
NSString* value = [element stringValue];
if ([type rangeOfString:@":"].length > 0) {
type = [[type substringFromIndex:[type rangeOfString:@":"].location+1] lowercaseString];
}
[...] here are checks for generic types
and finally we want to return Class or Dictionary:
// Return as a dictionary
if(value == nil) {
NSString* prefix = @"";
if([Soap respondsToSelector:@selector(prefix)]) {
prefix = [Soap performSelector:@selector(prefix)];
}
Class cls = NSClassFromString([NSString stringWithFormat:@"%@%@", prefix, type]);
if(cls != nil ) {
return [cls newWithNode:element];
} else {
return [Soap deserializeAsDictionary:element];
}
}
but "value" is not "nil" !!!
what can do ?
maybe:
if ( [element children] && [element children].count > 1) {
return [Soap deserializeAsDictionary:element];
}
just before last else with:
return value; //we mean that this is string... why ?
??
I'm trying to catch a SoapFault returned by my server, but it isn't recognized as such. Instead, it returns a result of nil.
I'm getting this xml back from the server:
<CXMLDocument 0x6b60210 [0x688fc40]> <?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>System.Web.Services.Protocols.SoapException: joynerror,Security,100,"Access denied"
at Joyn.WebServices.AccountServices.Login(String userName, String password, Boolean createPersistantCookie)</faultstring>
<faultactor>cosevenFault</faultactor>
<detail>
<errorNamespace>Security</errorNamespace>
<errorCode>100</errorCode>
<errorMessage>joynerror,Security,100,"Access denied"</errorMessage>
<errorDetails/>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
It gets passed into SoapFault::faultWithXMLDocument: which tries to get the fault's XML element with [Soap getNode: [document rootElement] withName: @"Fault"]
. This doesn't work though, since "soap:Fault" doesn't get recognized as the same as "Fault".
How can I work around this? Can I add a namespace somehow? My code works if I change line 26 in SoapFault.m to return [SoapFault faultWithXMLElement: [Soap getNode: [document rootElement] withName: @"soap:Fault"]];
, but it seems hacky, and I'm afraid I might break something.
Trying to create eh objc-c wsdl code from this site:
https://www.ilportaledellautomobilista.it/http://voas.ilportaledellautomobilista.it:7777/PortaleFacade/SmartphoneAutenticazione?wsdl
using http://sudzc.com/convert.php
i get this error:
Fatal error: Call to a member function getAttribute() on a non-object in /var/www/sudzc.com/public_html/sudzc/Website/php/assets/classes/converter.class.php on line 390.
Any help? It's a problem of the wsdl or from the converter.class.php?
If network is unavailable connectionDidFinishLoading: method is not called, and retained self.handler (SoapRequest.m line:188) is not released.
It can be fixed by moving this code into dealloc method.
This error happens using XCode 5.1, IOS 7.1, 64 Bit device
SoapRequest.m, at line 181:
objc_msgSend(self.handler, self.action, output);
an EXC_BAD_ACCESS is thrown in the called selector.
Apparently, it works removing OBJC_SEND and using:
[self.handler performSelectorOnMainThread:self.action withObject:output waitUntilDone:YES ];
I´m trying to generate SOAP files for this WSDL
http://www.mantisbt.org/bugs/api/soap/mantisconnect.php?wsdl
If you take a look for e.g. the definition of IssueDataArray
You see this should be an array.
But the current version of sudzc generated a SoapObject, not an SoapArray
About a year ago this worked correctly with szdzc. As there are now new supported versions for ARC support, I wanted to update my sources.
Hi
I need to integrate a Webservice which I cannot manipulate/patch. This webservice returns me a list of available items (DocumentBox) as you can see in the upload:
The code that is generated base on my WSDL does not define an array for the object "DocumentBoxArray" instead it is a "DocumentBox". And therefore i don't get all the items in the response, only the first one. That makes sense as the WSDL defines it as such.
Is there a way to patch the code generation?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.