This project is read-only.

Complex Data type in Parameter

Jun 26, 2013 at 10:30 AM
I was just tying to use use soap client in my project, but could not get how to use complex type as parameter. Can anyone have any Idea?

Good piece of code!

Oct 17, 2013 at 8:49 AM
Edited Oct 17, 2013 at 10:30 AM
It doesn't handle by default complex type yet.
But you can do this :

WSDL method
POST /dnet/achws.asmx HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soap12="">
    <CheckCompanyStatus xmlns="">
SoapClient usage :
Soap.SoapClient client =new Soap.SoapClient();
//load wsdl to get operation parameters

// invoke operation with inline parameter (complex type def)
var response = client.Invoke("CheckCompanyStatus", "<SSS>TST</SSS><LocID>9505</LocID><Company>MYCOMPANY</Company><CompanyKey>SASD%!%$DGLJGWYRRDGDDUDFDESDHDD</CompanyKey>");