M
M
minpor2014-06-24 16:46:50
WSDL
minpor, 2014-06-24 16:46:50

How to declare an attribute on a WSDL service?

I need to make a response with an attribute on the WSDL service, but the attribute does not belong to the parent node.
Example:
512e4372468245e7876b7678eb279ae4.png
How can I do this?
This is how it works:

<xsd:element name="testOperationResponse" type="tns:test1"></xsd:element>
<xsd:complexType name="test1"> 
<xsd:sequence>	
       <xsd:element name="name1" type="xsd:string"></xsd:element>
</xsd:sequence>
<xsd:attribute name="atr1" type="xsd:string"></xsd:attribute></xsd:complexType>

But I need even lower.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question