Closed GoogleCodeExporter closed 8 years ago
In order to fix this the WSDLParser should be changed to generate other XML for
ComplexTypes. You can fix
this by editting "ComplexType_M.template" in the WSDLParser project itself,
search for something like the
snipped below and comment some of the lines out. (Or download the attached file.
- (xmlNodePtr)xmlNodeForDoc:(xmlDocPtr)doc elementName:(NSString *)elName
{
xmlNodePtr root = xmlDocGetRootElement(doc);
// xmlNsPtr xsi = xmlSearchNs(doc, root, (const xmlChar*)"xsi");
xmlNodePtr node = xmlNewDocNode(doc, NULL, [elName xmlString], NULL);
// xmlSetNsProp(node, xsi, (const xmlChar*)"type", (const xmlChar*)"%«schema.prefix»:%«typeName»");
//%IFEQ isInTargetNamespace false
xmlSetNsProp(node, nil, (const xmlChar*)"xmlns", (const xmlChar*)"%«schema.fullName»");
//%ENDIF
[self addAttributesToNode:node];
%IF hasSequenceElements
[self addElementsToNode:node];
%ENDIF
return node;
}
Original comment by mkad...@gmail.com
on 20 Oct 2009 at 2:46
Attachments:
This solution solved 2 issues for me:
1)the problem posted above: Unable to handle request without a valid action
parameter...
2)A result of error 500 when sending a date parameter. Removing the date
parameter
resulted in the first error
Original comment by jasonala...@gmail.com
on 7 Nov 2009 at 10:18
In addition to original fix, this also fixed a "Object reference not set to an
instance of an object." error for me.
Original comment by ragnarhe...@gmail.com
on 5 Dec 2009 at 12:50
Very good patch, works much better with it.
Original comment by alexej.k...@gmail.com
on 5 Dec 2009 at 9:38
Note this worked except I had to put back the last parameter elementNSPrefix
which
was removed in your patch. It caused warnings and then runtime errors.
You made it:
- (xmlNodePtr)xmlNodeForDoc:(xmlDocPtr)doc elementName:(NSString *)elName
Had to change it BACK to:
- (xmlNodePtr)xmlNodeForDoc:(xmlDocPtr)doc elementName:(NSString *)elName
elementNSPrefix:(NSString *)elNSPrefix
After that I did successfully connect to the webservice and the SOAPAction
error went
away
Original comment by trup...@gmail.com
on 17 Mar 2010 at 1:44
[deleted comment]
This part of the code was superseded by a later patch. Please check if error is
still there in 0.7-pre1
Original comment by hasse...@gmail.com
on 1 Jun 2010 at 2:20
Here i solved this issue...
http://greatindiaclub.oliwy.net/?p=511
It is very simple.. Just i changed the proxy code generated by wsdl2objc
I hope it will used full for you...
Original comment by boobal...@gmail.com
on 29 Sep 2011 at 7:56
Original issue reported on code.google.com by
nicolas....@gmail.com
on 15 Oct 2009 at 8:37