Manually Creating WSDL - Problem with Attributes


i'm creating wsdl in php consumed .net app.  issue i'm having attributes on elements.  here's have in wsdl:

 <schema xmlns="http://www.w3.org/2001/xmlschema" targetnamespace="http://ws.myapp.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">    <xsd:complextype name="synchronizationtransaction">     <xsd:sequence>      <xsd:element name="synchronizationtransactionheader" type="tns:synchronizationtransactionheadertype" />       </xsd:sequence>      </xsd:complextype>     <xsd:complextype name="synchronizationtransactionheadertype">    <xsd:sequence>      <xsd:element name="test" type="xsd:string" />       </xsd:sequence>      <xsd:attribute name="date" type="xsd:string" />       </xsd:complextype>      </schema>    
when try connect .net simulator it, message:
"attributes not supported encoded soap. please change definition of schema type 'synchronizationtransactionheadertype' namespace 'http://ws.myapp.com': use elements (not attributes) fields/parameters."

the xml schema set client, i'm forced have these attributes.

thanks.

ps i'm .net developer , hate php. :-)

the issue not wsdl, rather php framework using , how setting rest of web service message.  in input , output section of wsdl, assigning encoding soap element.  created sample web service project vs, looked @ how it, , changed php framework same thing.  soap element looks this:

<soap:body use="literal" /> 
after changing this, attributes worked seems.


Archived Forums A-B  >  ASMX Web Services and XML Serialization



Comments

Popular posts from this blog

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

Azure DocumentDB Owner resource does not exist

SQL Server 2008 - High Memory Usage